Lines Matching refs:nd_dax
16 struct nd_dax *nd_dax = to_nd_dax(dev); in nd_dax_release() local
17 struct nd_pfn *nd_pfn = &nd_dax->nd_pfn; in nd_dax_release()
23 kfree(nd_dax); in nd_dax_release()
26 struct nd_dax *to_nd_dax(struct device *dev) in to_nd_dax()
28 struct nd_dax *nd_dax = container_of(dev, struct nd_dax, nd_pfn.dev); in to_nd_dax() local
31 return nd_dax; in to_nd_dax()
47 static struct nd_dax *nd_dax_alloc(struct nd_region *nd_region) in nd_dax_alloc()
50 struct nd_dax *nd_dax; in nd_dax_alloc() local
53 nd_dax = kzalloc(sizeof(*nd_dax), GFP_KERNEL); in nd_dax_alloc()
54 if (!nd_dax) in nd_dax_alloc()
57 nd_pfn = &nd_dax->nd_pfn; in nd_dax_alloc()
60 kfree(nd_dax); in nd_dax_alloc()
69 return nd_dax; in nd_dax_alloc()
75 struct nd_dax *nd_dax; in nd_dax_create() local
80 nd_dax = nd_dax_alloc(nd_region); in nd_dax_create()
81 if (nd_dax) in nd_dax_create()
82 dev = nd_pfn_devinit(&nd_dax->nd_pfn, NULL); in nd_dax_create()
90 struct nd_dax *nd_dax; in nd_dax_probe() local
108 nd_dax = nd_dax_alloc(nd_region); in nd_dax_probe()
109 nd_pfn = &nd_dax->nd_pfn; in nd_dax_probe()