Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_internal.c46 unsigned int max_segment; in i915_gem_object_get_pages_internal() local
48 max_segment = swiotlb_max_segment(); in i915_gem_object_get_pages_internal()
49 if (max_segment) { in i915_gem_object_get_pages_internal()
50 max_segment = max_t(unsigned int, max_segment, in i915_gem_object_get_pages_internal()
52 max_order = min(max_order, ilog2(max_segment)); in i915_gem_object_get_pages_internal()
Di915_gem_shmem.c40 unsigned int max_segment = i915_sg_segment_size(); in shmem_get_pages() local
136 sg->length >= max_segment || in shmem_get_pages()
167 if (max_segment > PAGE_SIZE) { in shmem_get_pages()
172 max_segment = PAGE_SIZE; in shmem_get_pages()
Di915_gem_userptr.c403 unsigned int max_segment = i915_sg_segment_size(); in __i915_gem_userptr_alloc_pages() local
415 num_pages << PAGE_SHIFT, max_segment, in __i915_gem_userptr_alloc_pages()
426 if (max_segment > PAGE_SIZE) { in __i915_gem_userptr_alloc_pages()
427 max_segment = PAGE_SIZE; in __i915_gem_userptr_alloc_pages()
/kernel/linux/linux-5.10/lib/
Dscatterlist.c430 unsigned long size, unsigned int max_segment, in __sg_alloc_table_from_pages() argument
442 max_segment = ALIGN_DOWN(max_segment, PAGE_SIZE); in __sg_alloc_table_from_pages()
443 if (WARN_ON(max_segment < PAGE_SIZE)) in __sg_alloc_table_from_pages()
460 if (prv->length + PAGE_SIZE > max_segment) in __sg_alloc_table_from_pages()
476 if (seg_len >= max_segment || in __sg_alloc_table_from_pages()
492 if (seg_len >= max_segment || in __sg_alloc_table_from_pages()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_prime.c816 size_t max_segment = 0; in drm_prime_pages_to_sg() local
823 max_segment = dma_max_mapping_size(dev->dev); in drm_prime_pages_to_sg()
824 if (max_segment == 0 || max_segment > SCATTERLIST_MAX_SEGMENT) in drm_prime_pages_to_sg()
825 max_segment = SCATTERLIST_MAX_SEGMENT; in drm_prime_pages_to_sg()
828 max_segment, in drm_prime_pages_to_sg()
/kernel/linux/linux-5.10/kernel/dma/
Dswiotlb.c93 static unsigned int max_segment; variable
140 return unlikely(no_iotlb_memory) ? 0 : max_segment; in swiotlb_max_segment()
147 max_segment = 1; in swiotlb_set_max_segment()
149 max_segment = rounddown(val, PAGE_SIZE); in swiotlb_set_max_segment()
334 max_segment = 0; in swiotlb_cleanup()
/kernel/linux/linux-5.10/include/linux/
Dscatterlist.h296 unsigned long size, unsigned int max_segment,