Lines Matching refs:irqnumber
169 static int do_vm86_irq_handling(int subfunction, int irqnumber);
760 static inline void free_vm86_irq(int irqnumber) in free_vm86_irq() argument
764 free_irq(irqnumber, NULL); in free_vm86_irq()
765 vm86_irqs[irqnumber].tsk = NULL; in free_vm86_irq()
768 irqbits &= ~(1 << irqnumber); in free_vm86_irq()
780 static inline int get_and_reset_irq(int irqnumber) in get_and_reset_irq() argument
786 if (invalid_vm86_irq(irqnumber)) return 0; in get_and_reset_irq()
787 if (vm86_irqs[irqnumber].tsk != current) return 0; in get_and_reset_irq()
789 bit = irqbits & (1 << irqnumber); in get_and_reset_irq()
792 enable_irq(irqnumber); in get_and_reset_irq()
801 static int do_vm86_irq_handling(int subfunction, int irqnumber) in do_vm86_irq_handling() argument
806 return get_and_reset_irq(irqnumber); in do_vm86_irq_handling()
812 int sig = irqnumber >> 8; in do_vm86_irq_handling()
813 int irq = irqnumber & 255; in do_vm86_irq_handling()
825 if (invalid_vm86_irq(irqnumber)) return -EPERM; in do_vm86_irq_handling()
826 if (!vm86_irqs[irqnumber].tsk) return 0; in do_vm86_irq_handling()
827 if (vm86_irqs[irqnumber].tsk != current) return -EPERM; in do_vm86_irq_handling()
828 free_vm86_irq(irqnumber); in do_vm86_irq_handling()