Lines Matching refs:irqnumber
167 static int do_vm86_irq_handling(int subfunction, int irqnumber);
758 static inline void free_vm86_irq(int irqnumber) in free_vm86_irq() argument
762 free_irq(irqnumber, NULL); in free_vm86_irq()
763 vm86_irqs[irqnumber].tsk = NULL; in free_vm86_irq()
766 irqbits &= ~(1 << irqnumber); in free_vm86_irq()
778 static inline int get_and_reset_irq(int irqnumber) in get_and_reset_irq() argument
784 if (invalid_vm86_irq(irqnumber)) return 0; in get_and_reset_irq()
785 if (vm86_irqs[irqnumber].tsk != current) return 0; in get_and_reset_irq()
787 bit = irqbits & (1 << irqnumber); in get_and_reset_irq()
790 enable_irq(irqnumber); in get_and_reset_irq()
799 static int do_vm86_irq_handling(int subfunction, int irqnumber) in do_vm86_irq_handling() argument
804 return get_and_reset_irq(irqnumber); in do_vm86_irq_handling()
810 int sig = irqnumber >> 8; in do_vm86_irq_handling()
811 int irq = irqnumber & 255; in do_vm86_irq_handling()
823 if (invalid_vm86_irq(irqnumber)) return -EPERM; in do_vm86_irq_handling()
824 if (!vm86_irqs[irqnumber].tsk) return 0; in do_vm86_irq_handling()
825 if (vm86_irqs[irqnumber].tsk != current) return -EPERM; in do_vm86_irq_handling()
826 free_vm86_irq(irqnumber); in do_vm86_irq_handling()