/Linux-v5.10/drivers/nvdimm/ |
D | core.c | 199 return nvdimm_bus->nd_desc; in to_nd_desc() 318 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in commands_show() local 320 for_each_set_bit(cmd, &nd_desc->cmd_mask, BITS_PER_LONG) in commands_show() 329 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_bus_provider() local 332 if (nd_desc->provider_name) in nvdimm_bus_provider() 333 return nd_desc->provider_name; in nvdimm_bus_provider() 368 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in wait_probe_show() local 371 if (nd_desc->flush_probe) { in wait_probe_show() 372 rc = nd_desc->flush_probe(nd_desc); in wait_probe_show() 397 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in capability_show() local [all …]
|
D | e820.c | 38 static struct nvdimm_bus_descriptor nd_desc; in e820_pmem_probe() local 43 nd_desc.provider_name = "e820"; in e820_pmem_probe() 44 nd_desc.module = THIS_MODULE; in e820_pmem_probe() 45 nvdimm_bus = nvdimm_bus_register(dev, &nd_desc); in e820_pmem_probe()
|
D | bus.c | 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() [all …]
|
D | dimm_devs.c | 66 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() 539 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_firmware_visible() local 543 if (!nd_desc->fw_ops) in nvdimm_firmware_visible() 549 cap = nd_desc->fw_ops->capability(nd_desc); in nvdimm_firmware_visible()
|
D | virtio_pmem.c | 68 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()
|
D | virtio_pmem.h | 40 struct nvdimm_bus_descriptor nd_desc; member
|
D | nd-core.h | 20 struct nvdimm_bus_descriptor *nd_desc; member
|
/Linux-v5.10/drivers/acpi/nfit/ |
D | intel.c | 14 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in firmware_activate_noidle_show() local 15 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in firmware_activate_noidle_show() 24 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in firmware_activate_noidle_store() local 25 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in firmware_activate_noidle_store() 41 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in intel_fwa_supported() local 42 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in intel_fwa_supported() 45 if (!test_bit(NVDIMM_BUS_FAMILY_INTEL, &nd_desc->bus_family_mask)) in intel_fwa_supported() 435 static int intel_bus_fwa_businfo(struct nvdimm_bus_descriptor *nd_desc, in intel_bus_fwa_businfo() argument 453 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), in intel_bus_fwa_businfo() 461 struct nvdimm_bus_descriptor *nd_desc) in intel_bus_fwa_state() argument [all …]
|
D | core.c | 90 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in to_acpi_dev() local 96 if (!nd_desc->provider_name in to_acpi_dev() 97 || strcmp(nd_desc->provider_name, "ACPI.NFIT") != 0) in to_acpi_dev() 435 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, in acpi_nfit_ctl() argument 438 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in acpi_nfit_ctl() 478 cmd_mask = nd_desc->cmd_mask; in acpi_nfit_ctl() 481 if (!test_bit(family, &nd_desc->bus_family_mask)) in acpi_nfit_ctl() 1246 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in bus_dsm_mask_show() local 1247 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in bus_dsm_mask_show() 1258 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in revision_show() local [all …]
|
D | nfit.h | 242 struct nvdimm_bus_descriptor nd_desc; member 341 struct nvdimm_bus_descriptor *nd_desc) in to_acpi_desc() argument 343 return container_of(nd_desc, struct acpi_nfit_desc, nd_desc); in to_acpi_desc() 375 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm,
|
/Linux-v5.10/include/linux/ |
D | libnvdimm.h | 72 typedef int (*ndctl_fn)(struct nvdimm_bus_descriptor *nd_desc, 86 int (*flush_probe)(struct nvdimm_bus_descriptor *nd_desc); 87 int (*clear_to_send)(struct nvdimm_bus_descriptor *nd_desc, 235 (struct nvdimm_bus_descriptor *nd_desc); 237 (struct nvdimm_bus_descriptor *nd_desc); 238 int (*activate)(struct nvdimm_bus_descriptor *nd_desc); 316 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in nvdimm_ctl() local 318 return nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, cmd_rc); in nvdimm_ctl()
|
/Linux-v5.10/tools/testing/nvdimm/test/ |
D | nfit.c | 1351 static int nfit_test_ctl(struct nvdimm_bus_descriptor *nd_desc, in nfit_test_ctl() argument 1355 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in nfit_test_ctl() 1521 if (!nd_desc) in nfit_test_ctl() 1571 if (!nd_desc || !test_bit(cmd, &nd_desc->cmd_mask)) in nfit_test_ctl() 2923 .nd_desc = { in nfit_ctl_test() 2980 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, in nfit_ctl_test() 3000 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test() 3019 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_CAP, in nfit_ctl_test() 3041 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test() 3063 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test() [all …]
|
/Linux-v5.10/arch/powerpc/platforms/pseries/ |
D | papr_scm.c | 731 static int papr_scm_ndctl(struct nvdimm_bus_descriptor *nd_desc, in papr_scm_ndctl() argument
|