Lines Matching refs:nfit_mem
55 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_flags() local
72 if (!test_bit(NVDIMM_INTEL_GET_SECURITY_STATE, &nfit_mem->dsm_mask)) in intel_security_flags()
121 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_freeze() local
135 if (!test_bit(NVDIMM_INTEL_FREEZE_LOCK, &nfit_mem->dsm_mask)) in intel_security_freeze()
151 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_change_key() local
169 if (!test_bit(cmd, &nfit_mem->dsm_mask)) in intel_security_change_key()
198 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_unlock() local
213 if (!test_bit(NVDIMM_INTEL_UNLOCK_UNIT, &nfit_mem->dsm_mask)) in intel_security_unlock()
240 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_disable() local
254 if (!test_bit(NVDIMM_INTEL_DISABLE_PASSPHRASE, &nfit_mem->dsm_mask)) in intel_security_disable()
281 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_erase() local
297 if (!test_bit(cmd, &nfit_mem->dsm_mask)) in intel_security_erase()
328 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_query_overwrite() local
341 if (!test_bit(NVDIMM_INTEL_QUERY_OVERWRITE, &nfit_mem->dsm_mask)) in intel_security_query_overwrite()
366 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_overwrite() local
380 if (!test_bit(NVDIMM_INTEL_OVERWRITE, &nfit_mem->dsm_mask)) in intel_security_overwrite()
635 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_fwa_state() local
636 struct acpi_nfit_desc *acpi_desc = nfit_mem->acpi_desc; in intel_fwa_state()
644 switch (nfit_mem->fwa_state) { in intel_fwa_state()
650 if (nfit_mem->fwa_count == acpi_desc->fwa_count) in intel_fwa_state()
651 return nfit_mem->fwa_state; in intel_fwa_state()
660 nfit_mem->fwa_state = NVDIMM_FWA_IDLE; in intel_fwa_state()
663 nfit_mem->fwa_state = NVDIMM_FWA_BUSY; in intel_fwa_state()
666 nfit_mem->fwa_state = NVDIMM_FWA_ARMED; in intel_fwa_state()
669 nfit_mem->fwa_state = NVDIMM_FWA_INVALID; in intel_fwa_state()
675 nfit_mem->fwa_result = NVDIMM_FWA_RESULT_NONE; in intel_fwa_state()
678 nfit_mem->fwa_result = NVDIMM_FWA_RESULT_SUCCESS; in intel_fwa_state()
681 nfit_mem->fwa_result = NVDIMM_FWA_RESULT_NOTSTAGED; in intel_fwa_state()
684 nfit_mem->fwa_result = NVDIMM_FWA_RESULT_NEEDRESET; in intel_fwa_state()
691 nfit_mem->fwa_result = NVDIMM_FWA_RESULT_FAIL; in intel_fwa_state()
695 nfit_mem->fwa_count = acpi_desc->fwa_count; in intel_fwa_state()
697 return nfit_mem->fwa_state; in intel_fwa_state()
702 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_fwa_result() local
703 struct acpi_nfit_desc *acpi_desc = nfit_mem->acpi_desc; in intel_fwa_result()
705 if (nfit_mem->fwa_count == acpi_desc->fwa_count in intel_fwa_result()
706 && nfit_mem->fwa_result > NVDIMM_FWA_RESULT_INVALID) in intel_fwa_result()
707 return nfit_mem->fwa_result; in intel_fwa_result()
710 return nfit_mem->fwa_result; in intel_fwa_result()
717 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_fwa_arm() local
718 struct acpi_nfit_desc *acpi_desc = nfit_mem->acpi_desc; in intel_fwa_arm()
762 nfit_mem->fwa_state = NVDIMM_FWA_INVALID; in intel_fwa_arm()