Lines Matching refs:nvdimm

10 static unsigned long intel_security_flags(struct nvdimm *nvdimm,  in intel_security_flags()  argument
13 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_flags()
38 if (nvdimm_in_overwrite(nvdimm) && ptype == NVDIMM_USER) in intel_security_flags()
41 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_flags()
44 nvdimm_name(nvdimm), rc, nd_cmd.cmd.status); in intel_security_flags()
77 static int intel_security_freeze(struct nvdimm *nvdimm) in intel_security_freeze() argument
79 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_freeze()
96 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_freeze()
104 static int intel_security_change_key(struct nvdimm *nvdimm, in intel_security_change_key() argument
109 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_change_key()
134 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_change_key()
153 static int __maybe_unused intel_security_unlock(struct nvdimm *nvdimm, in intel_security_unlock() argument
156 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_unlock()
176 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_unlock()
194 static int intel_security_disable(struct nvdimm *nvdimm, in intel_security_disable() argument
198 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_disable()
217 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_disable()
234 static int __maybe_unused intel_security_erase(struct nvdimm *nvdimm, in intel_security_erase() argument
239 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_erase()
262 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_erase()
283 static int __maybe_unused intel_security_query_overwrite(struct nvdimm *nvdimm) in intel_security_query_overwrite() argument
286 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_query_overwrite()
302 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_query_overwrite()
320 static int __maybe_unused intel_security_overwrite(struct nvdimm *nvdimm, in intel_security_overwrite() argument
324 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_overwrite()
345 rc = nvdimm_ctl(nvdimm, ND_CMD_CALL, &nd_cmd, sizeof(nd_cmd), NULL); in intel_security_overwrite()