Home
last modified time | relevance | path

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

/drivers/nvdimm/
Dpfn_devs.c28 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in nd_pfn_release() local
31 nd_detach_ndns(&nd_pfn->dev, &nd_pfn->ndns); in nd_pfn_release()
32 ida_simple_remove(&nd_region->pfn_ida, nd_pfn->id); in nd_pfn_release()
33 kfree(nd_pfn->uuid); in nd_pfn_release()
34 kfree(nd_pfn); in nd_pfn_release()
48 struct nd_pfn *to_nd_pfn(struct device *dev) in to_nd_pfn()
50 struct nd_pfn *nd_pfn = container_of(dev, struct nd_pfn, dev); in to_nd_pfn() local
53 return nd_pfn; in to_nd_pfn()
60 struct nd_pfn *nd_pfn = to_nd_pfn_safe(dev); in mode_show() local
62 switch (nd_pfn->mode) { in mode_show()
[all …]
Ddax_devs.c25 struct nd_pfn *nd_pfn = &nd_dax->nd_pfn; in nd_dax_release() local
28 nd_detach_ndns(dev, &nd_pfn->ndns); in nd_dax_release()
29 ida_simple_remove(&nd_region->dax_ida, nd_pfn->id); in nd_dax_release()
30 kfree(nd_pfn->uuid); in nd_dax_release()
47 struct nd_dax *nd_dax = container_of(dev, struct nd_dax, nd_pfn.dev); in to_nd_dax()
63 struct nd_pfn *nd_pfn; in nd_dax_alloc() local
71 nd_pfn = &nd_dax->nd_pfn; in nd_dax_alloc()
72 nd_pfn->id = ida_simple_get(&nd_region->dax_ida, 0, 0, GFP_KERNEL); in nd_dax_alloc()
73 if (nd_pfn->id < 0) { in nd_dax_alloc()
78 dev = &nd_pfn->dev; in nd_dax_alloc()
[all …]
Dnd.h197 struct nd_pfn { struct
209 struct nd_pfn nd_pfn; argument
271 struct nd_pfn *to_nd_pfn(struct device *dev);
276 struct device *nd_pfn_devinit(struct nd_pfn *nd_pfn,
278 int nd_pfn_validate(struct nd_pfn *nd_pfn, const char *sig);
297 static inline int nd_pfn_validate(struct nd_pfn *nd_pfn, const char *sig) in nd_pfn_validate() argument
351 struct vmem_altmap *nvdimm_setup_pfn(struct nd_pfn *nd_pfn,
356 static inline struct vmem_altmap *nvdimm_setup_pfn(struct nd_pfn *nd_pfn, in nvdimm_setup_pfn() argument
Dclaim.c96 struct nd_pfn *to_nd_pfn_safe(struct device *dev) in to_nd_pfn_safe()
108 return &nd_dax->nd_pfn; in to_nd_pfn_safe()
129 struct nd_pfn *nd_pfn = to_nd_pfn_safe(dev); in nd_detach_and_reset() local
131 kfree(nd_pfn->uuid); in nd_detach_and_reset()
132 nd_pfn->uuid = NULL; in nd_detach_and_reset()
133 nd_pfn->mode = PFN_MODE_NONE; in nd_detach_and_reset()
Dpmem.c244 struct nd_pfn *nd_pfn = NULL; in pmem_attach_disk() local
255 nd_pfn = to_nd_pfn(dev); in pmem_attach_disk()
256 altmap = nvdimm_setup_pfn(nd_pfn, &pfn_res, &__altmap); in pmem_attach_disk()
288 pfn_sb = nd_pfn->pfn_sb; in pmem_attach_disk()
412 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in nd_pmem_notify() local
413 struct nd_pfn_sb *pfn_sb = nd_pfn->pfn_sb; in nd_pmem_notify()
415 ndns = nd_pfn->ndns; in nd_pmem_notify()
Dnamespace_devs.c102 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in is_uuid_busy() local
104 uuid2 = nd_pfn->uuid; in is_uuid_busy()
1491 struct nd_pfn *nd_pfn = is_nd_pfn(dev) ? to_nd_pfn(dev) : NULL; in nvdimm_namespace_common_probe() local
1496 if (nd_btt || nd_pfn || nd_dax) { in nvdimm_namespace_common_probe()
1499 else if (nd_pfn) in nvdimm_namespace_common_probe()
1500 ndns = nd_pfn->ndns; in nvdimm_namespace_common_probe()
1502 ndns = nd_dax->nd_pfn.ndns; in nvdimm_namespace_common_probe()
Dregion_devs.c581 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in nd_region_notify_driver_action() local
587 if (nd_region->ns_seed == &nd_pfn->ndns->dev) in nd_region_notify_driver_action()
598 if (nd_region->ns_seed == &nd_dax->nd_pfn.ndns->dev) in nd_region_notify_driver_action()
Dnd-core.h116 struct nd_pfn *to_nd_pfn_safe(struct device *dev);
/drivers/dax/
Dpmem.c71 struct nd_pfn *nd_pfn = &nd_dax->nd_pfn; in dax_pmem_probe() local
83 altmap = nvdimm_setup_pfn(nd_pfn, &res, &__altmap); in dax_pmem_probe()
88 pfn_sb = nd_pfn->pfn_sb; in dax_pmem_probe()