Lines Matching refs:page
47 struct util_slab_page *page, unsigned index) in util_slab_get_block() argument
50 ((uint8_t*)page + sizeof(struct util_slab_page) + in util_slab_get_block()
56 struct util_slab_page *page; in util_slab_add_new_page() local
60 page = MALLOC(pool->page_size); in util_slab_add_new_page()
61 insert_at_tail(&pool->list, page); in util_slab_add_new_page()
65 block = util_slab_get_block(pool, page, i); in util_slab_add_new_page()
66 block->next_free = util_slab_get_block(pool, page, i+1); in util_slab_add_new_page()
70 block = util_slab_get_block(pool, page, pool->num_blocks-1); in util_slab_add_new_page()
73 pool->first_free = util_slab_get_block(pool, page, 0); in util_slab_add_new_page()
161 struct util_slab_page *page, *temp; in util_slab_destroy() local
164 foreach_s(page, temp, &pool->list) { in util_slab_destroy()
165 remove_from_list(page); in util_slab_destroy()
166 FREE(page); in util_slab_destroy()