Lines Matching refs:ndd
18 struct nvdimm_drvdata *ndd; in nvdimm_probe() local
42 ndd = kzalloc(sizeof(*ndd), GFP_KERNEL); in nvdimm_probe()
43 if (!ndd) in nvdimm_probe()
46 dev_set_drvdata(dev, ndd); in nvdimm_probe()
47 ndd->dpa.name = dev_name(dev); in nvdimm_probe()
48 ndd->ns_current = -1; in nvdimm_probe()
49 ndd->ns_next = -1; in nvdimm_probe()
50 ndd->dpa.start = 0; in nvdimm_probe()
51 ndd->dpa.end = -1; in nvdimm_probe()
52 ndd->dev = dev; in nvdimm_probe()
54 kref_init(&ndd->kref); in nvdimm_probe()
71 rc = nvdimm_init_nsarea(ndd); in nvdimm_probe()
90 rc = nd_label_data_init(ndd); in nvdimm_probe()
96 dev_dbg(dev, "config data size: %d\n", ndd->nsarea.config_size); in nvdimm_probe()
99 if (ndd->ns_current >= 0) { in nvdimm_probe()
100 rc = nd_label_reserve_dpa(ndd); in nvdimm_probe()
112 put_ndd(ndd); in nvdimm_probe()
118 struct nvdimm_drvdata *ndd = dev_get_drvdata(dev); in nvdimm_remove() local
120 if (!ndd) in nvdimm_remove()
126 put_ndd(ndd); in nvdimm_remove()