Lines Matching refs:slots
118 struct z3fold_buddy_slots *slots; member
199 struct z3fold_buddy_slots *slots; in alloc_slots() local
201 slots = kmem_cache_alloc(pool->c_handle, in alloc_slots()
204 if (slots) { in alloc_slots()
205 memset(slots->slot, 0, sizeof(slots->slot)); in alloc_slots()
206 slots->pool = (unsigned long)pool; in alloc_slots()
209 return slots; in alloc_slots()
224 struct z3fold_buddy_slots *slots; in free_handle() local
233 slots = handle_to_slots(handle); in free_handle()
236 if (slots->slot[i]) { in free_handle()
243 struct z3fold_pool *pool = slots_to_pool(slots); in free_handle()
245 kmem_cache_free(pool->c_handle, slots); in free_handle()
302 struct z3fold_buddy_slots *slots; in init_z3fold_page() local
313 slots = alloc_slots(pool, gfp); in init_z3fold_page()
314 if (!slots) in init_z3fold_page()
325 zhdr->slots = slots; in init_z3fold_page()
373 struct z3fold_buddy_slots *slots, in __encode_handle() argument
392 slots->slot[idx] = h; in __encode_handle()
393 return (unsigned long)&slots->slot[idx]; in __encode_handle()
398 return __encode_handle(zhdr, zhdr->slots, bud); in encode_handle()
1118 struct z3fold_buddy_slots slots; in z3fold_reclaim_page() local
1179 first_handle = __encode_handle(zhdr, &slots, in z3fold_reclaim_page()
1182 middle_handle = __encode_handle(zhdr, &slots, in z3fold_reclaim_page()
1185 last_handle = __encode_handle(zhdr, &slots, in z3fold_reclaim_page()
1193 first_handle = __encode_handle(zhdr, &slots, HEADLESS); in z3fold_reclaim_page()