Searched refs:ndom (Results 1 – 2 of 2) sorted by relevance
101 struct nested_domain *ndom; in amd_iommu_alloc_domain_nested() local108 ndom = kzalloc_obj(*ndom); in amd_iommu_alloc_domain_nested()109 if (!ndom) in amd_iommu_alloc_domain_nested()112 ret = iommu_copy_struct_from_user(&ndom->gdte, user_data, in amd_iommu_alloc_domain_nested()118 ret = validate_gdte_nested(&ndom->gdte); in amd_iommu_alloc_domain_nested()122 ndom->gdom_id = FIELD_GET(DTE_DOMID_MASK, ndom->gdte.dte[1]); in amd_iommu_alloc_domain_nested()123 ndom->domain.ops = &nested_domain_ops; in amd_iommu_alloc_domain_nested()124 ndom->domain.type = IOMMU_DOMAIN_NESTED; in amd_iommu_alloc_domain_nested()125 ndom->viommu = aviommu; in amd_iommu_alloc_domain_nested()145 ndom->gdom_id, &irqflags); in amd_iommu_alloc_domain_nested()[all …]
95 unsigned int ndom; in bcm63xx_power_probe() local112 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()