• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/IOUSBMassStorageClass-370.0.4/

Lines Matching refs:driver

261 		// so this object will always be an interface driver.
288 // Set the IOUSBPipe object pointers to NULL so that the driver can
332 // Workaround flag for devices which spin themselves up/down and have problems with driver intervention.
531 // The device has a protocol that the driver does not
945 // For USB it is the responsibility of the client driver to request outstanding
946 // I/O requests be returned once driver termination has been initiated.
1234 // Calling registerService() will start driver matching and result in our handleOpen() method
1490 // Since the driver currently does not support abort, return an error
2479 IOUSBMassStorageClass * driver = NULL;
2486 driver = ( IOUSBMassStorageClass * ) refcon;
2487 require ( ( driver != NULL ), Exit );
2489 STATUS_LOG ( ( 4, "%s[%p]: sResetDevice Entered", driver->getName ( ), driver ) );
2493 if ( ( driver->fTerminating == true ) ||
2494 ( driver->isInactive ( ) == true ) )
2497 STATUS_LOG ( ( 2, "%s[%p]: sResetDevice - We are being terminated!", driver->getName ( ), driver ) );
2498 RecordUSBTimeStamp ( UMC_TRACE ( kUSBDeviceResetWhileTerminating ), ( uintptr_t ) driver,
2499 ( unsigned int ) driver->fTerminating, ( unsigned int ) driver->isInactive ( ), NULL );
2505 interfaceRef = driver->GetInterfaceReference ( );
2513 STATUS_LOG ( ( 5, "%s[%p]: GetDeviceInfo returned status = %x deviceInfo = %x", driver->getName ( ), driver, status, deviceInfo ) );
2514 RecordUSBTimeStamp ( UMC_TRACE ( kDeviceInformation ), ( uintptr_t ) driver, status, deviceInfo, NULL );
2524 RecordUSBTimeStamp ( UMC_TRACE ( kUSBDeviceResetAfterDisconnect ), ( uintptr_t ) driver, NULL, NULL, NULL );
2533 driver->SuspendPort ( false );
2538 STATUS_LOG ( ( 5, "%s[%p]: ResetDevice() returned = %x", driver->getName ( ), driver, status ) );
2539 RecordUSBTimeStamp ( UMC_TRACE ( kUSBDeviceResetReturned ), ( uintptr_t ) driver, status, NULL, NULL );
2546 driver->fWaitingForReconfigurationMessage = true;
2549 if ( driver->fBulkInPipe != NULL )
2551 driver->fBulkInPipe->ClearPipeStall ( false );
2554 if ( driver->fBulkOutPipe != NULL )
2556 driver->fBulkOutPipe->ClearPipeStall ( false );
2559 if ( driver->fInterruptPipe != NULL )
2561 driver->fInterruptPipe->ClearPipeStall ( false );
2568 STATUS_LOG ( ( 2, "%s[%p]: sResetDevice status=0x%x fResetInProgress=%d", driver->getName ( ), driver, status, driver->fResetInProgress ) );
2575 driver->fDeviceAttached = false;
2578 driver->SendNotification_DeviceRemoved ( );
2588 ( driver->fWaitingForReconfigurationMessage == true ) )
2602 if ( ( driver->fPostDeviceResetCoolDownInterval != 0 ) &&
2603 ( driver->fWaitingForReconfigurationMessage == false ) )
2607 IOSleep ( driver->fPostDeviceResetCoolDownInterval );
2617 driver->AbortCurrentSCSITask ( );
2620 if ( driver->fDeviceAttached == false && ( driver->isInactive() == false ) )
2624 IOLog ( "[%p](%u)/(%u) Device not responding\n", driver, driver->fConsecutiveResetCount, kMaxConsecutiveResets );
2626 if ( driver->GetInterfaceReference() != NULL )
2628 driver->GetInterfaceReference()->setProperty ( "IOUSBMassStorageClass Detached", driver->fConsecutiveResetCount, 8 );
2631 driver->fResetInProgress = false;
2633 if ( driver->fBlockOnResetThread == false )
2635 driver->fResetStatus = kUSBResetStatusFailure;
2637 driver->fCommandGate->commandWakeup ( &driver->fResetInProgress, false );
2641 driver->terminate();
2649 driver->fResetInProgress = false;
2651 if ( driver->fBlockOnResetThread == false )
2653 driver->fResetStatus = kUSBResetStatusSuccess;
2655 driver->fCommandGate->commandWakeup ( &driver->fResetInProgress, false );
2660 STATUS_LOG ( ( 6, "%s[%p]: sResetDevice exiting.", driver->getName ( ), driver ) );
2662 // We retained the driver in ResetDeviceNow() when
2664 driver->release();
2876 // We call retain here so that the driver will stick around long enough for