Home
last modified time | relevance | path

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

/linux-5.19.10/kernel/dma/
Dswiotlb.c54 #define SLABS_PER_PAGE (1 << (PAGE_SHIFT - IO_TLB_SHIFT))
61 #define IO_TLB_MIN_SLABS ((1<<20) >> IO_TLB_SHIFT)
72 static unsigned long default_nslabs = IO_TLB_DEFAULT_SIZE >> IO_TLB_SHIFT;
97 return rounddown(io_tlb_default_mem.nslabs << IO_TLB_SHIFT, PAGE_SIZE); in swiotlb_max_segment()
103 return default_nslabs << IO_TLB_SHIFT; in swiotlb_size_or_default()
113 if (default_nslabs != IO_TLB_DEFAULT_SIZE >> IO_TLB_SHIFT) in swiotlb_adjust_size()
116 default_nslabs = ALIGN(size >> IO_TLB_SHIFT, IO_TLB_SEGSIZE); in swiotlb_adjust_size()
130 (mem->nslabs << IO_TLB_SHIFT) >> 20); in swiotlb_print_info()
186 bytes = PAGE_ALIGN(mem->nslabs << IO_TLB_SHIFT); in swiotlb_update_mem_attributes()
198 unsigned long bytes = nslabs << IO_TLB_SHIFT, i; in swiotlb_init_io_tlb_mem()
[all …]
/linux-5.19.10/include/linux/
Dswiotlb.h31 #define IO_TLB_SHIFT 11 macro
32 #define IO_TLB_SIZE (1 << IO_TLB_SHIFT)
/linux-5.19.10/drivers/xen/
Dswiotlb-xen.c110 unsigned int order = get_order(IO_TLB_SEGSIZE << IO_TLB_SHIFT); in xen_swiotlb_fixup()
122 p + (i << IO_TLB_SHIFT), order, in xen_swiotlb_fixup()