Lines Matching refs:PlatformLang

561         mVariableModuleGlobal->PlatformLang[CompareLength] = '\0';
562 return CopyMem (mVariableModuleGlobal->PlatformLang, Supported - CompareLength, CompareLength);
678 Buffer = Iso639Language ? mVariableModuleGlobal->Lang : mVariableModuleGlobal->PlatformLang;
706 Hook the operations in PlatformLangCodes, LangCodes, PlatformLang and Lang.
708 When setting Lang/LangCodes, simultaneously update PlatformLang/PlatformLangCodes.
765 // PlatformLang holds a single language from PlatformLangCodes,
766 // so the size of PlatformLangCodes is enough for the PlatformLang.
768 if (mVariableModuleGlobal->PlatformLang != NULL) {
769 FreePool (mVariableModuleGlobal->PlatformLang);
771 mVariableModuleGlobal->PlatformLang = AllocateRuntimePool (DataSize);
772 ASSERT (mVariableModuleGlobal->PlatformLang != NULL);
799 // Update Lang if PlatformLang is already set
800 // Update PlatformLang if Lang is already set
802 Status = FindVariable (L"PlatformLang", &gEfiGlobalVariableGuid, &Variable, (VARIABLE_GLOBAL *) mVariableModuleGlobal);
807 VariableName = L"PlatformLang";
814 // Update PlatformLang
821 // Neither PlatformLang nor Lang is set, directly return
829 // According to UEFI spec, "Lang" and "PlatformLang" is NV|BS|RT attributions.
833 if (StrCmp (VariableName, L"PlatformLang") == 0) {
839 // When setting PlatformLang, firstly get most matched language string from supported language codes.
854 // Successfully convert PlatformLang to Lang, and set the BestLang value into Lang variable simultaneously.
860 DEBUG ((EFI_D_INFO, "Variable Driver Auto Update PlatformLang, PlatformLang:%a, Lang:%a\n", BestPlatformLang, BestLang));
868 // Update PlatformLang when PlatformLangCodes/LangCodes were set.
887 // Successfully convert Lang to PlatformLang, and set the BestPlatformLang value into PlatformLang variable simultaneously.
889 FindVariable (L"PlatformLang", &gEfiGlobalVariableGuid, &Variable, (VARIABLE_GLOBAL *)mVariableModuleGlobal);
891 Status = UpdateVariable (L"PlatformLang", &gEfiGlobalVariableGuid, BestPlatformLang,
894 DEBUG ((EFI_D_INFO, "Variable Driver Auto Update Lang, Lang:%a, PlatformLang:%a\n", BestLang, BestPlatformLang));
1475 // Hook the operation of setting PlatformLangCodes/PlatformLang and LangCodes/Lang