Lines Matching refs:connection
738 IOPowerConnection * connection; in handlePMstop() local
756 if ((connection = OSDynamicCast(IOPowerConnection, next))) { in handlePMstop()
757 theParent = (IOService *)connection->copyParentEntry(gIOPowerPlane); in handlePMstop()
759 theParent->removePowerChild(connection); in handlePMstop()
777 if ((connection = OSDynamicCast(IOPowerConnection, next))) { in handlePMstop()
778 theChild = ((IOService *)(connection->copyChildEntry(gIOPowerPlane))); in handlePMstop()
781 connection->detachFromChild(theChild, gIOPowerPlane); in handlePMstop()
785 detachFromChild(connection, gIOPowerPlane); in handlePMstop()
830 IOPowerConnection * connection = NULL; in addPowerChild() local
874 connection = new IOPowerConnection; in addPowerChild()
875 if (!connection) { in addPowerChild()
901 connection->init(); in addPowerChild()
902 connection->start(this); in addPowerChild()
903 connection->setAwaitingAck(false); in addPowerChild()
904 connection->setReadyFlag(false); in addPowerChild()
906 attachToChild( connection, gIOPowerPlane ); in addPowerChild()
907 connection->attachToChild( child, gIOPowerPlane ); in addPowerChild()
910 requests[0]->fArg0 = connection; in addPowerChild()
911 requests[1]->fArg0 = connection; in addPowerChild()
912 requests[2]->fArg0 = connection; in addPowerChild()
918 if (connection) { in addPowerChild()
919 connection->release(); in addPowerChild()
973 IOPowerConnection * connection = (IOPowerConnection *) request->fArg0; in addPowerChild2() local
981 parent = (IOService *) connection->getParentEntry(gIOPowerPlane); in addPowerChild2()
1004 setParentInfo( powerFlags, connection, knowsState ); in addPowerChild2()
1006 connection->setReadyFlag(true); in addPowerChild2()
1027 IOPowerConnection * connection = (IOPowerConnection *) request->fArg0; in addPowerChild3() local
1032 child = (IOService *) connection->getChildEntry(gIOPowerPlane); in addPowerChild3()
1047 connection->release(); in addPowerChild3()
1889 IOPowerConnection * connection; in handlePowerDomainWillChangeTo() local
1909 if ((connection = OSDynamicCast(IOPowerConnection, next))) { in handlePowerDomainWillChangeTo()
1910 if (connection == whichParent) { in handlePowerDomainWillChangeTo()
1913 combinedPowerFlags |= connection->parentCurrentPowerFlags(); in handlePowerDomainWillChangeTo()
2793 IOPowerConnection * connection; in computeDesiredState() local
2810 if ((connection = OSDynamicCast(IOPowerConnection, next))) { in computeDesiredState()
2811 if (connection->getReadyFlag() == false) { in computeDesiredState()
2816 if (connection->childHasRequestedPower()) { in computeDesiredState()
2819 desiredState = StateMax(connection->getDesiredDomainState(), desiredState); in computeDesiredState()
2965 IOPowerConnection * connection; in applyToPowerChildren() local
2972 if ((connection = OSDynamicCast(IOPowerConnection, entry))) { in applyToPowerChildren()
2973 child = (IOService *) connection->copyChildEntry(gIOPowerPlane); in applyToPowerChildren()
2995 IOPowerConnection * connection; in applyToPowerParent() local
3003 if ((connection = OSDynamicCast(IOPowerConnection, entry))) { in applyToPowerParent()
3004 parent = (IOService *) connection->copyParentEntry(gIOPowerPlane); in applyToPowerParent()
3570 IOPowerConnection * connection; in systemWake() local
3576 if ((connection = OSDynamicCast(IOPowerConnection, next))) { in systemWake()
3577 if (connection->getReadyFlag() == false) { in systemWake()
3583 theChild = (IOService *)connection->copyChildEntry(gIOPowerPlane); in systemWake()
3946 IOPowerConnection * connection; in notifyChildren() local
3969 if ((connection = OSDynamicCast(IOPowerConnection, next))) { in notifyChildren()
3970 if (connection->getReadyFlag() == false) { in notifyChildren()
3981 connection->delayChildNotification && in notifyChildren()
3990 children->setObject( connection ); in notifyChildren()
3996 children->setObject( connection ); in notifyChildren()
3998 notifyChild( connection ); in notifyChildren()
4056 IOPowerConnection * connection; in notifyChildrenOrdered() local
4057 connection = (IOPowerConnection *) fNotifyChildArray->getObject(0); in notifyChildrenOrdered()
4058 notifyChild( connection ); in notifyChildrenOrdered()
4075 IOPowerConnection * connection; in notifyChildrenDelayed() local
4087 connection = (IOPowerConnection *) fNotifyChildArray->getObject(i); in notifyChildrenDelayed()
4088 if (!connection) { in notifyChildrenDelayed()
4092 notifyChild( connection ); in notifyChildrenDelayed()
4818 IOPowerConnection * connection; in requestDomainPowerApplier() local
4822 if ((connection = OSDynamicCast(IOPowerConnection, entry)) == NULL) { in requestDomainPowerApplier()
4825 parent = (IOService *) connection->copyParentEntry(gIOPowerPlane); in requestDomainPowerApplier()
4833 if (connection->parentKnowsState() && connection->getReadyFlag()) { in requestDomainPowerApplier()
4836 connection, in requestDomainPowerApplier()