Lines Matching refs:nd_region
26 struct nd_region *nd_region = to_nd_region(dev->parent); in nd_pfn_release() local
31 ida_simple_remove(&nd_region->pfn_ida, nd_pfn->id); in nd_pfn_release()
181 static struct device *__nd_pfn_create(struct nd_region *nd_region, in __nd_pfn_create() argument
189 if (!is_nd_pmem(&nd_region->dev)) in __nd_pfn_create()
196 nd_pfn->id = ida_simple_get(&nd_region->pfn_ida, 0, 0, GFP_KERNEL); in __nd_pfn_create()
207 dev_set_name(dev, "pfn%d.%d", nd_region->id, nd_pfn->id); in __nd_pfn_create()
208 dev->parent = &nd_region->dev; in __nd_pfn_create()
221 struct device *nd_pfn_create(struct nd_region *nd_region) in nd_pfn_create() argument
223 struct device *dev = __nd_pfn_create(nd_region, NULL, PFN_MODE_NONE, in nd_pfn_create()
310 struct nd_region *nd_region = to_nd_region(ndns->dev.parent); in nd_pfn_probe() local
316 dev = __nd_pfn_create(nd_region, NULL, PFN_MODE_NONE, ndns); in nd_pfn_probe()