Lines Matching refs:source
4642 IOReturn IOService::resolveInterrupt(IOService *nub, int source)
4668 interruptControllerName = OSDynamicCast(OSSymbol,array->getObject(source));
4677 data = OSDynamicCast(OSData, array->getObject(source));
4682 interruptSources[source].interruptController = interruptController;
4683 interruptSources[source].vectorData = data;
4688 IOReturn IOService::lookupInterrupt(int source, bool resolve, IOInterruptController **interruptController)
4694 ret = resolveInterrupt(this, source);
4698 /* Make sure the local source number is valid */
4699 if ((source < 0) || (source >= _numInterruptSources))
4702 /* Look up the contoller for the local source */
4703 *interruptController = _interruptSources[source].interruptController;
4709 ret = resolveInterrupt(this, source);
4712 *interruptController = _interruptSources[source].interruptController;
4718 IOReturn IOService::registerInterrupt(int source, OSObject *target,
4725 ret = lookupInterrupt(source, true, &interruptController);
4728 /* Register the source */
4729 return interruptController->registerInterrupt(this, source, target,
4734 IOReturn IOService::unregisterInterrupt(int source)
4739 ret = lookupInterrupt(source, false, &interruptController);
4742 /* Unregister the source */
4743 return interruptController->unregisterInterrupt(this, source);
4746 IOReturn IOService::getInterruptType(int source, int *interruptType)
4751 ret = lookupInterrupt(source, true, &interruptController);
4755 return interruptController->getInterruptType(this, source, interruptType);
4758 IOReturn IOService::enableInterrupt(int source)
4763 ret = lookupInterrupt(source, false, &interruptController);
4766 /* Enable the source */
4767 return interruptController->enableInterrupt(this, source);
4770 IOReturn IOService::disableInterrupt(int source)
4775 ret = lookupInterrupt(source, false, &interruptController);
4778 /* Disable the source */
4779 return interruptController->disableInterrupt(this, source);
4782 IOReturn IOService::causeInterrupt(int source)
4787 ret = lookupInterrupt(source, false, &interruptController);
4790 /* Cause an interrupt for the source */
4791 return interruptController->causeInterrupt(this, source);