Lines Matching refs:domain
85 static int shmobile_iommu_domain_init(struct iommu_domain *domain) in shmobile_iommu_domain_init() argument
103 domain->priv = sh_domain; in shmobile_iommu_domain_init()
107 static void shmobile_iommu_domain_destroy(struct iommu_domain *domain) in shmobile_iommu_domain_destroy() argument
109 struct shmobile_iommu_domain *sh_domain = domain->priv; in shmobile_iommu_domain_destroy()
118 domain->priv = NULL; in shmobile_iommu_domain_destroy()
121 static int shmobile_iommu_attach_device(struct iommu_domain *domain, in shmobile_iommu_attach_device() argument
125 struct shmobile_iommu_domain *sh_domain = domain->priv; in shmobile_iommu_attach_device()
150 static void shmobile_iommu_detach_device(struct iommu_domain *domain, in shmobile_iommu_detach_device() argument
154 struct shmobile_iommu_domain *sh_domain = domain->priv; in shmobile_iommu_detach_device()
213 static int shmobile_iommu_map(struct iommu_domain *domain, unsigned long iova, in shmobile_iommu_map() argument
217 struct shmobile_iommu_domain *sh_domain = domain->priv; in shmobile_iommu_map()
257 static size_t shmobile_iommu_unmap(struct iommu_domain *domain, in shmobile_iommu_unmap() argument
261 struct shmobile_iommu_domain *sh_domain = domain->priv; in shmobile_iommu_unmap()
298 static phys_addr_t shmobile_iommu_iova_to_phys(struct iommu_domain *domain, in shmobile_iommu_iova_to_phys() argument
301 struct shmobile_iommu_domain *sh_domain = domain->priv; in shmobile_iommu_iova_to_phys()