Lines Matching refs:PlatformLangCodes

1149   Hook the operations in PlatformLangCodes, LangCodes, PlatformLang and Lang.
1151 When setting Lang/LangCodes, simultaneously update PlatformLang/PlatformLangCodes.
1153 According to UEFI spec, PlatformLangCodes/LangCodes are only set once in firmware initialization,
1187 if (StrCmp (VariableName, L"PlatformLangCodes") == 0) {
1189 // PlatformLangCodes is a volatile variable, so it can not be updated at runtime.
1198 // According to UEFI spec, PlatformLangCodes is only set once in firmware initialization, and is read-only
1201 if (mVariableModuleGlobal->PlatformLangCodes != NULL) {
1202 FreePool (mVariableModuleGlobal->PlatformLangCodes);
1204 mVariableModuleGlobal->PlatformLangCodes = AllocateRuntimeCopyPool (DataSize, Data);
1205 ASSERT (mVariableModuleGlobal->PlatformLangCodes != NULL);
1208 // PlatformLang holds a single language from PlatformLangCodes,
1209 // so the size of PlatformLangCodes is enough for the PlatformLang.
1239 && (mVariableModuleGlobal->PlatformLangCodes != NULL)
1278 // Update Lang when PlatformLangCodes/LangCodes were set.
1280 if ((mVariableModuleGlobal->PlatformLangCodes != NULL) && (mVariableModuleGlobal->LangCodes != NULL)) {
1284 BestPlatformLang = VariableGetBestLanguage (mVariableModuleGlobal->PlatformLangCodes, FALSE, Data, NULL);
1289 Index = GetIndexFromSupportedLangCodes (mVariableModuleGlobal->PlatformLangCodes, BestPlatformLang, FALSE);
1312 // Update PlatformLang when PlatformLangCodes/LangCodes were set.
1314 if ((mVariableModuleGlobal->PlatformLangCodes != NULL) && (mVariableModuleGlobal->LangCodes != NULL)) {
1328 BestPlatformLang = GetLangFromSupportedLangCodes (mVariableModuleGlobal->PlatformLangCodes, Index, FALSE);
2099 // Hook the operation of setting PlatformLangCodes/PlatformLang and LangCodes/Lang.