Home
last modified time | relevance | path

Searched refs:IO_TLB_SIZE (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/kernel/dma/
Dswiotlb.c222 size = ALIGN(size, IO_TLB_SIZE); in swiotlb_adjust_size()
249 return DIV_ROUND_UP(val, IO_TLB_SIZE); in nr_slots()
853 (align_mask | (IO_TLB_SIZE - 1)); in swiotlb_align_offset()
882 tlb_offset = (tlb_addr & (IO_TLB_SIZE - 1)) - in swiotlb_bounce()
1052 alloc_align_mask |= (IO_TLB_SIZE - 1); in swiotlb_search_pool_area()
1193 if (alloc_size > IO_TLB_SEGSIZE * IO_TLB_SIZE) in swiotlb_find_slots()
1424 offset &= (IO_TLB_SIZE - 1); in swiotlb_tbl_map_single()
1616 min_align = roundup(min_align_mask, IO_TLB_SIZE); in swiotlb_max_mapping_size()
1618 return ((size_t)IO_TLB_SIZE) * IO_TLB_SEGSIZE - min_align; in swiotlb_max_mapping_size()
/linux-6.12.1/include/linux/
Dswiotlb.h33 #define IO_TLB_SIZE (1 << IO_TLB_SHIFT) macro
/linux-6.12.1/Documentation/core-api/
Dswiotlb.rst106 A single allocation from swiotlb is limited to IO_TLB_SIZE * IO_TLB_SEGSIZE
153 Each pool is divided into "slots" of size IO_TLB_SIZE, which is 2 KiB with
158 slot set, which leads to the maximum bounce buffer size being IO_TLB_SIZE *
178 IO_TLB_SIZE, IO_TLB_SEGSIZE, and the number of areas must all be powers of 2 as
256 IO_TLB_SIZE (2 KiB currently). The io_tlb_slot array is indexed by the slot