Lines Matching refs:Data
73 CONST CHAR16 *Data;
119 Data = ShellCommandLineGetRawValue(Package, 2);
130 if (Data == NULL || Data[0] != L'=') {
149 } else if (StrCmp(Data, L"=") == 0) {
165 ASSERT(Data[0] == L'=');
166 Data++;
167 ASSERT(Data[0] != L'\0');
197 // What type is the new data.
199 if (IsStringOfHexNibbles(Data)) {
200 if (StrLen(Data) % 2 != 0) {
201 ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"setvar", Data);
207 Buffer = AllocateZeroPool((StrLen(Data) / 2));
211 for (LoopVar = 0 ; LoopVar < (StrLen(Data) / 2) ; LoopVar++) {
212 ((UINT8*)Buffer)[LoopVar] = (UINT8)(HexCharToUintn(Data[LoopVar*2]) * 16);
213 ((UINT8*)Buffer)[LoopVar] = (UINT8)(((UINT8*)Buffer)[LoopVar] + HexCharToUintn(Data[LoopVar*2+1]));
215 Status = gRT->SetVariable((CHAR16*)VariableName, &Guid, Attributes, StrLen(Data) / 2, Buffer);
224 } else if (StrnCmp(Data, L"\"", 1) == 0) {
228 Data++;
229 Buffer = AllocateZeroPool(StrSize(Data) / 2);
233 AsciiSPrint(Buffer, StrSize(Data) / 2, "%s", Data);
243 } else if (StrnCmp(Data, L"L\"", 2) == 0) {
247 Data++;
248 Data++;
249 Buffer = AllocateZeroPool(StrSize(Data));
254 UnicodeSPrint(Buffer, StrSize(Data), L"%s", Data);
265 } else if (StrnCmp(Data, L"--", 2) == 0) {
269 Data++;
270 Data++;
271 DevPath = ConvertTextToDevicePath(Data);
285 ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"setvar", Data);