Searched refs:max_segment (Results 1 – 11 of 11) sorted by relevance
/linux/drivers/gpu/drm/i915/ |
A D | i915_scatterlist.c | 59 const u64 max_segment = SZ_1G; /* Do we have a limit on this? */ in i915_sg_from_mm_node() local 60 u64 segment_pages = max_segment >> PAGE_SHIFT; in i915_sg_from_mm_node() 84 if (offset != prev_end || sg->length >= max_segment) { in i915_sg_from_mm_node() 94 len = min(block_size, max_segment - sg->length); in i915_sg_from_mm_node() 128 const u64 max_segment = rounddown(UINT_MAX, PAGE_SIZE); in i915_sg_from_buddy_resource() local 160 if (offset != prev_end || sg->length >= max_segment) { in i915_sg_from_buddy_resource() 170 len = min(block_size, max_segment - sg->length); in i915_sg_from_buddy_resource()
|
/linux/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_internal.c | 46 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()
|
A D | i915_gem_userptr.c | 131 unsigned int max_segment = i915_sg_segment_size(); in i915_gem_userptr_get_pages() local 152 max_segment, GFP_KERNEL); in i915_gem_userptr_get_pages() 160 if (max_segment > PAGE_SIZE) { in i915_gem_userptr_get_pages() 161 max_segment = PAGE_SIZE; in i915_gem_userptr_get_pages()
|
A D | i915_gem_shmem.c | 40 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()
|
/linux/lib/ |
A D | scatterlist.c | 444 unsigned long size, unsigned int max_segment, in sg_alloc_append_table_from_pages() argument 455 max_segment = ALIGN_DOWN(max_segment, PAGE_SIZE); in sg_alloc_append_table_from_pages() 456 if (WARN_ON(max_segment < PAGE_SIZE)) in sg_alloc_append_table_from_pages() 474 if (sgt_append->prv->length + PAGE_SIZE > max_segment) in sg_alloc_append_table_from_pages() 490 if (seg_len >= max_segment || in sg_alloc_append_table_from_pages() 506 if (seg_len >= max_segment || in sg_alloc_append_table_from_pages() 567 unsigned long size, unsigned int max_segment, in sg_alloc_table_from_pages_segment() argument 574 size, max_segment, 0, gfp_mask); in sg_alloc_table_from_pages_segment()
|
/linux/drivers/gpu/drm/ |
A D | drm_prime.c | 815 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) in drm_prime_pages_to_sg() 825 max_segment = UINT_MAX; in drm_prime_pages_to_sg() 828 max_segment, GFP_KERNEL); in drm_prime_pages_to_sg()
|
/linux/kernel/dma/ |
A D | swiotlb.c | 79 static unsigned int max_segment; variable 104 return io_tlb_default_mem.nslabs ? max_segment : 0; in swiotlb_max_segment() 111 max_segment = 1; in swiotlb_set_max_segment() 113 max_segment = rounddown(val, PAGE_SIZE); in swiotlb_set_max_segment()
|
/linux/include/linux/ |
A D | scatterlist.h | 298 unsigned int max_segment, 303 unsigned int max_segment, gfp_t gfp_mask);
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | intel_memory_region.c | 452 const unsigned int max_segment = rounddown(UINT_MAX, PAGE_SIZE); in igt_mock_max_segment() local 491 if (size < max_segment) { in igt_mock_max_segment() 493 __func__, max_segment, size); in igt_mock_max_segment() 499 if (sg->length > max_segment) { in igt_mock_max_segment() 501 __func__, sg->length, max_segment); in igt_mock_max_segment()
|
/linux/ |
A D | System.map | 160651 ffff800012115f70 b max_segment
|
A D | .tmp_System.map | 160651 ffff800012115f70 b max_segment
|
Completed in 386 milliseconds