memheap_buddy 24 oshmem/mca/memheap/buddy/memheap_buddy.c mca_memheap_buddy_module_t memheap_buddy = { memheap_buddy 190 oshmem/mca/memheap/buddy/memheap_buddy.c OBJ_CONSTRUCT(&memheap_buddy.lock, opal_mutex_t); memheap_buddy 192 oshmem/mca/memheap/buddy/memheap_buddy.c memheap_buddy.heap.max_order = memheap_log2(context->user_size); memheap_buddy 193 oshmem/mca/memheap/buddy/memheap_buddy.c memheap_buddy.heap.min_order = MEMHEAP_BASE_MIN_ORDER; memheap_buddy 194 oshmem/mca/memheap/buddy/memheap_buddy.c memheap_buddy.private_heap.max_order = memheap_log2(context->private_size); memheap_buddy 195 oshmem/mca/memheap/buddy/memheap_buddy.c memheap_buddy.private_heap.min_order = MEMHEAP_BASE_MIN_ORDER; memheap_buddy 197 oshmem/mca/memheap/buddy/memheap_buddy.c if (context->user_size != (1ULL << memheap_buddy.heap.max_order)) { memheap_buddy 200 oshmem/mca/memheap/buddy/memheap_buddy.c (unsigned long long)context->user_size, 1ULL << memheap_buddy.heap.max_order); memheap_buddy 203 oshmem/mca/memheap/buddy/memheap_buddy.c assert(context->private_size == (1ULL << memheap_buddy.private_heap.max_order)); memheap_buddy 205 oshmem/mca/memheap/buddy/memheap_buddy.c memheap_buddy.heap.symmetric_heap = context->user_base_addr; memheap_buddy 206 oshmem/mca/memheap/buddy/memheap_buddy.c memheap_buddy.private_heap.symmetric_heap = context->private_base_addr; memheap_buddy 208 oshmem/mca/memheap/buddy/memheap_buddy.c memheap_buddy.super.memheap_size = (1ULL << memheap_buddy.heap.max_order); memheap_buddy 215 oshmem/mca/memheap/buddy/memheap_buddy.c if (OSHMEM_SUCCESS != buddy_init(&memheap_buddy)) { memheap_buddy 233 oshmem/mca/memheap/buddy/memheap_buddy.c memheap_buddy.heap.symmetric_heap_hashtable = OBJ_NEW(opal_hash_table_t); memheap_buddy 234 oshmem/mca/memheap/buddy/memheap_buddy.c if (NULL == memheap_buddy.heap.symmetric_heap_hashtable) { memheap_buddy 238 oshmem/mca/memheap/buddy/memheap_buddy.c memheap_buddy.private_heap.symmetric_heap_hashtable = memheap_buddy 240 oshmem/mca/memheap/buddy/memheap_buddy.c if (NULL == memheap_buddy.private_heap.symmetric_heap_hashtable) { memheap_buddy 245 oshmem/mca/memheap/buddy/memheap_buddy.c opal_hash_table_init(memheap_buddy.heap.symmetric_heap_hashtable, memheap_buddy 247 oshmem/mca/memheap/buddy/memheap_buddy.c opal_hash_table_init(memheap_buddy.private_heap.symmetric_heap_hashtable, memheap_buddy 364 oshmem/mca/memheap/buddy/memheap_buddy.c OPAL_THREAD_LOCK(&memheap_buddy.lock); memheap_buddy 377 oshmem/mca/memheap/buddy/memheap_buddy.c OPAL_THREAD_UNLOCK(&memheap_buddy.lock); memheap_buddy 391 oshmem/mca/memheap/buddy/memheap_buddy.c OPAL_THREAD_UNLOCK(&memheap_buddy.lock); memheap_buddy 475 oshmem/mca/memheap/buddy/memheap_buddy.c alloc_error: _buddy_free(&memheap_buddy, offset, order, heap); memheap_buddy 481 oshmem/mca/memheap/buddy/memheap_buddy.c return _do_alloc(order, p_buff, &(memheap_buddy.heap)); memheap_buddy 486 oshmem/mca/memheap/buddy/memheap_buddy.c return _do_alloc(order, p_buff, &(memheap_buddy.private_heap)); memheap_buddy 528 oshmem/mca/memheap/buddy/memheap_buddy.c base = (unsigned long) memheap_buddy.private_heap.symmetric_heap; memheap_buddy 533 oshmem/mca/memheap/buddy/memheap_buddy.c opal_hash_table_get_value_uint64(memheap_buddy.private_heap.symmetric_heap_hashtable, memheap_buddy 540 oshmem/mca/memheap/buddy/memheap_buddy.c buddy_private_free(&memheap_buddy, memheap_buddy 543 oshmem/mca/memheap/buddy/memheap_buddy.c opal_hash_table_remove_value_uint64(memheap_buddy.private_heap.symmetric_heap_hashtable, memheap_buddy 586 oshmem/mca/memheap/buddy/memheap_buddy.c opal_hash_table_get_value_uint64(memheap_buddy.heap.symmetric_heap_hashtable, memheap_buddy 608 oshmem/mca/memheap/buddy/memheap_buddy.c if (new_size > (1UL << memheap_buddy.heap.max_order)) { memheap_buddy 613 oshmem/mca/memheap/buddy/memheap_buddy.c if (old_size + new_size >= (1UL << memheap_buddy.heap.max_order)) { memheap_buddy 628 oshmem/mca/memheap/buddy/memheap_buddy.c if (old_size + new_size >= (1UL << memheap_buddy.heap.max_order) memheap_buddy 637 oshmem/mca/memheap/buddy/memheap_buddy.c if (old_size + new_size < (1UL << memheap_buddy.heap.max_order)) memheap_buddy 657 oshmem/mca/memheap/buddy/memheap_buddy.c base = (unsigned long) memheap_buddy.heap.symmetric_heap; memheap_buddy 662 oshmem/mca/memheap/buddy/memheap_buddy.c opal_hash_table_get_value_uint64(memheap_buddy.heap.symmetric_heap_hashtable, memheap_buddy 669 oshmem/mca/memheap/buddy/memheap_buddy.c buddy_free(&memheap_buddy, offset, (unsigned) (unsigned long) order); memheap_buddy 670 oshmem/mca/memheap/buddy/memheap_buddy.c opal_hash_table_remove_value_uint64(memheap_buddy.heap.symmetric_heap_hashtable, memheap_buddy 681 oshmem/mca/memheap/buddy/memheap_buddy.c if (memheap_buddy.heap.max_order == 0) memheap_buddy 685 oshmem/mca/memheap/buddy/memheap_buddy.c if (memheap_buddy.heap.symmetric_heap_hashtable) { memheap_buddy 686 oshmem/mca/memheap/buddy/memheap_buddy.c OBJ_RELEASE(memheap_buddy.heap.symmetric_heap_hashtable); memheap_buddy 688 oshmem/mca/memheap/buddy/memheap_buddy.c if (memheap_buddy.private_heap.symmetric_heap_hashtable) { memheap_buddy 689 oshmem/mca/memheap/buddy/memheap_buddy.c OBJ_RELEASE(memheap_buddy.private_heap.symmetric_heap_hashtable); memheap_buddy 692 oshmem/mca/memheap/buddy/memheap_buddy.c buddy_cleanup(&memheap_buddy); memheap_buddy 65 oshmem/mca/memheap/buddy/memheap_buddy.h OSHMEM_DECLSPEC extern mca_memheap_buddy_module_t memheap_buddy; memheap_buddy 54 oshmem/mca/memheap/buddy/memheap_buddy_component.c *priority = memheap_buddy.priority; memheap_buddy 55 oshmem/mca/memheap/buddy/memheap_buddy_component.c *module = (mca_base_module_t *)&memheap_buddy.super;