Home
last modified time | relevance | path

Searched refs:BufLen (Results 1 – 25 of 28) sorted by relevance

12

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/
DIp4Option.c125 IN OUT UINT32 *BufLen in Ip4CopyOption() argument
134 ASSERT ((BufLen != NULL) && (OptionLen <= 40)); in Ip4CopyOption()
175 *BufLen = 0; in Ip4CopyOption()
197 if ((Buf == NULL) || (*BufLen < Len)) { in Ip4CopyOption()
198 *BufLen = Len; in Ip4CopyOption()
208 *BufLen = Len; in Ip4CopyOption()
DIp4Option.h70 IN OUT UINT32 *BufLen
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/
DDmpStore.c50 UINTN BufLen; in GetAttrType() local
53 BufLen = 0; in GetAttrType()
57 StrnCatGrow (&RetString, &BufLen, L"+NV", 0); in GetAttrType()
60 StrnCatGrow (&RetString, &BufLen, L"+RT+BS", 0); in GetAttrType()
62 StrnCatGrow (&RetString, &BufLen, L"+BS", 0); in GetAttrType()
65 StrnCatGrow (&RetString, &BufLen, L"+HR", 0); in GetAttrType()
68 StrnCatGrow (&RetString, &BufLen, L"+AW", 0); in GetAttrType()
71 StrnCatGrow (&RetString, &BufLen, L"+AT", 0); in GetAttrType()
75 RetString = StrnCatGrow(&RetString, &BufLen, L"Invalid", 0); in GetAttrType()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/
DUsbHcMem.c56 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
57 Block->BitsLen = Block->BufLen / (USBHC_MEM_UNIT * 8); in UsbHcAllocMemBlock()
144 PciIo->FreeBuffer (PciIo, EFI_SIZE_TO_PAGES (Block->BufLen), Block->BufHost); in UsbHcFreeMemBlock()
258 …->BufHost <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->BufHost + Block->BufLen))) { in UsbHcGetPciAddressForHostMem()
529 if ((Block->BufHost <= ToFree) && ((ToFree + AllocSize) <= (Block->BufHost + Block->BufLen))) { in UsbHcFreeMem()
DUsbHcMem.h34 UINTN BufLen; // Memory size in bytes member
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UhciDxe/
DUsbHcMem.c55 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
56 Block->BitsLen = Block->BufLen / (USBHC_MEM_UNIT * 8); in UsbHcAllocMemBlock()
143 PciIo->FreeBuffer (PciIo, EFI_SIZE_TO_PAGES (Block->BufLen), Block->BufHost); in UsbHcFreeMemBlock()
257 …->BufHost <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->BufHost + Block->BufLen))) { in UsbHcGetPciAddressForHostMem()
527 if ((Block->Buf <= ToFree) && ((ToFree + AllocSize) <= (Block->Buf + Block->BufLen))) { in UsbHcFreeMem()
DUsbHcMem.h34 UINTN BufLen; // Memory size in bytes member
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciDxe/
DUsbHcMem.c56 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
57 Block->BitsLen = Block->BufLen / (USBHC_MEM_UNIT * 8); in UsbHcAllocMemBlock()
144 PciIo->FreeBuffer (PciIo, EFI_SIZE_TO_PAGES (Block->BufLen), Block->BufHost); in UsbHcFreeMemBlock()
258 …->BufHost <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->BufHost + Block->BufLen))) { in UsbHcGetPciAddressForHostMem()
529 if ((Block->BufHost <= ToFree) && ((ToFree + AllocSize) <= (Block->BufHost + Block->BufLen))) { in UsbHcFreeMem()
DUsbHcMem.h33 UINTN BufLen; // Memory size in bytes member
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/
DUsbHcMem.c56 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
57 Block->BitsLen = Block->BufLen / (USBHC_MEM_UNIT * 8); in UsbHcAllocMemBlock()
135 PciIo->FreeBuffer (PciIo, EFI_SIZE_TO_PAGES (Block->BufLen), Block->BufHost); in UsbHcFreeMemBlock()
250 …->BufHost <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->BufHost + Block->BufLen))) { in UsbHcGetPciAddrForHostAddr()
299 … ((Block->Buf <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->Buf + Block->BufLen))) { in UsbHcGetHostAddrForPciAddr()
562 if ((Block->BufHost <= ToFree) && ((ToFree + AllocSize) <= (Block->BufHost + Block->BufLen))) { in UsbHcFreeMem()
DUsbHcMem.h30 UINTN BufLen; // Memory size in bytes member
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DSockImpl.c34 IN UINT32 BufLen
81 IN UINT32 BufLen in SockTcpDataToRcv() argument
88 ASSERT ((SockBuffer != NULL) && (IsUrg != NULL) && (BufLen > 0)); in SockTcpDataToRcv()
99 DataLen = MIN (TcpRsvData->UrgLen, BufLen); 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()
142 DataLen = MIN (BufLen, DataLen); in SockTcpDataToRcv()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/
DUsbHcMem.c57 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
58 Block->BitsLen = Block->BufLen / (USBHC_MEM_UNIT * 8); in UsbHcAllocMemBlock()
217 …->BufHost <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->BufHost + Block->BufLen))) { in UsbHcGetPciAddrForHostAddr()
266 … ((Block->Buf <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->Buf + Block->BufLen))) { in UsbHcGetHostAddrForPciAddr()
523 if ((Block->BufHost <= ToFree) && ((ToFree + AllocSize) <= (Block->BufHost + Block->BufLen))) { in UsbHcFreeMem()
DUsbHcMem.h31 UINTN BufLen; // Memory size in bytes member
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/MnpDxe/
DMnpIo.c861 UINTN BufLen; in MnpReceivePacket() local
899 BufLen = Nbuf->TotalSize; in MnpReceivePacket()
906 Status = Snp->Receive (Snp, &HeaderSize, &BufLen, BufPtr, NULL, NULL, NULL); in MnpReceivePacket()
920 if ((HeaderSize != Snp->Mode->MediaHeaderSize) || (BufLen < HeaderSize)) { in MnpReceivePacket()
925 BufLen) in MnpReceivePacket()
931 if (Nbuf->TotalSize != BufLen) { in MnpReceivePacket()
935 Trimmed = NetbufTrim (Nbuf, Nbuf->TotalSize - (UINT32) BufLen, NET_BUF_TAIL); in MnpReceivePacket()
936 ASSERT (Nbuf->TotalSize == BufLen); in MnpReceivePacket()
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
DSockImpl.c105 IN UINT32 BufLen in SockTcpDataToRcv() argument
113 ASSERT ((SockBuffer != NULL) && (IsUrg != NULL) && (BufLen > 0)); in SockTcpDataToRcv()
131 DataLen = MIN (TcpRsvData->UrgLen, BufLen); 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()
178 DataLen = MIN (BufLen, DataLen); in SockTcpDataToRcv()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/
DUfsHcMem.h30 UINTN BufLen; // Memory size in bytes member
DUfsHcMem.c53 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UfsPeimAllocMemBlock()
54 Block->BitsLen = Block->BufLen / (UFS_PEIM_MEM_UNIT * 8); in UfsPeimAllocMemBlock()
419 if ((Block->Buf <= ToFree) && ((ToFree + AllocSize) <= (Block->Buf + Block->BufLen))) { in UfsPeimFreeMem()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciPei/
DUsbHcMem.h38 UINTN BufLen; // Memory size in bytes member
DUsbHcMem.c65 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
66 Block->BitsLen = Block->BufLen / (USBHC_MEM_UNIT * 8); in UsbHcAllocMemBlock()
457 if ((Block->Buf <= ToFree) && ((ToFree + AllocSize) <= (Block->Buf + Block->BufLen))) { in UsbHcFreeMem()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/
DUsbHcMem.c66 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
67 Block->BitsLen = Block->BufLen / (USBHC_MEM_UNIT * 8); in UsbHcAllocMemBlock()
461 if ((Block->BufHost <= ToFree) && ((ToFree + AllocSize) <= (Block->BufHost + Block->BufLen))) { in UsbHcFreeMem()
DUsbHcMem.h34 UINTN BufLen; // Memory size in bytes member
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/
DIp6Option.h170 IN OUT UINT32 *BufLen
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/
DDhcp4Option.c318 IN INTN BufLen, in DhcpIterateBufferOptions() argument
330 while (Cur < BufLen) { in DhcpIterateBufferOptions()
342 if (Cur == BufLen) { in DhcpIterateBufferOptions()
348 if (Cur + Len > BufLen) { in DhcpIterateBufferOptions()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/DisplayEngineDxe/
DProcessOptions.c174 OUT UINT16 *BufLen in GetBufAndLenForValue() argument
180 *BufLen = Value->BufferLen; in GetBufAndLenForValue()
185 *BufLen = (UINT16) sizeof (EFI_HII_DATE); in GetBufAndLenForValue()
190 *BufLen = (UINT16) sizeof (EFI_HII_TIME); in GetBufAndLenForValue()
195 *BufLen = (UINT16) sizeof (EFI_HII_REF); in GetBufAndLenForValue()
200 *BufLen = 0; in GetBufAndLenForValue()

12