Home
last modified time | relevance | path

Searched refs:nd_pfn (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/nvdimm/
H A Dpfn_devs.c21 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in nd_pfn_release() local
24 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() local
35 return nd_pfn; in to_nd_pfn()
42 struct nd_pfn *nd_pfn = to_nd_pfn_safe(dev); in mode_show() local
44 switch (nd_pfn->mode) { in mode_show()
[all …]
H A Ddax_devs.c17 struct nd_pfn *nd_pfn = &nd_dax->nd_pfn; in nd_dax_release() local
20 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() local
57 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 …]
H A Dnd.h467 struct nd_pfn { struct
479 struct nd_pfn nd_pfn; member
563 struct nd_pfn *to_nd_pfn(struct device *dev);
571 struct device *nd_pfn_devinit(struct nd_pfn *nd_pfn,
573 int nd_pfn_validate(struct nd_pfn *nd_pfn, const char *sig);
592 static inline int nd_pfn_validate(struct nd_pfn *nd_pfn, const char *sig) in nd_pfn_validate() argument
608 return nd_pfn_devinit(&nd_dax->nd_pfn, ndns); in nd_dax_devinit()
665 int nvdimm_setup_pfn(struct nd_pfn *nd_pfn, struct dev_pagemap *pgmap);
667 static inline int nvdimm_setup_pfn(struct nd_pfn *nd_pfn, in nvdimm_setup_pfn() argument
H A Dclaim.c75 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() local
110 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()
H A Dbus.c954 struct nd_pfn *nd_pfn = is_nd_pfn(dev) ? to_nd_pfn(dev) : NULL; in nd_pmem_forget_poison_check() local
966 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()
H A Dnamespace_devs.c52 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in is_uuid_busy() local
54 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() local
1439 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()
H A Dnd-core.h142 struct nd_pfn *to_nd_pfn_safe(struct device *dev);
H A Dregion_devs.c887 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in nd_region_advance_seeds() local
891 if (nd_region->ns_seed == &nd_pfn->ndns->dev) in nd_region_advance_seeds()
898 if (nd_region->ns_seed == &nd_dax->nd_pfn.ndns->dev) in nd_region_advance_seeds()