Lines Matching refs:nd_region
23 struct nd_region *nd_region = to_nd_region(dev->parent); in nd_dax_release() local
29 ida_simple_remove(&nd_region->dax_ida, nd_pfn->id); in nd_dax_release()
61 static struct nd_dax *nd_dax_alloc(struct nd_region *nd_region) in nd_dax_alloc() argument
72 nd_pfn->id = ida_simple_get(&nd_region->dax_ida, 0, 0, GFP_KERNEL); in nd_dax_alloc()
79 dev_set_name(dev, "dax%d.%d", nd_region->id, nd_pfn->id); in nd_dax_alloc()
82 dev->parent = &nd_region->dev; in nd_dax_alloc()
87 struct device *nd_dax_create(struct nd_region *nd_region) in nd_dax_create() argument
92 if (!is_memory(&nd_region->dev)) in nd_dax_create()
95 nd_dax = nd_dax_alloc(nd_region); in nd_dax_create()
109 struct nd_region *nd_region = to_nd_region(ndns->dev.parent); in nd_dax_probe() local
123 nd_dax = nd_dax_alloc(nd_region); in nd_dax_probe()