Lines Matching refs:PlatformLangCodes

706   Hook the operations in PlatformLangCodes, LangCodes, PlatformLang and Lang.
708 When setting Lang/LangCodes, simultaneously update PlatformLang/PlatformLangCodes.
710 According to UEFI spec, PlatformLangCodes/LangCodes are only set once in firmware initialization,
744 if (StrCmp (VariableName, L"PlatformLangCodes") == 0) {
746 // PlatformLangCodes is a volatile variable, so it can not be updated at runtime.
755 // According to UEFI spec, PlatformLangCodes is only set once in firmware initialization, and is read-only
758 if (mVariableModuleGlobal->PlatformLangCodes != NULL) {
759 FreePool (mVariableModuleGlobal->PlatformLangCodes);
761 mVariableModuleGlobal->PlatformLangCodes = AllocateRuntimeCopyPool (DataSize, Data);
762 ASSERT (mVariableModuleGlobal->PlatformLangCodes != NULL);
765 // PlatformLang holds a single language from PlatformLangCodes,
766 // so the size of PlatformLangCodes is enough for the PlatformLang.
796 && (mVariableModuleGlobal->PlatformLangCodes != NULL)
835 // Update Lang when PlatformLangCodes/LangCodes were set.
837 if ((mVariableModuleGlobal->PlatformLangCodes != NULL) && (mVariableModuleGlobal->LangCodes != NULL)) {
841 BestPlatformLang = VariableGetBestLanguage (mVariableModuleGlobal->PlatformLangCodes, FALSE, Data, NULL);
846 Index = GetIndexFromSupportedLangCodes (mVariableModuleGlobal->PlatformLangCodes, BestPlatformLang, FALSE);
868 // Update PlatformLang when PlatformLangCodes/LangCodes were set.
870 if ((mVariableModuleGlobal->PlatformLangCodes != NULL) && (mVariableModuleGlobal->LangCodes != NULL)) {
884 BestPlatformLang = GetLangFromSupportedLangCodes (mVariableModuleGlobal->PlatformLangCodes, Index, FALSE);
1475 // Hook the operation of setting PlatformLangCodes/PlatformLang and LangCodes/Lang