Home
last modified time | relevance | path

Searched refs:BufLen (Results 1 – 25 of 32) 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/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()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/
DDmpStore.c49 UINTN BufLen; in GetAttrType() local
52 BufLen = 0; in GetAttrType()
56 StrnCatGrow (&RetString, &BufLen, L"+NV", 0); in GetAttrType()
59 StrnCatGrow (&RetString, &BufLen, L"+RT+BS", 0); in GetAttrType()
61 StrnCatGrow (&RetString, &BufLen, L"+BS", 0); in GetAttrType()
64 StrnCatGrow (&RetString, &BufLen, L"+HR", 0); in GetAttrType()
67 StrnCatGrow (&RetString, &BufLen, L"+AW", 0); in GetAttrType()
70 StrnCatGrow (&RetString, &BufLen, L"+AT", 0); in GetAttrType()
74 RetString = StrnCatGrow(&RetString, &BufLen, L"Invalid", 0); in GetAttrType()
/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/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/Sd/EmmcBlockIoPei/
DEmmcHcMem.h30 UINTN BufLen; // Memory size in bytes member
DEmmcHcMem.c53 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in EmmcPeimAllocMemBlock()
54 Block->BitsLen = Block->BufLen / (EMMC_PEIM_MEM_UNIT * 8); in EmmcPeimAllocMemBlock()
419 if ((Block->Buf <= ToFree) && ((ToFree + AllocSize) <= (Block->Buf + Block->BufLen))) { in EmmcPeimFreeMem()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/
DSdHcMem.h30 UINTN BufLen; // Memory size in bytes member
DSdHcMem.c53 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in SdPeimAllocMemBlock()
54 Block->BitsLen = Block->BufLen / (SD_PEIM_MEM_UNIT * 8); in SdPeimAllocMemBlock()
419 if ((Block->Buf <= ToFree) && ((ToFree + AllocSize) <= (Block->Buf + Block->BufLen))) { in SdPeimFreeMem()
/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/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

12