Home
last modified time | relevance | path

Searched refs:max_segment (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/gpu/drm/i915/
H A Di915_scatterlist.c84 const u32 max_segment = round_down(UINT_MAX, page_alignment); in i915_rsgt_from_mm_node() local
85 const u32 segment_pages = max_segment >> PAGE_SHIFT; in i915_rsgt_from_mm_node()
91 GEM_BUG_ON(!max_segment); in i915_rsgt_from_mm_node()
121 if (offset != prev_end || sg->length >= max_segment) { in i915_rsgt_from_mm_node()
133 len = min_t(u64, block_size, max_segment - sg->length); in i915_rsgt_from_mm_node()
169 const u32 max_segment = round_down(UINT_MAX, page_alignment); in i915_rsgt_from_buddy_resource() local
179 GEM_BUG_ON(!max_segment); in i915_rsgt_from_buddy_resource()
211 if (offset != prev_end || sg->length >= max_segment) { in i915_rsgt_from_buddy_resource()
223 len = min_t(u64, block_size, max_segment - sg->length); in i915_rsgt_from_buddy_resource()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_internal.c40 unsigned int max_segment; in i915_gem_object_get_pages_internal() local
47 max_segment = i915_sg_segment_size(i915->drm.dev) >> PAGE_SHIFT; in i915_gem_object_get_pages_internal()
48 max_order = min(max_order, get_order(max_segment)); in i915_gem_object_get_pages_internal()
H A Di915_gem_shmem.c66 unsigned int max_segment) in shmem_sg_alloc_table() argument
157 sg->length >= max_segment || in shmem_sg_alloc_table()
210 unsigned int max_segment = i915_sg_segment_size(i915->drm.dev); in shmem_get_pages() local
230 max_segment); in shmem_get_pages()
241 if (max_segment > PAGE_SIZE) { in shmem_get_pages()
247 max_segment = PAGE_SIZE; in shmem_get_pages()
H A Di915_gem_userptr.c101 unsigned int max_segment = i915_sg_segment_size(obj->base.dev->dev); in i915_gem_userptr_get_pages() local
126 max_segment, GFP_KERNEL); in i915_gem_userptr_get_pages()
134 if (max_segment > PAGE_SIZE) { in i915_gem_userptr_get_pages()
135 max_segment = PAGE_SIZE; in i915_gem_userptr_get_pages()
H A Di915_gem_object.h845 unsigned int max_segment);
/linux/lib/
H A Dscatterlist.c457 unsigned long size, unsigned int max_segment, in sg_alloc_append_table_from_pages() argument
469 max_segment = ALIGN_DOWN(max_segment, PAGE_SIZE); in sg_alloc_append_table_from_pages()
470 if (WARN_ON(max_segment < PAGE_SIZE)) in sg_alloc_append_table_from_pages()
488 if (sgt_append->prv->length + PAGE_SIZE > max_segment) in sg_alloc_append_table_from_pages()
505 if (seg_len >= max_segment || in sg_alloc_append_table_from_pages()
521 if (seg_len >= max_segment || in sg_alloc_append_table_from_pages()
581 unsigned long size, unsigned int max_segment, in sg_alloc_table_from_pages_segment() argument
588 size, max_segment, 0, gfp_mask); in sg_alloc_table_from_pages_segment()
/linux/drivers/gpu/drm/
H A Ddrm_prime.c840 size_t max_segment = 0; in drm_prime_pages_to_sg() local
848 max_segment = dma_max_mapping_size(dev->dev); in drm_prime_pages_to_sg()
849 if (max_segment == 0) in drm_prime_pages_to_sg()
850 max_segment = UINT_MAX; in drm_prime_pages_to_sg()
853 max_segment, GFP_KERNEL); in drm_prime_pages_to_sg()
/linux/drivers/gpu/drm/i915/selftests/
H A Dintel_memory_region.c464 unsigned int max_segment; in igt_mock_max_segment() local
481 max_segment = round_down(UINT_MAX, ps); in igt_mock_max_segment()
501 if (size < max_segment) { in igt_mock_max_segment()
503 __func__, max_segment, size); in igt_mock_max_segment()
511 if (sg->length > max_segment) { in igt_mock_max_segment()
513 __func__, sg->length, max_segment); in igt_mock_max_segment()
/linux/include/linux/
H A Dscatterlist.h444 unsigned int max_segment,
449 unsigned int max_segment, gfp_t gfp_mask);