Lines Matching refs:nd_pfn
25 struct nd_pfn *nd_pfn = &nd_dax->nd_pfn; in nd_dax_release() local
28 nd_detach_ndns(dev, &nd_pfn->ndns); in nd_dax_release()
29 ida_simple_remove(&nd_region->dax_ida, nd_pfn->id); in nd_dax_release()
30 kfree(nd_pfn->uuid); in nd_dax_release()
47 struct nd_dax *nd_dax = container_of(dev, struct nd_dax, nd_pfn.dev); in to_nd_dax()
63 struct nd_pfn *nd_pfn; in nd_dax_alloc() local
71 nd_pfn = &nd_dax->nd_pfn; in nd_dax_alloc()
72 nd_pfn->id = ida_simple_get(&nd_region->dax_ida, 0, 0, GFP_KERNEL); in nd_dax_alloc()
73 if (nd_pfn->id < 0) { in nd_dax_alloc()
78 dev = &nd_pfn->dev; in nd_dax_alloc()
79 dev_set_name(dev, "dax%d.%d", nd_region->id, nd_pfn->id); in nd_dax_alloc()
97 dev = nd_pfn_devinit(&nd_dax->nd_pfn, NULL); in nd_dax_create()
107 struct nd_pfn *nd_pfn; in nd_dax_probe() local
124 nd_pfn = &nd_dax->nd_pfn; in nd_dax_probe()
125 dax_dev = nd_pfn_devinit(nd_pfn, ndns); in nd_dax_probe()
130 nd_pfn->pfn_sb = pfn_sb; in nd_dax_probe()
131 rc = nd_pfn_validate(nd_pfn, DAX_SIG); in nd_dax_probe()
135 nd_detach_ndns(dax_dev, &nd_pfn->ndns); in nd_dax_probe()