Lines Matching refs:nd_pfn
17 struct nd_pfn *nd_pfn = &nd_dax->nd_pfn; in nd_dax_release() local
20 nd_detach_ndns(dev, &nd_pfn->ndns); in nd_dax_release()
21 ida_simple_remove(&nd_region->dax_ida, nd_pfn->id); in nd_dax_release()
22 kfree(nd_pfn->uuid); in nd_dax_release()
28 struct nd_dax *nd_dax = container_of(dev, struct nd_dax, nd_pfn.dev); in to_nd_dax()
49 struct nd_pfn *nd_pfn; in nd_dax_alloc() local
57 nd_pfn = &nd_dax->nd_pfn; in nd_dax_alloc()
58 nd_pfn->id = ida_simple_get(&nd_region->dax_ida, 0, 0, GFP_KERNEL); in nd_dax_alloc()
59 if (nd_pfn->id < 0) { in nd_dax_alloc()
64 dev = &nd_pfn->dev; in nd_dax_alloc()
65 dev_set_name(dev, "dax%d.%d", nd_region->id, nd_pfn->id); in nd_dax_alloc()
82 dev = nd_pfn_devinit(&nd_dax->nd_pfn, NULL); in nd_dax_create()
92 struct nd_pfn *nd_pfn; in nd_dax_probe() local
109 nd_pfn = &nd_dax->nd_pfn; in nd_dax_probe()
110 dax_dev = nd_pfn_devinit(nd_pfn, ndns); in nd_dax_probe()
115 nd_pfn->pfn_sb = pfn_sb; in nd_dax_probe()
116 rc = nd_pfn_validate(nd_pfn, DAX_SIG); in nd_dax_probe()
119 nd_detach_ndns(dax_dev, &nd_pfn->ndns); in nd_dax_probe()