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