Lines Matching refs:bmp
97 slab_pool->cache_pool_entry->bmp = (ul *)kmalloc(slab_pool->cache_pool_entry->bmp_len, 0); in slab_create()
100 if (slab_pool->cache_pool_entry->bmp == NULL) in slab_create()
109 memset(slab_pool->cache_pool_entry->bmp, 0, slab_pool->cache_pool_entry->bmp_len); in slab_create()
139 kfree(tmp_slab_obj->bmp); in slab_destroy()
148 kfree(slab_obj_ptr->bmp); in slab_destroy()
199 tmp_slab_obj->bmp = (ul *)kmalloc(tmp_slab_obj->bmp_len, 0); in slab_malloc()
202 if (tmp_slab_obj->bmp == NULL) in slab_malloc()
210 memset(tmp_slab_obj->bmp, 0, tmp_slab_obj->bmp_len); in slab_malloc()
232 if (*(slab_obj_ptr->bmp + (i >> 6)) == 0xffffffffffffffffUL) in slab_malloc()
240 if ((*(slab_obj_ptr->bmp + (i >> 6)) & (1UL << tmp_md)) == 0) in slab_malloc()
243 *(slab_obj_ptr->bmp + (i >> 6)) |= (1UL << tmp_md); in slab_malloc()
273 kfree(tmp_slab_obj->bmp); in slab_malloc()
307 *(slab_obj_ptr->bmp + (index >> 6)) ^= (1UL << index % 64); in slab_free()
326 kfree(slab_obj_ptr->bmp); in slab_free()
369 kmalloc_cache_group[i].cache_pool_entry->bmp = (ul *)memory_management_struct.end_of_struct; in slab_init()
375 …memset(kmalloc_cache_group[i].cache_pool_entry->bmp, 0xff, kmalloc_cache_group[i].cache_pool_entry… in slab_init()
377 *(kmalloc_cache_group[i].cache_pool_entry->bmp + (j >> 6)) ^= 1UL << (j % 64); in slab_init()
395 *(memory_management_struct.bmp + (page_num >> 6)) |= (1UL << (page_num % 64)); in slab_init()
414 *(memory_management_struct.bmp + (page_num >> 6)) |= (1UL << (page_num % 64)); in slab_init()
471 slab_obj_ptr->bmp = (void *)slab_obj_ptr + sizeof(struct slab_obj); in kmalloc_create_slab_obj()
484 memset(slab_obj_ptr->bmp, 0xff, slab_obj_ptr->bmp_len); in kmalloc_create_slab_obj()
487 *(slab_obj_ptr->bmp + (i >> 6)) ^= 1UL << (i % 64); in kmalloc_create_slab_obj()
511 slab_obj_ptr->bmp = (ul *)kmalloc(slab_obj_ptr->bmp_len, 0); in kmalloc_create_slab_obj()
514 memset(slab_obj_ptr->bmp, 0xff, slab_obj_ptr->bmp_len); in kmalloc_create_slab_obj()
516 *(slab_obj_ptr->bmp + (i >> 6)) ^= 1UL << (i % 64); in kmalloc_create_slab_obj()
595 if (*(slab_obj_ptr->bmp + (i >> 6)) == 0xffffffffffffffffUL) in kmalloc()
602 if ((*(slab_obj_ptr->bmp + (i >> 6)) & (1UL << md)) == 0) in kmalloc()
604 *(slab_obj_ptr->bmp + (i >> 6)) |= (1UL << md); in kmalloc()
664 *(slab_obj_ptr->bmp + (index >> 6)) ^= 1UL << (index % 64); in kfree()
695 kfree(slab_obj_ptr->bmp); in kfree()