Home
last modified time | relevance | path

Searched refs:nd_desc (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/drivers/nvdimm/
De820.c60 static struct nvdimm_bus_descriptor nd_desc; in e820_pmem_probe() local
65 nd_desc.attr_groups = e820_pmem_attribute_groups; in e820_pmem_probe()
66 nd_desc.provider_name = "e820"; in e820_pmem_probe()
67 nd_desc.module = THIS_MODULE; in e820_pmem_probe()
68 nvdimm_bus = nvdimm_bus_register(dev, &nd_desc); in e820_pmem_probe()
Dcore.c198 return nvdimm_bus->nd_desc; in to_nd_desc()
317 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in commands_show() local
319 for_each_set_bit(cmd, &nd_desc->cmd_mask, BITS_PER_LONG) in commands_show()
328 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_bus_provider() local
331 if (nd_desc->provider_name) in nvdimm_bus_provider()
332 return nd_desc->provider_name; in nvdimm_bus_provider()
367 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in wait_probe_show() local
370 if (nd_desc->flush_probe) { in wait_probe_show()
371 rc = nd_desc->flush_probe(nd_desc); in wait_probe_show()
Dbus.c60 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()
338 struct nvdimm_bus_descriptor *nd_desc) in nvdimm_bus_register() argument
356 nvdimm_bus->nd_desc = nd_desc; in nvdimm_bus_register()
359 nvdimm_bus->dev.groups = nd_desc->attr_groups; in nvdimm_bus_register()
361 nvdimm_bus->dev.of_node = nd_desc->of_node; in nvdimm_bus_register()
[all …]
Ddimm_devs.c66 struct nvdimm_bus_descriptor *nd_desc; in nvdimm_init_nsarea() local
77 nd_desc = nvdimm_bus->nd_desc; in nvdimm_init_nsarea()
78 rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_init_nsarea()
89 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_get_config_data() local
114 rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_get_config_data()
138 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_set_config_data() local
162 rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_set_config_data()
Dvirtio_pmem.c68 vpmem->nd_desc.provider_name = "virtio-pmem"; in virtio_pmem_probe()
69 vpmem->nd_desc.module = THIS_MODULE; in virtio_pmem_probe()
72 &vpmem->nd_desc); in virtio_pmem_probe()
Dvirtio_pmem.h40 struct nvdimm_bus_descriptor nd_desc; member
Dnd-core.h20 struct nvdimm_bus_descriptor *nd_desc; member
/Linux-v5.4/drivers/acpi/nfit/
Dcore.c78 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in to_acpi_dev() local
84 if (!nd_desc->provider_name in to_acpi_dev()
85 || strcmp(nd_desc->provider_name, "ACPI.NFIT") != 0) in to_acpi_dev()
438 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, in acpi_nfit_ctl() argument
441 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in acpi_nfit_ctl()
480 cmd_mask = nd_desc->cmd_mask; in acpi_nfit_ctl()
481 dsm_mask = nd_desc->bus_dsm_mask; in acpi_nfit_ctl()
1239 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in bus_dsm_mask_show() local
1241 return sprintf(buf, "%#lx\n", nd_desc->bus_dsm_mask); in bus_dsm_mask_show()
1250 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in revision_show() local
[all …]
Dnfit.h217 struct nvdimm_bus_descriptor nd_desc; member
310 struct nvdimm_bus_descriptor *nd_desc) in to_acpi_desc() argument
312 return container_of(nd_desc, struct acpi_nfit_desc, nd_desc); in to_acpi_desc()
344 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm,
/Linux-v5.4/include/linux/
Dlibnvdimm.h77 typedef int (*ndctl_fn)(struct nvdimm_bus_descriptor *nd_desc,
90 int (*flush_probe)(struct nvdimm_bus_descriptor *nd_desc);
91 int (*clear_to_send)(struct nvdimm_bus_descriptor *nd_desc,
275 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in nvdimm_ctl() local
277 return nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, cmd_rc); in nvdimm_ctl()
/Linux-v5.4/tools/testing/nvdimm/test/
Dnfit.c1195 static int nfit_test_ctl(struct nvdimm_bus_descriptor *nd_desc, in nfit_test_ctl() argument
1199 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in nfit_test_ctl()
1353 if (!nd_desc) in nfit_test_ctl()
1384 if (!nd_desc || !test_bit(cmd, &nd_desc->cmd_mask)) in nfit_test_ctl()
2725 .nd_desc = { in nfit_ctl_test()
2778 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, in nfit_ctl_test()
2798 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
2817 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_CAP, in nfit_ctl_test()
2839 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
2861 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
[all …]
/Linux-v5.4/arch/powerpc/platforms/pseries/
Dpapr_scm.c248 int papr_scm_ndctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, in papr_scm_ndctl() argument