Lines Matching refs:found

257 	KextNode sought, *found;  in onKextUnload()  local
270 found = RB_FIND(KextTree, &kextHead, &sought); in onKextUnload()
271 if (found) { in onKextUnload()
276 while ((wlc = SLIST_FIRST(&found->workLoopList))) { in onKextUnload()
277 SLIST_REMOVE_HEAD(&found->workLoopList, link); in onKextUnload()
282 while ((uce = TAILQ_FIRST(&found->userClientCallList))) { in onKextUnload()
283 TAILQ_REMOVE(&found->userClientCallList, uce, link); in onKextUnload()
288 RB_REMOVE(KextTree, &kextHead, found); in onKextUnload()
289 RB_REMOVE(KextAddressTree, &kextAddressHead, found); in onKextUnload()
295 if (found == kextHint) { in onKextUnload()
300 kfree_type(KextNode, found); in onKextUnload()
378 ClassNode sought, *found; in onClassRemoved() local
391 found = RB_FIND(ClassTree, &classHead, &sought); in onClassRemoved()
392 if (found) { in onClassRemoved()
397 while ((esc = SLIST_FIRST(&found->counterList))) { in onClassRemoved()
398 SLIST_REMOVE_HEAD(&found->counterList, link); in onClassRemoved()
403 while ((ucc = SLIST_FIRST(&found->userClientList))) { in onClassRemoved()
404 SLIST_REMOVE_HEAD(&found->userClientList, link); in onClassRemoved()
409 RB_REMOVE(ClassTree, &classHead, found); in onClassRemoved()
412 SLIST_REMOVE(&found->parentKext->classList, found, ClassNode, lLink); in onClassRemoved()
415 kfree_type(ClassNode, found); in onClassRemoved()
430 ClassNode sought, *found = NULL; in registerEventSource() local
454 found = RB_FIND(ClassTree, &classHead, &sought); in registerEventSource()
457 if (found) { in registerEventSource()
458 counter->parentClass = found; in registerEventSource()
459 SLIST_INSERT_HEAD(&found->counterList, counter, link); in registerEventSource()
463 if (!(createDummyCounter || found)) { in registerEventSource()
494 KextNode *found; in registerWorkLoop() local
507 found = getKextNodeFromBacktrace(TRUE); in registerWorkLoop()
508 if (!found) { in registerWorkLoop()
512 counter->parentKext = found; in registerWorkLoop()
515 SLIST_INSERT_HEAD(&found->workLoopList, counter, link); in registerWorkLoop()
518 releaseKextNode(found); in registerWorkLoop()
543 ClassNode sought, *found; in registerUserClient() local
561 found = RB_FIND(ClassTree, &classHead, &sought); in registerUserClient()
562 if (found) { in registerUserClient()
563 counter->parentClass = found; in registerUserClient()
564 SLIST_INSERT_HEAD(&found->userClientList, counter, link); in registerUserClient()
617 IOWorkLoopDependency sought, *found; in detachWorkLoopEventSource() local
630 found = RB_FIND(IOWorkLoopCounter::DependencyTree, &wlc->dependencyHead, &sought); in detachWorkLoopEventSource()
631 if (found) { in detachWorkLoopEventSource()
632 RB_REMOVE(IOWorkLoopCounter::DependencyTree, &wlc->dependencyHead, found); in detachWorkLoopEventSource()
633 kfree_type(IOWorkLoopDependency, found); in detachWorkLoopEventSource()
1074 KextNode *sought, *found = NULL; in copyUserClientStatistics() local
1080 found = sought; in copyUserClientStatistics()
1085 if (!found) { in copyUserClientStatistics()
1089 TAILQ_FOREACH(processEntry, &found->userClientCallList, link) { in copyUserClientStatistics()
1242 KextNode *found = NULL, *ke = NULL; in getKextNodeFromBacktrace() local
1270 found = ke; in getKextNodeFromBacktrace()
1278 if (!found) { in getKextNodeFromBacktrace()
1282 return found; in getKextNodeFromBacktrace()