Home
last modified time | relevance | path

Searched refs:ndom (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/iommu/amd/
H A Dnested.c98 struct nested_domain *ndom; in amd_iommu_alloc_domain_nested() local
105 ndom = kzalloc_obj(*ndom); in amd_iommu_alloc_domain_nested()
106 if (!ndom) in amd_iommu_alloc_domain_nested()
109 ret = iommu_copy_struct_from_user(&ndom->gdte, user_data, in amd_iommu_alloc_domain_nested()
115 ret = validate_gdte_nested(&ndom->gdte); in amd_iommu_alloc_domain_nested()
119 ndom->gdom_id = FIELD_GET(DTE_DOMID_MASK, ndom->gdte.dte[1]); in amd_iommu_alloc_domain_nested()
120 ndom->domain.ops = &nested_domain_ops; in amd_iommu_alloc_domain_nested()
121 ndom->domain.type = IOMMU_DOMAIN_NESTED; in amd_iommu_alloc_domain_nested()
122 ndom->viommu = aviommu; in amd_iommu_alloc_domain_nested()
141 gdom_info = gdom_info_load_or_alloc_locked(&aviommu->gdomid_array, ndom->gdom_id); in amd_iommu_alloc_domain_nested()
[all …]
/linux/drivers/pmdomain/bcm/
H A Dbcm63xx-power.c95 unsigned int ndom; in bcm63xx_power_probe() local
112 ndom = 0; in bcm63xx_power_probe()
115 ndom++; in bcm63xx_power_probe()
118 if (!ndom) in bcm63xx_power_probe()
137 ndom = 0; in bcm63xx_power_probe()
139 struct bcm63xx_power_dev *pmd = &power->dev[ndom]; in bcm63xx_power_probe()
158 ndom++; in bcm63xx_power_probe()
169 dev_info(dev, "registered %u power domains\n", ndom); in bcm63xx_power_probe()