Lines Matching refs:index
304 int index = (addr - slab_obj_ptr->vaddr) / slab_pool->size; in slab_free() local
307 *(slab_obj_ptr->bmp + (index >> 6)) ^= (1UL << index % 64); in slab_free()
317 slab_pool->destructor((char *)slab_obj_ptr->vaddr + slab_pool->size * index, arg); in slab_free()
548 int index; in kmalloc() local
553 index = i; in kmalloc()
558 spin_lock(&kmalloc_cache_group[index].lock); in kmalloc()
560 struct slab_obj *slab_obj_ptr = kmalloc_cache_group[index].cache_pool_entry; in kmalloc()
563 if (unlikely(kmalloc_cache_group[index].count_total_free == 0)) in kmalloc()
566 slab_obj_ptr = kmalloc_create_slab_obj(kmalloc_cache_group[index].size); in kmalloc()
575 kmalloc_cache_group[index].count_total_free += slab_obj_ptr->count_free; in kmalloc()
576 list_add(&kmalloc_cache_group[index].cache_pool_entry->list, &slab_obj_ptr->list); in kmalloc()
587 } while (slab_obj_ptr != kmalloc_cache_group[index].cache_pool_entry); in kmalloc()
608 --kmalloc_cache_group[index].count_total_free; in kmalloc()
609 ++kmalloc_cache_group[index].count_total_using; in kmalloc()
611 spin_unlock(&kmalloc_cache_group[index].lock); in kmalloc()
613 result = (void *)((char *)slab_obj_ptr->vaddr + kmalloc_cache_group[index].size * i); in kmalloc()
623 spin_unlock(&kmalloc_cache_group[index].lock); in kmalloc()
643 int index; in kfree() local
661 index = (address - slab_obj_ptr->vaddr) / kmalloc_cache_group[i].size; in kfree()
664 *(slab_obj_ptr->bmp + (index >> 6)) ^= 1UL << (index % 64); in kfree()