Lines Matching refs:nd_desc
73 return nvdimm_bus->nd_desc->module; in to_bus_provider()
238 struct nvdimm_bus_descriptor *nd_desc; in nvdimm_clear_poison() local
248 nd_desc = nvdimm_bus->nd_desc; in nvdimm_clear_poison()
253 if (!nd_desc->ndctl) in nvdimm_clear_poison()
260 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_CAP, &ars_cap, in nvdimm_clear_poison()
278 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_CLEAR_ERROR, &clear_err, in nvdimm_clear_poison()
341 struct nvdimm_bus_descriptor *nd_desc) in nvdimm_bus_register() argument
359 nvdimm_bus->nd_desc = nd_desc; in nvdimm_bus_register()
362 nvdimm_bus->dev.groups = nd_desc->attr_groups; in nvdimm_bus_register()
364 nvdimm_bus->dev.of_node = nd_desc->of_node; in nvdimm_bus_register()
447 dev_set_drvdata(dev, nvdimm_bus->nd_desc); in nd_bus_probe()
893 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nd_cmd_clear_to_send() local
896 if (nd_desc->clear_to_send) { in nd_cmd_clear_to_send()
897 int rc = nd_desc->clear_to_send(nd_desc, nvdimm, cmd); in nd_cmd_clear_to_send()
921 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in __nd_ioctl() local
945 cmd_mask = nd_desc->cmd_mask; in __nd_ioctl()
1042 rc = nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, &cmd_rc); in __nd_ioctl()