Searched refs:tlb_addr (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.4/kernel/dma/ |
| D | swiotlb.c | 408 static void swiotlb_bounce(phys_addr_t orig_addr, phys_addr_t tlb_addr, in swiotlb_bounce() argument 412 unsigned char *vaddr = phys_to_virt(tlb_addr); in swiotlb_bounce() 454 phys_addr_t tlb_addr; in swiotlb_tbl_map_single() local 535 tlb_addr = io_tlb_start + (index << IO_TLB_SHIFT); in swiotlb_tbl_map_single() 572 swiotlb_bounce(orig_addr, tlb_addr, mapping_size, DMA_TO_DEVICE); in swiotlb_tbl_map_single() 574 return tlb_addr; in swiotlb_tbl_map_single() 580 void swiotlb_tbl_unmap_single(struct device *hwdev, phys_addr_t tlb_addr, in swiotlb_tbl_unmap_single() argument 586 int index = (tlb_addr - io_tlb_start) >> IO_TLB_SHIFT; in swiotlb_tbl_unmap_single() 595 swiotlb_bounce(orig_addr, tlb_addr, mapping_size, DMA_FROM_DEVICE); in swiotlb_tbl_unmap_single() 627 void swiotlb_tbl_sync_single(struct device *hwdev, phys_addr_t tlb_addr, in swiotlb_tbl_sync_single() argument [all …]
|
| /Linux-v5.4/include/linux/ |
| D | swiotlb.h | 56 phys_addr_t tlb_addr, 63 phys_addr_t tlb_addr,
|
| /Linux-v5.4/drivers/iommu/ |
| D | intel-iommu.c | 3805 phys_addr_t tlb_addr; in bounce_sync_single() local 3811 tlb_addr = intel_iommu_iova_to_phys(&domain->domain, addr); in bounce_sync_single() 3812 if (is_swiotlb_buffer(tlb_addr)) in bounce_sync_single() 3813 swiotlb_tbl_sync_single(dev, tlb_addr, size, dir, target); in bounce_sync_single() 3826 phys_addr_t tlb_addr; in bounce_map_single() local 3859 tlb_addr = swiotlb_tbl_map_single(dev, in bounce_map_single() 3862 if (tlb_addr == DMA_MAPPING_ERROR) { in bounce_map_single() 3866 void *padding_start = phys_to_virt(tlb_addr); in bounce_map_single() 3879 tlb_addr = paddr; in bounce_map_single() 3883 tlb_addr >> VTD_PAGE_SHIFT, nrpages, prot); in bounce_map_single() [all …]
|