Lines Matching refs:nvdimm
52 static unsigned long intel_security_flags(struct nvdimm *nvdimm, in intel_security_flags() argument
55 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()
138 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_freeze()
146 static int intel_security_change_key(struct nvdimm *nvdimm, in intel_security_change_key() argument
151 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_change_key()
176 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_change_key()
195 static int __maybe_unused intel_security_unlock(struct nvdimm *nvdimm, in intel_security_unlock() argument
198 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_unlock()
218 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_unlock()
236 static int intel_security_disable(struct nvdimm *nvdimm, in intel_security_disable() argument
240 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_disable()
259 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_disable()
276 static int __maybe_unused intel_security_erase(struct nvdimm *nvdimm, in intel_security_erase() argument
281 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_erase()
304 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_erase()
325 static int __maybe_unused intel_security_query_overwrite(struct nvdimm *nvdimm) in intel_security_query_overwrite() argument
328 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_query_overwrite()
344 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_query_overwrite()
362 static int __maybe_unused intel_security_overwrite(struct nvdimm *nvdimm, in intel_security_overwrite() argument
366 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_overwrite()
387 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_overwrite()
610 static int intel_fwa_dimminfo(struct nvdimm *nvdimm, in intel_fwa_dimminfo() argument
628 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_fwa_dimminfo()
633 static enum nvdimm_fwa_state intel_fwa_state(struct nvdimm *nvdimm) in intel_fwa_state() argument
635 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_fwa_state()
654 rc = intel_fwa_dimminfo(nvdimm, &info); in intel_fwa_state()
700 static enum nvdimm_fwa_result intel_fwa_result(struct nvdimm *nvdimm) in intel_fwa_result() argument
702 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_fwa_result()
709 if (intel_fwa_state(nvdimm) > NVDIMM_FWA_INVALID) in intel_fwa_result()
715 static int intel_fwa_arm(struct nvdimm *nvdimm, enum nvdimm_fwa_trigger arm) in intel_fwa_arm() argument
717 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_fwa_arm()
740 switch (intel_fwa_state(nvdimm)) { in intel_fwa_arm()
764 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_fwa_arm()