Home
last modified time | relevance | path

Searched refs:overflows_type (Results 1 – 25 of 25) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/i915/
Dintel_region_ttm.c212 if (WARN_ON(overflows_type(offset >> PAGE_SHIFT, place.fpfn))) { in intel_region_ttm_resource_alloc()
217 if (WARN_ON(overflows_type(place.fpfn + (size >> PAGE_SHIFT), place.lpfn))) { in intel_region_ttm_resource_alloc()
227 if (WARN_ON(overflows_type(mem->io_size >> PAGE_SHIFT, place.lpfn))) { in intel_region_ttm_resource_alloc()
Di915_scatterlist.c100 if (WARN_ON(overflows_type(DIV_ROUND_UP_ULL(node->size, segment_pages), in i915_rsgt_from_mm_node()
188 if (WARN_ON(overflows_type(PFN_UP(res->size), unsigned int))) { in i915_rsgt_from_buddy_resource()
Di915_user_extensions.c54 overflows_type(next, uintptr_t)) in i915_user_extensions()
Di915_gem.c394 if (overflows_type(args->size, remain) || in i915_gem_gtt_pread()
395 overflows_type(args->offset, offset)) in i915_gem_gtt_pread()
558 if (overflows_type(args->size, remain) || in i915_gem_gtt_pwrite_fast()
559 overflows_type(args->offset, offset)) in i915_gem_gtt_pwrite_fast()
Di915_query.c586 if (overflows_type(item.query_id - 1, unsigned long)) in i915_query_ioctl()
Di915_vma.c183 if (unlikely(overflows_type(vma->size, u32))) in vma_create()
781 GEM_BUG_ON(overflows_type(flags & PIN_OFFSET_MASK, u32)); in i915_vma_insert()
/linux-6.6.21/drivers/gpu/drm/i915/gem/selftests/
Dhuge_gem_object.c37 if (overflows_type(obj->base.size / PAGE_SIZE, npages)) in huge_get_pages()
113 if (overflows_type(dma_size, obj->base.size)) in huge_gem_object()
Dhuge_pages.c88 if (overflows_type(obj->base.size >> PAGE_SHIFT, unsigned int)) in get_huge_pages()
188 if (overflows_type(size, obj->base.size)) in huge_pages_object()
220 if (overflows_type(obj->base.size >> PAGE_SHIFT, unsigned int)) in fake_get_huge_pages()
339 if (overflows_type(size, obj->base.size)) in fake_huge_pages_object()
/linux-6.6.21/drivers/gpu/drm/i915/gem/
Di915_gem_internal.c43 if (overflows_type(obj->base.size >> PAGE_SHIFT, npages)) in i915_gem_object_get_pages_internal()
150 if (overflows_type(size, obj->base.size)) in __i915_gem_object_create_internal()
Di915_gem_region.c64 GEM_BUG_ON(overflows_type(default_page_size, u32)); in __i915_gem_object_create_region()
Di915_gem_ttm.c143 WARN_ON(overflows_type(offset >> PAGE_SHIFT, place->fpfn)); in i915_ttm_place_from_region()
145 WARN_ON(overflows_type(place->fpfn + (size >> PAGE_SHIFT), place->lpfn)); in i915_ttm_place_from_region()
152 WARN_ON(overflows_type(mr->io_size >> PAGE_SHIFT, place->lpfn)); in i915_ttm_place_from_region()
846 if (overflows_type(obj->base.size >> PAGE_SHIFT, unsigned int)) in i915_ttm_get_pages()
Di915_gem_phys.c32 if (overflows_type(obj->base.size, sg->length)) in i915_gem_object_get_pages_phys()
Di915_gem_userptr.c137 if (overflows_type(obj->base.size >> PAGE_SHIFT, num_pages)) in i915_gem_userptr_get_pages()
Di915_gem_context.c1911 if (overflows_type(user->slice_mask, context->slice_mask) || in i915_gem_user_to_context_sseu()
1912 overflows_type(user->subslice_mask, context->subslice_mask) || in i915_gem_user_to_context_sseu()
1913 overflows_type(user->min_eus_per_subslice, in i915_gem_user_to_context_sseu()
1915 overflows_type(user->max_eus_per_subslice, in i915_gem_user_to_context_sseu()
Di915_gem_shmem.c75 if (overflows_type(size / PAGE_SIZE, page_count)) in shmem_sg_alloc_table()
Di915_gem_object.h29 if (overflows_type(size, obj->base.size)) in i915_gem_object_size_2big()
Di915_gem_object.c553 GEM_BUG_ON(overflows_type(offset >> PAGE_SHIFT, pgoff_t)); in i915_gem_object_read_from_page()
/linux-6.6.21/drivers/gpu/drm/i915/selftests/
Dscatterlist.c224 if (overflows_type(max, unsigned int)) in alloc_table()
232 GEM_BUG_ON(overflows_type(count * PAGE_SIZE, sg->length)); in alloc_table()
Di915_gem_gtt.c72 if (overflows_type(rem, unsigned int)) { in fake_get_pages()
124 if (overflows_type(size, obj->base.size)) in fake_dma_object()
/linux-6.6.21/include/linux/
Doverflow.h157 #define overflows_type(n, T) \ macro
/linux-6.6.21/lib/
Doverflow_kunit.c942 __TEST_OVERFLOWS_TYPE(overflows_type, var++, int, false); in overflows_type_test()
943 __TEST_OVERFLOWS_TYPE(overflows_type, var++, int, false); in overflows_type_test()
944 __TEST_OVERFLOWS_TYPE(overflows_type, var++, int, true); in overflows_type_test()
/linux-6.6.21/drivers/gpu/drm/i915/gvt/
Ddmabuf.c56 if (overflows_type(obj->base.size >> PAGE_SHIFT, page_num)) in vgpu_gem_get_pages()
/linux-6.6.21/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_submission.c2526 GEM_BUG_ON(overflows_type(engine->props.timeslice_duration_ms * 1000, in guc_context_policy_init_v70()
2528 GEM_BUG_ON(overflows_type(engine->props.preempt_timeout_ms * 1000, in guc_context_policy_init_v70()
2563 GEM_BUG_ON(overflows_type(engine->props.timeslice_duration_ms * 1000, in guc_context_policy_init_v69()
2565 GEM_BUG_ON(overflows_type(engine->props.preempt_timeout_ms * 1000, in guc_context_policy_init_v69()
/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_display_power_map.c1611 overflows_type(inst - desc->instances->list, pw->instance_idx)); in __set_power_wells()
Dintel_fb.c1413 drm_WARN_ON(&(i915)->drm, overflows_type(val, var)); \