Searched refs:IO_TLB_SEGSIZE (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/kernel/dma/ |
D | swiotlb.c | 136 if (default_nslabs < IO_TLB_SEGSIZE * default_nareas) in round_up_default_nslabs() 137 default_nslabs = IO_TLB_SEGSIZE * default_nareas; in round_up_default_nslabs() 179 if (nslots < nareas * IO_TLB_SEGSIZE) in limit_nareas() 180 return nslots / IO_TLB_SEGSIZE; in limit_nareas() 190 ALIGN(simple_strtoul(str, &str, 0), IO_TLB_SEGSIZE); in setup_io_tlb_npages() 223 default_nslabs = ALIGN(size >> IO_TLB_SHIFT, IO_TLB_SEGSIZE); in swiotlb_adjust_size() 244 return val & (IO_TLB_SEGSIZE - 1); in io_tlb_offset() 289 mem->slots[i].list = min(IO_TLB_SEGSIZE - io_tlb_offset(i), in swiotlb_init_io_tlb_pool() 388 nslabs = ALIGN(nslabs >> 1, IO_TLB_SEGSIZE); in swiotlb_init_remap() 434 unsigned long nslabs = ALIGN(size >> IO_TLB_SHIFT, IO_TLB_SEGSIZE); in swiotlb_init_late() [all …]
|
/linux-6.12.1/drivers/xen/ |
D | swiotlb-xen.c | 117 unsigned int order = get_order(IO_TLB_SEGSIZE << IO_TLB_SHIFT); in xen_swiotlb_fixup() 122 BUILD_BUG_ON(IO_TLB_SEGSIZE & (IO_TLB_SEGSIZE - 1)); in xen_swiotlb_fixup() 123 BUG_ON(nslabs % IO_TLB_SEGSIZE); in xen_swiotlb_fixup() 135 i += IO_TLB_SEGSIZE; in xen_swiotlb_fixup()
|
/linux-6.12.1/Documentation/core-api/ |
D | swiotlb.rst | 106 A single allocation from swiotlb is limited to IO_TLB_SIZE * IO_TLB_SEGSIZE 154 current definitions. IO_TLB_SEGSIZE contiguous slots (128 slots) constitute 159 IO_TLB_SEGSIZE. Multiple smaller bounce buffers may co-exist in a single slot 167 maximum parallelism, but since an area can't be smaller than IO_TLB_SEGSIZE 178 IO_TLB_SIZE, IO_TLB_SEGSIZE, and the number of areas must all be powers of 2 as 289 IO_TLB_SEGSIZE, which can appear in the first slot in a slot set, and indicates 293 "list" field is initialized to IO_TLB_SEGSIZE down to 1 for the slots in every
|
/linux-6.12.1/include/linux/ |
D | swiotlb.h | 26 #define IO_TLB_SEGSIZE 128 macro
|