Searched refs:IO_TLB_SIZE (Results 1 – 3 of 3) sorted by relevance
303 size = ALIGN(size, IO_TLB_SIZE); in swiotlb_adjust_size()330 return DIV_ROUND_UP(val, IO_TLB_SIZE); in nr_slots()1010 (align_mask | (IO_TLB_SIZE - 1)); in swiotlb_align_offset()1042 tlb_offset = (tlb_addr & (IO_TLB_SIZE - 1)) - in swiotlb_bounce()1195 alloc_align_mask |= (IO_TLB_SIZE - 1); in swiotlb_search_pool_area()1344 if (alloc_size > IO_TLB_SEGSIZE * IO_TLB_SIZE) in swiotlb_find_slots()1609 offset &= (IO_TLB_SIZE - 1); in swiotlb_tbl_map_single()1806 min_align = roundup(min_align_mask, IO_TLB_SIZE); in swiotlb_max_mapping_size()1808 return ((size_t)IO_TLB_SIZE) * IO_TLB_SEGSIZE - min_align; in swiotlb_max_mapping_size()
32 #define IO_TLB_SIZE (1 << IO_TLB_SHIFT) macro
106 A single allocation from swiotlb is limited to IO_TLB_SIZE * IO_TLB_SEGSIZE156 Each pool is divided into "slots" of size IO_TLB_SIZE, which is 2 KiB with161 slot set, which leads to the maximum bounce buffer size being IO_TLB_SIZE *181 IO_TLB_SIZE, IO_TLB_SEGSIZE, and the number of areas must all be powers of 2 as259 IO_TLB_SIZE (2 KiB currently). The io_tlb_slot array is indexed by the slot