Home
last modified time | relevance | path

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

/openbmc/linux/kernel/dma/
H A Dswiotlb.c136 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()
244 return val & (IO_TLB_SEGSIZE - 1); in io_tlb_offset()
388 nslabs = ALIGN(nslabs >> 1, IO_TLB_SEGSIZE); in swiotlb_init_remap()
485 nslabs = ALIGN(nslabs >> 1, IO_TLB_SEGSIZE); in swiotlb_init_late()
708 nslabs = ALIGN(nslabs >> 1, IO_TLB_SEGSIZE); in swiotlb_alloc_pool()
1089 io_tlb_offset(i) != IO_TLB_SEGSIZE - 1 && in swiotlb_area_find_slots()
[all …]
/openbmc/linux/drivers/xen/
H A Dswiotlb-xen.c116 unsigned int order = get_order(IO_TLB_SEGSIZE << IO_TLB_SHIFT); in xen_swiotlb_fixup()
121 BUILD_BUG_ON(IO_TLB_SEGSIZE & (IO_TLB_SEGSIZE - 1)); in xen_swiotlb_fixup()
122 BUG_ON(nslabs % IO_TLB_SEGSIZE); in xen_swiotlb_fixup()
134 i += IO_TLB_SEGSIZE; in xen_swiotlb_fixup()
/openbmc/linux/include/linux/
H A Dswiotlb.h26 #define IO_TLB_SEGSIZE 128 macro