Lines Matching refs:iova
5363 unsigned long iova; in cnss_smmu_map() local
5383 iova = roundup(pci_priv->smmu_iova_ipa_current, PAGE_SIZE); in cnss_smmu_map()
5386 iova >= pci_priv->smmu_iova_ipa_start + in cnss_smmu_map()
5389 iova, in cnss_smmu_map()
5414 cnss_pr_dbg("IOMMU map: iova %lx, len %zu\n", iova, len); in cnss_smmu_map()
5416 ret = cnss_iommu_map(pci_priv->iommu_domain, iova, in cnss_smmu_map()
5423 pci_priv->smmu_iova_ipa_current = iova + len; in cnss_smmu_map()
5424 *iova_addr = (uint32_t)(iova + paddr - rounddown(paddr, PAGE_SIZE)); in cnss_smmu_map()
5434 unsigned long iova; in cnss_smmu_unmap() local
5441 iova = rounddown(iova_addr, PAGE_SIZE); in cnss_smmu_unmap()
5442 len = roundup(size + iova_addr - iova, PAGE_SIZE); in cnss_smmu_unmap()
5444 if (iova >= pci_priv->smmu_iova_ipa_start + in cnss_smmu_unmap()
5447 iova, in cnss_smmu_unmap()
5453 cnss_pr_dbg("IOMMU unmap: iova %lx, len %zu\n", iova, len); in cnss_smmu_unmap()
5455 unmapped = iommu_unmap(pci_priv->iommu_domain, iova, len); in cnss_smmu_unmap()
5462 pci_priv->smmu_iova_ipa_current = iova; in cnss_smmu_unmap()