Home
last modified time | relevance | path

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

/drivers/nvdimm/
Dregion_devs.c35 struct nd_region_data *ndrd) in nvdimm_map_flush() argument
41 for (i = 0; i < (1 << ndrd->hints_shift); i++) { in nvdimm_map_flush()
57 ndrd_get_flush_wpq(ndrd, dimm, j) in nvdimm_map_flush()
64 ndrd_set_flush_wpq(ndrd, dimm, i, flush_page in nvdimm_map_flush()
74 struct nd_region_data *ndrd; in nd_region_activate() local
92 ndrd = devm_kzalloc(dev, sizeof(*ndrd) + flush_data_size, GFP_KERNEL); in nd_region_activate()
93 if (!ndrd) in nd_region_activate()
95 dev_set_drvdata(dev, ndrd); in nd_region_activate()
100 ndrd->hints_shift = ilog2(num_flush); in nd_region_activate()
104 int rc = nvdimm_map_flush(&nd_region->dev, nvdimm, i, ndrd); in nd_region_activate()
[all …]
Dregion.c23 struct nd_region_data *ndrd; in nd_region_probe() local
48 ndrd = dev_get_drvdata(dev); in nd_region_probe()
49 ndrd->ns_active = rc; in nd_region_probe()
50 ndrd->ns_count = rc + err; in nd_region_probe()
Dnd.h59 static inline void __iomem *ndrd_get_flush_wpq(struct nd_region_data *ndrd, in ndrd_get_flush_wpq() argument
62 unsigned int num = 1 << ndrd->hints_shift; in ndrd_get_flush_wpq()
65 return ndrd->flush_wpq[dimm * num + (hint & mask)]; in ndrd_get_flush_wpq()
68 static inline void ndrd_set_flush_wpq(struct nd_region_data *ndrd, int dimm, in ndrd_set_flush_wpq() argument
71 unsigned int num = 1 << ndrd->hints_shift; in ndrd_set_flush_wpq()
74 ndrd->flush_wpq[dimm * num + (hint & mask)] = flush; in ndrd_set_flush_wpq()