Lines Matching refs:nd_dax
24 struct nd_dax *nd_dax = to_nd_dax(dev); in nd_dax_release() local
25 struct nd_pfn *nd_pfn = &nd_dax->nd_pfn; in nd_dax_release()
31 kfree(nd_dax); in nd_dax_release()
45 struct nd_dax *to_nd_dax(struct device *dev) in to_nd_dax()
47 struct nd_dax *nd_dax = container_of(dev, struct nd_dax, nd_pfn.dev); in to_nd_dax() local
50 return nd_dax; in to_nd_dax()
61 static struct nd_dax *nd_dax_alloc(struct nd_region *nd_region) in nd_dax_alloc()
64 struct nd_dax *nd_dax; in nd_dax_alloc() local
67 nd_dax = kzalloc(sizeof(*nd_dax), GFP_KERNEL); in nd_dax_alloc()
68 if (!nd_dax) in nd_dax_alloc()
71 nd_pfn = &nd_dax->nd_pfn; in nd_dax_alloc()
74 kfree(nd_dax); in nd_dax_alloc()
84 return nd_dax; in nd_dax_alloc()
90 struct nd_dax *nd_dax; in nd_dax_create() local
95 nd_dax = nd_dax_alloc(nd_region); in nd_dax_create()
96 if (nd_dax) in nd_dax_create()
97 dev = nd_pfn_devinit(&nd_dax->nd_pfn, NULL); in nd_dax_create()
105 struct nd_dax *nd_dax; in nd_dax_probe() local
123 nd_dax = nd_dax_alloc(nd_region); in nd_dax_probe()
124 nd_pfn = &nd_dax->nd_pfn; in nd_dax_probe()