/linux-master/drivers/nvdimm/ |
H A D | security.c | 50 static struct key *nvdimm_request_key(struct nvdimm *nvdimm) argument 53 static const char NVDIMM_PREFIX[] = "nvdimm:"; 55 struct device *dev = &nvdimm->dev; 57 sprintf(desc, "%s%s", NVDIMM_PREFIX, nvdimm->dimm_id); 80 static const void *nvdimm_get_key_payload(struct nvdimm *nvdimm, argument 83 *key = nvdimm_request_key(nvdimm); 90 static struct key *nvdimm_lookup_user_key(struct nvdimm *nvdimm, argument 120 nvdimm_get_user_key_payload(struct nvdimm *nvdimm, key_serial_t id, int subclass, struct key **key) argument 139 nvdimm_key_revalidate(struct nvdimm *nvdimm) argument 165 __nvdimm_security_unlock(struct nvdimm *nvdimm) argument 221 struct nvdimm *nvdimm = to_nvdimm(dev); local 230 check_security_state(struct nvdimm *nvdimm) argument 248 security_disable(struct nvdimm *nvdimm, unsigned int keyid, enum nvdimm_passphrase_type pass_type) argument 296 security_update(struct nvdimm *nvdimm, unsigned int keyid, unsigned int new_keyid, enum nvdimm_passphrase_type pass_type) argument 346 security_erase(struct nvdimm *nvdimm, unsigned int keyid, enum nvdimm_passphrase_type pass_type) argument 390 security_overwrite(struct nvdimm *nvdimm, unsigned int keyid) argument 436 __nvdimm_security_overwrite_query(struct nvdimm *nvdimm) argument 490 struct nvdimm *nvdimm = local 523 struct nvdimm *nvdimm = to_nvdimm(dev); local [all...] |
H A D | dimm_devs.c | 27 struct nvdimm *nvdimm = to_nvdimm(dev); local 29 if (!nvdimm->cmd_mask || 30 !test_bit(ND_CMD_GET_CONFIG_DATA, &nvdimm->cmd_mask)) { 31 if (test_bit(NDD_LABELING, &nvdimm->flags)) 176 struct nvdimm *nvdimm = to_nvdimm(dev); local 178 set_bit(NDD_LABELING, &nvdimm->flags); 183 struct nvdimm *nvdimm local 190 struct nvdimm *nvdimm = to_nvdimm(dev); local 197 struct nvdimm *nvdimm = to_nvdimm(dev); local 205 struct nvdimm *nvdimm = container_of(dev, struct nvdimm, dev); local 214 struct nvdimm *nvdimm = nd_mapping->nvdimm; local 250 nvdimm_name(struct nvdimm *nvdimm) argument 256 nvdimm_kobj(struct nvdimm *nvdimm) argument 262 nvdimm_cmd_mask(struct nvdimm *nvdimm) argument 268 nvdimm_provider_data(struct nvdimm *nvdimm) argument 279 struct nvdimm *nvdimm = to_nvdimm(dev); local 295 struct nvdimm *nvdimm = to_nvdimm(dev); local 306 struct nvdimm *nvdimm = to_nvdimm(dev); local 357 struct nvdimm *nvdimm = to_nvdimm(dev); local 380 struct nvdimm *nvdimm = to_nvdimm(dev); local 422 struct nvdimm *nvdimm = to_nvdimm(dev); local 451 struct nvdimm *nvdimm = to_nvdimm(dev); local 480 struct nvdimm *nvdimm = to_nvdimm(dev); local 505 struct nvdimm *nvdimm = to_nvdimm(dev); local 540 struct nvdimm *nvdimm = to_nvdimm(dev); local 591 struct nvdimm *nvdimm = kzalloc(sizeof(*nvdimm), GFP_KERNEL); local 638 nvdimm_delete(struct nvdimm *nvdimm) argument 658 struct nvdimm *nvdimm = data; local 665 struct nvdimm *nvdimm = to_nvdimm(dev); local 678 nvdimm_in_overwrite(struct nvdimm *nvdimm) argument 684 nvdimm_security_freeze(struct nvdimm *nvdimm) argument [all...] |
H A D | region_devs.c | 26 static int nvdimm_map_flush(struct device *dev, struct nvdimm *nvdimm, int dimm, argument 31 dev_dbg(dev, "%s: map %d flush address%s\n", nvdimm_name(nvdimm), 32 nvdimm->num_flush, nvdimm->num_flush == 1 ? "" : "es"); 34 struct resource *res = &nvdimm->flush_wpq[i]; 40 struct resource *res_j = &nvdimm->flush_wpq[j]; 69 struct nvdimm *nvdimm = nd_mapping->nvdimm; local 97 struct nvdimm *nvdimm = nd_mapping->nvdimm; local 115 struct nvdimm *nvdimm = nd_mapping->nvdimm; local 146 struct nvdimm *nvdimm = nd_mapping->nvdimm; local 178 struct nvdimm *nvdimm = nd_mapping->nvdimm; local 226 struct nvdimm *nvdimm = nd_mapping->nvdimm; local 710 struct nvdimm *nvdimm; local 1011 struct nvdimm *nvdimm = mapping->nvdimm; local 1055 struct nvdimm *nvdimm = mapping->nvdimm; local 1200 struct nvdimm *nvdimm = nd_mapping->nvdimm; local [all...] |
H A D | nd-core.h | 31 struct nvdimm { struct 52 struct nvdimm *nvdimm, enum nvdimm_passphrase_type ptype) 60 if (!nvdimm->sec.ops) 63 flags = nvdimm->sec.ops->get_flags(nvdimm, ptype); 65 dev_WARN_ONCE(&nvdimm->dev, hweight64(flags & state_flags) > 1, 70 int nvdimm_security_freeze(struct nvdimm *nvdimm); 51 nvdimm_security_flags( struct nvdimm *nvdimm, enum nvdimm_passphrase_type ptype) argument
|
H A D | bus.c | 325 struct nvdimm_bus *nvdimm_to_bus(struct nvdimm *nvdimm) argument 327 return to_nvdimm_bus(nvdimm->dev.parent); 863 u32 nd_cmd_in_size(struct nvdimm *nvdimm, int cmd, argument 872 if (nvdimm && cmd == ND_CMD_SET_CONFIG_DATA && idx == 2) { 876 } else if (nvdimm && cmd == ND_CMD_VENDOR && idx == 2) { 890 u32 nd_cmd_out_size(struct nvdimm *nvdimm, int cmd, argument 900 if (nvdimm 995 nd_cmd_clear_to_send(struct nvdimm_bus *nvdimm_bus, struct nvdimm *nvdimm, unsigned int cmd, void *data) argument 1023 __nd_ioctl(struct nvdimm_bus *nvdimm_bus, struct nvdimm *nvdimm, int read_only, unsigned int ioctl_cmd, unsigned long arg) argument 1217 struct nvdimm *nvdimm = to_nvdimm(dev); local 1231 struct nvdimm *nvdimm = NULL; local [all...] |
H A D | Makefile | 32 TEST_SRC := $(TOOLS)/testing/nvdimm/test
|
H A D | namespace_devs.c | 611 struct nvdimm *nvdimm = data; local 629 if (nd_mapping->nvdimm != nvdimm) 913 struct nvdimm *nvdimm = nd_mapping->nvdimm; local 915 if (test_bit(NDD_LOCKED, &nvdimm->flags)) { 916 dev_dbg(dev, "%s locked\n", nvdimm_name(nvdimm)); 1727 struct nvdimm *nvdim local 2082 struct nvdimm *nvdimm = nd_mapping->nvdimm; local 2102 struct nvdimm *nvdimm = nd_mapping->nvdimm; local [all...] |
H A D | nd.h | 388 struct nvdimm *nvdimm; member in struct:nd_mapping 398 * nvdimm. 508 struct nvdimm;
|
/linux-master/include/linux/ |
H A D | libnvdimm.h | 77 struct nvdimm; 80 struct nvdimm *nvdimm, unsigned int cmd, void *buf, 95 struct nvdimm *nvdimm, unsigned int cmd, void *data); 118 struct nvdimm *nvdimm; member in struct:nd_mapping_desc 177 unsigned long (*get_flags)(struct nvdimm *nvdimm, 179 int (*freeze)(struct nvdimm *nvdim 303 nvdimm_ctl(struct nvdimm *nvdimm, unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc) argument [all...] |
H A D | nd.h | 41 * struct nvdimm_pmu - data structure for nvdimm perf driver 42 * @pmu: pmu data structure for nvdimm performance stats. 43 * @dev: nvdimm device pointer. 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) argument 160 * nvdimm_read_bytes() - synchronously read bytes from an nvdimm namespace 176 * nvdimm_write_bytes() - synchronously write bytes to an nvdimm namespace
|
/linux-master/drivers/cxl/ |
H A D | security.c | 12 static unsigned long cxl_pmem_get_security_flags(struct nvdimm *nvdimm, argument 15 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); 66 static int cxl_pmem_security_change_key(struct nvdimm *nvdimm, argument 71 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); 93 static int __cxl_pmem_security_disable(struct nvdimm *nvdimm, argument 97 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); 118 static int cxl_pmem_security_disable(struct nvdimm *nvdim argument 124 cxl_pmem_security_disable_master(struct nvdimm *nvdimm, const struct nvdimm_key_data *key_data) argument 130 cxl_pmem_security_freeze(struct nvdimm *nvdimm) argument 142 cxl_pmem_security_unlock(struct nvdimm *nvdimm, const struct nvdimm_key_data *key_data) argument 166 cxl_pmem_security_passphrase_erase(struct nvdimm *nvdimm, const struct nvdimm_key_data *key, enum nvdimm_passphrase_type ptype) argument [all...] |
H A D | pmem.c | 23 static void unregister_nvdimm(void *nvdimm) argument 25 nvdimm_delete(nvdimm); 30 struct nvdimm *nvdimm = to_nvdimm(dev); local 31 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); 39 struct nvdimm *nvdimm = to_nvdimm(dev); local 40 struct cxl_nvdimm *cxl_nvd = nvdimm_provider_data(nvdimm); 70 struct nvdimm *nvdimm; local 192 cxl_pmem_nvdimm_ctl(struct nvdimm *nvdimm, unsigned int cmd, void *buf, unsigned int buf_len) argument 215 cxl_pmem_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc) argument 316 struct nvdimm *nvdimm; local [all...] |
/linux-master/drivers/acpi/nfit/ |
H A D | intel.c | 53 static unsigned long intel_security_flags(struct nvdimm *nvdimm, argument 56 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); 81 if (nvdimm_in_overwrite(nvdimm) && ptype == NVDIMM_USER) 84 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); 87 nvdimm_name(nvdimm), rc, nd_cmd.cmd.status); 120 static int intel_security_freeze(struct nvdimm *nvdimm) argument 122 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); 139 rc = nvdimm_ctl(nvdimm, ND_CMD_CAL 147 intel_security_change_key(struct nvdimm *nvdimm, const struct nvdimm_key_data *old_data, const struct nvdimm_key_data *new_data, enum nvdimm_passphrase_type ptype) argument 194 intel_security_unlock(struct nvdimm *nvdimm, const struct nvdimm_key_data *key_data) argument 232 intel_security_disable(struct nvdimm *nvdimm, const struct nvdimm_key_data *key_data) argument 272 intel_security_erase(struct nvdimm *nvdimm, const struct nvdimm_key_data *key, enum nvdimm_passphrase_type ptype) argument 317 intel_security_query_overwrite(struct nvdimm *nvdimm) argument 352 intel_security_overwrite(struct nvdimm *nvdimm, const struct nvdimm_key_data *nkey) argument 582 intel_fwa_dimminfo(struct nvdimm *nvdimm, struct nd_intel_fw_activate_dimminfo *info) argument 605 intel_fwa_state(struct nvdimm *nvdimm) argument 672 intel_fwa_result(struct nvdimm *nvdimm) argument 687 intel_fwa_arm(struct nvdimm *nvdimm, enum nvdimm_fwa_trigger arm) argument [all...] |
H A D | core.c | 187 static int xlat_nvdimm_status(struct nvdimm *nvdimm, void *buf, unsigned int cmd, argument 190 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); 224 static int xlat_status(struct nvdimm *nvdimm, void *buf, unsigned int cmd, argument 227 if (!nvdimm) 229 return xlat_nvdimm_status(nvdimm, buf, cmd, status); 395 static bool payload_dumpable(struct nvdimm *nvdimm, unsigned int func) argument 397 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); 437 acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc) argument 1366 struct nvdimm *nvdimm = to_nvdimm(dev); local 1374 struct nvdimm *nvdimm = to_nvdimm(dev); local 1453 num_nvdimm_formats(struct nvdimm *nvdimm) argument 1480 struct nvdimm *nvdimm = to_nvdimm(dev); local 1516 struct nvdimm *nvdimm = to_nvdimm(dev); local 1534 struct nvdimm *nvdimm = to_nvdimm(dev); local 1546 struct nvdimm *nvdimm = to_nvdimm(dev); local 1558 struct nvdimm *nvdimm = to_nvdimm(dev); local 1579 struct nvdimm *nvdimm = to_nvdimm(dev); local 1589 struct nvdimm *nvdimm = to_nvdimm(dev); local 1621 struct nvdimm *nvdimm = to_nvdimm(dev); local 1988 struct nvdimm *nvdimm; local 2278 struct nvdimm *nvdimm = mapping->nvdimm; local 2320 struct nvdimm *nvdimm = mapping->nvdimm; local 2553 struct nvdimm *nvdimm = acpi_nfit_dimm_by_handle(acpi_desc, local 3159 __acpi_nfit_clear_to_send(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, unsigned int cmd) argument 3185 acpi_nfit_clear_to_send(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, unsigned int cmd, void *buf) argument [all...] |
H A D | nfit.h | 208 struct nvdimm *nvdimm; member in struct:nfit_mem 345 int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm,
|
/linux-master/tools/testing/nvdimm/test/ |
H A D | ndtest.h | 65 struct nvdimm *nvdimm; member in struct:ndtest_dimm
|
H A D | ndtest.c | 243 struct nvdimm *nvdimm, unsigned int cmd, void *buf, 254 if (!nvdimm) 257 dimm = nvdimm_provider_data(nvdimm); 452 mappings[i].nvdimm = p->config->dimms[ndimm].nvdimm; 569 struct nvdimm *nvdimm = to_nvdimm(dev); local 570 struct ndtest_dimm *dimm = nvdimm_provider_data(nvdimm); 586 struct nvdimm *nvdim local 242 ndtest_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc) argument 597 struct nvdimm *nvdimm = to_nvdimm(dev); local 625 struct nvdimm *nvdimm = to_nvdimm(dev); local 635 struct nvdimm *nvdimm = to_nvdimm(dev); local 656 struct nvdimm *nvdimm = to_nvdimm(dev); local 668 struct nvdimm *nvdimm = to_nvdimm(dev); local [all...] |
H A D | nfit.c | 667 struct nvdimm *nvdimm = NULL; local 689 nvdimm = nd_mapping->nvdimm; 691 spa->devices[0].nfit_device_handle = handle[nvdimm->id]; 1326 struct nvdimm *nvdimm, unsigned int cmd, void *buf, 1342 nvdimm ? nvdimm_name(nvdimm) : "bus", family, cmd, func, 1344 print_hex_dump_debug("nvdimm i 1325 nfit_ctl_dbg(struct acpi_nfit_desc *acpi_desc, struct nvdimm *nvdimm, unsigned int cmd, void *buf, unsigned int len) argument 1348 nfit_test_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc) argument 2874 struct nvdimm *nvdimm; local [all...] |
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | papr_scm.c | 104 struct nvdimm *nvdimm; member in struct:papr_scm_priv 498 nd_pmu->pmu.name = nvdimm_name(p->nvdimm); 525 dev_info(&p->pdev->dev, "nvdimm pmu didn't register rc=%d\n", rc); 704 static int is_cmd_valid(struct nvdimm *nvdimm, unsigned int cmd, void *buf, argument 713 if (!nvdimm) 716 /* get the provider data from struct nvdimm */ 717 p = nvdimm_provider_data(nvdimm); 1043 struct nvdimm *nvdim 1042 papr_scm_ndctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc) argument 1208 struct nvdimm *nvdimm = to_nvdimm(dev); local [all...] |
/linux-master/drivers/ |
H A D | Makefile | 79 obj-$(CONFIG_LIBNVDIMM) += nvdimm/
|