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()
39 struct nd_dax *nd_dax = container_of(dev, struct nd_dax, nd_pfn.dev); in to_nd_dax()
55 struct nd_pfn *nd_pfn; in nd_dax_alloc() local
63 nd_pfn = &nd_dax->nd_pfn; in nd_dax_alloc()
64 nd_pfn->id = ida_simple_get(&nd_region->dax_ida, 0, 0, GFP_KERNEL); in nd_dax_alloc()
65 if (nd_pfn->id < 0) { in nd_dax_alloc()
70 dev = &nd_pfn->dev; in nd_dax_alloc()
71 dev_set_name(dev, "dax%d.%d", nd_region->id, nd_pfn->id); in nd_dax_alloc()
89 dev = nd_pfn_devinit(&nd_dax->nd_pfn, NULL); in nd_dax_create()
99 struct nd_pfn *nd_pfn; in nd_dax_probe() local
116 nd_pfn = &nd_dax->nd_pfn; in nd_dax_probe()
117 dax_dev = nd_pfn_devinit(nd_pfn, ndns); in nd_dax_probe()
122 nd_pfn->pfn_sb = pfn_sb; in nd_dax_probe()
123 rc = nd_pfn_validate(nd_pfn, DAX_SIG); in nd_dax_probe()
126 nd_detach_ndns(dax_dev, &nd_pfn->ndns); in nd_dax_probe()