/device/linaro/bootloader/edk2/OvmfPkg/VirtioNetDxe/ |
D | SnpInitialize.c | 49 IN OUT VNET_DEV *Dev, in VirtioNetInitRing() argument 60 Status = Dev->VirtIo->SetQueueSel (Dev->VirtIo, Selector); in VirtioNetInitRing() 64 Status = Dev->VirtIo->GetQueueNumMax (Dev->VirtIo, &QueueSize); in VirtioNetInitRing() 85 Status = Dev->VirtIo->SetQueueNum (Dev->VirtIo, QueueSize); in VirtioNetInitRing() 90 Status = Dev->VirtIo->SetQueueAlign (Dev->VirtIo, EFI_PAGE_SIZE); in VirtioNetInitRing() 98 Status = Dev->VirtIo->SetQueueAddress (Dev->VirtIo, Ring); in VirtioNetInitRing() 138 IN OUT VNET_DEV *Dev in VirtioNetInitTx() argument 144 Dev->TxMaxPending = (UINT16) MIN (Dev->TxRing.QueueSize / 2, in VirtioNetInitTx() 146 Dev->TxCurPending = 0; in VirtioNetInitTx() 147 Dev->TxFreeStack = AllocatePool (Dev->TxMaxPending * in VirtioNetInitTx() [all …]
|
D | DriverBinding.c | 59 IN OUT VNET_DEV *Dev, in VirtioNetGetFeatures() argument 76 Status = Dev->VirtIo->SetDeviceStatus (Dev->VirtIo, NextDevStat); in VirtioNetGetFeatures() 82 Status = Dev->VirtIo->SetDeviceStatus (Dev->VirtIo, NextDevStat); in VirtioNetGetFeatures() 88 Status = Dev->VirtIo->SetDeviceStatus (Dev->VirtIo, NextDevStat); in VirtioNetGetFeatures() 96 Status = Dev->VirtIo->GetDeviceFeatures (Dev->VirtIo, &Features); in VirtioNetGetFeatures() 109 Status = Dev->VirtIo->ReadDevice (Dev->VirtIo, in VirtioNetGetFeatures() 128 Status = VIRTIO_CFG_READ (Dev, LinkStatus, &LinkStatus); in VirtioNetGetFeatures() 136 Dev->VirtIo->SetDeviceStatus (Dev->VirtIo, in VirtioNetGetFeatures() 160 IN OUT VNET_DEV *Dev in VirtioNetSnpPopulate() argument 187 &VirtioNetIsPacketAvailable, Dev, &Dev->Snp.WaitForPacket); in VirtioNetSnpPopulate() [all …]
|
D | SnpGetStatus.c | 64 VNET_DEV *Dev; in VirtioNetGetStatus() local 74 Dev = VIRTIO_NET_FROM_SNP (This); in VirtioNetGetStatus() 76 switch (Dev->Snm.State) { in VirtioNetGetStatus() 90 if (Dev->Snm.MediaPresentSupported) { in VirtioNetGetStatus() 93 Status = VIRTIO_CFG_READ (Dev, LinkStatus, &LinkStatus); in VirtioNetGetStatus() 97 Dev->Snm.MediaPresent = in VirtioNetGetStatus() 105 RxCurUsed = *Dev->RxRing.Used.Idx; in VirtioNetGetStatus() 106 TxCurUsed = *Dev->TxRing.Used.Idx; in VirtioNetGetStatus() 115 if (Dev->RxLastUsed != RxCurUsed) { in VirtioNetGetStatus() 118 if (Dev->TxLastUsed != TxCurUsed) { in VirtioNetGetStatus() [all …]
|
D | SnpTransmit.c | 76 VNET_DEV *Dev; in VirtioNetTransmit() local 86 Dev = VIRTIO_NET_FROM_SNP (This); in VirtioNetTransmit() 88 switch (Dev->Snm.State) { in VirtioNetTransmit() 99 if (BufferSize < Dev->Snm.MediaHeaderSize) { in VirtioNetTransmit() 103 if (BufferSize > Dev->Snm.MediaHeaderSize + Dev->Snm.MaxPacketSize) { in VirtioNetTransmit() 111 ASSERT (Dev->TxCurPending <= Dev->TxMaxPending); in VirtioNetTransmit() 112 if (Dev->TxCurPending == Dev->TxMaxPending) { in VirtioNetTransmit() 124 if (HeaderSize != Dev->Snm.MediaHeaderSize || in VirtioNetTransmit() 136 (SrcAddr == NULL) ? &Dev->Snm.CurrentAddress : SrcAddr, in VirtioNetTransmit() 143 ASSERT ((UINTN) (Ptr - (UINT8 *) Buffer) == Dev->Snm.MediaHeaderSize); in VirtioNetTransmit() [all …]
|
D | SnpReceive.c | 74 VNET_DEV *Dev; in VirtioNetReceive() local 90 Dev = VIRTIO_NET_FROM_SNP (This); in VirtioNetReceive() 92 switch (Dev->Snm.State) { in VirtioNetReceive() 107 RxCurUsed = *Dev->RxRing.Used.Idx; in VirtioNetReceive() 110 if (Dev->RxLastUsed == RxCurUsed) { in VirtioNetReceive() 115 UsedElemIdx = Dev->RxLastUsed % Dev->RxRing.QueueSize; in VirtioNetReceive() 116 DescIdx = Dev->RxRing.Used.UsedElem[UsedElemIdx].Id; in VirtioNetReceive() 117 RxLen = Dev->RxRing.Used.UsedElem[UsedElemIdx].Len; in VirtioNetReceive() 122 ASSERT (RxLen >= Dev->RxRing.Desc[DescIdx].Len); in VirtioNetReceive() 123 RxLen -= Dev->RxRing.Desc[DescIdx].Len; in VirtioNetReceive() [all …]
|
D | Events.c | 51 VNET_DEV *Dev; in VirtioNetIsPacketAvailable() local 54 Dev = Context; in VirtioNetIsPacketAvailable() 55 if (Dev->Snm.State != EfiSimpleNetworkInitialized) { in VirtioNetIsPacketAvailable() 63 RxCurUsed = *Dev->RxRing.Used.Idx; in VirtioNetIsPacketAvailable() 66 if (Dev->RxLastUsed != RxCurUsed) { in VirtioNetIsPacketAvailable() 67 gBS->SignalEvent (&Dev->Snp.WaitForPacket); in VirtioNetIsPacketAvailable() 85 VNET_DEV *Dev; in VirtioNetExitBoot() local 87 Dev = Context; in VirtioNetExitBoot() 88 if (Dev->Snm.State == EfiSimpleNetworkInitialized) { in VirtioNetExitBoot() 89 Dev->VirtIo->SetDeviceStatus (Dev->VirtIo, 0); in VirtioNetExitBoot()
|
D | SnpShutdown.c | 45 VNET_DEV *Dev; in VirtioNetShutdown() local 53 Dev = VIRTIO_NET_FROM_SNP (This); in VirtioNetShutdown() 55 switch (Dev->Snm.State) { in VirtioNetShutdown() 66 Dev->VirtIo->SetDeviceStatus (Dev->VirtIo, 0); in VirtioNetShutdown() 67 VirtioNetShutdownRx (Dev); in VirtioNetShutdown() 68 VirtioNetShutdownTx (Dev); in VirtioNetShutdown() 69 VirtioRingUninit (&Dev->TxRing); in VirtioNetShutdown() 70 VirtioRingUninit (&Dev->RxRing); in VirtioNetShutdown() 72 Dev->Snm.State = EfiSimpleNetworkStarted; in VirtioNetShutdown()
|
/device/linaro/bootloader/edk2/OvmfPkg/VirtioBlkDxe/ |
D | VirtioBlk.c | 64 #define VIRTIO_CFG_WRITE(Dev, Field, Value) ((Dev)->VirtIo->WriteDevice ( \ argument 65 (Dev)->VirtIo, \ 71 #define VIRTIO_CFG_READ(Dev, Field, Pointer) ((Dev)->VirtIo->ReadDevice ( \ argument 72 (Dev)->VirtIo, \ 242 IN VBLK_DEV *Dev, in SynchronousRequest() argument 254 BlockSize = Dev->BlockIoMedia.BlockSize; in SynchronousRequest() 277 VirtioPrepare (&Dev->Ring, &Indices); in SynchronousRequest() 288 ASSERT (Dev->Ring.QueueSize >= 3); in SynchronousRequest() 293 VirtioAppendDesc (&Dev->Ring, (UINTN) &Request, sizeof Request, in SynchronousRequest() 313 VirtioAppendDesc (&Dev->Ring, (UINTN) Buffer, (UINT32) BufferSize, in SynchronousRequest() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/VirtioScsiDxe/ |
D | VirtioScsi.c | 77 #define VIRTIO_CFG_WRITE(Dev, Field, Value) ((Dev)->VirtIo->WriteDevice ( \ argument 78 (Dev)->VirtIo, \ 84 #define VIRTIO_CFG_READ(Dev, Field, Pointer) ((Dev)->VirtIo->ReadDevice ( \ argument 85 (Dev)->VirtIo, \ 154 IN CONST VSCSI_DEV *Dev, in PopulateRequest() argument 168 !Dev->InOutSupported) || in PopulateRequest() 197 Target > Dev->MaxTarget || Lun > Dev->MaxLun || in PopulateRequest() 238 > Dev->MaxSectors / 2 || in PopulateRequest() 240 > Dev->MaxSectors / 2) { in PopulateRequest() 241 Packet->InTransferLength = (Dev->MaxSectors / 2) * 512; in PopulateRequest() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/XenPvBlkDxe/ |
D | BlockFront.c | 87 IN XEN_BLOCK_FRONT_DEVICE *Dev in XenPvBlockFree() argument 90 XENBUS_PROTOCOL *XenBusIo = Dev->XenBusIo; in XenPvBlockFree() 92 if (Dev->RingRef != 0) { in XenPvBlockFree() 93 XenBusIo->GrantEndAccess (XenBusIo, Dev->RingRef); in XenPvBlockFree() 95 if (Dev->Ring.sring != NULL) { in XenPvBlockFree() 96 FreePages (Dev->Ring.sring, 1); in XenPvBlockFree() 98 if (Dev->EventChannel != 0) { in XenPvBlockFree() 99 XenBusIo->EventChannelClose (XenBusIo, Dev->EventChannel); in XenPvBlockFree() 101 FreePool (Dev); in XenPvBlockFree() 117 IN XEN_BLOCK_FRONT_DEVICE *Dev, in XenPvBlkWaitForBackendState() argument [all …]
|
D | XenPvBlkDxe.c | 263 XEN_BLOCK_FRONT_DEVICE *Dev; in XenPvBlkDxeDriverBindingStart() local 278 Status = XenPvBlockFrontInitialization (XenBusIo, XenBusIo->Node, &Dev); in XenPvBlkDxeDriverBindingStart() 283 CopyMem (&Dev->BlockIo, &gXenPvBlkDxeBlockIo, sizeof (EFI_BLOCK_IO_PROTOCOL)); in XenPvBlkDxeDriverBindingStart() 286 if (Dev->MediaInfo.VDiskInfo & VDISK_REMOVABLE) { in XenPvBlkDxeDriverBindingStart() 290 Media->ReadOnly = !Dev->MediaInfo.ReadWrite; in XenPvBlkDxeDriverBindingStart() 291 if (Dev->MediaInfo.CdRom) { in XenPvBlkDxeDriverBindingStart() 298 Media->LastBlock = DivU64x32 (Dev->MediaInfo.Sectors, in XenPvBlkDxeDriverBindingStart() 299 Media->BlockSize / Dev->MediaInfo.SectorSize) - 1; in XenPvBlkDxeDriverBindingStart() 301 Media->BlockSize = Dev->MediaInfo.SectorSize; in XenPvBlkDxeDriverBindingStart() 302 Media->LastBlock = Dev->MediaInfo.Sectors - 1; in XenPvBlkDxeDriverBindingStart() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/VirtioRngDxe/ |
D | VirtioRng.c | 135 VIRTIO_RNG_DEV *Dev; in VirtioRngGetRNG() local 160 Dev = VIRTIO_ENTROPY_SOURCE_FROM_RNG (This); in VirtioRngGetRNG() 170 VirtioPrepare (&Dev->Ring, &Indices); in VirtioRngGetRNG() 171 VirtioAppendDesc (&Dev->Ring, in VirtioRngGetRNG() 177 if (VirtioFlush (Dev->VirtIo, 0, &Dev->Ring, &Indices, &Len) != in VirtioRngGetRNG() 200 IN OUT VIRTIO_RNG_DEV *Dev in VirtioRngInit() argument 212 Status = Dev->VirtIo->SetDeviceStatus (Dev->VirtIo, NextDevStat); in VirtioRngInit() 218 Status = Dev->VirtIo->SetDeviceStatus (Dev->VirtIo, NextDevStat); in VirtioRngInit() 224 Status = Dev->VirtIo->SetDeviceStatus (Dev->VirtIo, NextDevStat); in VirtioRngInit() 232 Status = Dev->VirtIo->SetPageSize (Dev->VirtIo, EFI_PAGE_SIZE); in VirtioRngInit() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/VirtioPciDeviceDxe/ |
D | VirtioPciFunctions.c | 57 VIRTIO_PCI_DEVICE *Dev; in VirtioPciDeviceRead() local 59 Dev = VIRTIO_PCI_DEVICE_FROM_VIRTIO_DEVICE (This); in VirtioPciDeviceRead() 61 return VirtioPciIoRead (Dev, in VirtioPciDeviceRead() 62 Dev->DeviceSpecificConfigurationOffset + FieldOffset, in VirtioPciDeviceRead() 92 VIRTIO_PCI_DEVICE *Dev; in VirtioPciDeviceWrite() local 94 Dev = VIRTIO_PCI_DEVICE_FROM_VIRTIO_DEVICE (This); in VirtioPciDeviceWrite() 96 return VirtioPciIoWrite (Dev, in VirtioPciDeviceWrite() 97 Dev->DeviceSpecificConfigurationOffset + FieldOffset, FieldSize, Value); in VirtioPciDeviceWrite() 107 VIRTIO_PCI_DEVICE *Dev; in VirtioPciGetDeviceFeatures() local 115 Dev = VIRTIO_PCI_DEVICE_FROM_VIRTIO_DEVICE (This); in VirtioPciGetDeviceFeatures() [all …]
|
/device/linaro/bootloader/edk2/DuetPkg/FSVariable/ |
D | MemStorage.c | 61 VS_DEV *Dev; in MemStorageConstructor() local 63 Status = gBS->AllocatePool (EfiRuntimeServicesData, sizeof(VS_DEV), (VOID **) &Dev); in MemStorageConstructor() 66 ZeroMem (Dev, sizeof(VS_DEV)); in MemStorageConstructor() 68 Dev->Signature = VS_DEV_SIGNATURE; in MemStorageConstructor() 69 Dev->Size = Size; in MemStorageConstructor() 71 Dev->VarStore.Erase = MemEraseStore; in MemStorageConstructor() 72 Dev->VarStore.Write = MemWriteStore; in MemStorageConstructor() 74 Status = gBS->AllocatePool (EfiRuntimeServicesData, Size, (VOID **) &VAR_DATA_PTR (Dev)); in MemStorageConstructor() 79 *VarStore = &Dev->VarStore; in MemStorageConstructor() 92 VS_DEV *Dev; in OnVirtualAddressChangeMs() local [all …]
|
D | FileStorage.c | 188 VS_DEV *Dev; in OnSimpleFileSystemInstall() local 192 Dev = (VS_DEV *) Context; in OnSimpleFileSystemInstall() 194 if (VAR_FILE_DEVICEPATH (Dev) != NULL && in OnSimpleFileSystemInstall() 195 !EFI_ERROR (CheckStoreExists (VAR_FILE_DEVICEPATH (Dev))) in OnSimpleFileSystemInstall() 214 Status = CheckStore (Handle, VAR_FILE_VOLUMEID (Dev), &Device); in OnSimpleFileSystemInstall() 220 VAR_FILE_DEVICEPATH (Dev) = Device; in OnSimpleFileSystemInstall() 222 VAR_FILE_DEVICEPATH (Dev), in OnSimpleFileSystemInstall() 223 VAR_FILE_FILEPATH (Dev), in OnSimpleFileSystemInstall() 229 NumBytes = Dev->Size; in OnSimpleFileSystemInstall() 230 Status = File->Write (File, &NumBytes, VAR_DATA_PTR (Dev)); in OnSimpleFileSystemInstall() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Opal/OpalPasswordDxe/ |
D | OpalDriver.c | 51 IN OPAL_DRIVER_DEVICE *Dev in AddDeviceToTail() argument 57 mOpalDriver.DeviceList = Dev; in AddDeviceToTail() 64 TmpDev->Next = Dev; in AddDeviceToTail() 76 IN OPAL_DRIVER_DEVICE *Dev in RemoveDevice() argument 85 if (mOpalDriver.DeviceList == Dev) { in RemoveDevice() 92 if (TmpDev->Next == Dev) { in RemoveDevice() 93 TmpDev->Next = Dev->Next; in RemoveDevice() 135 IN OPAL_DRIVER_DEVICE *Dev, in OpalDriverPopUpHddPassword() argument 150 StrLength = StrLen(Dev->Name16); in OpalDriverPopUpHddPassword() 154 if (Dev->Name16 == NULL) { in OpalDriverPopUpHddPassword() [all …]
|
D | OpalHiiCallbacks.c | 36 OPAL_DRIVER_DEVICE* Dev; in OpalDriverGetOpalVarName() local 42 Dev = DRIVER_DEVICE_FROM_OPALDISK(OpalDisk); in OpalDriverGetOpalVarName() 43 if (Dev == NULL) { in OpalDriverGetOpalVarName() 50 if (Dev->Name16 != NULL) { in OpalDriverGetOpalVarName() 51 NameLen = StrLen(Dev->Name16); in OpalDriverGetOpalVarName() 62 if (Dev->Name16 != NULL) { in OpalDriverGetOpalVarName() 63 CopyMem(VarName + PrefixLen, Dev->Name16, NameLen * sizeof(CHAR16)); in OpalDriverGetOpalVarName() 134 OPAL_DRIVER_DEVICE* Dev; in HiiGetDiskContextCB() local 137 Dev = OpalDriverGetDeviceList(); in HiiGetDiskContextCB() 144 while (Dev != NULL) { in HiiGetDiskContextCB() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/ |
D | NonDiscoverablePciDeviceIo.c | 42 IN NON_DISCOVERABLE_PCI_DEVICE *Dev, in GetBarResource() argument 49 if (BarIndex < Dev->BarOffset) { in GetBarResource() 53 BarIndex -= (UINT8)Dev->BarOffset; in GetBarResource() 55 for (Desc = Dev->Device->Resources; in GetBarResource() 234 NON_DISCOVERABLE_PCI_DEVICE *Dev; in PciIoMemRead() local 244 Dev = NON_DISCOVERABLE_PCI_DEVICE_FROM_PCI_IO(This); in PciIoMemRead() 249 Status = GetBarResource (Dev, BarIndex, &Desc); in PciIoMemRead() 321 NON_DISCOVERABLE_PCI_DEVICE *Dev; in PciIoMemWrite() local 331 Dev = NON_DISCOVERABLE_PCI_DEVICE_FROM_PCI_IO(This); in PciIoMemWrite() 336 Status = GetBarResource (Dev, BarIndex, &Desc); in PciIoMemWrite() [all …]
|
D | NonDiscoverablePciDeviceDxe.c | 141 NON_DISCOVERABLE_PCI_DEVICE *Dev; in NonDiscoverablePciDeviceStart() local 144 Dev = AllocateZeroPool (sizeof *Dev); in NonDiscoverablePciDeviceStart() 145 if (Dev == NULL) { in NonDiscoverablePciDeviceStart() 151 (VOID **)&Dev->Device, This->DriverBindingHandle, in NonDiscoverablePciDeviceStart() 157 InitializePciIoProtocol (Dev); in NonDiscoverablePciDeviceStart() 163 Dev->Signature = NON_DISCOVERABLE_PCI_DEVICE_SIG; in NonDiscoverablePciDeviceStart() 165 EFI_NATIVE_INTERFACE, &Dev->PciIo); in NonDiscoverablePciDeviceStart() 177 FreePool (Dev); in NonDiscoverablePciDeviceStart() 206 NON_DISCOVERABLE_PCI_DEVICE *Dev; in NonDiscoverablePciDeviceStop() local 215 Dev = NON_DISCOVERABLE_PCI_DEVICE_FROM_PCI_IO (PciIo); in NonDiscoverablePciDeviceStop() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/XenBusDxe/ |
D | XenBusDxe.c | 67 IN OUT XENBUS_DEVICE *Dev in XenGetSharedInfoPage() argument 72 ASSERT (Dev->SharedInfo == NULL); in XenGetSharedInfoPage() 83 Dev->SharedInfo = AllocateReservedPages (1); in XenGetSharedInfoPage() 84 Parameter.gpfn = (UINTN) Dev->SharedInfo >> EFI_PAGE_SHIFT; in XenGetSharedInfoPage() 86 FreePages (Dev->SharedInfo, 1); in XenGetSharedInfoPage() 87 Dev->SharedInfo = NULL; in XenGetSharedInfoPage() 267 XENBUS_DEVICE *Dev = Context; in NotifyExitBoot() local 269 gBS->DisconnectController(Dev->ControllerHandle, in NotifyExitBoot() 270 Dev->This->DriverBindingHandle, NULL); in NotifyExitBoot() 319 XENBUS_DEVICE *Dev; in XenBusDxeDriverBindingStart() local [all …]
|
D | XenBus.c | 76 IN XENBUS_DEVICE *Dev, in XenBusDeviceInitialized() argument 84 if (IsListEmpty (&Dev->ChildList)) { in XenBusDeviceInitialized() 89 for (Entry = GetFirstNode (&Dev->ChildList); in XenBusDeviceInitialized() 90 !IsNodeAtEnd (&Dev->ChildList, Entry); in XenBusDeviceInitialized() 91 Entry = GetNextNode (&Dev->ChildList, Entry)) { in XenBusDeviceInitialized() 132 XENBUS_DEVICE *Dev, in XenBusAddDevice() argument 151 Child = XenBusDeviceInitialized (Dev, DevicePath); in XenBusAddDevice() 186 Private->Dev = Dev; in XenBusAddDevice() 195 Dev->DevicePath, in XenBusAddDevice() 199 InsertTailList (&Dev->ChildList, &Private->Link); in XenBusAddDevice() [all …]
|
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Library/DS3231RealTimeClockLib/ |
D | DS3231RealTimeClockLib.c | 63 I2C_DEVICE Dev; in InitializeDS3231() local 70 (VOID) CopyMem(&Dev, &gDS3231RtcDevice, sizeof(Dev)); in InitializeDS3231() 72 Status = I2CInit(Dev.Socket,Dev.Port,Normal); in InitializeDS3231() 77 Status = I2CRead(&Dev,DS3231_REGADDR_CONTROL,1,&Temp.u8); in InitializeDS3231() 82 Status = I2CWrite(&Dev,DS3231_REGADDR_CONTROL,1,&Temp.u8); in InitializeDS3231() 88 Status = I2CRead(&Dev,DS3231_REGADDR_HOURS,1,&Hours.u8); in InitializeDS3231() 93 Status = I2CWrite(&Dev,DS3231_REGADDR_HOURS,1,&Hours.u8); in InitializeDS3231() 131 I2C_DEVICE Dev; in LibGetTime() local 146 (VOID) CopyMem(&Dev, &gDS3231RtcDevice, sizeof(Dev)); in LibGetTime() 149 Status |= I2CRead(&Dev,DS3231_REGADDR_MONTH,1,&Temp); in LibGetTime() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/ |
D | UsbBus.c | 74 USB_DEVICE *Dev; in UsbIoControlTransfer() local 87 Dev = UsbIf->Device; in UsbIoControlTransfer() 90 Dev->Bus, in UsbIoControlTransfer() 91 Dev->Address, in UsbIoControlTransfer() 92 Dev->Speed, in UsbIoControlTransfer() 93 Dev->MaxPacket0, in UsbIoControlTransfer() 99 &Dev->Translator, in UsbIoControlTransfer() 108 ASSERT (Dev->Translator.TranslatorHubAddress < Dev->Bus->MaxDevices); in UsbIoControlTransfer() 109 if (Dev->Translator.TranslatorHubAddress != 0) { in UsbIoControlTransfer() 111 Dev->Bus->Devices[Dev->Translator.TranslatorHubAddress], in UsbIoControlTransfer() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/Virtio10Dxe/ |
D | Virtio10.c | 405 VIRTIO_1_0_DEV *Dev; in Virtio10GetDeviceFeatures() local 409 Dev = VIRTIO_1_0_FROM_VIRTIO_DEVICE (This); in Virtio10GetDeviceFeatures() 417 Status = Virtio10Transfer (Dev->PciIo, &Dev->CommonConfig, TRUE, in Virtio10GetDeviceFeatures() 427 Status = Virtio10Transfer (Dev->PciIo, &Dev->CommonConfig, FALSE, in Virtio10GetDeviceFeatures() 448 VIRTIO_1_0_DEV *Dev; in Virtio10SetGuestFeatures() local 452 Dev = VIRTIO_1_0_FROM_VIRTIO_DEVICE (This); in Virtio10SetGuestFeatures() 463 Status = Virtio10Transfer (Dev->PciIo, &Dev->CommonConfig, TRUE, in Virtio10SetGuestFeatures() 473 Status = Virtio10Transfer (Dev->PciIo, &Dev->CommonConfig, TRUE, in Virtio10SetGuestFeatures() 493 VIRTIO_1_0_DEV *Dev; in Virtio10SetQueueAddress() local 498 Dev = VIRTIO_1_0_FROM_VIRTIO_DEVICE (This); in Virtio10SetQueueAddress() [all …]
|
/device/linaro/bootloader/OpenPlatformPkg/Platforms/Hisilicon/D03/Library/DS3231RealTimeClockLib/ |
D | DS3231RealTimeClockLib.c | 113 I2C_DEVICE Dev; in InitializeDS3231() local 120 (VOID) CopyMem(&Dev, &gDS3231RtcDevice, sizeof(Dev)); in InitializeDS3231() 122 Status = I2CInit(Dev.Socket,Dev.Port,Normal); in InitializeDS3231() 127 Status = I2CRead(&Dev,DS3231_REGADDR_CONTROL,1,&Temp.u8); in InitializeDS3231() 132 Status = I2CWrite(&Dev,DS3231_REGADDR_CONTROL,1,&Temp.u8); in InitializeDS3231() 138 Status = I2CRead(&Dev,DS3231_REGADDR_HOURS,1,&Hours.u8); in InitializeDS3231() 143 Status = I2CWrite(&Dev,DS3231_REGADDR_HOURS,1,&Hours.u8); in InitializeDS3231() 181 I2C_DEVICE Dev; in LibGetTime() local 202 (VOID) CopyMem(&Dev, &gDS3231RtcDevice, sizeof(Dev)); in LibGetTime() 204 Status |= I2CRead(&Dev,DS3231_REGADDR_MONTH,1,&Temp); in LibGetTime() [all …]
|