Lines Matching refs:block

55 			     struct drm_buddy_block *block,  in __igt_dump_block()  argument
59 block->header, in __igt_dump_block()
60 drm_buddy_block_state(block), in __igt_dump_block()
61 drm_buddy_block_order(block), in __igt_dump_block()
62 drm_buddy_block_offset(block), in __igt_dump_block()
63 drm_buddy_block_size(mm, block), in __igt_dump_block()
64 yesno(!block->parent), in __igt_dump_block()
69 struct drm_buddy_block *block) in igt_dump_block() argument
73 __igt_dump_block(mm, block, false); in igt_dump_block()
75 buddy = drm_get_buddy(block); in igt_dump_block()
81 struct drm_buddy_block *block) in igt_check_block() argument
89 block_state = drm_buddy_block_state(block); in igt_check_block()
98 block_size = drm_buddy_block_size(mm, block); in igt_check_block()
99 offset = drm_buddy_block_offset(block); in igt_check_block()
126 buddy = drm_get_buddy(block); in igt_check_block()
128 if (!buddy && block->parent) { in igt_check_block()
159 struct drm_buddy_block *block; in igt_check_blocks() local
164 block = NULL; in igt_check_blocks()
168 list_for_each_entry(block, blocks, link) { in igt_check_blocks()
169 err = igt_check_block(mm, block); in igt_check_blocks()
171 if (!drm_buddy_block_is_allocated(block)) { in igt_check_blocks()
183 offset = drm_buddy_block_offset(block); in igt_check_blocks()
194 total += drm_buddy_block_size(mm, block); in igt_check_blocks()
195 prev = block; in igt_check_blocks()
213 igt_dump_block(mm, block); in igt_check_blocks()
242 struct drm_buddy_block *block; in igt_check_mm() local
283 block = list_first_entry_or_null(&mm->free_list[order], in igt_check_mm()
286 if (block != root) { in igt_check_mm()
344 struct drm_buddy_block *block; in igt_buddy_alloc_pathological() local
370 block = list_first_entry_or_null(&blocks, typeof(*block), link); in igt_buddy_alloc_pathological()
371 if (block) { in igt_buddy_alloc_pathological()
372 list_del(&block->link); in igt_buddy_alloc_pathological()
373 drm_buddy_free_block(&mm, block); in igt_buddy_alloc_pathological()
386 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_pathological()
389 if (!block) { in igt_buddy_alloc_pathological()
395 list_move_tail(&block->link, &blocks); in igt_buddy_alloc_pathological()
406 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_pathological()
409 if (!block) { in igt_buddy_alloc_pathological()
415 list_move_tail(&block->link, &holes); in igt_buddy_alloc_pathological()
422 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_pathological()
425 if (!block) { in igt_buddy_alloc_pathological()
431 list_move_tail(&block->link, &blocks); in igt_buddy_alloc_pathological()
446 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_pathological()
449 if (!block) { in igt_buddy_alloc_pathological()
455 list_move_tail(&block->link, &blocks); in igt_buddy_alloc_pathological()
497 struct drm_buddy_block *block; in igt_buddy_alloc_smoke() local
536 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_smoke()
539 if (!block) { in igt_buddy_alloc_smoke()
545 list_move_tail(&block->link, &blocks); in igt_buddy_alloc_smoke()
547 if (drm_buddy_block_order(block) != order) { in igt_buddy_alloc_smoke()
553 total += drm_buddy_block_size(&mm, block); in igt_buddy_alloc_smoke()
591 struct drm_buddy_block *block, *bn; in igt_buddy_alloc_pessimistic() local
623 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_pessimistic()
626 if (!block) { in igt_buddy_alloc_pessimistic()
632 list_move_tail(&block->link, &blocks); in igt_buddy_alloc_pessimistic()
643 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_pessimistic()
646 if (!block) { in igt_buddy_alloc_pessimistic()
652 list_move_tail(&block->link, &blocks); in igt_buddy_alloc_pessimistic()
661 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_pessimistic()
664 if (!block) { in igt_buddy_alloc_pessimistic()
670 list_move_tail(&block->link, &blocks); in igt_buddy_alloc_pessimistic()
676 block = list_last_entry(&blocks, typeof(*block), link); in igt_buddy_alloc_pessimistic()
677 list_del(&block->link); in igt_buddy_alloc_pessimistic()
678 drm_buddy_free_block(&mm, block); in igt_buddy_alloc_pessimistic()
682 list_for_each_entry_safe(block, bn, &blocks, link) { in igt_buddy_alloc_pessimistic()
683 list_del(&block->link); in igt_buddy_alloc_pessimistic()
684 drm_buddy_free_block(&mm, block); in igt_buddy_alloc_pessimistic()
694 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_pessimistic()
697 if (!block) { in igt_buddy_alloc_pessimistic()
703 list_del(&block->link); in igt_buddy_alloc_pessimistic()
704 drm_buddy_free_block(&mm, block); in igt_buddy_alloc_pessimistic()
717 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_pessimistic()
720 if (!block) { in igt_buddy_alloc_pessimistic()
726 list_del(&block->link); in igt_buddy_alloc_pessimistic()
727 drm_buddy_free_block(&mm, block); in igt_buddy_alloc_pessimistic()
738 struct drm_buddy_block *block; in igt_buddy_alloc_optimistic() local
771 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_optimistic()
774 if (!block) { in igt_buddy_alloc_optimistic()
780 list_move_tail(&block->link, &blocks); in igt_buddy_alloc_optimistic()
788 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_optimistic()
791 if (!block) { in igt_buddy_alloc_optimistic()
797 list_move_tail(&block->link, &blocks); in igt_buddy_alloc_optimistic()
837 struct drm_buddy_block *block; in igt_buddy_alloc_range() local
856 block = list_first_entry_or_null(&tmp, in igt_buddy_alloc_range()
859 if (!block) { in igt_buddy_alloc_range()
865 if (drm_buddy_block_offset(block) != offset) { in igt_buddy_alloc_range()
867 drm_buddy_block_offset(block), offset); in igt_buddy_alloc_range()
908 struct drm_buddy_block *block; in igt_buddy_alloc_limit() local
932 block = list_first_entry_or_null(&allocated, in igt_buddy_alloc_limit()
936 if (!block) { in igt_buddy_alloc_limit()
941 if (drm_buddy_block_order(block) != mm.max_order) { in igt_buddy_alloc_limit()
943 drm_buddy_block_order(block), mm.max_order); in igt_buddy_alloc_limit()
948 if (drm_buddy_block_size(&mm, block) != in igt_buddy_alloc_limit()
951 drm_buddy_block_size(&mm, block), in igt_buddy_alloc_limit()