Lines Matching refs:queue_pages
84 u64 page = __pa(queue->queue_pages[i]); in ipz_queue_abs_to_offset()
113 queue->queue_pages[f] = (struct ipz_page *)kpage; in alloc_queue_pages()
121 for (f = 0; f < nr_of_pages && queue->queue_pages[f]; in alloc_queue_pages()
123 free_page((unsigned long)(queue->queue_pages)[f]); in alloc_queue_pages()
161 queue->queue_pages[0] = (void *)(page->page | (bit << (order + 9))); in alloc_small_queue_page()
179 bit = ((unsigned long)queue->queue_pages[0] & ~PAGE_MASK) in free_small_queue_page()
225 queue->queue_pages = kzalloc(nr_of_pages * sizeof(void *), GFP_KERNEL); in ipz_queue_ctor()
226 if (!queue->queue_pages) { in ipz_queue_ctor()
227 queue->queue_pages = vzalloc(nr_of_pages * sizeof(void *)); in ipz_queue_ctor()
228 if (!queue->queue_pages) { in ipz_queue_ctor()
247 if (is_vmalloc_addr(queue->queue_pages)) in ipz_queue_ctor()
248 vfree(queue->queue_pages); in ipz_queue_ctor()
250 kfree(queue->queue_pages); in ipz_queue_ctor()
259 if (!queue || !queue->queue_pages) { in ipz_queue_dtor()
269 free_page((unsigned long)queue->queue_pages[i]); in ipz_queue_dtor()
272 if (is_vmalloc_addr(queue->queue_pages)) in ipz_queue_dtor()
273 vfree(queue->queue_pages); in ipz_queue_dtor()
275 kfree(queue->queue_pages); in ipz_queue_dtor()