Lines Matching defs:nub
54 IOReturn IOInterruptController::registerInterrupt(IOService *nub, int source,
72 interruptSources = nub->_interruptSources;
82 IODTGetInterruptOptions(nub, source, &options);
86 (getInterruptType(nub, source, &interruptType) == kIOReturnSuccess) &&
115 // Save the nub and source for the original consumer.
116 originalNub = vector->nub;
169 vector->nub = vector->sharedController;
192 error = vector->sharedController->registerInterrupt(nub, source, target,
200 vector->nub = nub;
217 IOReturn IOInterruptController::unregisterInterrupt(IOService *nub, int source)
224 interruptSources = nub->_interruptSources;
239 disableInterrupt(nub, source);
249 vector->nub = 0;
259 IOReturn IOInterruptController::getInterruptType(IOService *nub, int source,
269 interruptSources = nub->_interruptSources;
279 IOReturn IOInterruptController::enableInterrupt(IOService *nub, int source)
286 interruptSources = nub->_interruptSources;
308 IOReturn IOInterruptController::disableInterrupt(IOService *nub, int source)
315 interruptSources = nub->_interruptSources;
330 IOReturn IOInterruptController::causeInterrupt(IOService *nub, int source)
337 interruptSources = nub->_interruptSources;
352 IOReturn IOInterruptController::handleInterrupt(void *refCon, IOService *nub,
418 // Set provider to this so enable/disable nub stuff works.
421 // Allocate the IOInterruptSource so this can act like a nub.
472 IOReturn IOSharedInterruptController::registerInterrupt(IOService *nub,
484 interruptSources = nub->_interruptSources;
522 vector->nub = nub;
540 IOReturn IOSharedInterruptController::unregisterInterrupt(IOService *nub,
555 || (vector->nub != nub) || (vector->source != source)) {
561 disableInterrupt(nub, source);
568 vector->nub = 0;
591 IOReturn IOSharedInterruptController::getInterruptType(IOService */*nub*/,
598 IOReturn IOSharedInterruptController::enableInterrupt(IOService *nub,
607 interruptSources = nub->_interruptSources;
630 IOReturn IOSharedInterruptController::disableInterrupt(IOService *nub,
639 interruptSources = nub->_interruptSources;
666 IOService * nub,
688 vector->handler(vector->target, vector->refCon, vector->nub, vector->source);
703 nub->disableInterrupt(0);