Lines Matching refs:nvdimm

25 static int nvdimm_map_flush(struct device *dev, struct nvdimm *nvdimm, int dimm,  in nvdimm_map_flush()  argument
30 dev_dbg(dev, "%s: map %d flush address%s\n", nvdimm_name(nvdimm), in nvdimm_map_flush()
31 nvdimm->num_flush, nvdimm->num_flush == 1 ? "" : "es"); in nvdimm_map_flush()
33 struct resource *res = &nvdimm->flush_wpq[i]; in nvdimm_map_flush()
39 struct resource *res_j = &nvdimm->flush_wpq[j]; in nvdimm_map_flush()
72 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_activate() local
74 if (test_bit(NDD_SECURITY_OVERWRITE, &nvdimm->flags)) { in nd_region_activate()
81 num_flush = min_not_zero(num_flush, nvdimm->num_flush); in nd_region_activate()
82 if (!nvdimm->num_flush) in nd_region_activate()
84 flush_data_size += nvdimm->num_flush * sizeof(void *); in nd_region_activate()
99 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_activate() local
100 int rc = nvdimm_map_flush(&nd_region->dev, nvdimm, i, ndrd); in nd_region_activate()
131 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_release() local
133 put_device(&nvdimm->dev); in nd_region_release()
179 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_to_nstype() local
181 if (test_bit(NDD_LABELING, &nvdimm->flags)) in nd_region_to_nstype()
663 struct nvdimm *nvdimm; in mappingN() local
668 nvdimm = nd_mapping->nvdimm; in mappingN()
670 return sprintf(buf, "%s,%llu,%llu,%d\n", dev_name(&nvdimm->dev), in mappingN()
964 struct nvdimm *nvdimm = mapping->nvdimm; in nd_region_create() local
969 caller, dev_name(&nvdimm->dev), i, PAGE_SIZE); in nd_region_create()
973 if (test_bit(NDD_UNARMED, &nvdimm->flags)) in nd_region_create()
1007 struct nvdimm *nvdimm = mapping->nvdimm; in nd_region_create() local
1009 nd_region->mapping[i].nvdimm = nvdimm; in nd_region_create()
1016 get_device(&nvdimm->dev); in nd_region_create()
1153 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nvdimm_has_flush() local
1156 if (nvdimm->num_flush) in nvdimm_has_flush()