Lines Matching refs:nfit_mem
56 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_flags() local
73 if (!test_bit(NVDIMM_INTEL_GET_SECURITY_STATE, &nfit_mem->dsm_mask)) in intel_security_flags()
122 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_freeze() local
136 if (!test_bit(NVDIMM_INTEL_FREEZE_LOCK, &nfit_mem->dsm_mask)) in intel_security_freeze()
152 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_change_key() local
170 if (!test_bit(cmd, &nfit_mem->dsm_mask)) in intel_security_change_key()
197 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_unlock() local
212 if (!test_bit(NVDIMM_INTEL_UNLOCK_UNIT, &nfit_mem->dsm_mask)) in intel_security_unlock()
236 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_disable() local
250 if (!test_bit(NVDIMM_INTEL_DISABLE_PASSPHRASE, &nfit_mem->dsm_mask)) in intel_security_disable()
277 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_erase() local
293 if (!test_bit(cmd, &nfit_mem->dsm_mask)) in intel_security_erase()
320 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_query_overwrite() local
333 if (!test_bit(NVDIMM_INTEL_QUERY_OVERWRITE, &nfit_mem->dsm_mask)) in intel_security_query_overwrite()
356 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_overwrite() local
370 if (!test_bit(NVDIMM_INTEL_OVERWRITE, &nfit_mem->dsm_mask)) in intel_security_overwrite()
607 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_fwa_state() local
608 struct acpi_nfit_desc *acpi_desc = nfit_mem->acpi_desc; in intel_fwa_state()
616 switch (nfit_mem->fwa_state) { in intel_fwa_state()
622 if (nfit_mem->fwa_count == acpi_desc->fwa_count) in intel_fwa_state()
623 return nfit_mem->fwa_state; in intel_fwa_state()
632 nfit_mem->fwa_state = NVDIMM_FWA_IDLE; in intel_fwa_state()
635 nfit_mem->fwa_state = NVDIMM_FWA_BUSY; in intel_fwa_state()
638 nfit_mem->fwa_state = NVDIMM_FWA_ARMED; in intel_fwa_state()
641 nfit_mem->fwa_state = NVDIMM_FWA_INVALID; in intel_fwa_state()
647 nfit_mem->fwa_result = NVDIMM_FWA_RESULT_NONE; in intel_fwa_state()
650 nfit_mem->fwa_result = NVDIMM_FWA_RESULT_SUCCESS; in intel_fwa_state()
653 nfit_mem->fwa_result = NVDIMM_FWA_RESULT_NOTSTAGED; in intel_fwa_state()
656 nfit_mem->fwa_result = NVDIMM_FWA_RESULT_NEEDRESET; in intel_fwa_state()
663 nfit_mem->fwa_result = NVDIMM_FWA_RESULT_FAIL; in intel_fwa_state()
667 nfit_mem->fwa_count = acpi_desc->fwa_count; in intel_fwa_state()
669 return nfit_mem->fwa_state; in intel_fwa_state()
674 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_fwa_result() local
675 struct acpi_nfit_desc *acpi_desc = nfit_mem->acpi_desc; in intel_fwa_result()
677 if (nfit_mem->fwa_count == acpi_desc->fwa_count in intel_fwa_result()
678 && nfit_mem->fwa_result > NVDIMM_FWA_RESULT_INVALID) in intel_fwa_result()
679 return nfit_mem->fwa_result; in intel_fwa_result()
682 return nfit_mem->fwa_result; in intel_fwa_result()
689 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_fwa_arm() local
690 struct acpi_nfit_desc *acpi_desc = nfit_mem->acpi_desc; in intel_fwa_arm()
734 nfit_mem->fwa_state = NVDIMM_FWA_INVALID; in intel_fwa_arm()