/Linux-v4.19/drivers/nvdimm/ |
D | e820.c | 58 static struct nvdimm_bus_descriptor nd_desc; in e820_pmem_probe() local 63 nd_desc.attr_groups = e820_pmem_attribute_groups; in e820_pmem_probe() 64 nd_desc.provider_name = "e820"; in e820_pmem_probe() 65 nd_desc.module = THIS_MODULE; in e820_pmem_probe() 66 nvdimm_bus = nvdimm_bus_register(dev, &nd_desc); in e820_pmem_probe()
|
D | core.c | 206 return nvdimm_bus->nd_desc; in to_nd_desc() 325 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in commands_show() local 327 for_each_set_bit(cmd, &nd_desc->cmd_mask, BITS_PER_LONG) in commands_show() 336 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_bus_provider() local 339 if (nd_desc->provider_name) in nvdimm_bus_provider() 340 return nd_desc->provider_name; in nvdimm_bus_provider() 375 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in wait_probe_show() local 378 if (nd_desc->flush_probe) { in wait_probe_show() 379 rc = nd_desc->flush_probe(nd_desc); in wait_probe_show()
|
D | bus.c | 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() [all …]
|
D | dimm_devs.c | 69 struct nvdimm_bus_descriptor *nd_desc; in nvdimm_init_nsarea() local 80 nd_desc = nvdimm_bus->nd_desc; in nvdimm_init_nsarea() 81 rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_init_nsarea() 93 struct nvdimm_bus_descriptor *nd_desc; in nvdimm_init_config_data() local 119 nd_desc = nvdimm_bus->nd_desc; in nvdimm_init_config_data() 125 rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_init_config_data() 149 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_set_config_data() local 177 rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_set_config_data()
|
D | nd-core.h | 27 struct nvdimm_bus_descriptor *nd_desc; member
|
/Linux-v4.19/drivers/acpi/nfit/ |
D | core.c | 80 struct nvdimm_bus_descriptor *nd_desc) in to_acpi_nfit_desc() argument 82 return container_of(nd_desc, struct acpi_nfit_desc, nd_desc); in to_acpi_nfit_desc() 87 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in to_acpi_dev() local 93 if (!nd_desc->provider_name in to_acpi_dev() 94 || strcmp(nd_desc->provider_name, "ACPI.NFIT") != 0) in to_acpi_dev() 394 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, in acpi_nfit_ctl() argument 397 struct acpi_nfit_desc *acpi_desc = to_acpi_nfit_desc(nd_desc); in acpi_nfit_ctl() 442 cmd_mask = nd_desc->cmd_mask; in acpi_nfit_ctl() 445 dsm_mask = nd_desc->bus_dsm_mask; in acpi_nfit_ctl() 1192 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in bus_dsm_mask_show() local [all …]
|
D | nfit.h | 187 struct nvdimm_bus_descriptor nd_desc; member 280 struct nvdimm_bus_descriptor *nd_desc) in to_acpi_desc() argument 282 return container_of(nd_desc, struct acpi_nfit_desc, nd_desc); in to_acpi_desc() 290 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm,
|
/Linux-v4.19/include/linux/ |
D | libnvdimm.h | 75 typedef int (*ndctl_fn)(struct nvdimm_bus_descriptor *nd_desc, 88 int (*flush_probe)(struct nvdimm_bus_descriptor *nd_desc); 89 int (*clear_to_send)(struct nvdimm_bus_descriptor *nd_desc,
|
/Linux-v4.19/tools/testing/nvdimm/test/ |
D | nfit.c | 947 static int nfit_test_ctl(struct nvdimm_bus_descriptor *nd_desc, in nfit_test_ctl() argument 951 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in nfit_test_ctl() 1065 if (!nd_desc) in nfit_test_ctl() 1096 if (!nd_desc || !test_bit(cmd, &nd_desc->cmd_mask)) in nfit_test_ctl() 2387 .nd_desc = { in nfit_ctl_test() 2440 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, in nfit_ctl_test() 2460 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test() 2479 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_CAP, in nfit_ctl_test() 2501 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test() 2523 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test() [all …]
|