Searched refs:sh_domain (Results 1 – 1 of 1) sorted by relevance
93 struct shmobile_iommu_domain *sh_domain; in shmobile_iommu_domain_alloc() local99 sh_domain = kzalloc(sizeof(*sh_domain), GFP_KERNEL); in shmobile_iommu_domain_alloc()100 if (!sh_domain) in shmobile_iommu_domain_alloc()102 ret = pgtable_alloc(&sh_domain->l1, l1cache, L1_SIZE); in shmobile_iommu_domain_alloc()104 kfree(sh_domain); in shmobile_iommu_domain_alloc()108 sh_domain->l2[i].pgtable = NULL; in shmobile_iommu_domain_alloc()109 spin_lock_init(&sh_domain->map_lock); in shmobile_iommu_domain_alloc()110 spin_lock_init(&sh_domain->attached_list_lock); in shmobile_iommu_domain_alloc()111 INIT_LIST_HEAD(&sh_domain->attached_list); in shmobile_iommu_domain_alloc()112 return &sh_domain->domain; in shmobile_iommu_domain_alloc()[all …]