/device/linaro/bootloader/edk2/ArmPkg/Library/ArmDmaLib/ |
D | ArmDmaLib.c | 29 EFI_PHYSICAL_ADDRESS HostAddress; member 43 IN PHYSICAL_ADDRESS HostAddress in HostToDeviceAddress() argument 46 return HostAddress + PcdGet64 (PcdArmDmaDeviceOffset); in HostToDeviceAddress() 73 IN VOID *HostAddress, in DmaMap() argument 84 if (HostAddress == NULL || NumberOfBytes == NULL || DeviceAddress == NULL || Mapping == NULL ) { in DmaMap() 99 *DeviceAddress = HostToDeviceAddress (ConvertToPhysicalAddress (HostAddress)); in DmaMap() 107 if ((((UINTN)HostAddress & (mCpu->DmaBufferAlignment - 1)) != 0) || in DmaMap() 111 Status = gDS->GetMemorySpaceDescriptor ((UINTN)HostAddress, &GcdDescriptor); in DmaMap() 142 CopyMem (Buffer, HostAddress, *NumberOfBytes); in DmaMap() 162 Status = gDS->GetMemorySpaceDescriptor ((UINTN)HostAddress, &GcdDescriptor); in DmaMap() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/NullDmaLib/ |
D | NullDmaLib.c | 47 IN VOID *HostAddress, in DmaMap() argument 53 *DeviceAddress = (PHYSICAL_ADDRESS)(UINTN)HostAddress; in DmaMap() 100 OUT VOID **HostAddress in DmaAllocateBuffer() argument 103 if (HostAddress == NULL) { in DmaAllocateBuffer() 113 *HostAddress = AllocatePages (Pages); in DmaAllocateBuffer() 115 *HostAddress = AllocateRuntimePages (Pages); in DmaAllocateBuffer() 139 IN VOID *HostAddress in DmaFreeBuffer() argument 142 if (HostAddress == NULL) { in DmaFreeBuffer() 146 FreePages (HostAddress, Pages); in DmaFreeBuffer()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/ |
D | NonDiscoverablePciDeviceIo.c | 26 VOID *HostAddress; member 585 IN VOID *HostAddress, in CoherentPciIoMap() argument 601 (UINTN)HostAddress + *NumberOfBytes > SIZE_4GB) { in CoherentPciIoMap() 616 MapInfo->HostAddress = HostAddress; in CoherentPciIoMap() 633 gBS->CopyMem ((VOID *)(UINTN)MapInfo->AllocAddress, HostAddress, in CoherentPciIoMap() 639 *DeviceAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)HostAddress; in CoherentPciIoMap() 667 gBS->CopyMem (MapInfo->HostAddress, (VOID *)(UINTN)MapInfo->AllocAddress, in CoherentPciIoUnmap() 704 OUT VOID **HostAddress, in CoherentPciIoAllocateBuffer() argument 733 *HostAddress = (VOID *)(UINTN)AllocAddress; in CoherentPciIoAllocateBuffer() 754 IN VOID *HostAddress in CoherentPciIoFreeBuffer() argument [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Include/Library/ |
D | DmaLib.h | 87 IN VOID *HostAddress, 135 OUT VOID **HostAddress 154 IN VOID *HostAddress
|
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/VirtualEhciPciIo/ |
D | VirtualEhciPciIo.c | 27 EFI_PHYSICAL_ADDRESS HostAddress; member 355 IN VOID *HostAddress, in EhciPciIoMap() argument 366 if (HostAddress == NULL || NumberOfBytes == NULL || DeviceAddress == NULL || Mapping == NULL) { in EhciPciIoMap() 374 *DeviceAddress = ConvertToPhysicalAddress (HostAddress); in EhciPciIoMap() 384 if ((((UINTN)HostAddress & (EFI_PAGE_SIZE - 1)) != 0) || in EhciPciIoMap() 408 CopyMem (Buffer, HostAddress, *NumberOfBytes); in EhciPciIoMap() 425 Map->HostAddress = (UINTN)HostAddress; in EhciPciIoMap() 449 … CopyMem ((VOID *)(UINTN)Map->HostAddress, (VOID *)(UINTN)Map->DeviceAddress, Map->NumberOfBytes); in EhciPciIoUnmap() 462 gCpu->FlushDataCache (gCpu, Map->HostAddress, Map->NumberOfBytes, EfiCpuFlushTypeInvalidate); in EhciPciIoUnmap() 479 OUT VOID **HostAddress, in EhciPciIoAllocateBuffer() argument [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/ |
D | IsaIo.c | 371 (VOID *) (UINTN) IsaMapInfo->HostAddress, in IsaIoUnmap() 730 IN VOID *HostAddress, in IsaIoMapOnlySupportSlaveReadWrite() argument 748 (NULL == HostAddress) || in IsaIoMapOnlySupportSlaveReadWrite() 780 PhysicalAddress = (EFI_PHYSICAL_ADDRESS) (UINTN) HostAddress; in IsaIoMapOnlySupportSlaveReadWrite() 810 IsaMapInfo->HostAddress = PhysicalAddress; in IsaIoMapOnlySupportSlaveReadWrite() 836 (VOID *) (UINTN) IsaMapInfo->HostAddress, in IsaIoMapOnlySupportSlaveReadWrite() 966 IN VOID *HostAddress, in IsaIoMapFullSupport() argument 986 (NULL == HostAddress) || in IsaIoMapFullSupport() 1083 PhysicalAddress = (EFI_PHYSICAL_ADDRESS) (UINTN) HostAddress; in IsaIoMapFullSupport() 1113 IsaMapInfo->HostAddress = PhysicalAddress; in IsaIoMapFullSupport() [all …]
|
D | InternalIsaIo.h | 132 IN VOID *HostAddress, 308 OUT VOID **HostAddress, 327 IN VOID *HostAddress
|
/device/linaro/bootloader/edk2/DuetPkg/PciRootBridgeNoEnumerationDxe/ |
D | DeviceIo.c | 614 IN EFI_PHYSICAL_ADDRESS *HostAddress, in DeviceIoMap() argument 655 if (((UINTN) (*HostAddress) != (*HostAddress)) && Operation == EfiBusMasterCommonBuffer) { in DeviceIoMap() 662 (VOID *) (UINTN) (*HostAddress), in DeviceIoMap() 743 EFI_PHYSICAL_ADDRESS HostAddress; in DeviceIoAllocateBuffer() local 745 HostAddress = *PhysicalAddress; in DeviceIoAllocateBuffer() 755 …if ((Type == AllocateAddress) && (HostAddress + EFI_PAGES_TO_SIZE (Pages) - 1 > MAX_COMMON_BUFFER)… in DeviceIoAllocateBuffer() 759 …if ((AllocateAnyPages == Type) || (AllocateMaxAddress == Type && HostAddress > MAX_COMMON_BUFFER))… in DeviceIoAllocateBuffer() 761 HostAddress = MAX_COMMON_BUFFER; in DeviceIoAllocateBuffer() 768 &HostAddress in DeviceIoAllocateBuffer() 775 *PhysicalAddress = HostAddress; in DeviceIoAllocateBuffer() [all …]
|
D | PcatPciRootBridgeIo.c | 107 IN VOID *HostAddress, 127 OUT VOID **HostAddress, 136 OUT VOID *HostAddress 580 IN VOID *HostAddress, in PcatRootBridgeIoMap() argument 593 if ( HostAddress == NULL || NumberOfBytes == NULL || in PcatRootBridgeIoMap() 621 PhysicalAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)HostAddress; in PcatRootBridgeIoMap() 658 MapInfo->HostAddress = PhysicalAddress; in PcatRootBridgeIoMap() 684 (VOID *)(UINTN)MapInfo->HostAddress, in PcatRootBridgeIoMap() 773 (VOID *)(UINTN)MapInfo->HostAddress, in PcatRootBridgeIoUnmap() 801 OUT VOID **HostAddress, in PcatRootBridgeIoAllocateBuffer() argument [all …]
|
D | DeviceIo.h | 303 IN EFI_PHYSICAL_ADDRESS *HostAddress, 368 IN OUT EFI_PHYSICAL_ADDRESS *HostAddress 424 IN EFI_PHYSICAL_ADDRESS HostAddress
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/DeviceIoOnPciRootBridgeIoThunk/ |
D | DeviceIoOnPciRootBridgeIoThunk.c | 252 IN EFI_PHYSICAL_ADDRESS *HostAddress, 339 IN EFI_PHYSICAL_ADDRESS HostAddress 1021 IN EFI_PHYSICAL_ADDRESS *HostAddress, in DeviceIoMap() argument 1036 if (((UINTN) (*HostAddress) != (*HostAddress)) && Operation == EfiBusMasterCommonBuffer) { in DeviceIoMap() 1043 (VOID *) (UINTN) (*HostAddress), in DeviceIoMap() 1114 EFI_PHYSICAL_ADDRESS HostAddress; in DeviceIoAllocateBuffer() local 1120 HostAddress = *PhysicalAddress; in DeviceIoAllocateBuffer() 1130 …if ((Type == AllocateAddress) && (HostAddress + EFI_PAGES_TO_SIZE (Pages) - 1 > MAX_COMMON_BUFFER)… in DeviceIoAllocateBuffer() 1134 …if ((AllocateAnyPages == Type) || (AllocateMaxAddress == Type && HostAddress > MAX_COMMON_BUFFER))… in DeviceIoAllocateBuffer() 1136 HostAddress = MAX_COMMON_BUFFER; in DeviceIoAllocateBuffer() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/ |
D | IsaIo.c | 774 (VOID *) (UINTN) IsaMapInfo->HostAddress, in IsaIoUnmap() 1070 IN VOID *HostAddress, in IsaIoMapOnlySupportSlaveReadWrite() argument 1088 (NULL == HostAddress) || in IsaIoMapOnlySupportSlaveReadWrite() 1120 PhysicalAddress = (EFI_PHYSICAL_ADDRESS) (UINTN) HostAddress; in IsaIoMapOnlySupportSlaveReadWrite() 1150 IsaMapInfo->HostAddress = PhysicalAddress; in IsaIoMapOnlySupportSlaveReadWrite() 1176 (VOID *) (UINTN) IsaMapInfo->HostAddress, in IsaIoMapOnlySupportSlaveReadWrite() 1306 IN VOID *HostAddress, in IsaIoMapFullSupport() argument 1326 (NULL == HostAddress) || in IsaIoMapFullSupport() 1423 PhysicalAddress = (EFI_PHYSICAL_ADDRESS) (UINTN) HostAddress; in IsaIoMapFullSupport() 1453 IsaMapInfo->HostAddress = PhysicalAddress; in IsaIoMapFullSupport() [all …]
|
D | IsaIo.h | 132 IN VOID *HostAddress, 308 OUT VOID **HostAddress, 327 IN VOID *HostAddress
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UfsPciHcDxe/ |
D | UfsPciHcDxe.c | 123 IN VOID *HostAddress, in UfsHcMap() argument 133 …if ((This == NULL) || (HostAddress == NULL) || (NumberOfBytes == NULL) || (DeviceAddress == NULL) … in UfsHcMap() 140 …Status = PciIo->Map (PciIo, (EFI_PCI_IO_PROTOCOL_OPERATION)Operation, HostAddress, NumberOfBytes,… in UfsHcMap() 203 OUT VOID **HostAddress, in UfsHcAllocateBuffer() argument 211 if ((This == NULL) || (HostAddress == NULL)) { in UfsHcAllocateBuffer() 218 Status = PciIo->AllocateBuffer (PciIo, Type, MemoryType, Pages, HostAddress, Attributes); in UfsHcAllocateBuffer() 239 IN VOID *HostAddress in UfsHcFreeBuffer() argument 246 if ((This == NULL) || (HostAddress == NULL)) { in UfsHcFreeBuffer() 253 Status = PciIo->FreeBuffer (PciIo, Pages, HostAddress); in UfsHcFreeBuffer()
|
D | UfsPciHcDxe.h | 364 IN VOID *HostAddress, 414 OUT VOID **HostAddress, 435 IN VOID *HostAddress
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIo/ |
D | DeviceIo.h | 81 IN EFI_PHYSICAL_ADDRESS * HostAddress, 101 IN OUT EFI_PHYSICAL_ADDRESS * HostAddress 115 IN EFI_PHYSICAL_ADDRESS HostAddress
|
/device/linaro/bootloader/edk2/MdePkg/Include/Protocol/ |
D | DeviceIo.h | 155 IN EFI_PHYSICAL_ADDRESS *HostAddress, 202 IN OUT EFI_PHYSICAL_ADDRESS *HostAddress 238 IN EFI_PHYSICAL_ADDRESS HostAddress
|
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Protocol/ |
D | UfsHostController.h | 97 IN VOID *HostAddress, 147 OUT VOID **HostAddress, 168 IN VOID *HostAddress
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Include/Protocol/ |
D | IsaIo.h | 233 IN VOID *HostAddress, 288 OUT VOID **HostAddress, 309 IN VOID *HostAddress
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Protocol/IsaIo/ |
D | IsaIo.h | 128 IN VOID *HostAddress, 148 OUT VOID **HostAddress, 157 IN VOID *HostAddress
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/ |
D | UsbHcMem.h | 125 OUT VOID **HostAddress, 138 IN VOID *HostAddress,
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Pci/Dxe/PciHostBridge/ |
D | PciRootBridge.h | 64 EFI_PHYSICAL_ADDRESS HostAddress; member 446 IN VOID *HostAddress, 520 OUT VOID **HostAddress, 554 OUT VOID *HostAddress
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/ |
D | PciRootBridge.h | 53 EFI_PHYSICAL_ADDRESS HostAddress; member 384 IN VOID *HostAddress, 449 OUT VOID **HostAddress, 473 OUT VOID *HostAddress
|
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Block/DwUfsHcDxe/ |
D | DwUfsHcDxe.c | 177 IN VOID *HostAddress, in UfsHcMap() argument 185 …if ((This == NULL) || (HostAddress == NULL) || (NumberOfBytes == NULL) || (DeviceAddress == NULL) … in UfsHcMap() 204 return DmaMap (DmaOperation, HostAddress, NumberOfBytes, DeviceAddress, Mapping); in UfsHcMap() 258 OUT VOID **HostAddress, in UfsHcAllocateBuffer() argument 262 if ((This == NULL) || (HostAddress == NULL)) { in UfsHcAllocateBuffer() 266 return DmaAllocateBuffer (MemoryType, Pages, HostAddress); in UfsHcAllocateBuffer() 286 IN VOID *HostAddress in UfsHcFreeBuffer() argument 289 if ((This == NULL) || (HostAddress == NULL)) { in UfsHcFreeBuffer() 293 return DmaFreeBuffer (Pages, HostAddress); in UfsHcFreeBuffer()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/ |
D | UsbHcMem.h | 191 OUT VOID **HostAddress, 208 IN VOID *HostAddress,
|