Lines Matching full:blocks
35 struct list_head *blocks) in intel_memory_region_free_pages() argument
40 list_for_each_entry_safe(block, on, blocks, link) { in intel_memory_region_free_pages()
44 INIT_LIST_HEAD(blocks); in intel_memory_region_free_pages()
51 struct list_head *blocks) in __intel_memory_region_put_pages_buddy() argument
54 mem->avail += intel_memory_region_free_pages(mem, blocks); in __intel_memory_region_put_pages_buddy()
61 struct list_head blocks; in __intel_memory_region_put_block_buddy() local
63 INIT_LIST_HEAD(&blocks); in __intel_memory_region_put_block_buddy()
64 list_add(&block->link, &blocks); in __intel_memory_region_put_block_buddy()
65 __intel_memory_region_put_pages_buddy(block->private, &blocks); in __intel_memory_region_put_block_buddy()
72 struct list_head *blocks) in __intel_memory_region_get_pages_buddy() argument
78 GEM_BUG_ON(!list_empty(blocks)); in __intel_memory_region_get_pages_buddy()
117 list_add(&block->link, blocks); in __intel_memory_region_get_pages_buddy()
128 intel_memory_region_free_pages(mem, blocks); in __intel_memory_region_get_pages_buddy()
139 LIST_HEAD(blocks); in __intel_memory_region_get_block_buddy()
142 ret = __intel_memory_region_get_pages_buddy(mem, size, flags, &blocks); in __intel_memory_region_get_block_buddy()
146 block = list_first_entry(&blocks, typeof(*block), link); in __intel_memory_region_get_block_buddy()