Home
last modified time | relevance | path

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

/linux-6.6.21/kernel/dma/
Dswiotlb.c371 io_tlb_default_mem.phys_limit = virt_to_phys(high_memory - 1); in swiotlb_init_remap()
373 io_tlb_default_mem.phys_limit = ARCH_LOW_ADDRESS_LIMIT; in swiotlb_init_remap()
449 io_tlb_default_mem.phys_limit = DMA_BIT_MASK(zone_dma_bits); in swiotlb_init_late()
451 io_tlb_default_mem.phys_limit = DMA_BIT_MASK(32); in swiotlb_init_late()
453 io_tlb_default_mem.phys_limit = virt_to_phys(high_memory - 1); in swiotlb_init_late()
570 static struct page *alloc_dma_pages(gfp_t gfp, size_t bytes, u64 phys_limit) in alloc_dma_pages() argument
582 if (paddr + bytes - 1 > phys_limit) { in alloc_dma_pages()
609 u64 phys_limit, gfp_t gfp) in swiotlb_alloc_tlb() argument
628 if (phys_limit <= DMA_BIT_MASK(zone_dma_bits)) in swiotlb_alloc_tlb()
630 else if (phys_limit <= DMA_BIT_MASK(32)) in swiotlb_alloc_tlb()
[all …]
Ddirect.c47 static gfp_t dma_direct_optimal_gfp_mask(struct device *dev, u64 *phys_limit) in dma_direct_optimal_gfp_mask() argument
61 *phys_limit = dma_to_phys(dev, dma_limit); in dma_direct_optimal_gfp_mask()
62 if (*phys_limit <= DMA_BIT_MASK(zone_dma_bits)) in dma_direct_optimal_gfp_mask()
64 if (*phys_limit <= DMA_BIT_MASK(32)) in dma_direct_optimal_gfp_mask()
123 u64 phys_limit; in __dma_direct_alloc_pages() local
130 gfp |= dma_direct_optimal_gfp_mask(dev, &phys_limit); in __dma_direct_alloc_pages()
147 phys_limit < DMA_BIT_MASK(64) && in __dma_direct_alloc_pages()
175 u64 phys_limit; in dma_direct_alloc_from_pool() local
181 gfp |= dma_direct_optimal_gfp_mask(dev, &phys_limit); in dma_direct_alloc_from_pool()
/linux-6.6.21/include/linux/
Dswiotlb.h132 u64 phys_limit; member