Lines Matching refs:EmuDevice
144 EMU_IO_DEVICE *EmuDevice; in EmuBusDriverBindingStart() local
253 EmuDevice = AllocatePool (sizeof (EMU_IO_DEVICE)); in EmuBusDriverBindingStart()
254 if (EmuDevice == NULL) { in EmuBusDriverBindingStart()
258 EmuDevice->Handle = NULL; in EmuBusDriverBindingStart()
259 EmuDevice->ControllerHandle = ControllerHandle; in EmuBusDriverBindingStart()
260 EmuDevice->ParentDevicePath = ParentDevicePath; in EmuBusDriverBindingStart()
261 CopyMem (&EmuDevice->EmuIoThunk, EmuIoThunk, sizeof (EMU_IO_THUNK_PROTOCOL)); in EmuBusDriverBindingStart()
263 EmuDevice->ControllerNameTable = NULL; in EmuBusDriverBindingStart()
267 EmuDevice->DevicePath = EmuBusCreateDevicePath ( in EmuBusDriverBindingStart()
272 if (EmuDevice->DevicePath == NULL) { in EmuBusDriverBindingStart()
273 gBS->FreePool (EmuDevice); in EmuBusDriverBindingStart()
280 &EmuDevice->ControllerNameTable, in EmuBusDriverBindingStart()
284 EmuDevice->Signature = EMU_IO_DEVICE_SIGNATURE; in EmuBusDriverBindingStart()
287 &EmuDevice->Handle, in EmuBusDriverBindingStart()
288 &gEfiDevicePathProtocolGuid, EmuDevice->DevicePath, in EmuBusDriverBindingStart()
289 &gEmuIoThunkProtocolGuid, &EmuDevice->EmuIoThunk, in EmuBusDriverBindingStart()
293 FreeUnicodeStringTable (EmuDevice->ControllerNameTable); in EmuBusDriverBindingStart()
294 gBS->FreePool (EmuDevice); in EmuBusDriverBindingStart()
304 EmuDevice->Handle, in EmuBusDriverBindingStart()
332 EMU_IO_DEVICE *EmuDevice; in EmuBusDriverBindingStop() local
395 EmuDevice = EMU_IO_DEVICE_FROM_THIS (EmuIoThunk); in EmuBusDriverBindingStop()
401 EmuDevice->Handle in EmuBusDriverBindingStop()
405 EmuDevice->Handle, in EmuBusDriverBindingStop()
406 &gEfiDevicePathProtocolGuid, EmuDevice->DevicePath, in EmuBusDriverBindingStop()
407 &gEmuIoThunkProtocolGuid, &EmuDevice->EmuIoThunk, in EmuBusDriverBindingStop()
417 EmuDevice->Handle, in EmuBusDriverBindingStop()
424 FreeUnicodeStringTable (EmuDevice->ControllerNameTable); in EmuBusDriverBindingStop()
425 FreePool (EmuDevice); in EmuBusDriverBindingStop()