Home
last modified time | relevance | path

Searched refs:nvdimm (Results 1 – 25 of 37) sorted by relevance

12

/linux/drivers/nvdimm/
H A Dsecurity.c50 static struct key *nvdimm_request_key(struct nvdimm *nvdimm) in nvdimm_request_key() argument
55 struct device *dev = &nvdimm->dev; in nvdimm_request_key()
57 sprintf(desc, "%s%s", NVDIMM_PREFIX, nvdimm->dimm_id); in nvdimm_request_key()
80 static const void *nvdimm_get_key_payload(struct nvdimm *nvdimm, in nvdimm_get_key_payload() argument
83 *key = nvdimm_request_key(nvdimm); in nvdimm_get_key_payload()
90 static struct key *nvdimm_lookup_user_key(struct nvdimm *nvdimm, in nvdimm_lookup_user_key() argument
96 struct device *dev = &nvdimm->dev; in nvdimm_lookup_user_key()
120 static const void *nvdimm_get_user_key_payload(struct nvdimm *nvdimm, in nvdimm_get_user_key_payload() argument
131 *key = nvdimm_lookup_user_key(nvdimm, id, subclass); in nvdimm_get_user_key_payload()
139 static int nvdimm_key_revalidate(struct nvdimm *nvdimm) in nvdimm_key_revalidate() argument
[all …]
H A Ddimm_devs.c27 struct nvdimm *nvdimm = to_nvdimm(dev); in nvdimm_check_config_data() local
29 if (!nvdimm->cmd_mask || in nvdimm_check_config_data()
30 !test_bit(ND_CMD_GET_CONFIG_DATA, &nvdimm->cmd_mask)) { in nvdimm_check_config_data()
31 if (test_bit(NDD_LABELING, &nvdimm->flags)) in nvdimm_check_config_data()
176 struct nvdimm *nvdimm = to_nvdimm(dev); in nvdimm_set_labeling() local
178 set_bit(NDD_LABELING, &nvdimm->flags); in nvdimm_set_labeling()
183 struct nvdimm *nvdimm = to_nvdimm(dev); in nvdimm_set_locked() local
185 set_bit(NDD_LOCKED, &nvdimm->flags); in nvdimm_set_locked()
190 struct nvdimm *nvdimm = to_nvdimm(dev); in nvdimm_clear_locked() local
192 clear_bit(NDD_LOCKED, &nvdimm->flags); in nvdimm_clear_locked()
[all …]
H A Dramdax.c23 struct nvdimm *nvdimm; member
35 struct nvdimm *nvdimm, in ramdax_register_region() argument
52 mapping.nvdimm = nvdimm; in ramdax_register_region()
99 dimm->nvdimm = nvdimm_create(nvdimm_bus, dimm, in ramdax_register_dimm()
102 if (!dimm->nvdimm) { in ramdax_register_dimm()
107 err = ramdax_register_region(res, dimm->nvdimm, nvdimm_bus); in ramdax_register_dimm()
114 nvdimm_delete(dimm->nvdimm); in ramdax_register_dimm()
122 static int ramdax_get_config_size(struct nvdimm *nvdimm, int buf_len, in ramdax_get_config_size() argument
137 static int ramdax_get_config_data(struct nvdimm *nvdimm, int buf_len, in ramdax_get_config_data() argument
140 struct ramdax_dimm *dimm = nvdimm_provider_data(nvdimm); in ramdax_get_config_data()
[all …]
H A Dregion_devs.c26 static int nvdimm_map_flush(struct device *dev, struct nvdimm *nvdimm, int dimm, in nvdimm_map_flush() argument
31 dev_dbg(dev, "%s: map %d flush address%s\n", nvdimm_name(nvdimm), in nvdimm_map_flush()
32 nvdimm->num_flush, nvdimm->num_flush == 1 ? "" : "es"); in nvdimm_map_flush()
34 struct resource *res = &nvdimm->flush_wpq[i]; in nvdimm_map_flush()
40 struct resource *res_j = &nvdimm->flush_wpq[j]; in nvdimm_map_flush()
69 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_invalidate_memregion() local
97 struct nvdimm *nvdimm = nd_mapping->nvdimm; nd_region_invalidate_memregion() local
114 struct nvdimm *nvdimm = nd_mapping->nvdimm; get_flush_data() local
159 struct nvdimm *nvdimm = nd_mapping->nvdimm; nd_region_activate() local
191 struct nvdimm *nvdimm = nd_mapping->nvdimm; nd_region_release() local
239 struct nvdimm *nvdimm = nd_mapping->nvdimm; nd_region_to_nstype() local
693 struct nvdimm *nvdimm; mappingN() local
993 struct nvdimm *nvdimm = mapping->nvdimm; nd_region_create() local
1036 struct nvdimm *nvdimm = mapping->nvdimm; nd_region_create() local
1181 struct nvdimm *nvdimm = nd_mapping->nvdimm; nvdimm_has_flush() local
[all...]
H A Dbus.c325 struct nvdimm_bus *nvdimm_to_bus(struct nvdimm *nvdimm) in nvdimm_to_bus() argument
327 return to_nvdimm_bus(nvdimm->dev.parent); in nvdimm_to_bus()
864 u32 nd_cmd_in_size(struct nvdimm *nvdimm, int cmd, in nd_cmd_in_size() argument
873 if (nvdimm && cmd == ND_CMD_SET_CONFIG_DATA && idx == 2) { in nd_cmd_in_size()
877 } else if (nvdimm && cmd == ND_CMD_VENDOR && idx == 2) { in nd_cmd_in_size()
891 u32 nd_cmd_out_size(struct nvdimm *nvdimm, int cmd, in nd_cmd_out_size() argument
901 if (nvdimm && cmd == ND_CMD_GET_CONFIG_DATA && idx == 1) in nd_cmd_out_size()
903 else if (nvdimm && cmd == ND_CMD_VENDOR && idx == 2) in nd_cmd_out_size()
905 else if (!nvdimm && cmd == ND_CMD_ARS_STATUS && idx == 2) { in nd_cmd_out_size()
997 struct nvdimm *nvdimm, unsigned int cmd, void *data) in nd_cmd_clear_to_send() argument
[all …]
H A Dnd-core.h31 struct nvdimm { struct
52 struct nvdimm *nvdimm, enum nvdimm_passphrase_type ptype) in nvdimm_security_flags() argument
60 if (!nvdimm->sec.ops) in nvdimm_security_flags()
63 flags = nvdimm->sec.ops->get_flags(nvdimm, ptype); in nvdimm_security_flags()
65 dev_WARN_ONCE(&nvdimm->dev, hweight64(flags & state_flags) > 1, in nvdimm_security_flags()
70 int nvdimm_security_freeze(struct nvdimm *nvdimm);
H A Dnamespace_devs.c609 struct nvdimm *nvdimm = data; in __reserve_free_pmem() local
627 if (nd_mapping->nvdimm != nvdimm) in __reserve_free_pmem()
903 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nvdimm_namespace_locked() local
905 if (test_bit(NDD_LOCKED, &nvdimm->flags)) { in nvdimm_namespace_locked()
906 dev_dbg(dev, "%s locked\n", nvdimm_name(nvdimm)); in nvdimm_namespace_locked()
1718 struct nvdimm *nvdimm = nd_region->mapping[i].nvdimm; in create_namespace_pmem() local
1726 nvdimm_name(nvdimm), nsl_uuid_raw(ndd, nd_label)); in create_namespace_pmem()
2067 struct nvdimm *nvdimm = nd_mapping->nvdimm; in deactivate_labels() local
2076 atomic_dec(&nvdimm->busy); in deactivate_labels()
2087 struct nvdimm *nvdimm = nd_mapping->nvdimm; in init_active_labels() local
[all …]
/linux/drivers/cxl/
H A Dsecurity.c12 static unsigned long cxl_pmem_get_security_flags(struct nvdimm *nvdimm, in cxl_pmem_get_security_flags() argument
15 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); in cxl_pmem_get_security_flags()
67 static int cxl_pmem_security_change_key(struct nvdimm *nvdimm, in cxl_pmem_security_change_key() argument
72 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); in cxl_pmem_security_change_key()
94 static int __cxl_pmem_security_disable(struct nvdimm *nvdimm, in __cxl_pmem_security_disable() argument
98 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); in __cxl_pmem_security_disable()
119 static int cxl_pmem_security_disable(struct nvdimm *nvdimm, in cxl_pmem_security_disable() argument
122 return __cxl_pmem_security_disable(nvdimm, key_data, NVDIMM_USER); in cxl_pmem_security_disable()
125 static int cxl_pmem_security_disable_master(struct nvdimm *nvdimm, in cxl_pmem_security_disable_master() argument
128 return __cxl_pmem_security_disable(nvdimm, key_data, NVDIMM_MASTER); in cxl_pmem_security_disable_master()
[all …]
H A Dpmem.c35 static void unregister_nvdimm(void *nvdimm) in unregister_nvdimm() argument
37 nvdimm_delete(nvdimm); in unregister_nvdimm()
42 struct nvdimm *nvdimm = to_nvdimm(dev); in provider_show() local
43 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); in provider_show()
51 struct nvdimm *nvdimm = to_nvdimm(dev); in id_show() local
52 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); in id_show()
62 struct nvdimm *nvdimm = to_nvdimm(dev); in dirty_shutdown_show() local
63 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); in dirty_shutdown_show()
82 struct nvdimm *nvdimm = to_nvdimm(dev); in cxl_dimm_visible() local
83 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); in cxl_dimm_visible()
[all …]
/linux/drivers/acpi/nfit/
H A Dintel.c53 static unsigned long intel_security_flags(struct nvdimm *nvdimm, in intel_security_flags() argument
56 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_flags()
80 if (nvdimm_in_overwrite(nvdimm) && ptype == NVDIMM_USER) in intel_security_flags()
83 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_flags()
86 nvdimm_name(nvdimm), rc, nd_cmd.cmd.status); in intel_security_flags()
119 static int intel_security_freeze(struct nvdimm *nvdimm) in intel_security_freeze() argument
121 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_freeze()
137 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_freeze()
145 static int intel_security_change_key(struct nvdimm *nvdimm, in intel_security_change_key() argument
150 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_change_key()
[all …]
H A Dcore.c197 static int xlat_nvdimm_status(struct nvdimm *nvdimm, void *buf, unsigned int cmd, in xlat_nvdimm_status()
200 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in xlat_nvdimm_status()
234 static int xlat_status(struct nvdimm *nvdimm, void *buf, unsigned int cmd, in xlat_status()
237 if (!nvdimm) in xlat_status()
239 return xlat_nvdimm_status(nvdimm, buf, cmd, status);
405 static bool payload_dumpable(struct nvdimm *nvdimm, unsigned int func) in payload_dumpable()
407 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in payload_dumpable()
195 xlat_nvdimm_status(struct nvdimm * nvdimm,void * buf,unsigned int cmd,u32 status) xlat_nvdimm_status() argument
232 xlat_status(struct nvdimm * nvdimm,void * buf,unsigned int cmd,u32 status) xlat_status() argument
403 payload_dumpable(struct nvdimm * nvdimm,unsigned int func) payload_dumpable() argument
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
1379 struct nvdimm *nvdimm = to_nvdimm(dev); to_nfit_memdev() local
1387 struct nvdimm *nvdimm = to_nvdimm(dev); to_nfit_dcr() local
1466 num_nvdimm_formats(struct nvdimm * nvdimm) num_nvdimm_formats() argument
1493 struct nvdimm *nvdimm = to_nvdimm(dev); format1_show() local
1529 struct nvdimm *nvdimm = to_nvdimm(dev); formats_show() local
1547 struct nvdimm *nvdimm = to_nvdimm(dev); family_show() local
1559 struct nvdimm *nvdimm = to_nvdimm(dev); dsm_mask_show() local
1571 struct nvdimm *nvdimm = to_nvdimm(dev); flags_show() local
1592 struct nvdimm *nvdimm = to_nvdimm(dev); id_show() local
1602 struct nvdimm *nvdimm = to_nvdimm(dev); dirty_shutdown_show() local
1634 struct nvdimm *nvdimm = to_nvdimm(dev); acpi_nfit_dimm_attr_visible() local
2001 struct nvdimm *nvdimm; acpi_nfit_register_dimms() local
2291 struct nvdimm *nvdimm = mapping->nvdimm; acpi_nfit_init_interleave_set() local
2333 struct nvdimm *nvdimm = mapping->nvdimm; acpi_nfit_init_interleave_set() local
2566 struct nvdimm *nvdimm = acpi_nfit_dimm_by_handle(acpi_desc, acpi_nfit_init_mapping() local
3173 __acpi_nfit_clear_to_send(struct nvdimm_bus_descriptor * nd_desc,struct nvdimm * nvdimm,unsigned int cmd) __acpi_nfit_clear_to_send() argument
3199 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
[all...]
H A Dnfit.h208 struct nvdimm *nvdimm; member
345 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm,
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-nfit8 Contact: nvdimm@lists.linux.dev
17 Contact: nvdimm@lists.linux.dev
26 Contact: nvdimm@lists.linux.dev
34 Contact: nvdimm@lists.linux.dev
42 Contact: nvdimm@lists.linux.dev
52 Contact: nvdimm@lists.linux.dev
55 the state of the data on the nvdimm relative to its energy
71 Contact: nvdimm@lists.linux.dev
87 Contact: nvdimm@lists.linux.dev
95 Contact: nvdimm@lists.linux.dev
[all …]
H A Dsysfs-bus-nvdimm1 What: nvdimm
8 platform nvdimm resources. See Documentation/driver-api/nvdimm/.
33 for the nvdimm memory device. Each attribute in this group
35 this nvdimm pmu. The name of the file is the name of the event.
37 listing of the events supported by a given nvdimm provider type
38 can be found in Documentation/driver-api/nvdimm/$provider.
45 to retrieve nvdimm pmu event counter data.
H A Dsysfs-bus-dax4 Contact: nvdimm@lists.linux.dev
13 Contact: nvdimm@lists.linux.dev
23 Contact: nvdimm@lists.linux.dev
36 Contact: nvdimm@lists.linux.dev
46 Contact: nvdimm@lists.linux.dev
56 Contact: nvdimm@lists.linux.dev
65 Contact: nvdimm@lists.linux.dev
77 Contact: nvdimm@lists.linux.dev
81 devices, since pmem devices are defined by nvdimm namespace
87 Contact: nvdimm@lists.linux.dev
[all …]
H A Dsysfs-bus-papr-pmem4 Contact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, nvdimm@lists.linux.dev,
39 Contact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, nvdimm@lists.linux.dev,
68 Contact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, nvdimm@lists.linux.dev,
73 used to simulate various health or shutdown states for an nvdimm
/linux/tools/testing/nvdimm/test/
H A Dndtest.c245 struct nvdimm *nvdimm, unsigned int cmd, void *buf, in ndtest_ctl() argument
256 if (!nvdimm) in ndtest_ctl()
259 dimm = nvdimm_provider_data(nvdimm); in ndtest_ctl()
454 mappings[i].nvdimm = p->config->dimms[ndimm].nvdimm; in ndtest_create_region()
571 struct nvdimm *nvdimm = to_nvdimm(dev); in phys_id_show() local
572 struct ndtest_dimm *dimm = nvdimm_provider_data(nvdimm); in phys_id_show()
588 struct nvdimm *nvdimm = to_nvdimm(dev); in id_show() local
589 struct ndtest_dimm *dimm = nvdimm_provider_data(nvdimm); in id_show()
599 struct nvdimm *nvdimm = to_nvdimm(dev); in nvdimm_handle_show() local
600 struct ndtest_dimm *dimm = nvdimm_provider_data(nvdimm); in nvdimm_handle_show()
[all …]
H A Dndtest.h34 struct nvdimm *nvdimm; member
H A Dnfit.c667 struct nvdimm *nvdimm = NULL; in nfit_test_search_spa() local
690 nvdimm = nd_mapping->nvdimm; in nfit_test_search_spa()
691 nfit_mem = nvdimm_provider_data(nvdimm); in nfit_test_search_spa()
1331 struct nvdimm *nvdimm, unsigned int cmd, void *buf, in nfit_ctl_dbg() argument
1347 nvdimm ? nvdimm_name(nvdimm) : "bus", family, cmd, func, in nfit_ctl_dbg()
1354 struct nvdimm *nvdimm, unsigned int cmd, void *buf, in nfit_test_ctl() argument
1366 nfit_ctl_dbg(acpi_desc, nvdimm, cmd, buf, buf_len); in nfit_test_ctl()
1368 if (nvdimm) { in nfit_test_ctl()
1369 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in nfit_test_ctl()
1370 unsigned long cmd_mask = nvdimm_cmd_mask(nvdimm); in nfit_test_ctl()
[all …]
/linux/arch/powerpc/platforms/pseries/
H A Dpapr_scm.c67 struct nvdimm *nvdimm;
461 nd_pmu->pmu.name = nvdimm_name(p->nvdimm); in papr_scm_pmu_register()
488 dev_info(&p->pdev->dev, "nvdimm pmu didn't register rc=%d\n", rc); in papr_scm_pmu_register()
667 static int is_cmd_valid(struct nvdimm *nvdimm, unsigned int cmd, void *buf, in is_cmd_valid()
676 if (!nvdimm) in is_cmd_valid()
679 /* get the provider data from struct nvdimm */ in is_cmd_valid()
680 p = nvdimm_provider_data(nvdimm); in is_cmd_valid()
1006 struct nvdimm *nvdim in papr_scm_ndctl()
66 struct nvdimm *nvdimm; global() member
666 is_cmd_valid(struct nvdimm * nvdimm,unsigned int cmd,void * buf,unsigned int buf_len) is_cmd_valid() argument
1005 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
1170 struct nvdimm *nvdimm = to_nvdimm(dev); papr_nd_attribute_visible() local
[all...]
/linux/Documentation/driver-api/nvdimm/
H A Dsecurity.rst17 The "security" sysfs attribute is provided in the nvdimm sysfs directory. For
32 overwrite <keyid> - wipe the entire nvdimm.
48 kernel API call during nvdimm unlock. It is up to the user to make sure that
51 A nvdimm encrypted-key of format enc32 has the description format of:
52 nvdimm:<bus-provider-specific-unique-id>
93 An key with the current passphrase payload that is tied to the nvdimm should be
101 An key with the current passphrase payload that is tied to the nvdimm should be
113 Overwrite can last tens of minutes or more depending on nvdimm size.
115 An encrypted-key with the current user passphrase that is tied to the nvdimm
H A Dindex.rst10 nvdimm
/linux/Documentation/nvdimm/
H A Dmaintainer-entry-profile.rst8 https://patchwork.kernel.org/project/linux-nvdimm/list/
13 https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git/
20 Filesystem or the Memory Management tree. When in doubt copy the nvdimm
/linux/include/linux/
H A Dnd.h66 int register_nvdimm_pmu(struct nvdimm_pmu *nvdimm, struct platform_device *pdev);
70 static inline int register_nvdimm_pmu(struct nvdimm_pmu *nvdimm, struct platform_device *pdev) in register_nvdimm_pmu() argument
/linux/tools/testing/nvdimm/
H A DKbuild21 NVDIMM_SRC := $(DRIVERS)/nvdimm
24 ccflags-y := -I$(srctree)/drivers/nvdimm/

12