Lines Matching refs:notify
2098 _IOServiceInterestNotifier * notify; in messageClient() local
2102 } else if ((notify = OSDynamicCast( _IOServiceInterestNotifier, client))) { in messageClient()
2109 willNotify = (0 != (kIOServiceNotifyEnable & notify->state)); in messageClient()
2112 queue_enter( ¬ify->handlerInvocations, &invocation, in messageClient()
2118 ret = (*notify->handler)( notify->target, notify->ref, in messageClient()
2122 queue_remove( ¬ify->handlerInvocations, &invocation, in messageClient()
2124 if (kIOServiceNotifyWaiter & notify->state) { in messageClient()
2125 notify->state &= ~kIOServiceNotifyWaiter; in messageClient()
2126 WAKEUPNOTIFY( notify ); in messageClient()
2158 _IOServiceInterestNotifier * notify; in applyToInterestNotifiers() local
2160 queue_element(entry, notify, _IOServiceInterestNotifier *, chain); in applyToInterestNotifiers()
2161 copyArray->setObject(notify); in applyToInterestNotifiers()
2241 _IOServiceInterestNotifier * notify = NULL; in registerInterest() local
2244 notify = new _IOServiceInterestNotifier; in registerInterest()
2245 if (!notify) { in registerInterest()
2249 if (notify->init()) { in registerInterest()
2250 rc = registerInterestForNotifier(notify, typeOfInterest, in registerInterest()
2255 notify->release(); in registerInterest()
2256 notify = NULL; in registerInterest()
2259 return notify; in registerInterest()
2276 IONotifier * notify; in registerInterest() local
2284 notify = registerInterest(typeOfInterest, &IOServiceInterestHandlerToBlock, NULL, block); in registerInterest()
2286 if (!notify) { in registerInterest()
2290 return notify; in registerInterest()
2298 _IOServiceInterestNotifier *notify = NULL; in registerInterestForNotifier() local
2301 if (!svcNotify || !(notify = OSDynamicCast(_IOServiceInterestNotifier, svcNotify)) || !handler) { in registerInterestForNotifier()
2305 notify->handler = handler; in registerInterestForNotifier()
2306 notify->target = target; in registerInterestForNotifier()
2307 notify->ref = ref; in registerInterestForNotifier()
2319 notify->state = kIOServiceNotifyEnable; in registerInterestForNotifier()
2344 enqueue(¬ifyList->fCommandChain, ¬ify->chain); in registerInterestForNotifier()
2345 notify->retain(); // ref'ed while in list in registerInterestForNotifier()
2369 _IOServiceInterestNotifier * notify; in cleanInterestList() local
2371 queue_element(entry, notify, _IOServiceInterestNotifier *, chain); in cleanInterestList()
2372 notify->release(); in cleanInterestList()
3683 _IOServiceNotifier * notify; in IOServiceObjectOrder() local
3693 } else if ((notify = OSDynamicCast( _IOServiceNotifier, entry))) { in IOServiceObjectOrder()
3694 return notify->priority; in IOServiceObjectOrder()
3773 IOService::invokeNotifier( _IOServiceNotifier * notify ) in invokeNotifier() argument
3783 IOLog("[%s, 0x%x]\n", notify->type->getCStringNoCopy(), count); in invokeNotifier()
3784 panic("[%s, 0x%x]", notify->type->getCStringNoCopy(), count); in invokeNotifier()
3789 willNotify = (0 != (kIOServiceNotifyEnable & notify->state)); in invokeNotifier()
3792 queue_enter( ¬ify->handlerInvocations, &invocation, in invokeNotifier()
3798 ret = (*notify->handler)(notify->target, notify->ref, this, notify); in invokeNotifier()
3801 queue_remove( ¬ify->handlerInvocations, &invocation, in invokeNotifier()
3803 if (kIOServiceNotifyWaiter & notify->state) { in invokeNotifier()
3804 notify->state &= ~kIOServiceNotifyWaiter; in invokeNotifier()
3805 WAKEUPNOTIFY( notify ); in invokeNotifier()
3817 _IOServiceNotifier * notify; in invokeNotifiers() local
3827 (notify = (_IOServiceNotifier *) array->getObject(idx)); in invokeNotifiers()
3829 ret &= invokeNotifier(notify); in invokeNotifiers()
3862 _IOServiceNotifier * notify; in probeCandidates() local
3900 if ((notify = OSDynamicCast( _IOServiceNotifier, nextMatch ))) { in probeCandidates()
3902 invokeNotifier( notify ); in probeCandidates()
5345 _IOServiceNotifier * notify; in doServiceMatch() local
5388 while ((notify = (_IOServiceNotifier *) in doServiceMatch()
5390 if (matchPassive(notify->matching, 0) in doServiceMatch()
5391 && (kIOServiceNotifyEnable & notify->state)) { in doServiceMatch()
5392 matches->setObject( notify ); in doServiceMatch()
6283 _IOServiceNotifier * notify = NULL; in setNotification() local
6290 notify = new _IOServiceNotifier; in setNotification()
6291 if (notify && !notify->init()) { in setNotification()
6292 notify->release(); in setNotification()
6293 notify = NULL; in setNotification()
6296 if (notify) { in setNotification()
6297 notify->handler = handler; in setNotification()
6298 notify->target = target; in setNotification()
6299 notify->type = type; in setNotification()
6300 notify->matching = matching; in setNotification()
6303 notify->compatHandler = ((_IOServiceMatchingNotificationHandlerRef *)ref)->handler; in setNotification()
6304 notify->ref = ((_IOServiceMatchingNotificationHandlerRef *)ref)->ref; in setNotification()
6306 notify->ref = ref; in setNotification()
6308 notify->priority = priority; in setNotification()
6309 notify->state = kIOServiceNotifyEnable; in setNotification()
6310 queue_init( ¬ify->handlerInvocations ); in setNotification()
6322 notify->whence = set; in setNotification()
6324 set->setObject( notify ); in setNotification()
6328 return notify; in setNotification()
6340 IONotifier * notify; in doInstallNotification() local
6361 notify = setNotification( type, matching, handler, target, ref, priority ); in doInstallNotification()
6372 return notify; in doInstallNotification()
6407 IONotifier * notify; in installNotification() local
6411 notify = doInstallNotification( type, matching, handler, target, ref, in installNotification()
6415 if (notify) { in installNotification()
6416 notify->retain(); in installNotification()
6421 return notify; in installNotification()
6456 _IOServiceNotifier * notify; in addMatchingNotification() local
6459 ret = notify = (_IOServiceNotifier *) installNotification( type, matching, in addMatchingNotification()
6470 next->invokeNotifier( notify ); in addMatchingNotification()
6477 bool removed = (NULL == notify->whence); in addMatchingNotification()
6478 notify->release(); in addMatchingNotification()
6501 IONotifier * notify; in addMatchingNotification() local
6509 notify = addMatchingNotification(type, matching, in addMatchingNotification()
6512 if (!notify) { in addMatchingNotification()
6516 return notify; in addMatchingNotification()
6558 IONotifier * notify = NULL; in waitForMatchingServiceWithToken() local
6625 notify = IOService::setNotification( gIOMatchedNotification, matching, in waitForMatchingServiceWithToken()
6628 if (!notify) { in waitForMatchingServiceWithToken()
6653 if (notify) { in waitForMatchingServiceWithToken()
6654 notify->remove(); // dequeues in waitForMatchingServiceWithToken()
6706 _IOServiceNotifier * notify; in copyNotifiers() local
6721 while ((notify = (_IOServiceNotifier *) iter->getNextObject())) { in copyNotifiers()
6722 if (matchPassive(notify->matching, 0) in copyNotifiers()
6723 && (kIOServiceNotifyEnable & notify->state)) { in copyNotifiers()
6728 willSend->setObject( notify ); in copyNotifiers()