Searched refs:ndrd (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/nvdimm/ |
H A D | region.c | 17 struct nd_region_data *ndrd; in nd_region_probe() local 50 ndrd = dev_get_drvdata(dev); in nd_region_probe() 51 ndrd->ns_active = rc; in nd_region_probe() 52 ndrd->ns_count = rc + err; in nd_region_probe()
|
H A D | region_devs.c | 27 struct nd_region_data *ndrd) in nvdimm_map_flush() argument 49 ndrd_get_flush_wpq(ndrd, dimm, j) in nvdimm_map_flush() 108 struct nd_region_data *ndrd; in nd_region_activate() local 135 ndrd = devm_kzalloc(dev, sizeof(*ndrd) + flush_data_size, GFP_KERNEL); in nd_region_activate() 136 if (!ndrd) in nd_region_activate() 138 dev_set_drvdata(dev, ndrd); in nd_region_activate() 143 ndrd->hints_shift = ilog2(num_flush); in nd_region_activate() 159 if (!ndrd_get_flush_wpq(ndrd, i, 0)) in nd_region_activate() 164 ndrd_get_flush_wpq(ndrd, j, 0)) in nd_region_activate() 439 if (ndrd) in init_namespaces_show() [all …]
|
H A D | nd.h | 310 static inline void __iomem *ndrd_get_flush_wpq(struct nd_region_data *ndrd, in ndrd_get_flush_wpq() argument 313 unsigned int num = 1 << ndrd->hints_shift; in ndrd_get_flush_wpq() 316 return ndrd->flush_wpq[dimm * num + (hint & mask)]; in ndrd_get_flush_wpq() 319 static inline void ndrd_set_flush_wpq(struct nd_region_data *ndrd, int dimm, in ndrd_set_flush_wpq() argument 322 unsigned int num = 1 << ndrd->hints_shift; in ndrd_set_flush_wpq() 325 ndrd->flush_wpq[dimm * num + (hint & mask)] = flush; in ndrd_set_flush_wpq()
|