Searched refs:tlb_offset (Results 1 – 2 of 2) sorted by relevance
520 unsigned int tlb_offset, orig_addr_offset; in swiotlb_bounce() local525 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()
1309 int tlb_offset = ecap_iotlb_offset(iommu->ecap); in __iommu_flush_iotlb() local1344 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()