/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/ |
D | UsbHcMem.c | 201 UINTN AllocSize; in UsbHcGetPciAddrForHostAddr() local 206 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcGetPciAddrForHostAddr() 217 …if ((Block->BufHost <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->BufHost + Block->… in UsbHcGetPciAddrForHostAddr() 250 UINTN AllocSize; in UsbHcGetHostAddrForPciAddr() local 255 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcGetHostAddrForPciAddr() 266 …if ((Block->Buf <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->Buf + Block->BufLen))… in UsbHcGetHostAddrForPciAddr() 437 UINTN AllocSize; in UsbHcAllocateMem() local 441 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcAllocateMem() 449 Mem = UsbHcAllocMemFromBlock (Block, AllocSize / USBHC_MEM_UNIT); in UsbHcAllocateMem() 467 if (AllocSize > EFI_PAGES_TO_SIZE (USBHC_MEM_DEFAULT_PAGES)) { in UsbHcAllocateMem() [all …]
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/ |
D | UsbHcMem.c | 242 UINTN AllocSize; in UsbHcGetPciAddressForHostMem() local 247 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcGetPciAddressForHostMem() 258 …if ((Block->BufHost <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->BufHost + Block->… in UsbHcGetPciAddressForHostMem() 440 UINTN AllocSize; in UsbHcAllocateMem() local 444 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcAllocateMem() 452 Mem = UsbHcAllocMemFromBlock (Block, AllocSize / USBHC_MEM_UNIT); in UsbHcAllocateMem() 470 if (AllocSize > EFI_PAGES_TO_SIZE (USBHC_MEM_DEFAULT_PAGES)) { in UsbHcAllocateMem() 471 Pages = EFI_SIZE_TO_PAGES (AllocSize) + 1; in UsbHcAllocateMem() 487 Mem = UsbHcAllocMemFromBlock (NewBlock, AllocSize / USBHC_MEM_UNIT); in UsbHcAllocateMem() 515 UINTN AllocSize; in UsbHcFreeMem() local [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UhciDxe/ |
D | UsbHcMem.c | 241 UINTN AllocSize; in UsbHcGetPciAddressForHostMem() local 246 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcGetPciAddressForHostMem() 257 …if ((Block->BufHost <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->BufHost + Block->… in UsbHcGetPciAddressForHostMem() 438 UINTN AllocSize; in UsbHcAllocateMem() local 442 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcAllocateMem() 450 Mem = UsbHcAllocMemFromBlock (Block, AllocSize / USBHC_MEM_UNIT); in UsbHcAllocateMem() 468 if (AllocSize > EFI_PAGES_TO_SIZE (USBHC_MEM_DEFAULT_PAGES)) { in UsbHcAllocateMem() 469 Pages = EFI_SIZE_TO_PAGES (AllocSize) + 1; in UsbHcAllocateMem() 485 Mem = UsbHcAllocMemFromBlock (NewBlock, AllocSize / USBHC_MEM_UNIT); in UsbHcAllocateMem() 513 UINTN AllocSize; in UsbHcFreeMem() local [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciDxe/ |
D | UsbHcMem.c | 242 UINTN AllocSize; in UsbHcGetPciAddressForHostMem() local 247 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcGetPciAddressForHostMem() 258 …if ((Block->BufHost <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->BufHost + Block->… in UsbHcGetPciAddressForHostMem() 440 UINTN AllocSize; in UsbHcAllocateMem() local 444 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcAllocateMem() 452 Mem = UsbHcAllocMemFromBlock (Block, AllocSize / USBHC_MEM_UNIT); in UsbHcAllocateMem() 470 if (AllocSize > EFI_PAGES_TO_SIZE (USBHC_MEM_DEFAULT_PAGES)) { in UsbHcAllocateMem() 471 Pages = EFI_SIZE_TO_PAGES (AllocSize) + 1; in UsbHcAllocateMem() 487 Mem = UsbHcAllocMemFromBlock (NewBlock, AllocSize / USBHC_MEM_UNIT); in UsbHcAllocateMem() 515 UINTN AllocSize; in UsbHcFreeMem() local [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/ |
D | UsbHcMem.c | 234 UINTN AllocSize; in UsbHcGetPciAddrForHostAddr() local 239 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcGetPciAddrForHostAddr() 250 …if ((Block->BufHost <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->BufHost + Block->… in UsbHcGetPciAddrForHostAddr() 283 UINTN AllocSize; in UsbHcGetHostAddrForPciAddr() local 288 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcGetHostAddrForPciAddr() 299 …if ((Block->Buf <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->Buf + Block->BufLen))… in UsbHcGetHostAddrForPciAddr() 473 UINTN AllocSize; in UsbHcAllocateMem() local 477 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcAllocateMem() 485 Mem = UsbHcAllocMemFromBlock (Block, AllocSize / USBHC_MEM_UNIT); in UsbHcAllocateMem() 503 if (AllocSize > EFI_PAGES_TO_SIZE (USBHC_MEM_DEFAULT_PAGES)) { in UsbHcAllocateMem() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/ |
D | UfsHcMem.c | 333 UINTN AllocSize; in UfsPeimAllocateMem() local 337 AllocSize = UFS_PEIM_MEM_ROUND (Size); in UfsPeimAllocateMem() 345 Mem = UfsPeimAllocMemFromBlock (Block, AllocSize / UFS_PEIM_MEM_UNIT); in UfsPeimAllocateMem() 363 if (AllocSize > EFI_PAGES_TO_SIZE (UFS_PEIM_MEM_DEFAULT_PAGES)) { in UfsPeimAllocateMem() 364 Pages = EFI_SIZE_TO_PAGES (AllocSize) + 1; in UfsPeimAllocateMem() 378 Mem = UfsPeimAllocMemFromBlock (NewBlock, AllocSize / UFS_PEIM_MEM_UNIT); in UfsPeimAllocateMem() 405 UINTN AllocSize; in UfsPeimFreeMem() local 411 AllocSize = UFS_PEIM_MEM_ROUND (Size); in UfsPeimFreeMem() 419 if ((Block->Buf <= ToFree) && ((ToFree + AllocSize) <= (Block->Buf + Block->BufLen))) { in UfsPeimFreeMem() 429 for (Count = 0; Count < (AllocSize / UFS_PEIM_MEM_UNIT); Count++) { in UfsPeimFreeMem()
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/ |
D | UsbHcMem.c | 372 UINTN AllocSize; in UsbHcAllocateMem() local 376 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcAllocateMem() 384 Mem = UsbHcAllocMemFromBlock (Block, AllocSize / USBHC_MEM_UNIT); in UsbHcAllocateMem() 402 if (AllocSize > EFI_PAGES_TO_SIZE (USBHC_MEM_DEFAULT_PAGES)) { in UsbHcAllocateMem() 403 Pages = EFI_SIZE_TO_PAGES (AllocSize) + 1; in UsbHcAllocateMem() 419 Mem = UsbHcAllocMemFromBlock (NewBlock, AllocSize / USBHC_MEM_UNIT); in UsbHcAllocateMem() 447 UINTN AllocSize; in UsbHcFreeMem() local 453 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcFreeMem() 461 if ((Block->BufHost <= ToFree) && ((ToFree + AllocSize) <= (Block->BufHost + Block->BufLen))) { in UsbHcFreeMem() 471 for (Count = 0; Count < (AllocSize / USBHC_MEM_UNIT); Count++) { in UsbHcFreeMem()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciPei/ |
D | UsbHcMem.c | 371 UINTN AllocSize; in UsbHcAllocateMem() local 375 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcAllocateMem() 383 Mem = UsbHcAllocMemFromBlock (Block, AllocSize / USBHC_MEM_UNIT); in UsbHcAllocateMem() 401 if (AllocSize > EFI_PAGES_TO_SIZE (USBHC_MEM_DEFAULT_PAGES)) { in UsbHcAllocateMem() 402 Pages = EFI_SIZE_TO_PAGES (AllocSize) + 1; in UsbHcAllocateMem() 416 Mem = UsbHcAllocMemFromBlock (NewBlock, AllocSize / USBHC_MEM_UNIT); in UsbHcAllocateMem() 443 UINTN AllocSize; in UsbHcFreeMem() local 449 AllocSize = USBHC_MEM_ROUND (Size); in UsbHcFreeMem() 457 if ((Block->Buf <= ToFree) && ((ToFree + AllocSize) <= (Block->Buf + Block->BufLen))) { in UsbHcFreeMem() 467 for (Count = 0; Count < (AllocSize / USBHC_MEM_UNIT); Count++) { in UsbHcFreeMem()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UhciPei/ |
D | UhcPeim.c | 2872 IN UINTN AllocSize in UhcAllocatePool() argument 2889 if ((AllocSize & 0x1F) != 0) { in UhcAllocatePool() 2890 RealAllocSize = (AllocSize / 32 + 1) * 32; in UhcAllocatePool() 2892 RealAllocSize = AllocSize; in UhcAllocatePool() 3085 IN UINTN AllocSize in UhcFreePool() argument 3102 if ((AllocSize & 0x1F) != 0) { in UhcFreePool() 3103 RealAllocSize = (AllocSize / 32 + 1) * 32; in UhcFreePool() 3105 RealAllocSize = AllocSize; in UhcFreePool()
|
D | UhcPeim.h | 1258 IN UINTN AllocSize 1291 IN UINTN AllocSize
|