Home
last modified time | relevance | path

Searched refs:nd_desc (Results 1 - 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/nvdimm/
H A Dcore.c199 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
397 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; capability_show() local
421 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; activate_show() local
450 struct nvdimm_bus_descriptor *nd_desc = data; exec_firmware_activate() local
459 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; activate_store() local
503 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nvdimm_bus_firmware_visible() local
[all...]
H A De820.c38 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()
H A Dbus.c60 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()
342 nvdimm_bus_register(struct device *parent, struct nvdimm_bus_descriptor *nd_desc) nvdimm_bus_register() argument
982 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nd_cmd_clear_to_send() local
1010 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; __nd_ioctl() local
[all...]
H A Ddimm_devs.c66 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 in nvdimm_set_config_data() local
551 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nvdimm_firmware_visible() local
[all...]
H A Dvirtio_pmem.c68 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()
H A Dvirtio_pmem.h40 struct nvdimm_bus_descriptor nd_desc; member
/kernel/linux/linux-6.6/drivers/nvdimm/
H A Dcore.c199 return nvdimm_bus->nd_desc; in to_nd_desc()
286 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in commands_show() local
288 for_each_set_bit(cmd, &nd_desc->cmd_mask, BITS_PER_LONG) in commands_show()
297 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_bus_provider() local
300 if (nd_desc->provider_name) in nvdimm_bus_provider()
301 return nd_desc->provider_name; in nvdimm_bus_provider()
336 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in wait_probe_show() local
365 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; capability_show() local
389 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; activate_show() local
418 struct nvdimm_bus_descriptor *nd_desc = data; exec_firmware_activate() local
427 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; activate_store() local
471 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nvdimm_bus_firmware_visible() local
[all...]
H A De820.c38 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()
H A Dbus.c57 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()
333 nvdimm_bus_register(struct device *parent, struct nvdimm_bus_descriptor *nd_desc) nvdimm_bus_register() argument
998 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nd_cmd_clear_to_send() local
1026 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; __nd_ioctl() local
[all...]
H A Ddimm_devs.c62 struct nvdimm_bus_descriptor *nd_desc; in nvdimm_init_nsarea() local
73 nd_desc = nvdimm_bus->nd_desc; in nvdimm_init_nsarea()
74 rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_init_nsarea()
85 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_get_config_data() local
110 rc = nd_desc->ndctl(nd_desc, to_nvdimm(ndd->dev), in nvdimm_get_config_data()
134 struct nvdimm_bus_descriptor *nd_desc in nvdimm_set_config_data() local
537 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; nvdimm_firmware_visible() local
[all...]
H A Dvirtio_pmem.c67 vpmem->nd_desc.provider_name = "virtio-pmem"; in virtio_pmem_probe()
68 vpmem->nd_desc.module = THIS_MODULE; in virtio_pmem_probe()
71 &vpmem->nd_desc); in virtio_pmem_probe()
H A Dvirtio_pmem.h40 struct nvdimm_bus_descriptor nd_desc; member
H A Dnd-core.h20 struct nvdimm_bus_descriptor *nd_desc; member
/kernel/linux/linux-5.10/drivers/acpi/nfit/
H A Dintel.c14 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, NUL in intel_bus_fwa_businfo()
460 intel_bus_fwa_state( struct nvdimm_bus_descriptor *nd_desc) intel_bus_fwa_state() argument
532 intel_bus_fwa_capability( struct nvdimm_bus_descriptor *nd_desc) intel_bus_fwa_capability() argument
546 intel_bus_fwa_activate(struct nvdimm_bus_descriptor *nd_desc) intel_bus_fwa_activate() argument
[all...]
H A Dcore.c91 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()
436 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, in acpi_nfit_ctl() argument
439 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in acpi_nfit_ctl()
479 cmd_mask = nd_desc->cmd_mask; in acpi_nfit_ctl()
483 !test_bit(family, &nd_desc->bus_family_mask)) in acpi_nfit_ctl()
1251 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in bus_dsm_mask_show() local
1252 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in bus_dsm_mask_show()
1263 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); revision_show() local
1274 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); hw_error_scrub_show() local
1290 struct nvdimm_bus_descriptor *nd_desc; hw_error_scrub_store() local
1330 struct nvdimm_bus_descriptor *nd_desc; scrub_show() local
1362 struct nvdimm_bus_descriptor *nd_desc; scrub_store() local
1388 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); ars_supported() local
1843 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; acpi_nfit_add_dimm() local
2037 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; acpi_nfit_get_fw_ops() local
2191 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; acpi_nfit_init_dsms() local
2587 acpi_nfit_blk_get_flags(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, struct nfit_blk *nfit_blk) acpi_nfit_blk_get_flags() argument
2612 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); acpi_nfit_blk_region_enable() local
2710 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; ars_get_cap() local
2730 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; ars_start() local
2759 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; ars_continue() local
2776 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; ars_get_status() local
3538 acpi_nfit_flush_probe(struct nvdimm_bus_descriptor *nd_desc) acpi_nfit_flush_probe() argument
3554 __acpi_nfit_clear_to_send(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, unsigned int cmd) __acpi_nfit_clear_to_send() argument
3580 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
3643 struct nvdimm_bus_descriptor *nd_desc; acpi_nfit_desc_init() local
[all...]
H A Dnfit.h242 struct nvdimm_bus_descriptor nd_desc; member
341 struct nvdimm_bus_descriptor *nd_desc) in to_acpi_desc()
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,
340 to_acpi_desc( struct nvdimm_bus_descriptor *nd_desc) to_acpi_desc() argument
/kernel/linux/linux-6.6/drivers/acpi/nfit/
H A Dintel.c15 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, NUL in intel_bus_fwa_businfo()
432 intel_bus_fwa_state( struct nvdimm_bus_descriptor *nd_desc) intel_bus_fwa_state() argument
504 intel_bus_fwa_capability( struct nvdimm_bus_descriptor *nd_desc) intel_bus_fwa_capability() argument
518 intel_bus_fwa_activate(struct nvdimm_bus_descriptor *nd_desc) intel_bus_fwa_activate() argument
[all...]
H A Dcore.c91 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); revision_show() local
1209 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); hw_error_scrub_show() local
1225 struct nvdimm_bus_descriptor *nd_desc; hw_error_scrub_store() local
1265 struct nvdimm_bus_descriptor *nd_desc; scrub_show() local
1297 struct nvdimm_bus_descriptor *nd_desc; scrub_store() local
1323 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); ars_supported() local
1776 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; acpi_nfit_add_dimm() local
1970 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; acpi_nfit_get_fw_ops() local
2115 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; acpi_nfit_init_dsms() local
2349 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; ars_get_cap() local
2369 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; ars_start() local
2398 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; ars_continue() local
2415 struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; ars_get_status() local
3149 acpi_nfit_flush_probe(struct nvdimm_bus_descriptor *nd_desc) acpi_nfit_flush_probe() argument
3165 __acpi_nfit_clear_to_send(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, unsigned int cmd) __acpi_nfit_clear_to_send() argument
3191 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
3254 struct nvdimm_bus_descriptor *nd_desc; acpi_nfit_desc_init() local
[all...]
H A Dnfit.h238 struct nvdimm_bus_descriptor nd_desc; member
335 struct nvdimm_bus_descriptor *nd_desc) in to_acpi_desc()
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,
334 to_acpi_desc( struct nvdimm_bus_descriptor *nd_desc) to_acpi_desc() argument
/kernel/linux/linux-5.10/include/linux/
H A Dlibnvdimm.h72 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()
/kernel/linux/linux-6.6/include/linux/
H A Dlibnvdimm.h79 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()
/kernel/linux/linux-6.6/tools/testing/cxl/test/
H A Dmock.c121 struct nvdimm_bus_descriptor *nd_desc) in __wrap_nvdimm_bus_register()
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()
120 __wrap_nvdimm_bus_register(struct device *dev, struct nvdimm_bus_descriptor *nd_desc) __wrap_nvdimm_bus_register() argument
/kernel/linux/linux-5.10/tools/testing/nvdimm/test/
H A Dnfit.c1351 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, NUL in nfit_ctl_test()
3142 struct nvdimm_bus_descriptor *nd_desc; nfit_test_probe() local
[all...]
/kernel/linux/linux-6.6/tools/testing/nvdimm/test/
H A Dnfit.c1348 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()
2906 .nd_desc = { in nfit_ctl_test()
2963 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, nvdimm, ND_CMD_GET_CONFIG_SIZE, in nfit_ctl_test()
2983 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_STATUS, in nfit_ctl_test()
3002 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NULL, ND_CMD_ARS_CAP, in nfit_ctl_test()
3024 rc = acpi_nfit_ctl(&acpi_desc->nd_desc, NUL in nfit_ctl_test()
3125 struct nvdimm_bus_descriptor *nd_desc; nfit_test_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/cxl/
H A Dpmem.c215 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()

Completed in 28 milliseconds

12