Lines Matching +full:high +full:- +full:dynamic +full:- +full:range
1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <linux/dma-direction.h>
48 * struct io_tlb_pool - IO TLB memory pool descriptor
50 * range check to see if the memory was in fact allocated by this
53 * range check to see if the memory was in fact allocated by this
88 * struct io_tlb_mem - Software IO TLB allocator
90 * @pool: IO TLB memory pool descriptor (if not dynamic).
98 * @pools: List of IO TLB memory pool descriptors (if dynamic).
99 * @dyn_alloc: Dynamic IO TLB pool allocation work.
103 * @used_hiwater: The high water mark for total_used. Used only for reporting
131 * swiotlb_find_pool() - find swiotlb pool to which a physical address belongs
145 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; in swiotlb_find_pool()
157 * dev->dma_uses_io_tlb here and mem->pools in __swiotlb_find_pool(). in swiotlb_find_pool()
162 if (READ_ONCE(dev->dma_uses_io_tlb)) in swiotlb_find_pool()
165 if (paddr >= mem->defpool.start && paddr < mem->defpool.end) in swiotlb_find_pool()
166 return &mem->defpool; in swiotlb_find_pool()
174 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; in is_swiotlb_force_bounce()
176 return mem && mem->force_bounce; in is_swiotlb_force_bounce()
290 return dev->dma_io_tlb_mem->for_alloc; in is_swiotlb_for_alloc()