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()
37 struct nd_dax *to_nd_dax(struct device *dev) in to_nd_dax()
39 struct nd_dax *nd_dax = container_of(dev, struct nd_dax, nd_pfn.dev); in to_nd_dax() local
42 return nd_dax; in to_nd_dax()
53 static struct nd_dax *nd_dax_alloc(struct nd_region *nd_region) in nd_dax_alloc()
56 struct nd_dax *nd_dax; in nd_dax_alloc() local
59 nd_dax = kzalloc(sizeof(*nd_dax), GFP_KERNEL); in nd_dax_alloc()
60 if (!nd_dax) in nd_dax_alloc()
63 nd_pfn = &nd_dax->nd_pfn; in nd_dax_alloc()
66 kfree(nd_dax); in nd_dax_alloc()
76 return nd_dax; in nd_dax_alloc()
82 struct nd_dax *nd_dax; in nd_dax_create() local
87 nd_dax = nd_dax_alloc(nd_region); in nd_dax_create()
88 if (nd_dax) in nd_dax_create()
89 dev = nd_pfn_devinit(&nd_dax->nd_pfn, NULL); in nd_dax_create()
97 struct nd_dax *nd_dax; in nd_dax_probe() local
115 nd_dax = nd_dax_alloc(nd_region); in nd_dax_probe()
116 nd_pfn = &nd_dax->nd_pfn; in nd_dax_probe()