Home
last modified time | relevance | path

Searched refs:ndrd (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/nvdimm/
Dregion_devs.c26 struct nd_region_data *ndrd) in nvdimm_map_flush() argument
32 for (i = 0; i < (1 << ndrd->hints_shift); i++) { in nvdimm_map_flush()
48 ndrd_get_flush_wpq(ndrd, dimm, j) in nvdimm_map_flush()
55 ndrd_set_flush_wpq(ndrd, dimm, i, flush_page in nvdimm_map_flush()
65 struct nd_region_data *ndrd; in nd_region_activate() local
88 ndrd = devm_kzalloc(dev, sizeof(*ndrd) + flush_data_size, GFP_KERNEL); in nd_region_activate()
89 if (!ndrd) in nd_region_activate()
91 dev_set_drvdata(dev, ndrd); in nd_region_activate()
96 ndrd->hints_shift = ilog2(num_flush); in nd_region_activate()
100 int rc = nvdimm_map_flush(&nd_region->dev, nvdimm, i, ndrd); in nd_region_activate()
[all …]
Dregion.c16 struct nd_region_data *ndrd; in nd_region_probe() local
57 ndrd = dev_get_drvdata(dev); in nd_region_probe()
58 ndrd->ns_active = rc; in nd_region_probe()
59 ndrd->ns_count = rc + err; in nd_region_probe()
Dnd.h45 static inline void __iomem *ndrd_get_flush_wpq(struct nd_region_data *ndrd, in ndrd_get_flush_wpq() argument
48 unsigned int num = 1 << ndrd->hints_shift; in ndrd_get_flush_wpq()
51 return ndrd->flush_wpq[dimm * num + (hint & mask)]; in ndrd_get_flush_wpq()
54 static inline void ndrd_set_flush_wpq(struct nd_region_data *ndrd, int dimm, in ndrd_set_flush_wpq() argument
57 unsigned int num = 1 << ndrd->hints_shift; in ndrd_set_flush_wpq()
60 ndrd->flush_wpq[dimm * num + (hint & mask)] = flush; in ndrd_set_flush_wpq()