Searched refs:irqnumber (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/arch/x86/kernel/
H A Dvm86_32.c202 static int do_vm86_irq_handling(int subfunction, int irqnumber);
767 static inline void free_vm86_irq(int irqnumber) free_vm86_irq() argument
771 free_irq(irqnumber, NULL); free_vm86_irq()
772 vm86_irqs[irqnumber].tsk = NULL; free_vm86_irq()
775 irqbits &= ~(1 << irqnumber); free_vm86_irq()
787 static inline int get_and_reset_irq(int irqnumber) get_and_reset_irq() argument
793 if (invalid_vm86_irq(irqnumber)) return 0; get_and_reset_irq()
794 if (vm86_irqs[irqnumber].tsk != current) return 0; get_and_reset_irq()
796 bit = irqbits & (1 << irqnumber); get_and_reset_irq()
799 enable_irq(irqnumber); get_and_reset_irq()
808 static int do_vm86_irq_handling(int subfunction, int irqnumber) do_vm86_irq_handling() argument
813 return get_and_reset_irq(irqnumber); do_vm86_irq_handling()
819 int sig = irqnumber >> 8; do_vm86_irq_handling()
820 int irq = irqnumber & 255; do_vm86_irq_handling()
832 if (invalid_vm86_irq(irqnumber)) return -EPERM; do_vm86_irq_handling()
833 if (!vm86_irqs[irqnumber].tsk) return 0; do_vm86_irq_handling()
834 if (vm86_irqs[irqnumber].tsk != current) return -EPERM; do_vm86_irq_handling()
835 free_vm86_irq(irqnumber); do_vm86_irq_handling()

Completed in 74 milliseconds