iommu/tegra-smmu: Add iova_pd_index() and iova_pt_index() helpers
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 27 Jul 2015 12:29:16 +0000 (13:29 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Aug 2015 14:06:38 +0000 (16:06 +0200)
commit34d35f8cbe51bf93faf3214ee5b5d6f8ae7df4c1
treece4e87831235e429cbfb5e0d36ae0f052ae53701
parent8482ee5ea1097445f6498ee522965f5311667763
iommu/tegra-smmu: Add iova_pd_index() and iova_pt_index() helpers

Add a pair of helpers to get the page directory and page table indexes.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/iommu/tegra-smmu.c