Lines Matching refs:nvdimm
23 static void unregister_nvdimm(void *nvdimm) in unregister_nvdimm() argument
25 nvdimm_delete(nvdimm); in unregister_nvdimm()
30 struct nvdimm *nvdimm = to_nvdimm(dev); in provider_show() local
31 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); in provider_show()
39 struct nvdimm *nvdimm = to_nvdimm(dev); in id_show() local
40 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); in id_show()
70 struct nvdimm *nvdimm; in cxl_nvdimm_probe() local
83 nvdimm = __nvdimm_create(cxl_nvb->nvdimm_bus, cxl_nvd, in cxl_nvdimm_probe()
87 if (!nvdimm) in cxl_nvdimm_probe()
90 dev_set_drvdata(dev, nvdimm); in cxl_nvdimm_probe()
91 return devm_add_action_or_reset(dev, unregister_nvdimm, nvdimm); in cxl_nvdimm_probe()
192 static int cxl_pmem_nvdimm_ctl(struct nvdimm *nvdimm, unsigned int cmd, in cxl_pmem_nvdimm_ctl() argument
195 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); in cxl_pmem_nvdimm_ctl()
196 unsigned long cmd_mask = nvdimm_cmd_mask(nvdimm); in cxl_pmem_nvdimm_ctl()
216 struct nvdimm *nvdimm, unsigned int cmd, void *buf, in cxl_pmem_ctl() argument
225 if (!nvdimm) in cxl_pmem_ctl()
227 return cxl_pmem_nvdimm_ctl(nvdimm, cmd, buf, buf_len); in cxl_pmem_ctl()
316 struct nvdimm *nvdimm; in cxl_pmem_region_probe() local
370 nvdimm = dev_get_drvdata(&cxl_nvd->dev); in cxl_pmem_region_probe()
371 if (!nvdimm) { in cxl_pmem_region_probe()
380 .nvdimm = nvdimm, in cxl_pmem_region_probe()