Home
last modified time | relevance | path

Searched refs:tlb_offset (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/kernel/dma/
Dswiotlb.c520 unsigned int tlb_offset, orig_addr_offset; in swiotlb_bounce() local
525 tlb_offset = tlb_addr & (IO_TLB_SIZE - 1); in swiotlb_bounce()
527 if (tlb_offset < orig_addr_offset) { in swiotlb_bounce()
530 orig_addr_offset, tlb_offset); in swiotlb_bounce()
534 tlb_offset -= orig_addr_offset; in swiotlb_bounce()
535 if (tlb_offset > alloc_size) { in swiotlb_bounce()
538 alloc_size, size, tlb_offset); in swiotlb_bounce()
542 orig_addr += tlb_offset; in swiotlb_bounce()
543 alloc_size -= tlb_offset; in swiotlb_bounce()
/linux-6.1.9/drivers/iommu/intel/
Diommu.c1309 int tlb_offset = ecap_iotlb_offset(iommu->ecap); in __iommu_flush_iotlb() local
1344 dmar_writeq(iommu->reg + tlb_offset, val_iva); in __iommu_flush_iotlb()
1345 dmar_writeq(iommu->reg + tlb_offset + 8, val); in __iommu_flush_iotlb()
1348 IOMMU_WAIT_OP(iommu, tlb_offset + 8, in __iommu_flush_iotlb()