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()
232 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_to_nstype() local
234 if (test_bit(NDD_ALIASING, &nvdimm->flags)) in nd_region_to_nstype()
755 struct nvdimm *nvdimm; in mappingN() local
760 nvdimm = nd_mapping->nvdimm; in mappingN()
762 return sprintf(buf, "%s,%llu,%llu,%d\n", dev_name(&nvdimm->dev), in mappingN()
945 struct nvdimm *nvdimm = mapping->nvdimm; in nd_region_create() local
950 caller, dev_name(&nvdimm->dev), i, PAGE_SIZE); in nd_region_create()
954 if (test_bit(NDD_UNARMED, &nvdimm->flags)) in nd_region_create()
957 if (test_bit(NDD_NOBLK, &nvdimm->flags) in nd_region_create()
960 caller, dev_name(&nvdimm->dev), i); in nd_region_create()
1006 struct nvdimm *nvdimm = mapping->nvdimm; in nd_region_create() local
1008 nd_region->mapping[i].nvdimm = nvdimm; in nd_region_create()
1015 get_device(&nvdimm->dev); in nd_region_create()
1147 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nvdimm_has_flush() local
1150 if (nvdimm->num_flush) in nvdimm_has_flush()