Searched refs:tlb_addr (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.10/kernel/dma/ |
| D | swiotlb.c | 411 static void swiotlb_bounce(phys_addr_t orig_addr, phys_addr_t tlb_addr, in swiotlb_bounce() argument 415 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.10/include/linux/ |
| D | swiotlb.h | 54 phys_addr_t tlb_addr, 61 phys_addr_t tlb_addr,
|
| /Linux-v5.10/drivers/iommu/intel/ |
| D | iommu.c | 3763 phys_addr_t tlb_addr; in bounce_sync_single() local 3769 tlb_addr = intel_iommu_iova_to_phys(&domain->domain, addr); in bounce_sync_single() 3770 if (is_swiotlb_buffer(tlb_addr)) in bounce_sync_single() 3771 swiotlb_tbl_sync_single(dev, tlb_addr, size, dir, target); in bounce_sync_single() 3784 phys_addr_t tlb_addr; in bounce_map_single() local 3821 tlb_addr = swiotlb_tbl_map_single(dev, paddr, size, in bounce_map_single() 3823 if (tlb_addr == DMA_MAPPING_ERROR) { in bounce_map_single() 3827 void *padding_start = phys_to_virt(tlb_addr); in bounce_map_single() 3840 tlb_addr = paddr; in bounce_map_single() 3844 tlb_addr >> VTD_PAGE_SHIFT, nrpages, prot); in bounce_map_single() [all …]
|