Lines Matching refs:pte
472 u32 pte = (iova >> SMMU_PTE_SHIFT) & 0x3ff; in as_get_pte() local
505 if (pt[pte] == 0) in as_get_pte()
508 return &pt[pte]; in as_get_pte()
514 u32 pte = (iova >> SMMU_PTE_SHIFT) & 0x3ff; in as_put_pte() local
526 if (pt[pte] != 0) { in as_put_pte()
533 pt[pte] = 0; in as_put_pte()
544 u32 *pte; in tegra_smmu_map() local
546 pte = as_get_pte(as, iova, &page); in tegra_smmu_map()
547 if (!pte) in tegra_smmu_map()
550 *pte = __phys_to_pfn(paddr) | SMMU_PTE_ATTR; in tegra_smmu_map()
551 offset = offset_in_page(pte); in tegra_smmu_map()
568 u32 *pte; in tegra_smmu_unmap() local
570 pte = as_get_pte(as, iova, &page); in tegra_smmu_unmap()
571 if (!pte) in tegra_smmu_unmap()
574 offset = offset_in_page(pte); in tegra_smmu_unmap()
591 u32 *pte; in tegra_smmu_iova_to_phys() local
593 pte = as_get_pte(as, iova, &page); in tegra_smmu_iova_to_phys()
594 pfn = *pte & as->smmu->pfn_mask; in tegra_smmu_iova_to_phys()