Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/nvdimm/
Dpfn_devs.c19 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in nd_pfn_release() local
22 nd_detach_ndns(&nd_pfn->dev, &nd_pfn->ndns); in nd_pfn_release()
23 ida_simple_remove(&nd_region->pfn_ida, nd_pfn->id); in nd_pfn_release()
24 kfree(nd_pfn->uuid); in nd_pfn_release()
25 kfree(nd_pfn); in nd_pfn_release()
28 struct nd_pfn *to_nd_pfn(struct device *dev) in to_nd_pfn()
30 struct nd_pfn *nd_pfn = container_of(dev, struct nd_pfn, dev); in to_nd_pfn() local
33 return nd_pfn; in to_nd_pfn()
40 struct nd_pfn *nd_pfn = to_nd_pfn_safe(dev); in mode_show() local
42 switch (nd_pfn->mode) { in mode_show()
[all …]
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_simple_remove(&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_simple_get(&nd_region->dax_ida, 0, 0, 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 …]
Dnd.h467 struct nd_pfn { struct
479 struct nd_pfn nd_pfn; argument
564 struct nd_pfn *to_nd_pfn(struct device *dev);
572 struct device *nd_pfn_devinit(struct nd_pfn *nd_pfn,
574 int nd_pfn_validate(struct nd_pfn *nd_pfn, const char *sig);
593 static inline int nd_pfn_validate(struct nd_pfn *nd_pfn, const char *sig) in nd_pfn_validate() argument
656 int nvdimm_setup_pfn(struct nd_pfn *nd_pfn, struct dev_pagemap *pgmap);
658 static inline int nvdimm_setup_pfn(struct nd_pfn *nd_pfn, in nvdimm_setup_pfn() argument
Dclaim.c94 struct nd_pfn *to_nd_pfn_safe(struct device *dev) in to_nd_pfn_safe()
106 return &nd_dax->nd_pfn; in to_nd_pfn_safe()
127 struct nd_pfn *nd_pfn = to_nd_pfn_safe(dev); in nd_detach_and_reset() local
129 kfree(nd_pfn->uuid); in nd_detach_and_reset()
130 nd_pfn->uuid = NULL; in nd_detach_and_reset()
131 nd_pfn->mode = PFN_MODE_NONE; in nd_detach_and_reset()
Dpmem.c479 struct nd_pfn *nd_pfn = NULL; in pmem_attach_disk() local
498 nd_pfn = to_nd_pfn(dev); in pmem_attach_disk()
499 rc = nvdimm_setup_pfn(nd_pfn, &pmem->pgmap); in pmem_attach_disk()
534 pfn_sb = nd_pfn->pfn_sb; in pmem_attach_disk()
720 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in pmem_revalidate_poison() local
721 struct nd_pfn_sb *pfn_sb = nd_pfn->pfn_sb; in pmem_revalidate_poison()
723 ndns = nd_pfn->ndns; in pmem_revalidate_poison()
Dbus.c940 struct nd_pfn *nd_pfn = is_nd_pfn(dev) ? to_nd_pfn(dev) : NULL; in nd_pmem_forget_poison_check() local
952 if (nd_btt || nd_pfn || nd_dax) { in nd_pmem_forget_poison_check()
955 else if (nd_pfn) in nd_pmem_forget_poison_check()
956 ndns = nd_pfn->ndns; in nd_pmem_forget_poison_check()
958 ndns = nd_dax->nd_pfn.ndns; in nd_pmem_forget_poison_check()
Dnamespace_devs.c51 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in is_uuid_busy() local
53 uuid2 = nd_pfn->uuid; in is_uuid_busy()
1431 struct nd_pfn *nd_pfn = is_nd_pfn(dev) ? to_nd_pfn(dev) : NULL; in nvdimm_namespace_common_probe() local
1436 if (nd_btt || nd_pfn || nd_dax) { in nvdimm_namespace_common_probe()
1439 else if (nd_pfn) in nvdimm_namespace_common_probe()
1440 ndns = nd_pfn->ndns; in nvdimm_namespace_common_probe()
1442 ndns = nd_dax->nd_pfn.ndns; in nvdimm_namespace_common_probe()
Dnd-core.h145 struct nd_pfn *to_nd_pfn_safe(struct device *dev);
Dregion_devs.c857 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in nd_region_advance_seeds() local
861 if (nd_region->ns_seed == &nd_pfn->ndns->dev) in nd_region_advance_seeds()
868 if (nd_region->ns_seed == &nd_dax->nd_pfn.ndns->dev) in nd_region_advance_seeds()
/linux-6.1.9/drivers/dax/
Dpmem.c23 struct nd_pfn *nd_pfn = &nd_dax->nd_pfn; in __dax_pmem_probe() local
34 rc = nvdimm_setup_pfn(nd_pfn, &pgmap); in __dax_pmem_probe()
40 pfn_sb = nd_pfn->pfn_sb; in __dax_pmem_probe()