Lines Matching refs:irqnumber
207 static int do_vm86_irq_handling(int subfunction, int irqnumber);
800 static inline void free_vm86_irq(int irqnumber) in free_vm86_irq() argument
804 free_irq(irqnumber, NULL); in free_vm86_irq()
805 vm86_irqs[irqnumber].tsk = NULL; in free_vm86_irq()
808 irqbits &= ~(1 << irqnumber); in free_vm86_irq()
820 static inline int get_and_reset_irq(int irqnumber) in get_and_reset_irq() argument
826 if (invalid_vm86_irq(irqnumber)) return 0; in get_and_reset_irq()
827 if (vm86_irqs[irqnumber].tsk != current) return 0; in get_and_reset_irq()
829 bit = irqbits & (1 << irqnumber); in get_and_reset_irq()
832 enable_irq(irqnumber); in get_and_reset_irq()
841 static int do_vm86_irq_handling(int subfunction, int irqnumber) in do_vm86_irq_handling() argument
846 return get_and_reset_irq(irqnumber); in do_vm86_irq_handling()
852 int sig = irqnumber >> 8; in do_vm86_irq_handling()
853 int irq = irqnumber & 255; in do_vm86_irq_handling()
865 if (invalid_vm86_irq(irqnumber)) return -EPERM; in do_vm86_irq_handling()
866 if (!vm86_irqs[irqnumber].tsk) return 0; in do_vm86_irq_handling()
867 if (vm86_irqs[irqnumber].tsk != current) return -EPERM; in do_vm86_irq_handling()
868 free_vm86_irq(irqnumber); in do_vm86_irq_handling()