Lines Matching refs:IO_TLB_SEGSIZE
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()
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()
1387 if (index + nslots < ALIGN(index + 1, IO_TLB_SEGSIZE)) in swiotlb_release_slots()
1408 io_tlb_offset(i) != IO_TLB_SEGSIZE - 1 && mem->slots[i].list; in swiotlb_release_slots()
1535 return ((size_t)IO_TLB_SIZE) * IO_TLB_SEGSIZE - min_align; in swiotlb_max_mapping_size()