Lines Matching refs:Value
43 // We can safely assume for now that we are concatenating a narrow value to this string.
54 Get UINT64 type value.
56 @param Value Input Hii value.
58 @retval UINT64 Return the UINT64 type value.
63 IN EFI_HII_VALUE *Value
70 switch (Value->Type) {
72 RetVal = Value->Value.u8;
76 RetVal = Value->Value.u16;
80 RetVal = Value->Value.u32;
84 RetVal = Value->Value.b;
88 RetVal = *(UINT64*) &Value->Value.date;
92 RetVal = (*(UINT64*) &Value->Value.time) & 0xffffff;
96 RetVal = Value->Value.u64;
104 Check whether this value type can be transfer to EFI_IFR_TYPE_BUFFER type.
107 EFI_IFR_TYPE_BUFFER when do the value compare.
109 @param Value Expression value to compare on.
111 @retval TRUE This value type can be transter to EFI_IFR_TYPE_BUFFER type.
112 @retval FALSE This value type can't be transter to EFI_IFR_TYPE_BUFFER type.
117 IN EFI_HII_VALUE *Value
120 switch (Value->Type) {
133 Check whether this value type can be transfer to EFI_IFR_TYPE_UINT64
135 @param Value Expression value to compare on.
137 @retval TRUE This value type can be transter to EFI_IFR_TYPE_BUFFER type.
138 @retval FALSE This value type can't be transter to EFI_IFR_TYPE_BUFFER type.
143 IN EFI_HII_VALUE *Value
146 switch (Value->Type) {
160 Return the buffer length and buffer pointer for this value.
163 EFI_IFR_TYPE_BUFFER when do the value compare.
165 @param Value Expression value to compare on.
172 IN EFI_HII_VALUE *Value,
177 switch (Value->Type) {
179 *Buf = Value->Buffer;
180 *BufLen = Value->BufferLen;
184 *Buf = (UINT8 *) (&Value->Value.date);
189 *Buf = (UINT8 *) (&Value->Value.time);
194 *Buf = (UINT8 *) (&Value->Value.ref);
205 Compare two Hii value.
207 @param Value1 Expression value to compare on left-hand.
208 @param Value2 Expression value to compare on right-hand.
209 @param Result Return value after compare.
211 return Positive value if Value1 is greater than Value2.
212 retval Negative value if Value1 is less than Value2.
216 @retval EFI_SUCCESS Compare the value success.
237 if (Value1->Value.string == 0 || Value2->Value.string == 0) {
244 if (Value1->Value.string == Value2->Value.string) {
249 Str1 = GetToken (Value1->Value.string, HiiHandle);
257 Str2 = GetToken (Value2->Value.string, HiiHandle);
283 // So which value has more data, which value is bigger.
309 Search an Option of a Question by its value.
312 @param OptionValue Value for Option to be searched.
327 EFI_HII_VALUE Value;
333 ZeroMem (&Value, sizeof (EFI_HII_VALUE));
334 Value.Type = Option->OptionOpCode->Type;
335 CopyMem (&Value.Value, &Option->OptionOpCode->Value, Option->OptionOpCode->Header.Length - OFFSET_OF (EFI_IFR_ONE_OF_OPTION, Value));
337 if ((CompareHiiValue (&Value, OptionValue, &Result, NULL) == EFI_SUCCESS) && (Result == 0)) {
355 @retval Value The data to be returned
396 Set value of a data element in an Array by its Index.
401 @param Value The value to be set.
409 IN UINT64 Value
417 *(((UINT8 *) Array) + Index) = (UINT8) Value;
421 *(((UINT16 *) Array) + Index) = (UINT16) Value;
425 *(((UINT32 *) Array) + Index) = (UINT32) Value;
429 *(((UINT64 *) Array) + Index) = (UINT64) Value;
438 Check whether this value already in the array, if yes, return the index.
442 @param Value The value to be find.
443 @param Index The index in the array which has same value with Value.
445 @retval TRUE Found the value in the array.
446 @retval FALSE Not found the value.
453 IN UINT64 Value,
468 ValueComp = (UINT8) Value;
472 ValueComp = (UINT16) Value;
476 ValueComp = (UINT32) Value;
480 ValueComp = (UINT64) Value;
503 Print Question Value according to it's storage width and display attributes.
520 INT64 Value;
532 Value = (INT64) QuestionValue->Value.u64;
537 Value = (INT64) ((INT8) QuestionValue->Value.u8);
541 Value = (INT64) ((INT16) QuestionValue->Value.u16);
545 Value = (INT64) ((INT32) QuestionValue->Value.u32);
553 if (Value < 0) {
554 Value = -Value;
573 UnicodeSPrint (FormattedNumber, BufferSize, Format, Value);
892 gUserInput->InputValue.Value.string = HiiSetString(gFormData->HiiHandle, gUserInput->InputValue.Value.string, StringPtr, NULL);
924 @param SkipErrorValue Whether need to return when value without option for it.
1005 HiiValue.Value.u64 = 0;
1007 HiiValue.Value.u64 = GetArrayData (ValueArray, ValueType, Index);
1008 if (HiiValue.Value.u64 == 0) {
1019 // Just try to get the option string, skip the value which not has option.
1032 // The initial value of the orderedlist is invalid, force to be valid value
1033 // Exit current DisplayForm with new value.
1048 SetArrayData (ValueArray, ValueType, Index2, Option->OptionOpCode->Value.u64);
1085 if (FindArrayData (ValueArray, ValueType, OneOfOption->OptionOpCode->Value.u64, NULL)) {
1117 // The initial value of the orderedlist is invalid, force to be valid value
1118 // Exit current DisplayForm with new value.
1129 SetArrayData (ValueArray, ValueType, Index++, OneOfOption->OptionOpCode->Value.u64);
1174 // Force the Question value to be valid
1175 // Exit current DisplayForm with new value.
1183 gUserInput->InputValue.Value.u8 = Option->OptionOpCode->Value.u8;
1186 CopyMem (&gUserInput->InputValue.Value.u16, &Option->OptionOpCode->Value.u16, sizeof (UINT16));
1189 CopyMem (&gUserInput->InputValue.Value.u32, &Option->OptionOpCode->Value.u32, sizeof (UINT32));
1192 CopyMem (&gUserInput->InputValue.Value.u64, &Option->OptionOpCode->Value.u64, sizeof (UINT64));
1224 gUserInput->InputValue.Value.b = (BOOLEAN) (QuestionValue->Value.b ? FALSE : TRUE);
1236 if (QuestionValue->Value.b) {
1281 if (QuestionValue->Value.date.Month == 0xff){
1284 UnicodeSPrint (OptionString[0] + 1, 21 * sizeof (CHAR16), L"%02d", QuestionValue->Value.date.Month);
1291 if (QuestionValue->Value.date.Day == 0xff){
1294 UnicodeSPrint (OptionString[0] + 4, 21 * sizeof (CHAR16), L"%02d", QuestionValue->Value.date.Day);
1301 if (QuestionValue->Value.date.Year == 0xff){
1304 UnicodeSPrint (OptionString[0] + 7, 21 * sizeof (CHAR16), L"%04d", QuestionValue->Value.date.Year);
1325 if (QuestionValue->Value.time.Hour == 0xff){
1328 UnicodeSPrint (OptionString[0] + 1, 21 * sizeof (CHAR16), L"%02d", QuestionValue->Value.time.Hour);
1335 if (QuestionValue->Value.time.Minute == 0xff){
1338 UnicodeSPrint (OptionString[0] + 4, 21 * sizeof (CHAR16), L"%02d", QuestionValue->Value.time.Minute);
1345 if (QuestionValue->Value.time.Second == 0xff){
1348 UnicodeSPrint (OptionString[0] + 7, 21 * sizeof (CHAR16), L"%02d", QuestionValue->Value.time.Second);
1371 gUserInput->InputValue.Value.string = HiiSetString(gFormData->HiiHandle, gUserInput->InputValue.Value.string, StringPtr, NULL);