Home
last modified time | relevance | path

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

/linux-6.1.9/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)
78 static unsigned long default_nslabs = IO_TLB_DEFAULT_SIZE >> IO_TLB_SHIFT;
133 (default_nslabs << IO_TLB_SHIFT) >> 20); in swiotlb_adjust_nareas()
163 return rounddown(io_tlb_default_mem.nslabs << IO_TLB_SHIFT, PAGE_SIZE); in swiotlb_max_segment()
169 return default_nslabs << IO_TLB_SHIFT; in swiotlb_size_or_default()
179 if (default_nslabs != IO_TLB_DEFAULT_SIZE >> IO_TLB_SHIFT) in swiotlb_adjust_size()
183 default_nslabs = ALIGN(size >> IO_TLB_SHIFT, IO_TLB_SEGSIZE); in swiotlb_adjust_size()
185 size = default_nslabs << IO_TLB_SHIFT; in swiotlb_adjust_size()
199 (mem->nslabs << IO_TLB_SHIFT) >> 20); in swiotlb_print_info()
[all …]
/linux-6.1.9/include/linux/
Dswiotlb.h31 #define IO_TLB_SHIFT 11 macro
32 #define IO_TLB_SIZE (1 << IO_TLB_SHIFT)
/linux-6.1.9/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()