/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/Ia32/ |
D | GccInline.c | 130 UINT64 Data; in AsmReadMsr64() local 134 : "=A" (Data) // %0 in AsmReadMsr64() 138 return Data; in AsmReadMsr64() 222 UINTN Data; in AsmReadCr0() local 226 : "=a" (Data) in AsmReadCr0() 229 return Data; in AsmReadCr0() 249 UINTN Data; in AsmReadCr2() local 253 : "=r" (Data) in AsmReadCr2() 256 return Data; in AsmReadCr2() 275 UINTN Data; in AsmReadCr3() local [all …]
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Library/I2cLib/ |
D | I2cLib.c | 132 UINT32 Data; in DisableI2CController() local 146 Data = *((volatile UINT32 *) (UINTN)(Addr)); in DisableI2CController() 147 Data &= ~B_I2C_REG_ENABLE; in DisableI2CController() 148 *((volatile UINT32 *) (UINTN)(Addr)) = Data; in DisableI2CController() 153 Data = 0xFF; in DisableI2CController() 155 Data = *((volatile UINT32 *) (UINTN)(Addr)) & I2C_REG_ENABLE_STATUS; in DisableI2CController() 156 while (Data != 0) { in DisableI2CController() 165 Data = *((volatile UINT32 *) (UINTN)(Addr)); in DisableI2CController() 166 Data &= I2C_REG_ENABLE_STATUS; in DisableI2CController() 179 Data = *((volatile UINT32 *) (UINTN)(Addr)); in DisableI2CController() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/X64/ |
D | GccInline.c | 232 UINTN Data; in AsmReadCr0() local 236 : "=r" (Data) // %0 in AsmReadCr0() 239 return Data; in AsmReadCr0() 259 UINTN Data; in AsmReadCr2() local 263 : "=r" (Data) // %0 in AsmReadCr2() 266 return Data; in AsmReadCr2() 285 UINTN Data; in AsmReadCr3() local 289 : "=r" (Data) // %0 in AsmReadCr3() 292 return Data; in AsmReadCr3() 312 UINTN Data; in AsmReadCr4() local [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/UefiEfiIfrSupportLib/ |
D | UefiIfrOpCodeCreation.c | 75 IN OUT EFI_HII_UPDATE_DATA *Data in CreateEndOpCode() argument 81 ASSERT (Data != NULL && Data->Data != NULL); in CreateEndOpCode() 83 if (Data->Offset + sizeof (EFI_IFR_END) > Data->BufferSize) { in CreateEndOpCode() 91 LocalBuffer = (UINT8 *) Data->Data + Data->Offset; in CreateEndOpCode() 93 Data->Offset += sizeof (EFI_IFR_END); in CreateEndOpCode() 102 IN OUT EFI_HII_UPDATE_DATA *Data in CreateDefaultOpCode() argument 108 ASSERT (Data != NULL && Data->Data != NULL); in CreateDefaultOpCode() 114 if (Data->Offset + sizeof (EFI_IFR_DEFAULT) > Data->BufferSize) { in CreateDefaultOpCode() 125 LocalBuffer = (UINT8 *) Data->Data + Data->Offset; in CreateDefaultOpCode() 127 Data->Offset += sizeof (EFI_IFR_DEFAULT); in CreateDefaultOpCode() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/X64/ |
D | PlatformIoLib.c | 51 UINT32 Data; in GetPciAddress() local 53 Data = 0; in GetPciAddress() 55 Data = (((UINT32) Segment) << 24); in GetPciAddress() 56 Data |= (((UINT32) Bus) << 16); in GetPciAddress() 57 Data |= (((UINT32) DevFunc) << 8); in GetPciAddress() 58 Data |= (UINT32) Register; in GetPciAddress() 60 return Data; in GetPciAddress() 90 UINT8 Data; in PciRead8() local 105 EfiIoRead (EfiCpuIoWidthUint8, (PCI_CONFIG_DATA_PORT + (PciAddress1 & 0x3)), 1, &Data); in PciRead8() 107 return Data; in PciRead8() [all …]
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDControllerDxe/ |
D | SDController.c | 252 UINT32 Data; in SetHighSpeedMode() local 265 &Data in SetHighSpeedMode() 274 Data |= BIT2; in SetHighSpeedMode() 276 Data &= ~BIT2; in SetHighSpeedMode() 284 &Data in SetHighSpeedMode() 295 UINT16 Data; in SetDDRMode() local 306 &Data in SetDDRMode() 308 Data &= 0xFFF0; in SetDDRMode() 310 Data |= 0x0004; // Enable DDR50 by default, later should enable other mode like HS200/400 in SetDDRMode() 311 Data |= BIT3; // Enable 1.8V Signaling in SetDDRMode() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseIoLibIntrinsic/ |
D | IoLibIpf.c | 157 IN UINT8 Data in IoWrite8() argument 168 return MmioWrite8 (Address, Data); in IoWrite8() 188 IN UINT16 Data in IoWrite16() argument 199 return MmioWrite16 (Address, Data); in IoWrite16() 219 IN UINT32 Data in IoWrite32() argument 230 return MmioWrite32 (Address, Data); in IoWrite32() 277 UINT8 Data; in MmioRead8() local 282 Data = *((volatile UINT8 *) Address); in MmioRead8() 285 return Data; in MmioRead8() 306 UINT16 Data; in MmioRead16() local [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ia32/ |
D | PlatformIoLib.c | 51 UINT32 Data; in GetPciAddress() local 53 Data = (((UINT32) Segment) << 24); in GetPciAddress() 54 Data |= (((UINT32) Bus) << 16); in GetPciAddress() 55 Data |= (((UINT32) DevFunc) << 8); in GetPciAddress() 56 Data |= (UINT32) Register; in GetPciAddress() 58 return Data; in GetPciAddress() 88 UINT8 Data; in PciRead8() local 103 EfiIoRead (EfiCpuIoWidthUint8, (PCI_CONFIG_DATA_PORT + (PciAddress1 & 0x3)), 1, &Data); in PciRead8() 105 return Data; in PciRead8() 134 UINT16 Data; in PciRead16() local [all …]
|
/device/linaro/bootloader/edk2/Omap35xxPkg/Library/RealTimeClockLib/ |
D | RealTimeClockLib.c | 54 UINT8 Data; in LibGetTime() local 67 … = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, RTC_CTRL_REG), 1, &Data); in LibGetTime() 69 Data |= BIT6; in LibGetTime() 70 …= gTPS65950->Write (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, RTC_CTRL_REG), 1, &Data); in LibGetTime() 74 …tus = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, YEARS_REG), 1, &Data); in LibGetTime() 76 Time->Year = 2000 + ((Data >> 4) & 0xF) * 10 + (Data & 0xF); in LibGetTime() 78 …us = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, MONTHS_REG), 1, &Data); in LibGetTime() 80 Time->Month = ((Data >> 4) & 0x1) * 10 + (Data & 0xF); in LibGetTime() 82 …atus = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, DAYS_REG), 1, &Data); in LibGetTime() 84 Time->Day = ((Data >> 4) & 0x3) * 10 + (Data & 0xF); in LibGetTime() [all …]
|
/device/linaro/bootloader/OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/Library/RealTimeClockLib/ |
D | RealTimeClockLib.c | 54 UINT8 Data; in LibGetTime() local 67 … = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, RTC_CTRL_REG), 1, &Data); in LibGetTime() 69 Data |= BIT6; in LibGetTime() 70 …= gTPS65950->Write (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, RTC_CTRL_REG), 1, &Data); in LibGetTime() 74 …tus = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, YEARS_REG), 1, &Data); in LibGetTime() 76 Time->Year = 2000 + ((Data >> 4) & 0xF) * 10 + (Data & 0xF); in LibGetTime() 78 …us = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, MONTHS_REG), 1, &Data); in LibGetTime() 80 Time->Month = ((Data >> 4) & 0x1) * 10 + (Data & 0xF); in LibGetTime() 82 …atus = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, DAYS_REG), 1, &Data); in LibGetTime() 84 Time->Day = ((Data >> 4) & 0x3) * 10 + (Data & 0xF); in LibGetTime() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/ |
D | XhciReg.c | 34 UINT8 Data; in XhcReadCapReg8() local 43 &Data in XhcReadCapReg8() 48 Data = 0xFF; in XhcReadCapReg8() 51 return Data; in XhcReadCapReg8() 70 UINT32 Data; in XhcReadCapReg() local 79 &Data in XhcReadCapReg() 84 Data = 0xFFFFFFFF; in XhcReadCapReg() 87 return Data; in XhcReadCapReg() 106 UINT32 Data; in XhcReadOpReg() local 117 &Data in XhcReadOpReg() [all …]
|
/device/linaro/bootloader/edk2/NetworkPkg/Application/IpsecConfig/ |
D | Dump.c | 89 IN UINT8 *Data, in DumpBuf() argument 95 Print (L"%02x ", Data[Index]); in DumpBuf() 267 IN EFI_IPSEC_SPD_DATA *Data, in DumpSpdEntry() argument 290 Print (L"%s ", MapIntegerToString (Data->Action, mMapIpSecAction)); in DumpSpdEntry() 291 Print (L"PF:%08x ", Data->PackageFlag); in DumpSpdEntry() 294 while (Data->Name[Index] != 0) { in DumpSpdEntry() 295 DataName[Index] = (CHAR16) Data->Name[Index]; in DumpSpdEntry() 303 if (Data->Action == EfiIPsecActionProtect) { in DumpSpdEntry() 305 if (Data->ProcessingPolicy->ExtSeqNum) { in DumpSpdEntry() 309 if (Data->ProcessingPolicy->SeqOverflow) { in DumpSpdEntry() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformDxe/ |
D | LegacySpeaker.c | 46 UINT8 Data; in TurnOnSpeaker() 47 Data = IoRead8 (EFI_SPEAKER_CONTROL_PORT); in TurnOnSpeaker() 48 Data |= 0x03; in TurnOnSpeaker() 49 IoWrite8(EFI_SPEAKER_CONTROL_PORT, Data); in TurnOnSpeaker() 64 UINT8 Data; in TurnOffSpeaker() 66 Data = IoRead8 (EFI_SPEAKER_CONTROL_PORT); in TurnOffSpeaker() 67 Data &= 0xFC; in TurnOffSpeaker() 68 IoWrite8(EFI_SPEAKER_CONTROL_PORT, Data); in TurnOffSpeaker() 121 UINT8 Data; in ProgramToneFrequency() 123 Data = 0xB6; in ProgramToneFrequency() [all …]
|
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/ |
D | IpSecConfigImpl.c | 799 IN OUT EFI_IPSEC_SPD_DATA *Data in FixSpdEntry() argument 809 if (Data->ProcessingPolicy != NULL) { in FixSpdEntry() 810 if (Data->ProcessingPolicy->TunnelOption != NULL) { in FixSpdEntry() 811 FIX_REF_BUF_ADDR (Data->ProcessingPolicy->TunnelOption, Data); in FixSpdEntry() 814 FIX_REF_BUF_ADDR (Data->ProcessingPolicy, Data); in FixSpdEntry() 834 IN OUT EFI_IPSEC_SA_DATA2 *Data in FixSadEntry() argument 841 if (Data->AlgoInfo.EspAlgoInfo.AuthKey != NULL) { in FixSadEntry() 842 FIX_REF_BUF_ADDR (Data->AlgoInfo.EspAlgoInfo.AuthKey, Data); in FixSadEntry() 845 if (SaId->Proto == EfiIPsecESP && Data->AlgoInfo.EspAlgoInfo.EncKey != NULL) { in FixSadEntry() 846 FIX_REF_BUF_ADDR (Data->AlgoInfo.EspAlgoInfo.EncKey, Data); in FixSadEntry() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformSetupDxe/ |
D | SetupFunctions.c | 53 IN CHAR8 *Data 60 while (Data[Index] != 0 && Data[Index+1] != 0) { 61 Temp8 = Data[Index]; 62 Data[Index] = Data[Index+1]; in ConvertBase10ToRaw() argument 63 Data[Index+1] = Temp8; 72 IN EFI_EXP_BASE10_DATA *Data) 77 RawData = Data->Value; in ConvertBase2ToRaw() argument 78 for (Index = 0; Index < (UINTN) Data->Exponent; Index++) { 87 IN EFI_EXP_BASE2_DATA *Data) 92 RawData = Data->Value; [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UhciDxe/ |
D | UhciReg.c | 34 UINT16 Data; in UhciReadReg() local 43 &Data in UhciReadReg() 49 Data = 0xFFFF; in UhciReadReg() 52 return Data; in UhciReadReg() 68 IN UINT16 Data in UhciWriteReg() argument 79 &Data in UhciWriteReg() 103 UINT16 Data; in UhciSetRegBit() local 105 Data = UhciReadReg (PciIo, Offset); in UhciSetRegBit() 106 Data = (UINT16) (Data |Bit); in UhciSetRegBit() 107 UhciWriteReg (PciIo, Offset, Data); in UhciSetRegBit() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/Ps2MouseAbsolutePointerDxe/ |
D | CommPs2.c | 36 UINT8 Data; in KbcSelfTest() local 48 Status = In8042Data (IsaIo, &Data); in KbcSelfTest() 53 if (Data != 0x55) { in KbcSelfTest() 64 Status = In8042Data (IsaIo, &Data); in KbcSelfTest() 74 Data |= CMD_SYS_FLAG; in KbcSelfTest() 75 Status = Out8042Data (IsaIo, Data); in KbcSelfTest() 170 UINT8 Data; in CheckKbStatus() local 180 Status = In8042Data (IsaIo, &Data); in CheckKbStatus() 187 if ((Data & CMD_KB_STS) == CMD_KB_DIS) { in CheckKbStatus() 209 UINT8 Data; in PS2MouseReset() local [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/ |
D | CommPs2.c | 36 UINT8 Data; in KbcSelfTest() local 48 Status = In8042Data (IsaIo, &Data); in KbcSelfTest() 53 if (Data != 0x55) { in KbcSelfTest() 64 Status = In8042Data (IsaIo, &Data); in KbcSelfTest() 74 Data |= CMD_SYS_FLAG; in KbcSelfTest() 75 Status = Out8042Data (IsaIo, Data); in KbcSelfTest() 170 UINT8 Data; in CheckKbStatus() local 180 Status = In8042Data (IsaIo, &Data); in CheckKbStatus() 187 if ((Data & CMD_KB_STS) == CMD_KB_DIS) { in CheckKbStatus() 209 UINT8 Data; in PS2MouseReset() local [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformInitPei/ |
D | LegacySpeaker.c | 58 UINT8 Data; in TurnOnSpeaker() 59 Data = IoRead8 (EFI_SPEAKER_CONTROL_PORT); in TurnOnSpeaker() 60 Data |= 0x03; in TurnOnSpeaker() 61 IoWrite8(EFI_SPEAKER_CONTROL_PORT, Data); in TurnOnSpeaker() 78 UINT8 Data; in TurnOffSpeaker() 80 Data = IoRead8 (EFI_SPEAKER_CONTROL_PORT); in TurnOffSpeaker() 81 Data &= 0xFC; in TurnOffSpeaker() 82 IoWrite8(EFI_SPEAKER_CONTROL_PORT, Data); in TurnOffSpeaker() 126 UINT8 Data; in ProgramToneFrequency() 128 Data = 0xB6; in ProgramToneFrequency() [all …]
|
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Mmc/DwSdDxe/ |
D | DwSdDxe.c | 145 UINT32 Data; in DwSdUpdateClock() local 148 Data = BIT_CMD_WAIT_PRVDATA_COMPLETE | BIT_CMD_UPDATE_CLOCK_ONLY | in DwSdUpdateClock() 150 MmioWrite32 (DWSD_CMD, Data); in DwSdUpdateClock() 152 Data = MmioRead32 (DWSD_CMD); in DwSdUpdateClock() 153 if (!(Data & CMD_START_BIT)) in DwSdUpdateClock() 155 Data = MmioRead32 (DWSD_RINTSTS); in DwSdUpdateClock() 156 if (Data & DWSD_INT_HLE) in DwSdUpdateClock() 170 UINT32 Divider, Rate, Data, Count; in DwSdSetClock() local 187 Data = MmioRead32 (DWSD_STATUS); in DwSdSetClock() 190 } while (Data & DWSD_STS_DATA_BUSY); in DwSdSetClock() [all …]
|
/device/linaro/bootloader/edk2/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/ |
D | Ax88772.c | 38 UINT32 Data; in Ax88772Crc() local 49 Data = *pMacAddress++; in Ax88772Crc() 58 Carry = (( Crc >> 31 ) & 1 ) ^ ( Data & 1 ); in Ax88772Crc() 63 Data >>= 1; in Ax88772Crc() 711 CopyMem (&pRxPacket->Data[0], pData, *pLength); in FillPkt2Queue() 872 && ( pRxPacket->Length <= sizeof ( pRxPacket->Data )) in Ax88772Rx() 885 if ( 0 != ( pRxPacket->Data[0] & 1 )) { in Ax88772Rx() 886 if (( 0xff == pRxPacket->Data[0]) in Ax88772Rx() 887 && ( 0xff == pRxPacket->Data[1]) in Ax88772Rx() 888 && ( 0xff == pRxPacket->Data[2]) in Ax88772Rx() [all …]
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/ |
D | SetVar.c | 73 CONST CHAR16 *Data; in ShellCommandRunSetVar() local 119 Data = ShellCommandLineGetRawValue(Package, 2); in ShellCommandRunSetVar() 130 if (Data == NULL || Data[0] != L'=') { in ShellCommandRunSetVar() 149 } else if (StrCmp(Data, L"=") == 0) { in ShellCommandRunSetVar() 165 ASSERT(Data[0] == L'='); in ShellCommandRunSetVar() 166 Data++; in ShellCommandRunSetVar() 167 ASSERT(Data[0] != L'\0'); in ShellCommandRunSetVar() 199 if (IsStringOfHexNibbles(Data)) { in ShellCommandRunSetVar() 200 if (StrLen(Data) % 2 != 0) { in ShellCommandRunSetVar() 201 …intHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"setvar", Data); in ShellCommandRunSetVar() [all …]
|
/device/linaro/bootloader/edk2/OptionRomPkg/CirrusLogic5430Dxe/ |
D | CirrusLogic5430I2c.c | 41 UINT8 Data in I2cOutb() argument 50 &Data in I2cOutb() 68 UINT8 Data; in I2cInb() local 76 &Data in I2cInb() 78 return Data; in I2cInb() 147 UINT8 Data in I2cSendByte() argument 155 I2cPinWrite (PciIo, I2CDAT_OUT, (UINT8) (Data >> (7 - Index))); in I2cSendByte() 174 UINT8 Data; in I2cReceiveByte() local 177 Data = 0; in I2cReceiveByte() 184 Data = (UINT8) (Data << 1); in I2cReceiveByte() [all …]
|
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/ |
D | TcpOption.c | 64 IN UINT32 Data in TcpPutUint32() argument 67 Data = HTONL (Data); in TcpPutUint32() 68 CopyMem (Buf, &Data, sizeof (UINT32)); in TcpPutUint32() 115 UINT8 *Data; in TcpSynBuildOption() local 132 Data = NetbufAllocSpace ( in TcpSynBuildOption() 138 ASSERT (Data != NULL); in TcpSynBuildOption() 141 TcpPutUint32 (Data, TCP_OPTION_TS_FAST); in TcpSynBuildOption() 142 TcpPutUint32 (Data + 4, mTcpTick); in TcpSynBuildOption() 143 TcpPutUint32 (Data + 8, 0); in TcpSynBuildOption() 156 Data = NetbufAllocSpace ( in TcpSynBuildOption() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ |
D | Tcp4Option.c | 63 IN UINT32 Data in TcpPutUint32() argument 66 Data = HTONL (Data); in TcpPutUint32() 67 CopyMem (Buf, &Data, sizeof (UINT32)); in TcpPutUint32() 117 UINT8 *Data; in TcpSynBuildOption() local 133 Data = NetbufAllocSpace ( in TcpSynBuildOption() 139 ASSERT (Data != NULL); in TcpSynBuildOption() 142 TcpPutUint32 (Data, TCP_OPTION_TS_FAST); in TcpSynBuildOption() 143 TcpPutUint32 (Data + 4, mTcpTick); in TcpSynBuildOption() 144 TcpPutUint32 (Data + 8, 0); in TcpSynBuildOption() 156 Data = NetbufAllocSpace ( in TcpSynBuildOption() [all …]
|