Home
last modified time | relevance | path

Searched refs:Digit (Results 1 – 14 of 14) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/WebServer/
DHandles.c36 INTN Digit; in HandlePage() local
124 Digit = (( Value >> Shift ) & 0xf ) | '0'; in HandlePage()
125 if ( '9' < Digit ) { in HandlePage()
126 Digit += 'a' - '0' - 10; in HandlePage()
134 (UINT8) Digit ); in HandlePage()
194 Digit = (( Value >> Shift ) & 0xf ) | '0'; in HandlePage()
195 if ( '9' < Digit ) { in HandlePage()
196 Digit += 'a' - '0' - 10; in HandlePage()
204 (UINT8) Digit ); in HandlePage()
DHTTP.c1189 UINT32 Digit; in HttpSendHexBits() local
1206 Digit = (UINT32)(( Value >> Shift ) & 0xf ); in HttpSendHexBits()
1207 if ( 10 <= Digit ) { in HttpSendHexBits()
1208 Digit += 'a' - '0' - 10; in HttpSendHexBits()
1214 Status = HttpSendByte ( SocketFD, pPort, (UINT8)( '0' + Digit )); in HttpSendHexBits()
1249 UINT32 Digit; in HttpSendHexValue() local
1267 Digit = (UINT32)(( Value >> Shift ) & 0xf ); in HttpSendHexValue()
1268 if ( 10 <= Digit ) { in HttpSendHexValue()
1269 Digit += 'a' - '0' - 10; in HttpSendHexValue()
1275 if (( 0 != Digit ) || bDisplayZeros || ( 0 == Shift )) { in HttpSendHexValue()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/
DString.c461 OUT UINT8 *Digit, in IsHexDigit() argument
481 *Digit = (UINT8) (Char - L'0'); in IsHexDigit()
486 *Digit = (UINT8) (Char - L'A' + 0x0A); in IsHexDigit()
491 *Digit = (UINT8) (Char - L'a' + 0x0A); in IsHexDigit()
556 UINT8 Digit; in HexStringToBuf() local
562 for (Idx = 0, HexCnt = 0; IsHexDigit (&Digit, Str[Idx]); Idx++, HexCnt++); in HexStringToBuf()
585 IsHexDigit (&Digit, Str[HexCnt - 1 - Idx]); in HexStringToBuf()
592 Byte = Digit; in HexStringToBuf()
596 Byte = (UINT8)(Byte | (Digit << 4)); in HexStringToBuf()
/device/linaro/bootloader/edk2/MdeModulePkg/Application/CapsuleApp/
DAppSupport.c85 UINT8 Digit; in InternalStrToBuf() local
88 Digit = 0; in InternalStrToBuf()
98 Digit = (UINT8) (*Str - L'a' + 0x0A); in InternalStrToBuf()
100 Digit = (UINT8) (*Str - L'A' + 0x0A); in InternalStrToBuf()
102 Digit = (UINT8) (*Str - L'0'); in InternalStrToBuf()
112 Byte = (UINT8) (Digit << 4); in InternalStrToBuf()
116 Byte = (UINT8) (Byte | Digit); in InternalStrToBuf()
/device/linaro/bootloader/edk2/BaseTools/Source/Python/AutoGen/
DStrGather.py100 def DecToHexStr(Dec, Digit = 8): argument
101 return eval("'0x%0" + str(Digit) + "X' % int(Dec)")
115 def DecToHexList(Dec, Digit = 8): argument
116 Hex = eval("'%0" + str(Digit) + "X' % int(Dec)")
118 for Bit in range(Digit - 2, -1, -2):
/device/linaro/bootloader/edk2/SignedCapsulePkg/Library/IniParsingLib/
DIniParsingLib.c883 UINT8 Digit; in AsciiStrToBuf() local
886 Digit = 0; in AsciiStrToBuf()
896 Digit = (UINT8) (*Str - 'a' + 0x0A); in AsciiStrToBuf()
898 Digit = (UINT8) (*Str - 'A' + 0x0A); in AsciiStrToBuf()
900 Digit = (UINT8) (*Str - '0'); in AsciiStrToBuf()
910 Byte = (UINT8) (Digit << 4); in AsciiStrToBuf()
914 Byte = (UINT8) (Byte | Digit); in AsciiStrToBuf()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/IScsiDxe/
DIScsiMisc.c456 UINT8 Digit; in IScsiHexToBin() local
472 Digit = (UINT8) AsciiStrHexToUint64 (TemStr); in IScsiHexToBin()
473 if (Digit == 0 && TemStr[0] != '0') { in IScsiHexToBin()
480 BinBuffer [Index/2] = Digit; in IScsiHexToBin()
482 BinBuffer [Index/2] = (UINT8) ((BinBuffer [Index/2] << 4) + Digit); in IScsiHexToBin()
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/
DIScsiMisc.c386 UINT8 Digit; in IScsiHexToBin() local
402 Digit = (UINT8) AsciiStrHexToUint64 (TemStr); in IScsiHexToBin()
403 if (Digit == 0 && TemStr[0] != '0') { in IScsiHexToBin()
410 BinBuffer [Index/2] = Digit; in IScsiHexToBin()
412 BinBuffer [Index/2] = (UINT8) ((BinBuffer [Index/2] << 4) + Digit); in IScsiHexToBin()
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/TftpServer/
DTftpServer.c1461 UINT8 Digit; in TftpOptionValue() local
1478 Digit = *pOption++; in TftpOptionValue()
1479 if (( '0' <= Digit ) && ( '9' >= Digit )) { in TftpOptionValue()
1481 Value += Digit - '0'; in TftpOptionValue()
1486 Digit )); in TftpOptionValue()
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/
DPxeBcSupport.h479 OUT UINT8 *Digit,
DPxeBcSupport.c1445 OUT UINT8 *Digit, in PxeBcUniHexToUint8() argument
1450 *Digit = (UINT8) (Char - L'0'); in PxeBcUniHexToUint8()
1455 *Digit = (UINT8) (Char - L'A' + 0x0A); in PxeBcUniHexToUint8()
1460 *Digit = (UINT8) (Char - L'a' + 0x0A); in PxeBcUniHexToUint8()
DPxeBcDhcp6.c607 UINT8 Digit; in PxeBcExtractBootFileParam() local
626 if (EFI_ERROR (PxeBcUniHexToUint8 (&Digit, *(BootFilePara + Index)))) { in PxeBcExtractBootFileParam()
630 Size = (Size + Digit) * 10; in PxeBcExtractBootFileParam()
/device/linaro/bootloader/edk2/MdePkg/Library/UefiDevicePathLib/
DDevicePathFromText.c347 UINT8 Digit; in StrToBuf() local
350 Digit = 0; in StrToBuf()
360 Digit = (UINT8) (*Str - L'a' + 0x0A); in StrToBuf()
362 Digit = (UINT8) (*Str - L'A' + 0x0A); in StrToBuf()
364 Digit = (UINT8) (*Str - L'0'); in StrToBuf()
374 Byte = (UINT8) (Digit << 4); in StrToBuf()
378 Byte = (UINT8) (Byte | Digit); in StrToBuf()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/Include/
DEfiCommonLib.h1198 OUT UINT8 *Digit,