Lines Matching refs:pde
171 static dma_addr_t smmu_pde_to_dma(struct tegra_smmu *smmu, u32 pde) in smmu_pde_to_dma() argument
173 return (dma_addr_t)(pde & smmu->pfn_mask) << 12; in smmu_pde_to_dma()
585 unsigned int pde = iova_pd_index(iova); in as_get_pte() local
588 if (!as->pts[pde]) { in as_get_pte()
605 as->pts[pde] = page; in as_get_pte()
614 *dmap = smmu_pde_to_dma(smmu, pd[pde]); in as_get_pte()
617 return tegra_smmu_pte_offset(as->pts[pde], iova); in as_get_pte()
629 unsigned int pde = iova_pd_index(iova); in tegra_smmu_pte_put_use() local
630 struct page *page = as->pts[pde]; in tegra_smmu_pte_put_use()
636 if (--as->count[pde] == 0) { in tegra_smmu_pte_put_use()
639 dma_addr_t pte_dma = smmu_pde_to_dma(smmu, pd[pde]); in tegra_smmu_pte_put_use()
645 as->pts[pde] = NULL; in tegra_smmu_pte_put_use()
668 unsigned int pde = iova_pd_index(iova); in as_get_pde_page() local
669 struct page *page = as->pts[pde]; in as_get_pde_page()
693 if (as->pts[pde]) { in as_get_pde_page()
697 page = as->pts[pde]; in as_get_pde_page()