/linux-6.12.1/drivers/nvdimm/ |
D | core.c | 198 return nvdimm_bus->nd_desc; in to_nd_desc() 285 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in commands_show() local 287 for_each_set_bit(cmd, &nd_desc->cmd_mask, BITS_PER_LONG) in commands_show() 296 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_bus_provider() local 299 if (nd_desc->provider_name) in nvdimm_bus_provider() 300 return nd_desc->provider_name; in nvdimm_bus_provider() 335 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in wait_probe_show() local 338 if (nd_desc->flush_probe) { in wait_probe_show() 339 rc = nd_desc->flush_probe(nd_desc); in wait_probe_show() 364 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in capability_show() local [all …]
|
D | e820.c | 37 static struct nvdimm_bus_descriptor nd_desc; in e820_pmem_probe() local 42 nd_desc.provider_name = "e820"; in e820_pmem_probe() 43 nd_desc.module = THIS_MODULE; in e820_pmem_probe() 44 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() 221 struct nvdimm_bus_descriptor *nd_desc; in nvdimm_clear_poison() local 231 nd_desc = nvdimm_bus->nd_desc; in nvdimm_clear_poison() 236 if (!nd_desc->ndctl) in nvdimm_clear_poison() 243 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_CAP, &ars_cap, in nvdimm_clear_poison() 261 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_CLEAR_ERROR, &clear_err, in nvdimm_clear_poison() 337 struct nvdimm_bus_descriptor *nd_desc) in nvdimm_bus_register() argument 355 nvdimm_bus->nd_desc = nd_desc; in nvdimm_bus_register() 358 nvdimm_bus->dev.groups = nd_desc->attr_groups; in nvdimm_bus_register() 360 nvdimm_bus->dev.of_node = nd_desc->of_node; in nvdimm_bus_register() [all …]
|
D | dimm_devs.c | 64 struct nvdimm_bus_descriptor *nd_desc; in nvdimm_init_nsarea() local 75 nd_desc = nvdimm_bus->nd_desc; in nvdimm_init_nsarea() 76 rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_init_nsarea() 87 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_get_config_data() local 112 rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_get_config_data() 136 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_set_config_data() local 160 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 | 88 vpmem->nd_desc.provider_name = "virtio-pmem"; in virtio_pmem_probe() 89 vpmem->nd_desc.module = THIS_MODULE; in virtio_pmem_probe() 92 &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-6.12.1/drivers/acpi/nfit/ |
D | intel.c | 15 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in firmware_activate_noidle_show() local 16 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in firmware_activate_noidle_show() 25 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in firmware_activate_noidle_store() local 26 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in firmware_activate_noidle_store() 42 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in intel_fwa_supported() local 43 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in intel_fwa_supported() 46 if (!test_bit(NVDIMM_BUS_FAMILY_INTEL, &nd_desc->bus_family_mask)) in intel_fwa_supported() 407 static int intel_bus_fwa_businfo(struct nvdimm_bus_descriptor *nd_desc, in intel_bus_fwa_businfo() argument 425 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), in intel_bus_fwa_businfo() 433 struct nvdimm_bus_descriptor *nd_desc) in intel_bus_fwa_state() argument [all …]
|
D | core.c | 91 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in to_acpi_dev() local 97 if (!nd_desc->provider_name in to_acpi_dev() 98 || strcmp(nd_desc->provider_name, "ACPI.NFIT") != 0) in to_acpi_dev() 437 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, in acpi_nfit_ctl() argument 440 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() 484 !test_bit(family, &nd_desc->bus_family_mask)) in acpi_nfit_ctl() 1186 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in bus_dsm_mask_show() local 1187 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in bus_dsm_mask_show() 1198 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in revision_show() local [all …]
|
D | nfit.h | 238 struct nvdimm_bus_descriptor nd_desc; member 335 struct nvdimm_bus_descriptor *nd_desc) in to_acpi_desc() argument 337 return container_of(nd_desc, struct acpi_nfit_desc, nd_desc); in to_acpi_desc() 345 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm,
|
/linux-6.12.1/include/linux/ |
D | libnvdimm.h | 79 typedef int (*ndctl_fn)(struct nvdimm_bus_descriptor *nd_desc, 93 int (*flush_probe)(struct nvdimm_bus_descriptor *nd_desc); 94 int (*clear_to_send)(struct nvdimm_bus_descriptor *nd_desc, 229 (struct nvdimm_bus_descriptor *nd_desc); 231 (struct nvdimm_bus_descriptor *nd_desc); 232 int (*activate)(struct nvdimm_bus_descriptor *nd_desc); 307 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in nvdimm_ctl() local 309 return nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, cmd_rc); in nvdimm_ctl()
|
/linux-6.12.1/tools/testing/cxl/test/ |
D | mock.c | 121 struct nvdimm_bus_descriptor *nd_desc) in __wrap_nvdimm_bus_register() argument 127 nd_desc->provider_name = "cxl_test"; in __wrap_nvdimm_bus_register() 130 return nvdimm_bus_register(dev, nd_desc); in __wrap_nvdimm_bus_register()
|
/linux-6.12.1/tools/testing/nvdimm/test/ |
D | nfit.c | 1348 static int nfit_test_ctl(struct nvdimm_bus_descriptor *nd_desc, in nfit_test_ctl() argument 1352 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in nfit_test_ctl() 1518 if (!nd_desc) in nfit_test_ctl() 1568 if (!nd_desc || !test_bit(cmd, &nd_desc->cmd_mask)) in nfit_test_ctl() 2908 .nd_desc = { in nfit_ctl_test() 2965 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, in nfit_ctl_test() 2985 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test() 3004 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_CAP, in nfit_ctl_test() 3026 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test() 3048 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test() [all …]
|
D | ndtest.c | 244 static int ndtest_ctl(struct nvdimm_bus_descriptor *nd_desc, in ndtest_ctl() argument
|
/linux-6.12.1/drivers/cxl/ |
D | pmem.c | 217 static int cxl_pmem_ctl(struct nvdimm_bus_descriptor *nd_desc, in cxl_pmem_ctl() argument 267 cxl_nvb->nd_desc = (struct nvdimm_bus_descriptor) { in cxl_nvdimm_bridge_probe() 274 nvdimm_bus_register(&cxl_nvb->dev, &cxl_nvb->nd_desc); in cxl_nvdimm_bridge_probe()
|
D | cxl.h | 547 struct nvdimm_bus_descriptor nd_desc; member
|
/linux-6.12.1/arch/powerpc/platforms/pseries/ |
D | papr_scm.c | 1003 static int papr_scm_ndctl(struct nvdimm_bus_descriptor *nd_desc, in papr_scm_ndctl() argument
|