Lines Matching refs:total
177 limit = min(ppgtt->vm.total, limit); in igt_ppgtt_alloc()
283 GEM_BUG_ON(count * BIT_ULL(aligned_size) > vm->total); in lowlevel_hole()
310 GEM_BUG_ON(addr + BIT_ULL(aligned_size) > vm->total); in lowlevel_hole()
367 GEM_BUG_ON(addr + BIT_ULL(size) > vm->total); in lowlevel_hole()
1213 GEM_BUG_ON(offset_in_page(ppgtt->vm.total)); in exercise_ppgtt()
1216 err = func(&ppgtt->vm, 0, ppgtt->vm.total, end_time); in exercise_ppgtt()
1467 err = func(vm, 0, min(vm->total, limit), end_time); in exercise_mock()
1535 u64 total; in igt_gtt_reserve() local
1544 for (total = 0; in igt_gtt_reserve()
1545 total + 2 * I915_GTT_PAGE_SIZE <= ggtt->vm.total; in igt_gtt_reserve()
1546 total += 2 * I915_GTT_PAGE_SIZE) { in igt_gtt_reserve()
1569 err = reserve_gtt_with_resource(vma, total); in igt_gtt_reserve()
1572 total, ggtt->vm.total, err); in igt_gtt_reserve()
1578 if (vma->node.start != total || in igt_gtt_reserve()
1582 total, 2*I915_GTT_PAGE_SIZE); in igt_gtt_reserve()
1589 for (total = I915_GTT_PAGE_SIZE; in igt_gtt_reserve()
1590 total + 2 * I915_GTT_PAGE_SIZE <= ggtt->vm.total; in igt_gtt_reserve()
1591 total += 2 * I915_GTT_PAGE_SIZE) { in igt_gtt_reserve()
1615 err = reserve_gtt_with_resource(vma, total); in igt_gtt_reserve()
1618 total, ggtt->vm.total, err); in igt_gtt_reserve()
1624 if (vma->node.start != total || in igt_gtt_reserve()
1628 total, 2*I915_GTT_PAGE_SIZE); in igt_gtt_reserve()
1652 0, ggtt->vm.total, in igt_gtt_reserve()
1659 total, ggtt->vm.total, err); in igt_gtt_reserve()
1696 obj->cache_level, 0, vm->total, 0); in insert_gtt_with_resource()
1719 ggtt->vm.total + I915_GTT_PAGE_SIZE, 0, in igt_gtt_insert()
1720 0, ggtt->vm.total, in igt_gtt_insert()
1741 u64 total; in igt_gtt_insert() local
1766 for (total = 0; in igt_gtt_insert()
1767 total + I915_GTT_PAGE_SIZE <= ggtt->vm.total; in igt_gtt_insert()
1768 total += I915_GTT_PAGE_SIZE) { in igt_gtt_insert()
1800 total, ggtt->vm.total, err); in igt_gtt_insert()
1850 total, ggtt->vm.total, err); in igt_gtt_insert()
1865 for (total = 0; in igt_gtt_insert()
1866 total + 2 * I915_GTT_PAGE_SIZE <= ggtt->vm.total; in igt_gtt_insert()
1867 total += 2 * I915_GTT_PAGE_SIZE) { in igt_gtt_insert()
1894 total, ggtt->vm.total, err); in igt_gtt_insert()
2068 u64 addr = (vm->total - PAGE_SIZE) + i * sizeof(u32); in igt_cs_tlb()
2103 (vm->total - PAGE_SIZE)); in igt_cs_tlb()
2106 GEM_BUG_ON(vma->node.start != vm->total - PAGE_SIZE); in igt_cs_tlb()
2129 0, vm->total - PAGE_SIZE, in igt_cs_tlb()
2325 GEM_BUG_ON(offset_in_page(to_gt(i915)->ggtt->vm.total)); in i915_gem_gtt_live_selftests()