| /linux-6.15/drivers/nvdimm/ |
| H A D | security.c | 176 if (!nvdimm->sec.ops || !nvdimm->sec.ops->unlock in __nvdimm_security_unlock() 208 rc = nvdimm->sec.ops->unlock(nvdimm, data); in __nvdimm_security_unlock() 221 struct nvdimm *nvdimm = to_nvdimm(dev); in nvdimm_security_unlock() local 260 if (!nvdimm->sec.ops || !nvdimm->sec.flags) in security_disable() 283 rc = nvdimm->sec.ops->disable(nvdimm, data); in security_disable() 341 nvdimm->sec.flags = nvdimm_security_flags(nvdimm, in security_update() 358 if (!nvdimm->sec.ops || !nvdimm->sec.ops->erase in security_erase() 414 rc = nvdimm->sec.ops->overwrite(nvdimm, data); in security_overwrite() 458 rc = nvdimm->sec.ops->query_overwrite(nvdimm); in __nvdimm_security_overwrite_query() 490 struct nvdimm *nvdimm = in nvdimm_security_overwrite_query() local [all …]
|
| H A D | dimm_devs.c | 27 struct nvdimm *nvdimm = to_nvdimm(dev); in nvdimm_check_config_data() local 176 struct nvdimm *nvdimm = to_nvdimm(dev); in nvdimm_set_labeling() local 183 struct nvdimm *nvdimm = to_nvdimm(dev); in nvdimm_set_locked() local 190 struct nvdimm *nvdimm = to_nvdimm(dev); in nvdimm_clear_locked() local 197 struct nvdimm *nvdimm = to_nvdimm(dev); in nvdimm_release() local 205 struct nvdimm *nvdimm = container_of(dev, struct nvdimm, dev); in to_nvdimm() local 214 struct nvdimm *nvdimm = nd_mapping->nvdimm; in to_ndd() local 279 struct nvdimm *nvdimm = to_nvdimm(dev); in commands_show() local 295 struct nvdimm *nvdimm = to_nvdimm(dev); in flags_show() local 591 struct nvdimm *nvdimm = kzalloc(sizeof(*nvdimm), GFP_KERNEL); in __nvdimm_create() local [all …]
|
| H A D | region_devs.c | 69 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_invalidate_memregion() local 97 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_invalidate_memregion() local 115 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_activate() local 146 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_activate() local 178 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_release() local 226 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_to_nstype() local 710 struct nvdimm *nvdimm; in mappingN() local 715 nvdimm = nd_mapping->nvdimm; in mappingN() 1011 struct nvdimm *nvdimm = mapping->nvdimm; in nd_region_create() local 1055 struct nvdimm *nvdimm = mapping->nvdimm; in nd_region_create() local [all …]
|
| H A D | nd-core.h | 31 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 D | bus.c | 328 struct nvdimm_bus *nvdimm_to_bus(struct nvdimm *nvdimm) in nvdimm_to_bus() argument 866 u32 nd_cmd_in_size(struct nvdimm *nvdimm, int cmd, in nd_cmd_in_size() argument 893 u32 nd_cmd_out_size(struct nvdimm *nvdimm, int cmd, in nd_cmd_out_size() argument 999 struct nvdimm *nvdimm, unsigned int cmd, void *data) in nd_cmd_clear_to_send() argument 1026 static int __nd_ioctl(struct nvdimm_bus *nvdimm_bus, struct nvdimm *nvdimm, in __nd_ioctl() argument 1044 if (nvdimm) { in __nd_ioctl() 1063 if (nvdimm) { in __nd_ioctl() 1220 struct nvdimm *nvdimm = to_nvdimm(dev); in match_dimm() local 1222 return nvdimm->id == id; in match_dimm() 1234 struct nvdimm *nvdimm = NULL; in nd_ioctl() local [all …]
|
| H A D | namespace_devs.c | 611 struct nvdimm *nvdimm = data; in __reserve_free_pmem() local 629 if (nd_mapping->nvdimm != nvdimm) in __reserve_free_pmem() 913 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nvdimm_namespace_locked() local 915 if (test_bit(NDD_LOCKED, &nvdimm->flags)) { in nvdimm_namespace_locked() 1724 struct nvdimm *nvdimm = nd_region->mapping[i].nvdimm; in create_namespace_pmem() local 2073 struct nvdimm *nvdimm = nd_mapping->nvdimm; in deactivate_labels() local 2082 atomic_dec(&nvdimm->busy); in deactivate_labels() 2093 struct nvdimm *nvdimm = nd_mapping->nvdimm; in init_active_labels() local 2110 dev_name(&nd_mapping->nvdimm->dev), in init_active_labels() 2111 test_bit(NDD_LOCKED, &nvdimm->flags) in init_active_labels() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | libnvdimm.h | 118 struct nvdimm *nvdimm; member 179 int (*freeze)(struct nvdimm *nvdimm); 180 int (*change_key)(struct nvdimm *nvdimm, 184 int (*unlock)(struct nvdimm *nvdimm, 186 int (*disable)(struct nvdimm *nvdimm, 188 int (*erase)(struct nvdimm *nvdimm, 191 int (*overwrite)(struct nvdimm *nvdimm, 193 int (*query_overwrite)(struct nvdimm *nvdimm); 194 int (*disable_master)(struct nvdimm *nvdimm, 257 const char *nvdimm_name(struct nvdimm *nvdimm); [all …]
|
| H A D | nd.h | 66 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-6.15/drivers/cxl/ |
| H A D | security.c | 12 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 125 static int cxl_pmem_security_disable_master(struct nvdimm *nvdimm, in cxl_pmem_security_disable_master() argument 131 static int cxl_pmem_security_freeze(struct nvdimm *nvdimm) in cxl_pmem_security_freeze() argument 143 static int cxl_pmem_security_unlock(struct nvdimm *nvdimm, in cxl_pmem_security_unlock() argument [all …]
|
| H A D | pmem.c | 28 struct nvdimm *nvdimm = to_nvdimm(dev); in provider_show() local 37 struct nvdimm *nvdimm = to_nvdimm(dev); in id_show() local 48 struct nvdimm *nvdimm = to_nvdimm(dev); in dirty_shutdown_show() local 68 struct nvdimm *nvdimm = to_nvdimm(dev); in cxl_dimm_visible() local 129 struct nvdimm *nvdimm; in cxl_nvdimm_probe() local 154 if (!nvdimm) in cxl_nvdimm_probe() 287 struct nvdimm *nvdimm, unsigned int cmd, void *buf, in cxl_pmem_ctl() argument 296 if (!nvdimm) in cxl_pmem_ctl() 385 struct nvdimm *nvdimm; in cxl_pmem_region_probe() local 440 if (!nvdimm) { in cxl_pmem_region_probe() [all …]
|
| /linux-6.15/drivers/acpi/nfit/ |
| H A D | intel.c | 53 static unsigned long intel_security_flags(struct nvdimm *nvdimm, in intel_security_flags() argument 120 static int intel_security_freeze(struct nvdimm *nvdimm) in intel_security_freeze() argument 147 static int intel_security_change_key(struct nvdimm *nvdimm, in intel_security_change_key() argument 194 static int __maybe_unused intel_security_unlock(struct nvdimm *nvdimm, in intel_security_unlock() argument 232 static int intel_security_disable(struct nvdimm *nvdimm, in intel_security_disable() argument 272 static int __maybe_unused intel_security_erase(struct nvdimm *nvdimm, in intel_security_erase() argument 352 static int __maybe_unused intel_security_overwrite(struct nvdimm *nvdimm, in intel_security_overwrite() argument 582 static int intel_fwa_dimminfo(struct nvdimm *nvdimm, in intel_fwa_dimminfo() argument 605 static enum nvdimm_fwa_state intel_fwa_state(struct nvdimm *nvdimm) in intel_fwa_state() argument 672 static enum nvdimm_fwa_result intel_fwa_result(struct nvdimm *nvdimm) in intel_fwa_result() argument [all …]
|
| H A D | core.c | 1371 struct nvdimm *nvdimm = to_nvdimm(dev); in to_nfit_memdev() local 1379 struct nvdimm *nvdimm = to_nvdimm(dev); in to_nfit_dcr() local 1485 struct nvdimm *nvdimm = to_nvdimm(dev); in format1_show() local 1521 struct nvdimm *nvdimm = to_nvdimm(dev); in formats_show() local 1539 struct nvdimm *nvdimm = to_nvdimm(dev); in family_show() local 1993 struct nvdimm *nvdimm; in acpi_nfit_register_dimms() local 2061 nfit_mem->nvdimm = nvdimm; in acpi_nfit_register_dimms() 2088 nvdimm = nfit_mem->nvdimm; in acpi_nfit_register_dimms() 2283 struct nvdimm *nvdimm = mapping->nvdimm; in acpi_nfit_init_interleave_set() local 2325 struct nvdimm *nvdimm = mapping->nvdimm; in acpi_nfit_init_interleave_set() local [all …]
|
| H A D | nfit.h | 208 struct nvdimm *nvdimm; member 345 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm,
|
| /linux-6.15/tools/testing/nvdimm/test/ |
| H A D | ndtest.c | 245 struct nvdimm *nvdimm, unsigned int cmd, void *buf, in ndtest_ctl() argument 256 if (!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 588 struct nvdimm *nvdimm = to_nvdimm(dev); in id_show() local 599 struct nvdimm *nvdimm = to_nvdimm(dev); in nvdimm_handle_show() local 627 struct nvdimm *nvdimm = to_nvdimm(dev); in formats_show() local 637 struct nvdimm *nvdimm = to_nvdimm(dev); in format_show() local 658 struct nvdimm *nvdimm = to_nvdimm(dev); in ndtest_nvdimm_attr_visible() local 670 struct nvdimm *nvdimm = to_nvdimm(dev); in flags_show() local [all …]
|
| H A D | ndtest.h | 34 struct nvdimm *nvdimm; member
|
| H A D | nfit.c | 667 struct nvdimm *nvdimm = NULL; in nfit_test_search_spa() local 689 nvdimm = nd_mapping->nvdimm; in nfit_test_search_spa() 1326 struct nvdimm *nvdimm, unsigned int cmd, void *buf, in nfit_ctl_dbg() argument 1342 nvdimm ? nvdimm_name(nvdimm) : "bus", family, cmd, func, in nfit_ctl_dbg() 1349 struct nvdimm *nvdimm, unsigned int cmd, void *buf, in nfit_test_ctl() argument 1363 if (nvdimm) { in nfit_test_ctl() 1365 unsigned long cmd_mask = nvdimm_cmd_mask(nvdimm); in nfit_test_ctl() 2874 struct nvdimm *nvdimm; in nfit_ctl_test() local 2943 nvdimm = devm_kzalloc(dev, sizeof(*nvdimm), GFP_KERNEL); in nfit_ctl_test() 2944 if (!nvdimm) in nfit_ctl_test() [all …]
|
| /linux-6.15/Documentation/ABI/testing/ |
| H A D | sysfs-bus-nfit | 8 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 71 Contact: nvdimm@lists.linux.dev 87 Contact: nvdimm@lists.linux.dev 95 Contact: nvdimm@lists.linux.dev 105 Contact: nvdimm@lists.linux.dev [all …]
|
| H A D | sysfs-bus-nvdimm | 1 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 D | sysfs-bus-dax | 4 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 87 Contact: nvdimm@lists.linux.dev 95 Contact: nvdimm@lists.linux.dev [all …]
|
| H A D | sysfs-bus-papr-pmem | 4 Contact: linuxppc-dev <[email protected]>, nvdimm@lists.linux.dev, 39 Contact: linuxppc-dev <[email protected]>, nvdimm@lists.linux.dev, 68 Contact: linuxppc-dev <[email protected]>, nvdimm@lists.linux.dev, 73 used to simulate various health or shutdown states for an nvdimm
|
| /linux-6.15/arch/powerpc/platforms/pseries/ |
| H A D | papr_scm.c | 66 struct nvdimm *nvdimm; member 666 static int is_cmd_valid(struct nvdimm *nvdimm, unsigned int cmd, void *buf, in is_cmd_valid() argument 675 if (!nvdimm) in is_cmd_valid() 679 p = nvdimm_provider_data(nvdimm); in is_cmd_valid() 1005 struct nvdimm *nvdimm, unsigned int cmd, void *buf, in papr_scm_ndctl() argument 1023 p = nvdimm_provider_data(nvdimm); in papr_scm_ndctl() 1062 struct nvdimm *dimm = to_nvdimm(dev); in health_bitmap_inject_show() 1079 struct nvdimm *dimm = to_nvdimm(dev); in perf_stats_show() 1170 struct nvdimm *nvdimm = to_nvdimm(dev); in papr_nd_attribute_visible() local 1240 if (!p->nvdimm) { in papr_scm_nvdimm_init() [all …]
|
| /linux-6.15/Documentation/driver-api/nvdimm/ |
| H A D | security.rst | 17 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 D | index.rst | 10 nvdimm
|
| /linux-6.15/Documentation/nvdimm/ |
| H A D | maintainer-entry-profile.rst | 8 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-6.15/tools/testing/nvdimm/ |
| H A D | Kbuild | 21 NVDIMM_SRC := $(DRIVERS)/nvdimm 24 ccflags-y := -I$(srctree)/drivers/nvdimm/
|