ndrd               45 drivers/nvdimm/nd.h static inline void __iomem *ndrd_get_flush_wpq(struct nd_region_data *ndrd,
ndrd               48 drivers/nvdimm/nd.h 	unsigned int num = 1 << ndrd->hints_shift;
ndrd               51 drivers/nvdimm/nd.h 	return ndrd->flush_wpq[dimm * num + (hint & mask)];
ndrd               54 drivers/nvdimm/nd.h static inline void ndrd_set_flush_wpq(struct nd_region_data *ndrd, int dimm,
ndrd               57 drivers/nvdimm/nd.h 	unsigned int num = 1 << ndrd->hints_shift;
ndrd               60 drivers/nvdimm/nd.h 	ndrd->flush_wpq[dimm * num + (hint & mask)] = flush;
ndrd               16 drivers/nvdimm/region.c 	struct nd_region_data *ndrd;
ndrd               56 drivers/nvdimm/region.c 	ndrd = dev_get_drvdata(dev);
ndrd               57 drivers/nvdimm/region.c 	ndrd->ns_active = rc;
ndrd               58 drivers/nvdimm/region.c 	ndrd->ns_count = rc + err;
ndrd               26 drivers/nvdimm/region_devs.c 		struct nd_region_data *ndrd)
ndrd               32 drivers/nvdimm/region_devs.c 	for (i = 0; i < (1 << ndrd->hints_shift); i++) {
ndrd               48 drivers/nvdimm/region_devs.c 					ndrd_get_flush_wpq(ndrd, dimm, j)
ndrd               55 drivers/nvdimm/region_devs.c 		ndrd_set_flush_wpq(ndrd, dimm, i, flush_page
ndrd               65 drivers/nvdimm/region_devs.c 	struct nd_region_data *ndrd;
ndrd               88 drivers/nvdimm/region_devs.c 	ndrd = devm_kzalloc(dev, sizeof(*ndrd) + flush_data_size, GFP_KERNEL);
ndrd               89 drivers/nvdimm/region_devs.c 	if (!ndrd)
ndrd               91 drivers/nvdimm/region_devs.c 	dev_set_drvdata(dev, ndrd);
ndrd               96 drivers/nvdimm/region_devs.c 	ndrd->hints_shift = ilog2(num_flush);
ndrd              100 drivers/nvdimm/region_devs.c 		int rc = nvdimm_map_flush(&nd_region->dev, nvdimm, i, ndrd);
ndrd              112 drivers/nvdimm/region_devs.c 		if (!ndrd_get_flush_wpq(ndrd, i, 0))
ndrd              116 drivers/nvdimm/region_devs.c 			if (ndrd_get_flush_wpq(ndrd, i, 0) ==
ndrd              117 drivers/nvdimm/region_devs.c 			    ndrd_get_flush_wpq(ndrd, j, 0))
ndrd              118 drivers/nvdimm/region_devs.c 				ndrd_set_flush_wpq(ndrd, j, 0, NULL);
ndrd              458 drivers/nvdimm/region_devs.c 	struct nd_region_data *ndrd = dev_get_drvdata(dev);
ndrd              462 drivers/nvdimm/region_devs.c 	if (ndrd)
ndrd              463 drivers/nvdimm/region_devs.c 		rc = sprintf(buf, "%d/%d\n", ndrd->ns_active, ndrd->ns_count);
ndrd             1101 drivers/nvdimm/region_devs.c 	struct nd_region_data *ndrd = dev_get_drvdata(&nd_region->dev);
ndrd             1120 drivers/nvdimm/region_devs.c 		if (ndrd_get_flush_wpq(ndrd, i, 0))
ndrd             1121 drivers/nvdimm/region_devs.c 			writeq(1, ndrd_get_flush_wpq(ndrd, i, idx));