Lines Matching refs:Question
1381 IN OUT FORM_BROWSER_STATEMENT *Question, in BufferToValue() argument
1398 IsString = (BOOLEAN) ((Question->HiiValue.Type == EFI_IFR_TYPE_STRING) ? TRUE : FALSE); in BufferToValue()
1399 if (Question->Storage->Type == EFI_HII_VARSTORE_BUFFER || in BufferToValue()
1400 Question->Storage->Type == EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER) { in BufferToValue()
1409 if (Question->BufferValue != NULL) { in BufferToValue()
1413 Dst = Question->BufferValue; in BufferToValue()
1418 Dst = (UINT8 *) &Question->HiiValue.Value; in BufferToValue()
1439 if (LengthStr > (UINTN) Question->StorageWidth * 2) { in BufferToValue()
1440 Length = (UINTN) Question->StorageWidth * 2; in BufferToValue()
1494 IN OUT FORM_BROWSER_STATEMENT *Question, in GetQuestionValue() argument
1526 if (Question->ValueExpression != NULL) { in GetQuestionValue()
1527 Status = EvaluateExpression (FormSet, Form, Question->ValueExpression); in GetQuestionValue()
1529 if (Question->ValueExpression->Result.Type == EFI_IFR_TYPE_BUFFER) { in GetQuestionValue()
1530 … ASSERT (Question->HiiValue.Type == EFI_IFR_TYPE_BUFFER && Question->HiiValue.Buffer != NULL); in GetQuestionValue()
1531 if (Question->StorageWidth > Question->ValueExpression->Result.BufferLen) { in GetQuestionValue()
1532 …CopyMem (Question->HiiValue.Buffer, Question->ValueExpression->Result.Buffer, Question->ValueExpre… in GetQuestionValue()
1533 Question->HiiValue.BufferLen = Question->ValueExpression->Result.BufferLen; in GetQuestionValue()
1535 …CopyMem (Question->HiiValue.Buffer, Question->ValueExpression->Result.Buffer, Question->StorageWid… in GetQuestionValue()
1536 Question->HiiValue.BufferLen = Question->StorageWidth; in GetQuestionValue()
1538 FreePool (Question->ValueExpression->Result.Buffer); in GetQuestionValue()
1540 Question->HiiValue.Type = Question->ValueExpression->Result.Type; in GetQuestionValue()
1541 …CopyMem (&Question->HiiValue.Value, &Question->ValueExpression->Result.Value, sizeof (EFI_IFR_TYPE… in GetQuestionValue()
1549 if (Question->ReadExpression != NULL && Form->FormType == STANDARD_MAP_FORM_TYPE) { in GetQuestionValue()
1550 Status = EvaluateExpression (FormSet, Form, Question->ReadExpression); in GetQuestionValue()
1552 …((Question->ReadExpression->Result.Type < EFI_IFR_TYPE_OTHER) || (Question->ReadExpression->Result… in GetQuestionValue()
1556 if (Question->ReadExpression->Result.Type == EFI_IFR_TYPE_BUFFER) { in GetQuestionValue()
1557 … ASSERT (Question->HiiValue.Type == EFI_IFR_TYPE_BUFFER && Question->HiiValue.Buffer != NULL); in GetQuestionValue()
1558 if (Question->StorageWidth > Question->ReadExpression->Result.BufferLen) { in GetQuestionValue()
1559 …CopyMem (Question->HiiValue.Buffer, Question->ReadExpression->Result.Buffer, Question->ReadExpress… in GetQuestionValue()
1560 Question->HiiValue.BufferLen = Question->ReadExpression->Result.BufferLen; in GetQuestionValue()
1562 …CopyMem (Question->HiiValue.Buffer, Question->ReadExpression->Result.Buffer, Question->StorageWidt… in GetQuestionValue()
1563 Question->HiiValue.BufferLen = Question->StorageWidth; in GetQuestionValue()
1565 FreePool (Question->ReadExpression->Result.Buffer); in GetQuestionValue()
1567 Question->HiiValue.Type = Question->ReadExpression->Result.Type; in GetQuestionValue()
1568 …CopyMem (&Question->HiiValue.Value, &Question->ReadExpression->Result.Value, sizeof (EFI_IFR_TYPE_… in GetQuestionValue()
1576 Storage = Question->Storage; in GetQuestionValue()
1577 QuestionValue = &Question->HiiValue.Value; in GetQuestionValue()
1582 if (Question->Operand == EFI_IFR_DATE_OP || Question->Operand == EFI_IFR_TIME_OP) { in GetQuestionValue()
1586 switch (Question->Flags & EFI_QF_DATE_STORAGE) { in GetQuestionValue()
1604 if (Question->Operand == EFI_IFR_DATE_OP){ in GetQuestionValue()
1616 if (Question->Operand == EFI_IFR_DATE_OP) { in GetQuestionValue()
1633 StorageWidth = Question->StorageWidth; in GetQuestionValue()
1635 if (Question->BufferValue != NULL) { in GetQuestionValue()
1636 Dst = Question->BufferValue; in GetQuestionValue()
1642 Question->VariableName, in GetQuestionValue()
1657 if (Question->BufferValue != NULL) { in GetQuestionValue()
1661 Dst = Question->BufferValue; in GetQuestionValue()
1666 Dst = (UINT8 *) &Question->HiiValue.Value; in GetQuestionValue()
1681 CopyMem (Dst, Storage->EditBuffer + Question->VarStoreInfo.VarOffset, StorageWidth); in GetQuestionValue()
1686 CopyMem (Dst, Storage->Buffer + Question->VarStoreInfo.VarOffset, StorageWidth); in GetQuestionValue()
1690 Status = GetValueByName (Storage, Question->VariableName, &Value, GetValueFrom); in GetQuestionValue()
1696 Status = BufferToValue (Question, Value); in GetQuestionValue()
1700 FormsetStorage = GetFstStgFromVarId(FormSet, Question->VarStoreId); in GetQuestionValue()
1708 Length += StrLen (Question->BlockName); in GetQuestionValue()
1711 Length += StrLen (Question->VariableName) + 1; in GetQuestionValue()
1720 StrCatS (ConfigRequest, MaxLen, Question->BlockName); in GetQuestionValue()
1723 StrCatS (ConfigRequest, MaxLen, Question->VariableName); in GetQuestionValue()
1765 Status = BufferToValue (Question, Value); in GetQuestionValue()
1775 CopyMem (Storage->EditBuffer + Question->VarStoreInfo.VarOffset, Dst, StorageWidth); in GetQuestionValue()
1777 SetValueByName (Storage, Question->VariableName, Value, GetSetValueWithEditBuffer, NULL); in GetQuestionValue()
1804 IN OUT FORM_BROWSER_STATEMENT *Question, in SetQuestionValue() argument
1841 if (Question->ValueExpression != NULL) { in SetQuestionValue()
1848 if (Question->WriteExpression != NULL && Form->FormType == STANDARD_MAP_FORM_TYPE) { in SetQuestionValue()
1849 Status = EvaluateExpression (FormSet, Form, Question->WriteExpression); in SetQuestionValue()
1858 Storage = Question->Storage; in SetQuestionValue()
1859 QuestionValue = &Question->HiiValue.Value; in SetQuestionValue()
1864 if (Question->Operand == EFI_IFR_DATE_OP || Question->Operand == EFI_IFR_TIME_OP) { in SetQuestionValue()
1868 switch (Question->Flags & EFI_QF_DATE_STORAGE) { in SetQuestionValue()
1889 if (Question->Operand == EFI_IFR_DATE_OP) { in SetQuestionValue()
1899 if ((Question->Flags & EFI_QF_DATE_STORAGE) == QF_DATE_STORAGE_TIME) { in SetQuestionValue()
1912 StorageWidth = Question->StorageWidth; in SetQuestionValue()
1914 if (Question->BufferValue != NULL) { in SetQuestionValue()
1915 Src = Question->BufferValue; in SetQuestionValue()
1921 Question->VariableName, in SetQuestionValue()
1933 if (Question->BufferValue != NULL) { in SetQuestionValue()
1934 Src = Question->BufferValue; in SetQuestionValue()
1936 Src = (UINT8 *) &Question->HiiValue.Value; in SetQuestionValue()
1945 IsString = (BOOLEAN) ((Question->HiiValue.Type == EFI_IFR_TYPE_STRING) ? TRUE : FALSE); in SetQuestionValue()
1953 CopyMem (Storage->EditBuffer + Question->VarStoreInfo.VarOffset, Src, StorageWidth); in SetQuestionValue()
1958 CopyMem (Storage->Buffer + Question->VarStoreInfo.VarOffset, Src, StorageWidth); in SetQuestionValue()
1991 Status = SetValueByName (Storage, Question->VariableName, Value, SetValueTo, &Node); in SetQuestionValue()
2003 Length = StrLen (Question->BlockName) + 7; in SetQuestionValue()
2005 Length = StrLen (Question->VariableName) + 2; in SetQuestionValue()
2012 FormsetStorage = GetFstStgFromVarId(FormSet, Question->VarStoreId); in SetQuestionValue()
2020 StrCatS (ConfigResp, MaxLen, Question->BlockName); in SetQuestionValue()
2024 StrCatS (ConfigResp, MaxLen, Question->VariableName); in SetQuestionValue()
2076 CopyMem (Storage->Buffer + Question->VarStoreInfo.VarOffset, Src, StorageWidth); in SetQuestionValue()
2099 IN FORM_BROWSER_STATEMENT *Question, in ValidateQuestion() argument
2115 ListHead = &Question->InconsistentListHead; in ValidateQuestion()
2119 ListHead = &Question->WarningListHead; in ValidateQuestion()
2123 ListHead = &Question->NoSubmitListHead; in ValidateQuestion()
2212 IN FORM_BROWSER_STATEMENT *Question in ValueChangedValidation() argument
2222 if (!IsListEmpty (&Question->InconsistentListHead)) { in ValueChangedValidation()
2223 Status = ValidateQuestion (FormSet, Form, Question, EFI_HII_EXPRESSION_INCONSISTENT_IF); in ValueChangedValidation()
2232 if (!IsListEmpty (&Question->WarningListHead)) { in ValueChangedValidation()
2233 Status = ValidateQuestion (FormSet, Form, Question, EFI_HII_EXPRESSION_WARNING_IF); in ValueChangedValidation()
2259 FORM_BROWSER_STATEMENT *Question; in NoSubmitCheck() local
2274 Question = FORM_BROWSER_STATEMENT_FROM_LINK (Link); in NoSubmitCheck()
2275 Status = ValidateQuestion (FormSet, Form, Question, EFI_HII_EXPRESSION_NO_SUBMIT_IF); in NoSubmitCheck()
2281 *Statement = Question; in NoSubmitCheck()
2399 FORM_BROWSER_STATEMENT *Question; in SendDiscardInfoToDriver() local
2409 Question = FORM_BROWSER_STATEMENT_FROM_LINK (Link); in SendDiscardInfoToDriver()
2412 if (Question->Storage == NULL || Question->Storage->Type == EFI_HII_VARSTORE_EFI_VARIABLE) { in SendDiscardInfoToDriver()
2416 if ((Question->QuestionFlags & EFI_IFR_FLAG_CALLBACK) != EFI_IFR_FLAG_CALLBACK) { in SendDiscardInfoToDriver()
2420 if (Question->Operand == EFI_IFR_PASSWORD_OP) { in SendDiscardInfoToDriver()
2424 if (!Question->ValueChanged) { in SendDiscardInfoToDriver()
2431 GetQuestionValue (FormSet, Form, Question, GetSetValueWithEditBuffer); in SendDiscardInfoToDriver()
2433 if (Question->Operand == EFI_IFR_STRING_OP){ in SendDiscardInfoToDriver()
2434 …HiiSetString (FormSet->HiiHandle, Question->HiiValue.Value.string, (CHAR16*)Question->BufferValue,… in SendDiscardInfoToDriver()
2437 if (Question->HiiValue.Type == EFI_IFR_TYPE_BUFFER) { in SendDiscardInfoToDriver()
2438 TypeValue = (EFI_IFR_TYPE_VALUE *) Question->BufferValue; in SendDiscardInfoToDriver()
2440 TypeValue = &Question->HiiValue.Value; in SendDiscardInfoToDriver()
2447 Question->QuestionId, in SendDiscardInfoToDriver()
2448 Question->HiiValue.Type, in SendDiscardInfoToDriver()
2470 FORM_BROWSER_STATEMENT *Question; in SubmitCallbackForForm() local
2480 Question = FORM_BROWSER_STATEMENT_FROM_LINK (Link); in SubmitCallbackForForm()
2483 if (Question->Storage == NULL || Question->Storage->Type == EFI_HII_VARSTORE_EFI_VARIABLE) { in SubmitCallbackForForm()
2487 if ((Question->QuestionFlags & EFI_IFR_FLAG_CALLBACK) != EFI_IFR_FLAG_CALLBACK) { in SubmitCallbackForForm()
2491 if (Question->Operand == EFI_IFR_PASSWORD_OP) { in SubmitCallbackForForm()
2495 if (Question->HiiValue.Type == EFI_IFR_TYPE_BUFFER) { in SubmitCallbackForForm()
2496 TypeValue = (EFI_IFR_TYPE_VALUE *) Question->BufferValue; in SubmitCallbackForForm()
2498 TypeValue = &Question->HiiValue.Value; in SubmitCallbackForForm()
2505 Question->QuestionId, in SubmitCallbackForForm()
2506 Question->HiiValue.Type, in SubmitCallbackForForm()
2629 FORM_BROWSER_STATEMENT *Question; in UpdateFlagForForm() local
2634 Question = FORM_BROWSER_STATEMENT_FROM_LINK (Link); in UpdateFlagForForm()
2637 if (!Question->ValueChanged) { in UpdateFlagForForm()
2641 OldValue = Question->ValueChanged; in UpdateFlagForForm()
2646 …Question->ValueChanged = IsQuestionValueChanged(FormSet, Form, Question, GetSetValueWithBothBuffer… in UpdateFlagForForm()
2651 if (SetFlag && OldValue && !Question->ValueChanged) { in UpdateFlagForForm()
2652 if ((Question->QuestionFlags & EFI_IFR_FLAG_RESET_REQUIRED) != 0) { in UpdateFlagForForm()
2656 if ((Question->QuestionFlags & EFI_IFR_FLAG_RECONNECT_REQUIRED) != 0) { in UpdateFlagForForm()
3338 FORM_BROWSER_STATEMENT *Question; in SubmitForFormSet() local
3351 Status = NoSubmitCheck (FormSet, &Form, &Question); in SubmitForFormSet()
3358 FormSet->SaveFailStatement = Question; in SubmitForFormSet()
3366 Question = NULL; in SubmitForFormSet()
3415 FindQuestionFromProgress(FormSet, Storage, Progress, &Form, &Question); in SubmitForFormSet()
3416 ASSERT (Form != NULL && Question != NULL); in SubmitForFormSet()
3418 FormSet->SaveFailStatement = Question; in SubmitForFormSet()
3473 gCurrentSelection->QuestionId = Question->QuestionId; in SubmitForFormSet()
3544 FORM_BROWSER_STATEMENT *Question; in SubmitForSystem() local
3586 Question= LocalFormSet->SaveFailStatement; in SubmitForSystem()
3649 NoSubmitCheck (LocalFormSet, &Form, &Question); in SubmitForSystem()
3658 gCurrentSelection->QuestionId = Question->QuestionId; in SubmitForSystem()
3767 IN FORM_BROWSER_STATEMENT *Question, in GetOffsetFromConfigResp() argument
3777 if (Question->Storage->Type == EFI_HII_VARSTORE_NAME_VALUE) { in GetOffsetFromConfigResp()
3778 RequestElement = StrStr (ConfigResp, Question->VariableName); in GetOffsetFromConfigResp()
3783 RequestElement += StrLen (Question->VariableName) + 1; in GetOffsetFromConfigResp()
3801 RequestElement = StrStr (ConfigResp, Question->BlockName); in GetOffsetFromConfigResp()
3806 RequestElement += StrLen (Question->BlockName) + StrLen (L"&VALUE="); in GetOffsetFromConfigResp()
3813 BlockData = AllocateCopyPool (StrSize(Question->BlockName), Question->BlockName); in GetOffsetFromConfigResp()
3823 RequestElement += StrLen (Question->BlockName) + StrLen (L"&VALUE="); in GetOffsetFromConfigResp()
3843 IN OUT FORM_BROWSER_STATEMENT *Question in GetDefaultValueFromAltCfg() argument
3853 Storage = Question->Storage; in GetDefaultValueFromAltCfg()
3891 Value = GetOffsetFromConfigResp (Question, ConfigResp); in GetDefaultValueFromAltCfg()
3896 return BufferToValue (Question, Value); in GetDefaultValueFromAltCfg()
4032 IN FORM_BROWSER_STATEMENT *Question, in ValueToOption() argument
4040 Link = GetFirstNode (&Question->OptionListHead); in ValueToOption()
4041 while (!IsNull (&Question->OptionListHead, Link)) { in ValueToOption()
4054 Link = GetNextNode (&Question->OptionListHead, Link); in ValueToOption()
4076 IN FORM_BROWSER_STATEMENT *Question, in GetQuestionDefault() argument
4104 if (Question->QuestionId == 0) { in GetQuestionDefault()
4117 HiiValue = &Question->HiiValue; in GetQuestionDefault()
4123 TypeValue = (EFI_IFR_TYPE_VALUE *) Question->BufferValue; in GetQuestionDefault()
4131 …if ((Action > 0) && ((Question->QuestionFlags & EFI_IFR_FLAG_CALLBACK) != 0) && (ConfigAccess != N… in GetQuestionDefault()
4136 Question->QuestionId, in GetQuestionDefault()
4143 NewString = GetToken (Question->HiiValue.Value.string, FormSet->HiiHandle); in GetQuestionDefault()
4146 ASSERT (StrLen (NewString) * sizeof (CHAR16) <= Question->StorageWidth); in GetQuestionDefault()
4147 if (StrLen (NewString) * sizeof (CHAR16) <= Question->StorageWidth) { in GetQuestionDefault()
4148 ZeroMem (Question->BufferValue, Question->StorageWidth); in GetQuestionDefault()
4149 CopyMem (Question->BufferValue, NewString, StrSize (NewString)); in GetQuestionDefault()
4151 CopyMem (Question->BufferValue, NewString, Question->StorageWidth); in GetQuestionDefault()
4164 Status = GetDefaultValueFromAltCfg(FormSet, Form, Question); in GetQuestionDefault()
4173 if (!IsListEmpty (&Question->DefaultListHead)) { in GetQuestionDefault()
4174 Link = GetFirstNode (&Question->DefaultListHead); in GetQuestionDefault()
4175 while (!IsNull (&Question->DefaultListHead, Link)) { in GetQuestionDefault()
4189 ASSERT (HiiValue->Type == EFI_IFR_TYPE_BUFFER && Question->BufferValue != NULL); in GetQuestionDefault()
4190 if (Question->StorageWidth > Default->ValueExpression->Result.BufferLen) { in GetQuestionDefault()
4191 …CopyMem (Question->HiiValue.Buffer, Default->ValueExpression->Result.Buffer, Default->ValueExpress… in GetQuestionDefault()
4192 Question->HiiValue.BufferLen = Default->ValueExpression->Result.BufferLen; in GetQuestionDefault()
4194 …CopyMem (Question->HiiValue.Buffer, Default->ValueExpression->Result.Buffer, Question->StorageWidt… in GetQuestionDefault()
4195 Question->HiiValue.BufferLen = Question->StorageWidth; in GetQuestionDefault()
4218 if (Question->StorageWidth > StrSize (StrValue)) { in GetQuestionDefault()
4219 ZeroMem (Question->BufferValue, Question->StorageWidth); in GetQuestionDefault()
4220 CopyMem (Question->BufferValue, StrValue, StrSize (StrValue)); in GetQuestionDefault()
4222 CopyMem (Question->BufferValue, StrValue, Question->StorageWidth); in GetQuestionDefault()
4229 Link = GetNextNode (&Question->DefaultListHead, Link); in GetQuestionDefault()
4236 if ((Question->Operand == EFI_IFR_ONE_OF_OP) && !IsListEmpty (&Question->OptionListHead)) { in GetQuestionDefault()
4241 Link = GetFirstNode (&Question->OptionListHead); in GetQuestionDefault()
4242 while (!IsNull (&Question->OptionListHead, Link)) { in GetQuestionDefault()
4244 Link = GetNextNode (&Question->OptionListHead, Link); in GetQuestionDefault()
4265 if (Question->Operand == EFI_IFR_CHECKBOX_OP) { in GetQuestionDefault()
4270 …if (((DefaultId == EFI_HII_DEFAULT_CLASS_STANDARD) && ((Question->Flags & EFI_IFR_CHECKBOX_DEFAULT… in GetQuestionDefault()
4271 …((DefaultId == EFI_HII_DEFAULT_CLASS_MANUFACTURING) && ((Question->Flags & EFI_IFR_CHECKBOX_DEFAUL… in GetQuestionDefault()
4299 switch (Question->Operand) { in GetQuestionDefault()
4309 if ((Question->Flags & EFI_IFR_DISPLAY) == 0) { in GetQuestionDefault()
4313 switch (Question->Flags & EFI_IFR_NUMERIC_SIZE) { in GetQuestionDefault()
4315 …if (((INT8) HiiValue->Value.u8 < (INT8) Question->Minimum) || ((INT8) HiiValue->Value.u8 > (INT8) … in GetQuestionDefault()
4316 HiiValue->Value.u8 = (UINT8) Question->Minimum; in GetQuestionDefault()
4321 …f (((INT16) HiiValue->Value.u16 < (INT16) Question->Minimum) || ((INT16) HiiValue->Value.u16 > (IN… in GetQuestionDefault()
4322 HiiValue->Value.u16 = (UINT16) Question->Minimum; in GetQuestionDefault()
4327 …f (((INT32) HiiValue->Value.u32 < (INT32) Question->Minimum) || ((INT32) HiiValue->Value.u32 > (IN… in GetQuestionDefault()
4328 HiiValue->Value.u32 = (UINT32) Question->Minimum; in GetQuestionDefault()
4333 …f (((INT64) HiiValue->Value.u64 < (INT64) Question->Minimum) || ((INT64) HiiValue->Value.u64 > (IN… in GetQuestionDefault()
4334 HiiValue->Value.u64 = Question->Minimum; in GetQuestionDefault()
4342 if ((HiiValue->Value.u64 < Question->Minimum) || (HiiValue->Value.u64 > Question->Maximum)) { in GetQuestionDefault()
4343 HiiValue->Value.u64 = Question->Minimum; in GetQuestionDefault()
4353 if (ValueToOption (Question, HiiValue) == NULL) { in GetQuestionDefault()
4354 Link = GetFirstNode (&Question->OptionListHead); in GetQuestionDefault()
4355 while (!IsNull (&Question->OptionListHead, Link)) { in GetQuestionDefault()
4357 Link = GetNextNode (&Question->OptionListHead, Link); in GetQuestionDefault()
4376 Link = GetFirstNode (&Question->OptionListHead); in GetQuestionDefault()
4377 while (!IsNull (&Question->OptionListHead, Link)) { in GetQuestionDefault()
4380 Link = GetNextNode (&Question->OptionListHead, Link); in GetQuestionDefault()
4387 SetArrayData (Question->BufferValue, Question->ValueType, Index, Option->Value.Value.u64); in GetQuestionDefault()
4390 if (Index >= Question->MaxContainers) { in GetQuestionDefault()
4681 FORM_BROWSER_STATEMENT *Question; in ExtractDefault() local
4711 Question = FORM_BROWSER_STATEMENT_FROM_LINK (Link); in ExtractDefault()
4717 if ((GetDefaultValueScope == GetDefaultForStorage) && (Question->Storage != Storage)) { in ExtractDefault()
4724 if ((GetDefaultValueScope == GetDefaultForNoStorage) && (Question->Storage != NULL)) { in ExtractDefault()
4731 if (Question->Expression != NULL) { in ExtractDefault()
4732 if (EvaluateExpressionList(Question->Expression, TRUE, FormSet, Form) == ExpressDisable) { in ExtractDefault()
4741 Status = ProcessRetrieveForQuestion(FormSet->ConfigAccess, Question, FormSet); in ExtractDefault()
4748 Status = GetQuestionDefault (FormSet, Form, Question, DefaultId); in ExtractDefault()
4757 if ((Question->Storage != NULL) && in ExtractDefault()
4758 (Question->Storage->Type != EFI_HII_VARSTORE_EFI_VARIABLE)) { in ExtractDefault()
4759 SetQuestionValue (FormSet, Form, Question, GetSetValueWithEditBuffer); in ExtractDefault()
4837 IN OUT FORM_BROWSER_STATEMENT *Question, in IsQuestionValueChanged() argument
4852 …if (Question->Storage == NULL && Question->Operand != EFI_IFR_TIME_OP && Question->Operand != EFI_… in IsQuestionValueChanged()
4860 switch (Question->Operand) { in IsQuestionValueChanged()
4862 BufferWidth = Question->StorageWidth; in IsQuestionValueChanged()
4863 BackUpBuffer = AllocateCopyPool (BufferWidth, Question->BufferValue); in IsQuestionValueChanged()
4869 BufferWidth = (UINTN) Question->Maximum * sizeof (CHAR16); in IsQuestionValueChanged()
4870 BackUpBuffer = AllocateCopyPool (BufferWidth, Question->BufferValue); in IsQuestionValueChanged()
4878 CopyMem (&BackUpValue, &Question->HiiValue, sizeof (EFI_HII_VALUE)); in IsQuestionValueChanged()
4881 Status = GetQuestionValue (FormSet, Form, Question, GetSetValueWithEditBuffer); in IsQuestionValueChanged()
4884 switch (Question->Operand) { in IsQuestionValueChanged()
4886 BufferWidth = Question->StorageWidth; in IsQuestionValueChanged()
4887 BackUpBuffer2 = AllocateCopyPool (BufferWidth, Question->BufferValue); in IsQuestionValueChanged()
4893 BufferWidth = (UINTN) Question->Maximum * sizeof (CHAR16); in IsQuestionValueChanged()
4894 BackUpBuffer2 = AllocateCopyPool (BufferWidth, Question->BufferValue); in IsQuestionValueChanged()
4902 CopyMem (&BackUpValue2, &Question->HiiValue, sizeof (EFI_HII_VALUE)); in IsQuestionValueChanged()
4904 Status = GetQuestionValue (FormSet, Form, Question, GetSetValueWithBuffer); in IsQuestionValueChanged()
4907 if (CompareMem (&BackUpValue2, &Question->HiiValue, sizeof (EFI_HII_VALUE)) != 0 || in IsQuestionValueChanged()
4908 CompareMem (BackUpBuffer2, Question->BufferValue, BufferWidth) != 0) { in IsQuestionValueChanged()
4912 Status = GetQuestionValue (FormSet, Form, Question, GetValueFrom); in IsQuestionValueChanged()
4915 if (CompareMem (&BackUpValue, &Question->HiiValue, sizeof (EFI_HII_VALUE)) != 0 || in IsQuestionValueChanged()
4916 CompareMem (BackUpBuffer, Question->BufferValue, BufferWidth) != 0) { in IsQuestionValueChanged()
4921 CopyMem (&Question->HiiValue, &BackUpValue, sizeof (EFI_HII_VALUE)); in IsQuestionValueChanged()
4923 CopyMem (Question->BufferValue, BackUpBuffer, BufferWidth); in IsQuestionValueChanged()
4931 Question->ValueChanged = ValueChanged; in IsQuestionValueChanged()
4958 FORM_BROWSER_STATEMENT *Question; in LoadFormConfig() local
4962 Question = FORM_BROWSER_STATEMENT_FROM_LINK (Link); in LoadFormConfig()
4967 …if (Question->Operand == EFI_IFR_PASSWORD_OP && (Question->QuestionFlags & EFI_IFR_FLAG_CALLBACK)=… in LoadFormConfig()
4968 Status = GetQuestionValue (FormSet, Form, Question, GetSetValueWithHiiDriver); in LoadFormConfig()
4970 Status = GetQuestionValue (FormSet, Form, Question, GetSetValueWithEditBuffer); in LoadFormConfig()
4976 if ((Question->Operand == EFI_IFR_STRING_OP) || (Question->Operand == EFI_IFR_PASSWORD_OP)) { in LoadFormConfig()
4977 …HiiSetString (FormSet->HiiHandle, Question->HiiValue.Value.string, (CHAR16*)Question->BufferValue,… in LoadFormConfig()
5508 FORM_BROWSER_STATEMENT *Question; in SyncStatusForQuestion() local
5523 Question = FORM_BROWSER_STATEMENT_FROM_LINK (QuestionLink); in SyncStatusForQuestion()
5526 if (Question->QuestionId == OldQuestion->QuestionId) { in SyncStatusForQuestion()
5527 Question->ValueChanged = TRUE; in SyncStatusForQuestion()
5550 FORM_BROWSER_STATEMENT *Question; in SyncStatusForFormSet() local
5565 Question = FORM_BROWSER_STATEMENT_FROM_LINK (QuestionLink); in SyncStatusForFormSet()
5568 if (!Question->ValueChanged) { in SyncStatusForFormSet()
5575 SyncStatusForQuestion (NewFormSet, Question); in SyncStatusForFormSet()
6101 FORM_BROWSER_STATEMENT *Question; in PasswordCheck() local
6104 Question = GetBrowserStatement(Statement); in PasswordCheck()
6105 ASSERT (Question != NULL); in PasswordCheck()
6107 if ((Question->QuestionFlags & EFI_IFR_FLAG_CALLBACK) == EFI_IFR_FLAG_CALLBACK) { in PasswordCheck()
6133 Question->QuestionId, in PasswordCheck()
6134 Question->HiiValue.Type, in PasswordCheck()