Home
last modified time | relevance | path

Searched refs:HostAddress (Results 1 – 25 of 49) sorted by relevance

12

/device/linaro/bootloader/edk2/ArmPkg/Library/ArmDmaLib/
DArmDmaLib.c29 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/
DNullDmaLib.c47 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/
DNonDiscoverablePciDeviceIo.c26 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/
DDmaLib.h87 IN VOID *HostAddress,
135 OUT VOID **HostAddress
154 IN VOID *HostAddress
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/VirtualEhciPciIo/
DVirtualEhciPciIo.c27 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/
DIsaIo.c371 (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 …]
DInternalIsaIo.h132 IN VOID *HostAddress,
308 OUT VOID **HostAddress,
327 IN VOID *HostAddress
/device/linaro/bootloader/edk2/DuetPkg/PciRootBridgeNoEnumerationDxe/
DDeviceIo.c614 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 …]
DPcatPciRootBridgeIo.c107 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 …]
DDeviceIo.h303 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/
DDeviceIoOnPciRootBridgeIoThunk.c252 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/
DIsaIo.c774 (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 …]
DIsaIo.h132 IN VOID *HostAddress,
308 OUT VOID **HostAddress,
327 IN VOID *HostAddress
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UfsPciHcDxe/
DUfsPciHcDxe.c123 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()
DUfsPciHcDxe.h364 IN VOID *HostAddress,
414 OUT VOID **HostAddress,
435 IN VOID *HostAddress
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIo/
DDeviceIo.h81 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/
DDeviceIo.h155 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/
DUfsHostController.h97 IN VOID *HostAddress,
147 OUT VOID **HostAddress,
168 IN VOID *HostAddress
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Include/Protocol/
DIsaIo.h233 IN VOID *HostAddress,
288 OUT VOID **HostAddress,
309 IN VOID *HostAddress
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Protocol/IsaIo/
DIsaIo.h128 IN VOID *HostAddress,
148 OUT VOID **HostAddress,
157 IN VOID *HostAddress
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/
DUsbHcMem.h125 OUT VOID **HostAddress,
138 IN VOID *HostAddress,
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Pci/Dxe/PciHostBridge/
DPciRootBridge.h64 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/
DPciRootBridge.h53 EFI_PHYSICAL_ADDRESS HostAddress; member
384 IN VOID *HostAddress,
449 OUT VOID **HostAddress,
473 OUT VOID *HostAddress
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Block/DwUfsHcDxe/
DDwUfsHcDxe.c177 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/
DUsbHcMem.h191 OUT VOID **HostAddress,
208 IN VOID *HostAddress,

12