Lines Matching defs:connection

773     IOPowerConnection *	connection;
793 if ( (connection = OSDynamicCast(IOPowerConnection, next)) )
795 theParent = (IOService *)connection->copyParentEntry(gIOPowerPlane);
798 theParent->removePowerChild(connection);
818 if ( (connection = OSDynamicCast(IOPowerConnection, next)) )
820 theChild = ((IOService *)(connection->copyChildEntry(gIOPowerPlane)));
824 connection->detachFromChild(theChild, gIOPowerPlane);
828 detachFromChild(connection, gIOPowerPlane);
871 IOPowerConnection * connection = 0;
912 // joining connection is marked as not ready.
917 connection = new IOPowerConnection;
918 if (!connection)
942 connection->init();
943 connection->start(this);
944 connection->setAwaitingAck(false);
945 connection->setReadyFlag(false);
947 attachToChild( connection, gIOPowerPlane );
948 connection->attachToChild( child, gIOPowerPlane );
950 // connection needs to be released
951 requests[0]->fArg0 = connection;
952 requests[1]->fArg0 = connection;
953 requests[2]->fArg0 = connection;
960 if (connection) connection->release();
1006 IOPowerConnection * connection = (IOPowerConnection *) request->fArg0;
1014 parent = (IOService *) connection->getParentEntry(gIOPowerPlane);
1037 setParentInfo( powerFlags, connection, knowsState );
1039 connection->setReadyFlag(true);
1062 IOPowerConnection * connection = (IOPowerConnection *) request->fArg0;
1067 child = (IOService *) connection->getChildEntry(gIOPowerPlane);
1085 connection->release();
1686 /* connection */ 0,
1758 /* connection */ 0,
1795 IOPowerConnection * connection;
1821 if ( (connection = OSDynamicCast(IOPowerConnection, next)) )
1823 if ( connection == whichParent )
1826 combinedPowerFlags |= connection->parentCurrentPowerFlags();
1848 /* connection */ whichParent,
1956 /* connection */ whichParent,
1994 // Set our connection data for one specific parent, and then combine all the parent
2009 // set our connection data
2201 // Record the child's desires on the connection.
2545 IOPowerConnection * connection;
2566 if ((connection = OSDynamicCast(IOPowerConnection, next)))
2568 if (connection->getReadyFlag() == false)
2570 PM_LOG3("[%s] %s: connection not ready\n",
2574 if (connection->childHasRequestedPower())
2576 if (connection->getDesiredDomainState() > desiredState)
2577 desiredState = connection->getDesiredDomainState();
2716 IOPowerConnection * connection;
2725 if ((connection = OSDynamicCast(IOPowerConnection, entry)))
2727 child = (IOService *) connection->copyChildEntry(gIOPowerPlane);
2750 IOPowerConnection * connection;
2760 if ((connection = OSDynamicCast(IOPowerConnection, entry)))
2762 parent = (IOService *) connection->copyParentEntry(gIOPowerPlane);
3227 IOPowerConnection * connection;
3235 if ( (connection = OSDynamicCast(IOPowerConnection, next)) )
3237 if (connection->getReadyFlag() == false)
3239 PM_LOG3("[%s] %s: connection not ready\n",
3244 theChild = (IOService *)connection->copyChildEntry(gIOPowerPlane);
3513 IOPowerConnection * connection;
3538 if ((connection = OSDynamicCast(IOPowerConnection, next)))
3540 if (connection->getReadyFlag() == false)
3542 PM_LOG3("[%s] %s: connection not ready\n",
3552 (connection->delayChildNotification) &&
3563 children->setObject( connection );
3569 children->setObject( connection );
3571 notifyChild( connection );
3625 IOPowerConnection * connection;
3626 connection = (IOPowerConnection *) fNotifyChildArray->getObject(0);
3627 notifyChild( connection );
3645 IOPowerConnection * connection;
3657 connection = (IOPowerConnection *) fNotifyChildArray->getObject(i);
3658 if (!connection)
3661 notifyChild( connection );
4322 IOPowerConnection * connection;
4326 if ((connection = OSDynamicCast(IOPowerConnection, entry)) == 0)
4328 parent = (IOService *) connection->copyParentEntry(gIOPowerPlane);
4335 if (connection->parentKnowsState() && connection->getReadyFlag())
4339 connection,