Home
last modified time | relevance | path

Searched refs:alloc_align_mask (Results 1 – 2 of 2) sorted by relevance

/linux/kernel/dma/
H A Dswiotlb.c1161 size_t alloc_size, unsigned int alloc_align_mask) in swiotlb_search_pool_area() argument
1187 if (!alloc_align_mask && !iotlb_align_mask && alloc_size >= PAGE_SIZE) in swiotlb_search_pool_area()
1188 alloc_align_mask = PAGE_SIZE - 1; in swiotlb_search_pool_area()
1195 alloc_align_mask |= (IO_TLB_SIZE - 1); in swiotlb_search_pool_area()
1196 iotlb_align_mask &= ~alloc_align_mask; in swiotlb_search_pool_area()
1202 stride = get_max_slots(max(alloc_align_mask, iotlb_align_mask)); in swiotlb_search_pool_area()
1217 if ((tlb_addr & alloc_align_mask) || in swiotlb_search_pool_area()
1286 unsigned int alloc_align_mask, struct io_tlb_pool **retpool) in swiotlb_search_area() argument
1307 alloc_size, alloc_align_mask); in swiotlb_search_area()
1332 size_t alloc_size, unsigned int alloc_align_mask, in swiotlb_find_slots() argument
[all …]
/linux/Documentation/core-api/
H A Dswiotlb.rst127 swiotlb_tbl_map_single() also takes an "alloc_align_mask" parameter. This
129 physical address with the alloc_align_mask bits set to zero. But the actual
133 alloc_align_mask boundary, potentially resulting in post-padding space. Any
135 "alloc_align_mask" parameter is used by IOMMU code when mapping for untrusted
186 The default pool is allocated with PAGE_SIZE alignment. If an alloc_align_mask
188 initial slots in each slot set might not meet the alloc_align_mask criterium.
191 Currently, there's no problem because alloc_align_mask is set based on IOMMU
300 meet alloc_align_mask requirements described above. When
301 swiotlb_tbl_map_single() allocates bounce buffer space to meet alloc_align_mask
304 alloc_align_mask value that governed the allocation, and therefore the