Lines Matching defs:nvdimm
104 struct nvdimm *nvdimm;
498 nd_pmu->pmu.name = nvdimm_name(p->nvdimm);
525 dev_info(&p->pdev->dev, "nvdimm pmu didn't register rc=%d\n", rc);
704 static int is_cmd_valid(struct nvdimm *nvdimm, unsigned int cmd, void *buf,
713 if (!nvdimm)
716 /* get the provider data from struct nvdimm */
717 p = nvdimm_provider_data(nvdimm);
1043 struct nvdimm *nvdimm, unsigned int cmd, void *buf,
1051 rc = is_cmd_valid(nvdimm, cmd, buf, buf_len);
1061 p = nvdimm_provider_data(nvdimm);
1100 struct nvdimm *dimm = to_nvdimm(dev);
1117 struct nvdimm *dimm = to_nvdimm(dev);
1155 struct nvdimm *dimm = to_nvdimm(dev);
1197 struct nvdimm *dimm = to_nvdimm(dev);
1208 struct nvdimm *nvdimm = to_nvdimm(dev);
1209 struct papr_scm_priv *p = nvdimm_provider_data(nvdimm);
1259 dev_err(dev, "Error creating nvdimm bus %pOF\n", p->dn);
1268 * Check if the nvdimm is unarmed. No locking needed as we are still
1276 p->nvdimm = nvdimm_create(p->bus, p, papr_nd_attr_groups,
1278 if (!p->nvdimm) {
1289 mapping.nvdimm = p->nvdimm;