Lines Matching refs:PlatformLangCodes

667   Hook the operations in PlatformLangCodes, LangCodes, PlatformLang and Lang.
669 When setting Lang/LangCodes, simultaneously update PlatformLang/PlatformLangCodes.
671 According to UEFI spec, PlatformLangCodes/LangCodes are only set once in firmware initialization,
705 if (StrCmp (VariableName, L"PlatformLangCodes") == 0) {
707 // PlatformLangCodes is a volatile variable, so it can not be updated at runtime.
716 // According to UEFI spec, PlatformLangCodes is only set once in firmware initialization, and is read-only
719 if (mVariableModuleGlobal->PlatformLangCodes != NULL) {
720 FreePool (mVariableModuleGlobal->PlatformLangCodes);
722 mVariableModuleGlobal->PlatformLangCodes = AllocateRuntimeCopyPool (DataSize, Data);
723 ASSERT (mVariableModuleGlobal->PlatformLangCodes != NULL);
726 // PlatformLang holds a single language from PlatformLangCodes,
727 // so the size of PlatformLangCodes is enough for the PlatformLang.
757 && (mVariableModuleGlobal->PlatformLangCodes != NULL)
796 // Update Lang when PlatformLangCodes/LangCodes were set.
798 if ((mVariableModuleGlobal->PlatformLangCodes != NULL) && (mVariableModuleGlobal->LangCodes != NULL)) {
802 BestPlatformLang = VariableGetBestLanguage (mVariableModuleGlobal->PlatformLangCodes, FALSE, Data, NULL);
807 Index = GetIndexFromSupportedLangCodes (mVariableModuleGlobal->PlatformLangCodes, BestPlatformLang, FALSE);
829 // Update PlatformLang when PlatformLangCodes/LangCodes were set.
831 if ((mVariableModuleGlobal->PlatformLangCodes != NULL) && (mVariableModuleGlobal->LangCodes != NULL)) {
845 BestPlatformLang = GetLangFromSupportedLangCodes (mVariableModuleGlobal->PlatformLangCodes, Index, FALSE);
1436 // Hook the operation of setting PlatformLangCodes/PlatformLang and LangCodes/Lang