Lines Matching refs:pd
42 struct page *pd; member
239 uint32_t *pd; in tegra_smmu_domain_alloc() local
250 as->pd = alloc_page(GFP_KERNEL | __GFP_DMA); in tegra_smmu_domain_alloc()
251 if (!as->pd) { in tegra_smmu_domain_alloc()
258 __free_page(as->pd); in tegra_smmu_domain_alloc()
264 pd = page_address(as->pd); in tegra_smmu_domain_alloc()
265 SetPageReserved(as->pd); in tegra_smmu_domain_alloc()
268 pd[i] = 0; in tegra_smmu_domain_alloc()
271 pd = page_address(as->count); in tegra_smmu_domain_alloc()
275 pd[i] = 0; in tegra_smmu_domain_alloc()
290 ClearPageReserved(as->pd); in tegra_smmu_domain_free()
382 smmu->soc->ops->flush_dcache(as->pd, 0, SMMU_SIZE_PD); in tegra_smmu_as_prepare()
383 smmu_flush_ptc(smmu, as->pd, 0); in tegra_smmu_as_prepare()
387 value = SMMU_PTB_DATA_VALUE(as->pd, as->attr); in tegra_smmu_as_prepare()
470 u32 *pd = page_address(as->pd), *pt, *count; in as_get_pte() local
477 if (pd[pde] == 0) { in as_get_pte()
490 pd[pde] = SMMU_MK_PDE(page, SMMU_PDE_ATTR | SMMU_PDE_NEXT); in as_get_pte()
492 smmu->soc->ops->flush_dcache(as->pd, pde << 2, 4); in as_get_pte()
493 smmu_flush_ptc(smmu, as->pd, pde << 2); in as_get_pte()
497 page = pfn_to_page(pd[pde] & smmu->pfn_mask); in as_get_pte()
516 u32 *pd = page_address(as->pd), *pt; in as_put_pte() local
519 page = pfn_to_page(pd[pde] & as->smmu->pfn_mask); in as_put_pte()
530 pd[pde] = 0; in as_put_pte()