| /linux/drivers/gpu/drm/i915/ |
| H A 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(resource_size(&mem->io) >> PAGE_SHIFT, place.lpfn))) { in intel_region_ttm_resource_alloc()
|
| H A 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()
|
| H A D | i915_user_extensions.c | 54 overflows_type(next, uintptr_t)) in i915_user_extensions()
|
| H A D | i915_gem.c | 392 if (overflows_type(args->size, remain) || in i915_gem_gtt_pread() 393 overflows_type(args->offset, offset)) in i915_gem_gtt_pread() 556 if (overflows_type(args->size, remain) || in i915_gem_gtt_pwrite_fast() 557 overflows_type(args->offset, offset)) in i915_gem_gtt_pwrite_fast()
|
| H A D | i915_query.c | 621 if (overflows_type(item.query_id - 1, unsigned long)) in i915_query_ioctl()
|
| H A D | i915_vma.c | 217 if (unlikely(overflows_type(vma->size, u32))) in vma_create() 815 GEM_BUG_ON(overflows_type(flags & PIN_OFFSET_MASK, u32)); in i915_vma_insert()
|
| /linux/drivers/gpu/drm/i915/gem/selftests/ |
| H A 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()
|
| H A 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/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_internal.c | 42 if (overflows_type(obj->base.size >> PAGE_SHIFT, npages)) in i915_gem_object_get_pages_internal() 149 if (overflows_type(size, obj->base.size)) in __i915_gem_object_create_internal()
|
| H A 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(resource_size(&mr->io) >> PAGE_SHIFT, place->lpfn)); in i915_ttm_place_from_region() 845 if (overflows_type(obj->base.size >> PAGE_SHIFT, unsigned int)) in i915_ttm_get_pages()
|
| H A D | i915_gem_region.c | 64 GEM_BUG_ON(overflows_type(default_page_size, u32)); in __i915_gem_object_create_region()
|
| H A D | i915_gem_phys.c | 33 if (overflows_type(obj->base.size, sg->length)) in i915_gem_object_get_pages_phys()
|
| H A D | i915_gem_userptr.c | 108 if (overflows_type(obj->base.size >> PAGE_SHIFT, num_pages)) in i915_gem_userptr_get_pages()
|
| H A D | i915_gem_context.c | 1927 if (overflows_type(user->slice_mask, context->slice_mask) || in i915_gem_user_to_context_sseu() 1928 overflows_type(user->subslice_mask, context->subslice_mask) || in i915_gem_user_to_context_sseu() 1929 overflows_type(user->min_eus_per_subslice, in i915_gem_user_to_context_sseu() 1931 overflows_type(user->max_eus_per_subslice, in i915_gem_user_to_context_sseu()
|
| H A D | i915_gem_shmem.c | 77 if (overflows_type(size / PAGE_SIZE, page_count)) in shmem_sg_alloc_table()
|
| H A D | i915_gem_object.h | 29 if (overflows_type(size, obj->base.size)) in i915_gem_object_size_2big()
|
| H A D | i915_gem_object.c | 561 GEM_BUG_ON(overflows_type(offset >> PAGE_SHIFT, pgoff_t)); in i915_gem_object_read_from_page()
|
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A 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()
|
| H A 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/include/linux/ |
| H A D | overflow.h | 230 #define overflows_type(n, T) \ macro 573 (overflows_type(COUNT, typeof_flex_counter(((TYPE *)NULL)->FAM)))
|
| /linux/block/ |
| H A D | blk-mq-dma.c | 298 WARN_ON_ONCE(overflows_type(vec.len, unsigned int)); in __blk_rq_map_sg() 420 WARN_ON_ONCE(overflows_type(vec.len, unsigned int)); in blk_rq_map_integrity_sg()
|
| /linux/lib/tests/ |
| H A D | overflow_kunit.c | 999 __TEST_OVERFLOWS_TYPE(overflows_type, var++, int, false); in overflows_type_test() 1000 __TEST_OVERFLOWS_TYPE(overflows_type, var++, int, false); in overflows_type_test() 1001 __TEST_OVERFLOWS_TYPE(overflows_type, var++, int, true); in overflows_type_test()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_lmtt.c | 309 lmtt_assert(lmtt, !overflows_type(pte, u32)); in lmtt_write_pte()
|
| /linux/drivers/gpu/drm/i915/gvt/ |
| H A D | dmabuf.c | 58 if (overflows_type(obj->base.size >> PAGE_SHIFT, page_num)) in vgpu_gem_get_pages()
|
| /linux/drivers/of/ |
| H A D | address.c | 190 if (overflows_type(start, r->start)) in __of_address_resource_bounds()
|