Lines Matching refs:IO_TLB_SHIFT

55 #define SLABS_PER_PAGE (1 << (PAGE_SHIFT - IO_TLB_SHIFT))
62 #define IO_TLB_MIN_SLABS ((1<<20) >> IO_TLB_SHIFT)
102 static unsigned long default_nslabs = IO_TLB_DEFAULT_SIZE >> IO_TLB_SHIFT;
164 (default_nslabs << IO_TLB_SHIFT) >> 20); in swiotlb_adjust_nareas()
209 return default_nslabs << IO_TLB_SHIFT; in swiotlb_size_or_default()
219 if (default_nslabs != IO_TLB_DEFAULT_SIZE >> IO_TLB_SHIFT) in swiotlb_adjust_size()
223 default_nslabs = ALIGN(size >> IO_TLB_SHIFT, IO_TLB_SEGSIZE); in swiotlb_adjust_size()
225 size = default_nslabs << IO_TLB_SHIFT; in swiotlb_adjust_size()
239 (mem->nslabs << IO_TLB_SHIFT) >> 20); in swiotlb_print_info()
265 bytes = PAGE_ALIGN(mem->nslabs << IO_TLB_SHIFT); in swiotlb_update_mem_attributes()
273 unsigned long bytes = nslabs << IO_TLB_SHIFT, i; in swiotlb_init_io_tlb_pool()
322 size_t bytes = PAGE_ALIGN(nslabs << IO_TLB_SHIFT); in swiotlb_memblock_alloc()
434 unsigned long nslabs = ALIGN(size >> IO_TLB_SHIFT, IO_TLB_SEGSIZE); in swiotlb_init_late()
464 order = get_order(nslabs << IO_TLB_SHIFT); in swiotlb_init_late()
510 (nslabs << IO_TLB_SHIFT) >> PAGE_SHIFT); in swiotlb_init_late()
704 tlb_size = nslabs << IO_TLB_SHIFT; in swiotlb_alloc_pool()
710 tlb_size = nslabs << IO_TLB_SHIFT; in swiotlb_alloc_pool()
861 int index = (tlb_addr - mem->start) >> IO_TLB_SHIFT; in swiotlb_bounce()
929 return start + (idx << IO_TLB_SHIFT); in slot_addr()
937 return (boundary_mask >> IO_TLB_SHIFT) + 1; in get_max_slots()
1086 ((i - slot_index) << IO_TLB_SHIFT)); in swiotlb_area_find_slots()
1345 pad_slots = offset >> IO_TLB_SHIFT; in swiotlb_tbl_map_single()
1372 index = (tlb_addr - offset - mem->start) >> IO_TLB_SHIFT; in swiotlb_release_slots()
1693 unsigned long nslabs = rmem->size >> IO_TLB_SHIFT; in rmem_swiotlb_device_init()