Home
last modified time | relevance | path

Searched refs:nd_desc (Results 1 – 9 of 9) sorted by relevance

/linux-4.4.14/drivers/nvdimm/
Dcore.c97 return nvdimm_bus->nd_desc; in to_nd_desc()
251 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in commands_show() local
253 for_each_set_bit(cmd, &nd_desc->dsm_mask, BITS_PER_LONG) in commands_show()
262 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_bus_provider() local
265 if (nd_desc->provider_name) in nvdimm_bus_provider()
266 return nd_desc->provider_name; in nvdimm_bus_provider()
319 struct nvdimm_bus_descriptor *nd_desc, struct module *module) in __nvdimm_bus_register() argument
335 nvdimm_bus->nd_desc = nd_desc; in __nvdimm_bus_register()
339 nvdimm_bus->dev.groups = nd_desc->attr_groups; in __nvdimm_bus_register()
Ddimm_devs.c66 struct nvdimm_bus_descriptor *nd_desc; in nvdimm_init_nsarea() local
76 nd_desc = nvdimm_bus->nd_desc; in nvdimm_init_nsarea()
77 return nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_init_nsarea()
85 struct nvdimm_bus_descriptor *nd_desc; in nvdimm_init_config_data() local
115 nd_desc = nvdimm_bus->nd_desc; in nvdimm_init_config_data()
121 rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_init_config_data()
143 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_set_config_data() local
173 rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_set_config_data()
De820.c43 static struct nvdimm_bus_descriptor nd_desc; in e820_pmem_probe() local
48 nd_desc.attr_groups = e820_pmem_attribute_groups; in e820_pmem_probe()
49 nd_desc.provider_name = "e820"; in e820_pmem_probe()
50 nvdimm_bus = nvdimm_bus_register(dev, &nd_desc); in e820_pmem_probe()
Dbus.c485 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in __nd_ioctl() local
506 dsm_mask = nd_desc->dsm_mask; in __nd_ioctl()
590 rc = nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len); in __nd_ioctl()
Dnd-core.h27 struct nvdimm_bus_descriptor *nd_desc; member
/linux-4.4.14/drivers/acpi/
Dnfit.h98 struct nvdimm_bus_descriptor nd_desc; member
178 struct nvdimm_bus_descriptor *nd_desc) in to_acpi_desc() argument
180 return container_of(nd_desc, struct acpi_nfit_desc, nd_desc); in to_acpi_desc()
Dnfit.c54 struct nvdimm_bus_descriptor *nd_desc) in to_acpi_nfit_desc() argument
56 return container_of(nd_desc, struct acpi_nfit_desc, nd_desc); in to_acpi_nfit_desc()
61 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; in to_acpi_dev() local
67 if (!nd_desc->provider_name in to_acpi_dev()
68 || strcmp(nd_desc->provider_name, "ACPI.NFIT") != 0) in to_acpi_dev()
74 static int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, in acpi_nfit_ctl() argument
78 struct acpi_nfit_desc *acpi_desc = to_acpi_nfit_desc(nd_desc); in acpi_nfit_ctl()
105 dsm_mask = nd_desc->dsm_mask; in acpi_nfit_ctl()
660 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in revision_show() local
661 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in revision_show()
[all …]
/linux-4.4.14/tools/testing/nvdimm/test/
Dnfit.c256 static int nfit_test_ctl(struct nvdimm_bus_descriptor *nd_desc, in nfit_test_ctl() argument
260 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in nfit_test_ctl()
294 if (!nd_desc || !test_bit(cmd, &nd_desc->dsm_mask)) in nfit_test_ctl()
491 struct nvdimm_bus_descriptor *nd_desc; in nfit_test0_setup() local
1080 nd_desc = &acpi_desc->nd_desc; in nfit_test0_setup()
1081 nd_desc->ndctl = nfit_test_ctl; in nfit_test0_setup()
1164 struct nvdimm_bus_descriptor *nd_desc; in nfit_test_probe() local
1223 nd_desc = &acpi_desc->nd_desc; in nfit_test_probe()
1224 nd_desc->attr_groups = acpi_nfit_attribute_groups; in nfit_test_probe()
1225 acpi_desc->nvdimm_bus = nvdimm_bus_register(&pdev->dev, nd_desc); in nfit_test_probe()
/linux-4.4.14/include/linux/
Dlibnvdimm.h50 typedef int (*ndctl_fn)(struct nvdimm_bus_descriptor *nd_desc,