Searched refs:nd_pfn (Results 1 – 6 of 6) sorted by relevance
21 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in nd_pfn_release() local24 nd_detach_ndns(&nd_pfn->dev, &nd_pfn->ndns); in nd_pfn_release()25 ida_free(&nd_region->pfn_ida, nd_pfn->id); in nd_pfn_release()26 kfree(nd_pfn->uuid); in nd_pfn_release()27 kfree(nd_pfn); in nd_pfn_release()30 struct nd_pfn *to_nd_pfn(struct device *dev) in to_nd_pfn()32 struct nd_pfn *nd_pfn = container_of(dev, struct nd_pfn, dev); in to_nd_pfn() local35 return nd_pfn; in to_nd_pfn()42 struct nd_pfn *nd_pfn = to_nd_pfn_safe(dev); in mode_show() local44 switch (nd_pfn->mode) { in mode_show()[all …]
17 struct nd_pfn *nd_pfn = &nd_dax->nd_pfn; in nd_dax_release() local20 nd_detach_ndns(dev, &nd_pfn->ndns); in nd_dax_release()21 ida_free(&nd_region->dax_ida, nd_pfn->id); in nd_dax_release()22 kfree(nd_pfn->uuid); in nd_dax_release()28 struct nd_dax *nd_dax = container_of(dev, struct nd_dax, nd_pfn.dev); in to_nd_dax()49 struct nd_pfn *nd_pfn; in nd_dax_alloc() local57 nd_pfn = &nd_dax->nd_pfn; in nd_dax_alloc()58 nd_pfn->id = ida_alloc(&nd_region->dax_ida, GFP_KERNEL); in nd_dax_alloc()59 if (nd_pfn->id < 0) { in nd_dax_alloc()64 dev = &nd_pfn->dev; in nd_dax_alloc()[all …]
75 struct nd_pfn *to_nd_pfn_safe(struct device *dev) in to_nd_pfn_safe()87 return &nd_dax->nd_pfn; in to_nd_pfn_safe()108 struct nd_pfn *nd_pfn = to_nd_pfn_safe(dev); in nd_detach_and_reset() local110 kfree(nd_pfn->uuid); in nd_detach_and_reset()111 nd_pfn->uuid = NULL; in nd_detach_and_reset()112 nd_pfn->mode = PFN_MODE_NONE; in nd_detach_and_reset()
954 struct nd_pfn *nd_pfn = is_nd_pfn(dev) ? to_nd_pfn(dev) : NULL; in nd_pmem_forget_poison_check() local966 if (nd_btt || nd_pfn || nd_dax) { in nd_pmem_forget_poison_check()969 else if (nd_pfn) in nd_pmem_forget_poison_check()970 ndns = nd_pfn->ndns; in nd_pmem_forget_poison_check()972 ndns = nd_dax->nd_pfn.ndns; in nd_pmem_forget_poison_check()
52 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in is_uuid_busy() local54 uuid2 = nd_pfn->uuid; in is_uuid_busy()1434 struct nd_pfn *nd_pfn = is_nd_pfn(dev) ? to_nd_pfn(dev) : NULL; in nvdimm_namespace_common_probe() local1439 if (nd_btt || nd_pfn || nd_dax) { in nvdimm_namespace_common_probe()1442 else if (nd_pfn) in nvdimm_namespace_common_probe()1443 ndns = nd_pfn->ndns; in nvdimm_namespace_common_probe()1445 ndns = nd_dax->nd_pfn.ndns; in nvdimm_namespace_common_probe()
142 struct nd_pfn *to_nd_pfn_safe(struct device *dev);