• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/irq/

Lines Matching defs:action

94 	struct irqaction *action = desc->action;
96 while (action) {
97 if (action->thread)
98 set_bit(IRQTF_AFFINITY, &action->thread_flags);
99 action = action->next;
219 if (!desc->action || (desc->action->flags & IRQF_NO_SUSPEND))
277 if (desc->action)
400 struct irqaction *action;
410 action = desc->action;
411 if (action)
412 if (irqflags & action->flags & IRQF_SHARED)
413 action = NULL;
417 return !action;
487 static int irq_wait_for_interrupt(struct irqaction *action)
493 &action->thread_flags)) {
542 irq_thread_check_affinity(struct irq_desc *desc, struct irqaction *action)
546 if (!test_and_clear_bit(IRQTF_AFFINITY, &action->thread_flags))
554 set_bit(IRQTF_AFFINITY, &action->thread_flags);
567 irq_thread_check_affinity(struct irq_desc *desc, struct irqaction *action) { }
576 struct irqaction *action = data;
577 struct irq_desc *desc = irq_to_desc(action->irq);
581 current->irqaction = action;
583 while (!irq_wait_for_interrupt(action)) {
585 irq_thread_check_affinity(desc, action);
603 action->thread_fn(action->irq, action->dev_id);
606 irq_finalize_oneshot(action->irq, desc);
724 old_ptr = &desc->action;
880 struct irqaction *action, **action_ptr;
894 action_ptr = &desc->action;
896 action = *action_ptr;
898 if (!action) {
905 if (action->dev_id == dev_id)
907 action_ptr = &action->next;
911 *action_ptr = action->next;
920 if (!desc->action) {
936 unregister_handler_proc(irq, action);
950 if (action->flags & IRQF_SHARED) {
952 action->handler(irq, dev_id);
957 if (action->thread) {
958 if (!test_bit(IRQTF_DIED, &action->thread_flags))
959 kthread_stop(action->thread);
960 put_task_struct(action->thread);
963 return action;
1053 struct irqaction *action;
1079 action = kzalloc(sizeof(struct irqaction), GFP_KERNEL);
1080 if (!action)
1083 action->handler = handler;
1084 action->thread_fn = thread_fn;
1085 action->flags = irqflags;
1086 action->name = devname;
1087 action->dev_id = dev_id;
1090 retval = __setup_irq(irq, desc, action);
1094 kfree(action);