Lines Matching refs:nd_desc
60 return nvdimm_bus->nd_desc->module; in to_bus_provider()
229 struct nvdimm_bus_descriptor *nd_desc; in nvdimm_clear_poison() local
239 nd_desc = nvdimm_bus->nd_desc; in nvdimm_clear_poison()
244 if (!nd_desc->ndctl) in nvdimm_clear_poison()
251 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_CAP, &ars_cap, in nvdimm_clear_poison()
269 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_CLEAR_ERROR, &clear_err, in nvdimm_clear_poison()
343 struct nvdimm_bus_descriptor *nd_desc) in nvdimm_bus_register() argument
361 nvdimm_bus->nd_desc = nd_desc; in nvdimm_bus_register()
364 nvdimm_bus->dev.groups = nd_desc->attr_groups; in nvdimm_bus_register()
366 nvdimm_bus->dev.of_node = nd_desc->of_node; in nvdimm_bus_register()
467 dev_set_drvdata(dev, nvdimm_bus->nd_desc); in nd_bus_probe()
982 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nd_cmd_clear_to_send() local
985 if (nd_desc->clear_to_send) { in nd_cmd_clear_to_send()
986 int rc = nd_desc->clear_to_send(nd_desc, nvdimm, cmd, data); in nd_cmd_clear_to_send()
1010 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in __nd_ioctl() local
1033 cmd_mask = nd_desc->cmd_mask; in __nd_ioctl()
1047 mask = &nd_desc->dimm_family_mask; in __nd_ioctl()
1051 mask = &nd_desc->bus_family_mask; in __nd_ioctl()
1167 rc = nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, &cmd_rc); in __nd_ioctl()