Searched refs:alloc_align_mask (Results 1 – 2 of 2) sorted by relevance
1161 size_t alloc_size, unsigned int alloc_align_mask) in swiotlb_search_pool_area() argument1187 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() argument1307 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 …]
127 swiotlb_tbl_map_single() also takes an "alloc_align_mask" parameter. This129 physical address with the alloc_align_mask bits set to zero. But the actual133 alloc_align_mask boundary, potentially resulting in post-padding space. Any135 "alloc_align_mask" parameter is used by IOMMU code when mapping for untrusted186 The default pool is allocated with PAGE_SIZE alignment. If an alloc_align_mask188 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 IOMMU300 meet alloc_align_mask requirements described above. When301 swiotlb_tbl_map_single() allocates bounce buffer space to meet alloc_align_mask304 alloc_align_mask value that governed the allocation, and therefore the