/Linux-v6.6/drivers/gpu/drm/i915/ |
D | intel_region_ttm.c | 212 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()
|
D | i915_scatterlist.c | 100 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()
|
D | i915_user_extensions.c | 54 overflows_type(next, uintptr_t)) in i915_user_extensions()
|
D | i915_gem.c | 394 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()
|
D | i915_query.c | 586 if (overflows_type(item.query_id - 1, unsigned long)) in i915_query_ioctl()
|
D | i915_vma.c | 183 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-v6.6/drivers/gpu/drm/i915/gem/selftests/ |
D | huge_gem_object.c | 37 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()
|
D | huge_pages.c | 88 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-v6.6/drivers/gpu/drm/i915/gem/ |
D | i915_gem_internal.c | 43 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()
|
D | i915_gem_region.c | 64 GEM_BUG_ON(overflows_type(default_page_size, u32)); in __i915_gem_object_create_region()
|
D | i915_gem_ttm.c | 143 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()
|
D | i915_gem_phys.c | 32 if (overflows_type(obj->base.size, sg->length)) in i915_gem_object_get_pages_phys()
|
D | i915_gem_userptr.c | 137 if (overflows_type(obj->base.size >> PAGE_SHIFT, num_pages)) in i915_gem_userptr_get_pages()
|
D | i915_gem_context.c | 1910 if (overflows_type(user->slice_mask, context->slice_mask) || in i915_gem_user_to_context_sseu() 1911 overflows_type(user->subslice_mask, context->subslice_mask) || in i915_gem_user_to_context_sseu() 1912 overflows_type(user->min_eus_per_subslice, in i915_gem_user_to_context_sseu() 1914 overflows_type(user->max_eus_per_subslice, in i915_gem_user_to_context_sseu()
|
D | i915_gem_shmem.c | 75 if (overflows_type(size / PAGE_SIZE, page_count)) in shmem_sg_alloc_table()
|
D | i915_gem_object.h | 29 if (overflows_type(size, obj->base.size)) in i915_gem_object_size_2big()
|
D | i915_gem_object.c | 553 GEM_BUG_ON(overflows_type(offset >> PAGE_SHIFT, pgoff_t)); in i915_gem_object_read_from_page()
|
/Linux-v6.6/drivers/gpu/drm/i915/selftests/ |
D | scatterlist.c | 224 if (overflows_type(max, unsigned int)) in alloc_table() 232 GEM_BUG_ON(overflows_type(count * PAGE_SIZE, sg->length)); in alloc_table()
|
D | i915_gem_gtt.c | 72 if (overflows_type(rem, unsigned int)) { in fake_get_pages() 124 if (overflows_type(size, obj->base.size)) in fake_dma_object()
|
/Linux-v6.6/include/linux/ |
D | overflow.h | 157 #define overflows_type(n, T) \ macro
|
/Linux-v6.6/lib/ |
D | overflow_kunit.c | 942 __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-v6.6/drivers/gpu/drm/i915/gvt/ |
D | dmabuf.c | 56 if (overflows_type(obj->base.size >> PAGE_SHIFT, page_num)) in vgpu_gem_get_pages()
|
/Linux-v6.6/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_submission.c | 2526 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-v6.6/drivers/gpu/drm/i915/display/ |
D | intel_display_power_map.c | 1611 overflows_type(inst - desc->instances->list, pw->instance_idx)); in __set_power_wells()
|
D | intel_fb.c | 1412 drm_WARN_ON(&(i915)->drm, overflows_type(val, var)); \
|