| /linux/drivers/nvdimm/ |
| H A D | core.c | 197 return nvdimm_bus->nd_desc; in to_nd_desc() 284 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in commands_show() local 286 for_each_set_bit(cmd, &nd_desc->cmd_mask, BITS_PER_LONG) in commands_show() 295 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_bus_provider() local 298 if (nd_desc->provider_name) in nvdimm_bus_provider() 299 return nd_desc->provider_name; in nvdimm_bus_provider() 334 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in wait_probe_show() local 337 if (nd_desc->flush_probe) { in wait_probe_show() 338 rc = nd_desc->flush_probe(nd_desc); in wait_probe_show() 363 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in capability_show() local [all …]
|
| H A D | bus.c | 59 return nvdimm_bus->nd_desc->module; in to_bus_provider() 218 struct nvdimm_bus_descriptor *nd_desc; in nvdimm_clear_poison() local 228 nd_desc = nvdimm_bus->nd_desc; in nvdimm_clear_poison() 233 if (!nd_desc->ndctl) in nvdimm_clear_poison() 240 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_CAP, &ars_cap, in nvdimm_clear_poison() 258 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_CLEAR_ERROR, &clear_err, in nvdimm_clear_poison() 334 struct nvdimm_bus_descriptor *nd_desc) in nvdimm_bus_register() argument 352 nvdimm_bus->nd_desc = nd_desc; in nvdimm_bus_register() 355 nvdimm_bus->dev.groups = nd_desc->attr_groups; in nvdimm_bus_register() 357 nvdimm_bus->dev.of_node = nd_desc->of_node; in nvdimm_bus_register() [all …]
|
| H A 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()
|
| H A 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() 527 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_firmware_visible() local 531 if (!nd_desc->fw_ops) in nvdimm_firmware_visible() 537 cap = nd_desc->fw_ops->capability(nd_desc); in nvdimm_firmware_visible()
|
| H A D | ramdax.c | 191 static int ramdax_ctl(struct nvdimm_bus_descriptor *nd_desc, in ramdax_ctl() argument 239 static struct nvdimm_bus_descriptor nd_desc; in ramdax_probe() local 245 nd_desc.provider_name = "ramdax"; in ramdax_probe() 246 nd_desc.module = THIS_MODULE; in ramdax_probe() 247 nd_desc.ndctl = ramdax_ctl; in ramdax_probe() 248 nvdimm_bus = nvdimm_bus_register(dev, &nd_desc); in ramdax_probe()
|
| H A D | nd-core.h | 20 struct nvdimm_bus_descriptor *nd_desc; member
|
| /linux/drivers/acpi/nfit/ |
| H A 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() 399 static int intel_bus_fwa_businfo(struct nvdimm_bus_descriptor *nd_desc, in intel_bus_fwa_businfo() argument 416 rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), in intel_bus_fwa_businfo() 424 struct nvdimm_bus_descriptor *nd_desc) in intel_bus_fwa_state() argument [all …]
|
| H A D | core.c | 94 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in to_acpi_dev() 98 if (!nd_desc->provider_name in to_acpi_dev() 99 || strcmp(nd_desc->provider_name, "ACPI.NFIT") != 0) in to_acpi_dev() 447 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, in acpi_nfit_ctl() 450 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in acpi_nfit_ctl() 495 cmd_mask = nd_desc->cmd_mask; in acpi_nfit_ctl() 499 !test_bit(family, &nd_desc->bus_family_mask)) in acpi_nfit_ctl() 1201 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in bus_dsm_mask_show() 1202 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in bus_dsm_mask_show() 92 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; to_acpi_dev() local 445 acpi_nfit_ctl(struct nvdimm_bus_descriptor * nd_desc,struct nvdimm * nvdimm,unsigned int cmd,void * buf,unsigned int buf_len,int * cmd_rc) acpi_nfit_ctl() argument 1199 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); bus_dsm_mask_show() local 1211 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); revision_show() local 1222 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); hw_error_scrub_show() local 1238 struct nvdimm_bus_descriptor *nd_desc; hw_error_scrub_store() local 1278 struct nvdimm_bus_descriptor *nd_desc; scrub_show() local 1310 struct nvdimm_bus_descriptor *nd_desc; scrub_store() local 1336 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); ars_supported() local 1788 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; acpi_nfit_add_dimm() local 1982 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; acpi_nfit_get_fw_ops() local 2127 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; acpi_nfit_init_dsms() local 2356 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; ars_get_cap() local 2376 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; ars_start() local 2405 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; ars_continue() local 2422 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; ars_get_status() local 3156 acpi_nfit_flush_probe(struct nvdimm_bus_descriptor * nd_desc) acpi_nfit_flush_probe() argument 3172 __acpi_nfit_clear_to_send(struct nvdimm_bus_descriptor * nd_desc,struct nvdimm * nvdimm,unsigned int cmd) __acpi_nfit_clear_to_send() argument 3198 acpi_nfit_clear_to_send(struct nvdimm_bus_descriptor * nd_desc,struct nvdimm * nvdimm,unsigned int cmd,void * buf) acpi_nfit_clear_to_send() argument 3261 struct nvdimm_bus_descriptor *nd_desc; acpi_nfit_desc_init() local [all...] |
| H A 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/tools/testing/cxl/test/ |
| H A D | mock.c | 141 struct nvdimm_bus_descriptor *nd_desc) in __wrap_acpi_pci_find_root() 147 nd_desc->provider_name = "cxl_test"; in __wrap_acpi_pci_find_root() 150 return nvdimm_bus_register(dev, nd_desc); 153 __wrap_nvdimm_bus_register(struct device * dev,struct nvdimm_bus_descriptor * nd_desc) __wrap_nvdimm_bus_register() argument
|
| /linux/tools/testing/nvdimm/test/ |
| H A D | nfit.c | 1353 static int nfit_test_ctl(struct nvdimm_bus_descriptor *nd_desc, in nfit_test_ctl() argument 1357 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in nfit_test_ctl() 1523 if (!nd_desc) in nfit_test_ctl() 1573 if (!nd_desc || !test_bit(cmd, &nd_desc->cmd_mask)) in nfit_test_ctl() 2913 .nd_desc = { in nfit_ctl_test() 2970 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, in nfit_ctl_test() 2990 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test() 3009 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_CAP, in nfit_ctl_test() 3031 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test() 3053 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test() [all …]
|
| H A D | ndtest.c | 244 static int ndtest_ctl(struct nvdimm_bus_descriptor *nd_desc, in ndtest_ctl() argument
|
| /linux/drivers/cxl/ |
| H A D | pmem.c | 303 static int cxl_pmem_ctl(struct nvdimm_bus_descriptor *nd_desc, in cxl_pmem_ctl() argument 355 cxl_nvb->nd_desc = (struct nvdimm_bus_descriptor) { in cxl_nvdimm_bridge_probe() 362 nvdimm_bus_register(&cxl_nvb->dev, &cxl_nvb->nd_desc); in cxl_nvdimm_bridge_probe()
|
| H A D | cxl.h | 503 struct nvdimm_bus_descriptor nd_desc; 487 struct nvdimm_bus_descriptor nd_desc; global() member
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | papr_scm.c | 1005 static int papr_scm_ndctl(struct nvdimm_bus_descriptor *nd_desc, in papr_scm_ndctl() 1004 papr_scm_ndctl(struct nvdimm_bus_descriptor * nd_desc,struct nvdimm * nvdimm,unsigned int cmd,void * buf,unsigned int buf_len,int * cmd_rc) papr_scm_ndctl() argument
|