Home
last modified time | relevance | path

Searched refs:IO_TLB_SEGSIZE (Results 1 – 4 of 4) sorted by relevance

/linux/kernel/dma/
H A Dswiotlb.c135 if (default_nslabs < IO_TLB_SEGSIZE * default_nareas) in round_up_default_nslabs()
136 default_nslabs = IO_TLB_SEGSIZE * default_nareas; in round_up_default_nslabs()
178 if (nslots < nareas * IO_TLB_SEGSIZE) in limit_nareas()
179 return nslots / IO_TLB_SEGSIZE; in limit_nareas()
257 ALIGN(simple_strtoul(str, &str, 0), IO_TLB_SEGSIZE); in setup_io_tlb_npages()
304 default_nslabs = ALIGN(size >> IO_TLB_SHIFT, IO_TLB_SEGSIZE); in swiotlb_adjust_size()
325 return val & (IO_TLB_SEGSIZE - 1); in io_tlb_offset()
406 mem->slots[i].list = min(IO_TLB_SEGSIZE - io_tlb_offset(i), in swiotlb_init_io_tlb_pool()
504 nslabs = ALIGN(nslabs >> 1, IO_TLB_SEGSIZE); in swiotlb_init_remap()
550 unsigned long nslabs = ALIGN(size >> IO_TLB_SHIFT, IO_TLB_SEGSIZE); in swiotlb_init_late()
[all …]
/linux/drivers/xen/
H A Dswiotlb-xen.c119 unsigned int order = get_order(IO_TLB_SEGSIZE << IO_TLB_SHIFT); in xen_swiotlb_fixup()
124 BUILD_BUG_ON(IO_TLB_SEGSIZE & (IO_TLB_SEGSIZE - 1)); in xen_swiotlb_fixup()
125 BUG_ON(nslabs % IO_TLB_SEGSIZE); in xen_swiotlb_fixup()
137 i += IO_TLB_SEGSIZE; in xen_swiotlb_fixup()
/linux/Documentation/core-api/
H A Dswiotlb.rst106 A single allocation from swiotlb is limited to IO_TLB_SIZE * IO_TLB_SEGSIZE
157 current definitions. IO_TLB_SEGSIZE contiguous slots (128 slots) constitute
162 IO_TLB_SEGSIZE. Multiple smaller bounce buffers may co-exist in a single slot
170 maximum parallelism, but since an area can't be smaller than IO_TLB_SEGSIZE
181 IO_TLB_SIZE, IO_TLB_SEGSIZE, and the number of areas must all be powers of 2 as
292 IO_TLB_SEGSIZE, which can appear in the first slot in a slot set, and indicates
296 "list" field is initialized to IO_TLB_SEGSIZE down to 1 for the slots in every
/linux/include/linux/
H A Dswiotlb.h25 #define IO_TLB_SEGSIZE 128 macro