nd_desc 248 arch/powerpc/platforms/pseries/papr_scm.c int papr_scm_ndctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, nd_desc 78 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; nd_desc 84 drivers/acpi/nfit/core.c if (!nd_desc->provider_name nd_desc 85 drivers/acpi/nfit/core.c || strcmp(nd_desc->provider_name, "ACPI.NFIT") != 0) nd_desc 438 drivers/acpi/nfit/core.c int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, nd_desc 441 drivers/acpi/nfit/core.c struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); nd_desc 480 drivers/acpi/nfit/core.c cmd_mask = nd_desc->cmd_mask; nd_desc 481 drivers/acpi/nfit/core.c dsm_mask = nd_desc->bus_dsm_mask; nd_desc 1240 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); nd_desc 1242 drivers/acpi/nfit/core.c return sprintf(buf, "%#lx\n", nd_desc->bus_dsm_mask); nd_desc 1251 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); nd_desc 1252 drivers/acpi/nfit/core.c struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); nd_desc 1262 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); nd_desc 1263 drivers/acpi/nfit/core.c struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); nd_desc 1278 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc; nd_desc 1287 drivers/acpi/nfit/core.c nd_desc = dev_get_drvdata(dev); nd_desc 1288 drivers/acpi/nfit/core.c if (nd_desc) { nd_desc 1289 drivers/acpi/nfit/core.c struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); nd_desc 1318 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc; nd_desc 1324 drivers/acpi/nfit/core.c nd_desc = dev_get_drvdata(dev); nd_desc 1325 drivers/acpi/nfit/core.c if (!nd_desc) { nd_desc 1329 drivers/acpi/nfit/core.c acpi_desc = to_acpi_desc(nd_desc); nd_desc 1350 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc; nd_desc 1361 drivers/acpi/nfit/core.c nd_desc = dev_get_drvdata(dev); nd_desc 1362 drivers/acpi/nfit/core.c if (nd_desc) { nd_desc 1363 drivers/acpi/nfit/core.c struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); nd_desc 1376 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); nd_desc 1380 drivers/acpi/nfit/core.c return (nd_desc->cmd_mask & mask) == mask; nd_desc 2149 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; nd_desc 2155 drivers/acpi/nfit/core.c nd_desc->cmd_mask = acpi_desc->bus_cmd_force_en; nd_desc 2156 drivers/acpi/nfit/core.c nd_desc->bus_dsm_mask = acpi_desc->bus_nfit_cmd_force_en; nd_desc 2163 drivers/acpi/nfit/core.c set_bit(i, &nd_desc->cmd_mask); nd_desc 2164 drivers/acpi/nfit/core.c set_bit(ND_CMD_CALL, &nd_desc->cmd_mask); nd_desc 2177 drivers/acpi/nfit/core.c set_bit(i, &nd_desc->bus_dsm_mask); nd_desc 2526 drivers/acpi/nfit/core.c static int acpi_nfit_blk_get_flags(struct nvdimm_bus_descriptor *nd_desc, nd_desc 2533 drivers/acpi/nfit/core.c rc = nd_desc->ndctl(nd_desc, nvdimm, ND_CMD_DIMM_FLAGS, &flags, nd_desc 2551 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); nd_desc 2620 drivers/acpi/nfit/core.c rc = acpi_nfit_blk_get_flags(nd_desc, nvdimm, nfit_blk); nd_desc 2649 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; nd_desc 2655 drivers/acpi/nfit/core.c rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_CAP, cmd, nd_desc 2669 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; nd_desc 2683 drivers/acpi/nfit/core.c rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_START, &ars_start, nd_desc 2698 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; nd_desc 2706 drivers/acpi/nfit/core.c rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_START, &ars_start, nd_desc 2715 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; nd_desc 2719 drivers/acpi/nfit/core.c rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_STATUS, ars_status, nd_desc 3384 drivers/acpi/nfit/core.c &acpi_desc->nd_desc); nd_desc 3455 drivers/acpi/nfit/core.c static int acpi_nfit_flush_probe(struct nvdimm_bus_descriptor *nd_desc) nd_desc 3457 drivers/acpi/nfit/core.c struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); nd_desc 3471 drivers/acpi/nfit/core.c static int __acpi_nfit_clear_to_send(struct nvdimm_bus_descriptor *nd_desc, nd_desc 3474 drivers/acpi/nfit/core.c struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); nd_desc 3494 drivers/acpi/nfit/core.c static int acpi_nfit_clear_to_send(struct nvdimm_bus_descriptor *nd_desc, nd_desc 3508 drivers/acpi/nfit/core.c return __acpi_nfit_clear_to_send(nd_desc, nvdimm, cmd); nd_desc 3552 drivers/acpi/nfit/core.c struct nvdimm_bus_descriptor *nd_desc; nd_desc 3557 drivers/acpi/nfit/core.c nd_desc = &acpi_desc->nd_desc; nd_desc 3558 drivers/acpi/nfit/core.c nd_desc->provider_name = "ACPI.NFIT"; nd_desc 3559 drivers/acpi/nfit/core.c nd_desc->module = THIS_MODULE; nd_desc 3560 drivers/acpi/nfit/core.c nd_desc->ndctl = acpi_nfit_ctl; nd_desc 3561 drivers/acpi/nfit/core.c nd_desc->flush_probe = acpi_nfit_flush_probe; nd_desc 3562 drivers/acpi/nfit/core.c nd_desc->clear_to_send = acpi_nfit_clear_to_send; nd_desc 3563 drivers/acpi/nfit/core.c nd_desc->attr_groups = acpi_nfit_attribute_groups; nd_desc 218 drivers/acpi/nfit/nfit.h struct nvdimm_bus_descriptor nd_desc; nd_desc 311 drivers/acpi/nfit/nfit.h struct nvdimm_bus_descriptor *nd_desc) nd_desc 313 drivers/acpi/nfit/nfit.h return container_of(nd_desc, struct acpi_nfit_desc, nd_desc); nd_desc 345 drivers/acpi/nfit/nfit.h int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, nd_desc 60 drivers/nvdimm/bus.c return nvdimm_bus->nd_desc->module; nd_desc 229 drivers/nvdimm/bus.c struct nvdimm_bus_descriptor *nd_desc; nd_desc 239 drivers/nvdimm/bus.c nd_desc = nvdimm_bus->nd_desc; nd_desc 244 drivers/nvdimm/bus.c if (!nd_desc->ndctl) nd_desc 251 drivers/nvdimm/bus.c rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_CAP, &ars_cap, nd_desc 269 drivers/nvdimm/bus.c rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_CLEAR_ERROR, &clear_err, nd_desc 338 drivers/nvdimm/bus.c struct nvdimm_bus_descriptor *nd_desc) nd_desc 356 drivers/nvdimm/bus.c nvdimm_bus->nd_desc = nd_desc; nd_desc 359 drivers/nvdimm/bus.c nvdimm_bus->dev.groups = nd_desc->attr_groups; nd_desc 361 drivers/nvdimm/bus.c nvdimm_bus->dev.of_node = nd_desc->of_node; nd_desc 462 drivers/nvdimm/bus.c dev_set_drvdata(dev, nvdimm_bus->nd_desc); nd_desc 953 drivers/nvdimm/bus.c struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nd_desc 956 drivers/nvdimm/bus.c if (nd_desc->clear_to_send) { nd_desc 957 drivers/nvdimm/bus.c int rc = nd_desc->clear_to_send(nd_desc, nvdimm, cmd, data); nd_desc 981 drivers/nvdimm/bus.c struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nd_desc 1004 drivers/nvdimm/bus.c cmd_mask = nd_desc->cmd_mask; nd_desc 1122 drivers/nvdimm/bus.c rc = nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, &cmd_rc); nd_desc 198 drivers/nvdimm/core.c return nvdimm_bus->nd_desc; nd_desc 317 drivers/nvdimm/core.c struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nd_desc 319 drivers/nvdimm/core.c for_each_set_bit(cmd, &nd_desc->cmd_mask, BITS_PER_LONG) nd_desc 328 drivers/nvdimm/core.c struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nd_desc 331 drivers/nvdimm/core.c if (nd_desc->provider_name) nd_desc 332 drivers/nvdimm/core.c return nd_desc->provider_name; nd_desc 367 drivers/nvdimm/core.c struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nd_desc 370 drivers/nvdimm/core.c if (nd_desc->flush_probe) { nd_desc 371 drivers/nvdimm/core.c rc = nd_desc->flush_probe(nd_desc); nd_desc 66 drivers/nvdimm/dimm_devs.c struct nvdimm_bus_descriptor *nd_desc; nd_desc 77 drivers/nvdimm/dimm_devs.c nd_desc = nvdimm_bus->nd_desc; nd_desc 78 drivers/nvdimm/dimm_devs.c rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), nd_desc 89 drivers/nvdimm/dimm_devs.c struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nd_desc 114 drivers/nvdimm/dimm_devs.c rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), nd_desc 138 drivers/nvdimm/dimm_devs.c struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nd_desc 162 drivers/nvdimm/dimm_devs.c rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), nd_desc 60 drivers/nvdimm/e820.c static struct nvdimm_bus_descriptor nd_desc; nd_desc 65 drivers/nvdimm/e820.c nd_desc.attr_groups = e820_pmem_attribute_groups; nd_desc 66 drivers/nvdimm/e820.c nd_desc.provider_name = "e820"; nd_desc 67 drivers/nvdimm/e820.c nd_desc.module = THIS_MODULE; nd_desc 68 drivers/nvdimm/e820.c nvdimm_bus = nvdimm_bus_register(dev, &nd_desc); nd_desc 20 drivers/nvdimm/nd-core.h struct nvdimm_bus_descriptor *nd_desc; nd_desc 68 drivers/nvdimm/virtio_pmem.c vpmem->nd_desc.provider_name = "virtio-pmem"; nd_desc 69 drivers/nvdimm/virtio_pmem.c vpmem->nd_desc.module = THIS_MODULE; nd_desc 72 drivers/nvdimm/virtio_pmem.c &vpmem->nd_desc); nd_desc 40 drivers/nvdimm/virtio_pmem.h struct nvdimm_bus_descriptor nd_desc; nd_desc 77 include/linux/libnvdimm.h typedef int (*ndctl_fn)(struct nvdimm_bus_descriptor *nd_desc, nd_desc 90 include/linux/libnvdimm.h int (*flush_probe)(struct nvdimm_bus_descriptor *nd_desc); nd_desc 91 include/linux/libnvdimm.h int (*clear_to_send)(struct nvdimm_bus_descriptor *nd_desc, nd_desc 275 include/linux/libnvdimm.h struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); nd_desc 277 include/linux/libnvdimm.h return nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, cmd_rc); nd_desc 1195 tools/testing/nvdimm/test/nfit.c static int nfit_test_ctl(struct nvdimm_bus_descriptor *nd_desc, nd_desc 1199 tools/testing/nvdimm/test/nfit.c struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); nd_desc 1353 tools/testing/nvdimm/test/nfit.c if (!nd_desc) nd_desc 1384 tools/testing/nvdimm/test/nfit.c if (!nd_desc || !test_bit(cmd, &nd_desc->cmd_mask)) nd_desc 2725 tools/testing/nvdimm/test/nfit.c .nd_desc = { nd_desc 2778 tools/testing/nvdimm/test/nfit.c rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, nd_desc 2798 tools/testing/nvdimm/test/nfit.c rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, nd_desc 2817 tools/testing/nvdimm/test/nfit.c rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_CAP, nd_desc 2839 tools/testing/nvdimm/test/nfit.c rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, nd_desc 2861 tools/testing/nvdimm/test/nfit.c rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, nd_desc 2879 tools/testing/nvdimm/test/nfit.c rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, nd_desc 2897 tools/testing/nvdimm/test/nfit.c rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_CLEAR_ERROR, nd_desc 2910 tools/testing/nvdimm/test/nfit.c struct nvdimm_bus_descriptor *nd_desc; nd_desc 2984 tools/testing/nvdimm/test/nfit.c nd_desc = &acpi_desc->nd_desc; nd_desc 2985 tools/testing/nvdimm/test/nfit.c nd_desc->provider_name = NULL; nd_desc 2986 tools/testing/nvdimm/test/nfit.c nd_desc->module = THIS_MODULE; nd_desc 2987 tools/testing/nvdimm/test/nfit.c nd_desc->ndctl = nfit_test_ctl;