Home
last modified time | relevance | path

Searched refs:DataLen (Results 1 – 25 of 75) sorted by relevance

123

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Mtftp4Dxe/
DMtftp4Wrq.c41 UINT16 DataLen; in Mtftp4WrqSendBlock() local
64 DataLen = Instance->BlkSize; in Mtftp4WrqSendBlock()
70 DataLen = (UINT16) (Token->BufferSize - Start); in Mtftp4WrqSendBlock()
75 if (DataLen > 0) { in Mtftp4WrqSendBlock()
76 NetbufAllocSpace (UdpPacket, DataLen, FALSE); in Mtftp4WrqSendBlock()
77 CopyMem (Packet->Data.Data, (UINT8 *) Token->Buffer + Start, DataLen); in Mtftp4WrqSendBlock()
88 &DataLen, in Mtftp4WrqSendBlock()
92 if (EFI_ERROR (Status) || (DataLen > Instance->BlkSize)) { in Mtftp4WrqSendBlock()
106 if (DataLen < Instance->BlkSize) { in Mtftp4WrqSendBlock()
111 if (DataLen > 0) { in Mtftp4WrqSendBlock()
[all …]
DMtftp4Rrq.c148 UINT32 DataLen; in Mtftp4RrqSaveBlock() local
155 DataLen = Len - MTFTP4_DATA_HEAD_LEN; in Mtftp4RrqSaveBlock()
160 if (DataLen < Instance->BlkSize) { in Mtftp4RrqSaveBlock()
198 if (Start + DataLen <= Token->BufferSize) { in Mtftp4RrqSaveBlock()
199 CopyMem ((UINT8 *) Token->Buffer + Start, Packet->Data.Data, DataLen); in Mtftp4RrqSaveBlock()
205 Token->BufferSize = Start + DataLen; in Mtftp4RrqSaveBlock()
214 Token->BufferSize = Start + DataLen; in Mtftp4RrqSaveBlock()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/IScsiDxe/
DMd5.c236 IN UINTN DataLen in MD5UpdateBlock() argument
241 for (Limit = 64 - Md5Ctx->Count; DataLen >= 64 - Md5Ctx->Count; Limit = 64) { in MD5UpdateBlock()
247 DataLen -= Limit; in MD5UpdateBlock()
250 CopyMem (Md5Ctx->M + Md5Ctx->Count, (VOID *)Data, DataLen); in MD5UpdateBlock()
251 Md5Ctx->Count += DataLen; in MD5UpdateBlock()
294 IN UINTN DataLen in MD5Update() argument
301 MD5UpdateBlock (Md5Ctx, (CONST UINT8 *) Data, DataLen); in MD5Update()
302 Md5Ctx->Length += DataLen; in MD5Update()
/device/linaro/bootloader/edk2/NetworkPkg/Mtftp6Dxe/
DMtftp6Wrq.c41 UINT16 DataLen; in Mtftp6WrqSendBlock() local
68 DataLen = Instance->BlkSize; in Mtftp6WrqSendBlock()
74 DataLen = (UINT16) (Token->BufferSize - Start); in Mtftp6WrqSendBlock()
79 if (DataLen > 0) { in Mtftp6WrqSendBlock()
80 NetbufAllocSpace (UdpPacket, DataLen, FALSE); in Mtftp6WrqSendBlock()
81 CopyMem (Packet->Data.Data, (UINT8 *) Token->Buffer + Start, DataLen); in Mtftp6WrqSendBlock()
89 Status = Token->PacketNeeded (&Instance->Mtftp6, Token, &DataLen, (VOID*) &DataBuf); in Mtftp6WrqSendBlock()
91 if (EFI_ERROR (Status) || (DataLen > Instance->BlkSize)) { in Mtftp6WrqSendBlock()
107 if (DataLen < Instance->BlkSize) { in Mtftp6WrqSendBlock()
112 if (DataLen > 0) { in Mtftp6WrqSendBlock()
[all …]
DMtftp6Rrq.c96 UINT32 DataLen; in Mtftp6RrqSaveBlock() local
103 DataLen = Len - MTFTP6_DATA_HEAD_LEN; in Mtftp6RrqSaveBlock()
108 if (DataLen < Instance->BlkSize) { in Mtftp6RrqSaveBlock()
158 if (Start + DataLen <= Token->BufferSize) { in Mtftp6RrqSaveBlock()
159 CopyMem ((UINT8 *) Token->Buffer + Start, Packet->Data.Data, DataLen); in Mtftp6RrqSaveBlock()
164 Token->BufferSize = Start + DataLen; in Mtftp6RrqSaveBlock()
172 Token->BufferSize = Start + DataLen; in Mtftp6RrqSaveBlock()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciPei/
DEhciUrb.c38 IN UINTN DataLen, in EhcCreateQtd() argument
60 Qtd->DataLen = 0; in EhcCreateQtd()
91 if (Len + ThisBufLen >= DataLen) { in EhcCreateQtd()
92 Len = DataLen; in EhcCreateQtd()
106 if (Len < DataLen) { in EhcCreateQtd()
111 Qtd->DataLen = Len; in EhcCreateQtd()
426 while (Len < Urb->DataLen) { in EhcCreateQtds()
430 Urb->DataLen - Len, in EhcCreateQtds()
446 if (((Qtd->DataLen + Ep->MaxPacket - 1) / Ep->MaxPacket) % 2) { in EhcCreateQtds()
450 Len += Qtd->DataLen; in EhcCreateQtds()
[all …]
DEhciUrb.h174 UINTN DataLen; // Original amount of data in this QTD member
218 UINTN DataLen; member
255 IN UINTN DataLen,
325 IN UINTN DataLen,
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciDxe/
DEhciUrb.c39 IN UINTN DataLen, in EhcCreateQtd() argument
61 Qtd->DataLen = 0; in EhcCreateQtd()
92 if (Len + ThisBufLen >= DataLen) { in EhcCreateQtd()
93 Len = DataLen; in EhcCreateQtd()
108 if (Len < DataLen) { in EhcCreateQtd()
113 Qtd->DataLen = Len; in EhcCreateQtd()
453 while (Len < Urb->DataLen) { in EhcCreateQtds()
458 Urb->DataLen - Len, in EhcCreateQtds()
474 if (((Qtd->DataLen + Ep->MaxPacket - 1) / Ep->MaxPacket) % 2) { in EhcCreateQtds()
478 Len += Qtd->DataLen; in EhcCreateQtds()
[all …]
DEhciUrb.h178 UINTN DataLen; // Original amount of data in this QTD member
220 UINTN DataLen; member
260 IN UINTN DataLen,
331 IN UINTN DataLen,
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UhciDxe/
DUhciQueue.c308 Td->DataLen = 0; in UhciCreateTd()
358 Td->DataLen = (UINT16) sizeof (EFI_USB_DEVICE_REQUEST); in UhciCreateSetupTd()
421 Td->DataLen = (UINT16) Len; in UhciCreateDataTd()
469 Td->DataLen = 0; in UhciCreateStatusTd()
501 IN UINTN DataLen, in UhciCreateCtrlTds() argument
536 while (DataLen > 0) { in UhciCreateCtrlTds()
540 ThisTdLen = (DataLen > MaxPacket ? MaxPacket : DataLen); in UhciCreateCtrlTds()
569 DataLen -= ThisTdLen; in UhciCreateCtrlTds()
637 IN UINTN DataLen, in UhciCreateBulkOrIntTds() argument
655 while (DataLen > 0) { in UhciCreateBulkOrIntTds()
[all …]
DUhciQueue.h93 UINT16 DataLen; member
235 IN UINTN DataLen,
266 IN UINTN DataLen,
DUhciSched.h69 UINTN DataLen; member
210 IN UINTN DataLen,
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DSockImpl.c85 UINT32 DataLen; in SockTcpDataToRcv() local
99 DataLen = MIN (TcpRsvData->UrgLen, BufLen); in SockTcpDataToRcv()
101 if (DataLen < TcpRsvData->UrgLen) { in SockTcpDataToRcv()
102 TcpRsvData->UrgLen = TcpRsvData->UrgLen - DataLen; in SockTcpDataToRcv()
107 return DataLen; in SockTcpDataToRcv()
111 DataLen = RcvBufEntry->TotalSize; in SockTcpDataToRcv()
115 while ((BufLen > DataLen) && (RcvBufEntry != NULL)) { in SockTcpDataToRcv()
127 if (TcpRsvData->UrgLen + DataLen < BufLen) { in SockTcpDataToRcv()
130 TcpRsvData->UrgLen = TcpRsvData->UrgLen - (BufLen - DataLen); in SockTcpDataToRcv()
133 return MIN (TcpRsvData->UrgLen + DataLen, BufLen); in SockTcpDataToRcv()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/TpmCommLib/
DTpmComm.c31 IN UINTN DataLen, in TpmCommHashAll() argument
43 Sha1Update (Sha1Ctx, Data, DataLen); in TpmCommHashAll()
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
DSockImpl.c109 UINT32 DataLen; in SockTcpDataToRcv() local
131 DataLen = MIN (TcpRsvData->UrgLen, BufLen); in SockTcpDataToRcv()
133 if (DataLen < TcpRsvData->UrgLen) { in SockTcpDataToRcv()
134 TcpRsvData->UrgLen = TcpRsvData->UrgLen - DataLen; in SockTcpDataToRcv()
139 return DataLen; in SockTcpDataToRcv()
147 DataLen = RcvBufEntry->TotalSize; in SockTcpDataToRcv()
151 while ((BufLen > DataLen) && (RcvBufEntry != NULL)) { in SockTcpDataToRcv()
163 if (TcpRsvData->UrgLen + DataLen < BufLen) { in SockTcpDataToRcv()
166 TcpRsvData->UrgLen = TcpRsvData->UrgLen - (BufLen - DataLen); in SockTcpDataToRcv()
169 return MIN (TcpRsvData->UrgLen + DataLen, BufLen); in SockTcpDataToRcv()
[all …]
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/
DDebugCommunicationLibUsb3Transfer.c264 Handle->DataCount = (UINT8) (Handle->UrbIn.DataLen - EvtTrb->Length); in XhcCheckUrbResult()
438 Trb->TrbNormal.Length = Urb->DataLen; in XhcCreateTransferTrb()
469 IN UINTN DataLen in XhcCreateUrb() argument
498 Urb->DataLen = (UINT32) DataLen; in XhcCreateUrb()
503 ZeroMem ((VOID*)(UINTN) Urb->Data, DataLen); in XhcCreateUrb()
504 CopyMem ((VOID*)(UINTN) Urb->Data, Data, DataLen); in XhcCreateUrb()
505 Urb->DataLen = (UINT32) DataLen; in XhcCreateUrb()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/
DUsbMassBot.c165 UINTN DataLen; in UsbBotSendCommand() local
175 Cbw.DataLen = TransLen; in UsbBotSendCommand()
184 DataLen = sizeof (USB_BOT_CBW); in UsbBotSendCommand()
194 &DataLen, in UsbBotSendCommand()
405 IN UINT32 DataLen, in UsbBotExecCommand() argument
423 Status = UsbBotSendCommand (UsbBot, Cmd, CmdLen, DataDir, DataLen, Lun); in UsbBotExecCommand()
434 TransLen = (UINTN) DataLen; in UsbBotExecCommand()
440 Status = UsbBotGetStatus (UsbBot, DataLen, &Result); in UsbBotExecCommand()
DUsbMassBot.h63 UINT32 DataLen; ///< Length of data between CBW and CSW member
139 IN UINT32 DataLen,
DUsbMassCbi.c184 UINTN DataLen; in UsbCbiSendCommand() local
205 DataLen = CmdLen; in UsbCbiSendCommand()
213 DataLen, in UsbCbiSendCommand()
439 IN UINT32 DataLen, in UsbCbiExecCommand() argument
468 TransLen = (UINTN) DataLen; in UsbCbiExecCommand()
/device/linaro/bootloader/OpenPlatformPkg/Drivers/SdMmc/DwMmcHcDxe/
DDwMmcHci.c1066 UINT64 DataLen; in BuildDmaDescTable() local
1082 DataLen = Trb->DataLen; in BuildDmaDescTable()
1087 if ((Data >= 0x100000000ul) || ((Data + DataLen) > 0x100000000ul)) { in BuildDmaDescTable()
1098 Entries = (DataLen + DWMMC_DMA_BUF_SIZE - 1) / DWMMC_DMA_BUF_SIZE; in BuildDmaDescTable()
1100 Blocks = (DataLen + DW_MMC_BLOCK_SIZE - 1) / DW_MMC_BLOCK_SIZE; in BuildDmaDescTable()
1155 if (DataLen < DW_MMC_BLOCK_SIZE) { in BuildDmaDescTable()
1156 BlkSize = DataLen; in BuildDmaDescTable()
1157 BytCnt = DataLen; in BuildDmaDescTable()
1158 Remaining = DataLen; in BuildDmaDescTable()
1227 Descending = ((Trb->DataLen + 3) & ~3) - 4; in ReadFifo()
[all …]
/device/linaro/bootloader/edk2/ArmPkg/Drivers/CpuDxe/
DCpuMpCore.c78 ArmProcessorTable->Header.DataLen = GET_GUID_HOB_DATA_SIZE(Hob); in PublishArmProcessorTable()
94 … CopyMem(ArmProcessorTable->ArmCpus,GET_GUID_HOB_DATA(Hob), ArmProcessorTable->Header.DataLen); in PublishArmProcessorTable()
/device/linaro/bootloader/OpenPlatformPkg/Drivers/SdMmc/XenonDxe/
DSdMmcPciHci.c1104 UINT64 DataLen; in BuildAdmaDescTable() local
1115 DataLen = Trb->DataLen; in BuildAdmaDescTable()
1120 if ((Data >= 0x100000000ul) || ((Data + DataLen) > 0x100000000ul)) { in BuildAdmaDescTable()
1131 Entries = DivU64x32 ((DataLen + ADMA_MAX_DATA_PER_LINE - 1), ADMA_MAX_DATA_PER_LINE); in BuildAdmaDescTable()
1184 Remaining = DataLen; in BuildAdmaDescTable()
1255 Trb->DataLen = Packet->InTransferLength; in SdMmcCreateTrb()
1259 Trb->DataLen = Packet->OutTransferLength; in SdMmcCreateTrb()
1263 Trb->DataLen = 0; in SdMmcCreateTrb()
1268 if (Trb->DataLen < Trb->BlockSize) { in SdMmcCreateTrb()
1269 Trb->BlockSize = (UINT16)Trb->DataLen; in SdMmcCreateTrb()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/
DSdMmcPciHci.c1104 UINT64 DataLen; in BuildAdmaDescTable() local
1115 DataLen = Trb->DataLen; in BuildAdmaDescTable()
1120 if ((Data >= 0x100000000ul) || ((Data + DataLen) > 0x100000000ul)) { in BuildAdmaDescTable()
1131 Entries = DivU64x32 ((DataLen + ADMA_MAX_DATA_PER_LINE - 1), ADMA_MAX_DATA_PER_LINE); in BuildAdmaDescTable()
1184 Remaining = DataLen; in BuildAdmaDescTable()
1255 Trb->DataLen = Packet->InTransferLength; in SdMmcCreateTrb()
1259 Trb->DataLen = Packet->OutTransferLength; in SdMmcCreateTrb()
1263 Trb->DataLen = 0; in SdMmcCreateTrb()
1268 if (Trb->DataLen < Trb->BlockSize) { in SdMmcCreateTrb()
1269 Trb->BlockSize = (UINT16)Trb->DataLen; in SdMmcCreateTrb()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/UserProfileManagerDxe/
DUserProfileModify.c119 UINTN DataLen; in GetAllUserInfo() local
194 DataLen = Info->InfoSize - sizeof (EFI_USER_INFO); in GetAllUserInfo()
197 CopyMem (&mUserInfo.UserName, (UINT8 *) (Info + 1), DataLen); in GetAllUserInfo()
201 CopyMem (&mUserInfo.CreateDate, (UINT8 *) (Info + 1), DataLen); in GetAllUserInfo()
206 CopyMem (&mUserInfo.UsageDate, (UINT8 *) (Info + 1), DataLen); in GetAllUserInfo()
211 CopyMem (&mUserInfo.UsageCount, (UINT8 *) (Info + 1), DataLen); in GetAllUserInfo()
215 mUserInfo.AccessPolicy = AllocateZeroPool (DataLen); in GetAllUserInfo()
220 CopyMem (mUserInfo.AccessPolicy, (UINT8 *) (Info + 1), DataLen); in GetAllUserInfo()
221 mUserInfo.AccessPolicyLen = DataLen; in GetAllUserInfo()
225 mUserInfo.IdentityPolicy = AllocateZeroPool (DataLen); in GetAllUserInfo()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/Dhcp6Dxe/
DDhcp6Utility.c935 UINT16 DataLen; in Dhcp6SeekOption() local
950 DataLen = NTOHS (ReadUnaligned16 ((UINT16 *) (Cursor + 2))); in Dhcp6SeekOption()
951 Cursor += (DataLen + 4); in Dhcp6SeekOption()
978 UINT16 DataLen; in Dhcp6SeekIaOption() local
995 DataLen = NTOHS (ReadUnaligned16 ((UINT16 *) (Cursor + 2))); in Dhcp6SeekIaOption()
996 Cursor += (DataLen + 4); in Dhcp6SeekIaOption()
1051 UINT16 DataLen; in Dhcp6ParseAddrOption() local
1109 DataLen = NTOHS (ReadUnaligned16 ((UINT16 *) (Cursor + 2))); in Dhcp6ParseAddrOption()
1110 Cursor += (DataLen + 4); in Dhcp6ParseAddrOption()

123