Lines Matching refs:num
72 pic_is_spurious_interrupt(int32 num)
74 if (num != 7)
90 pic_is_level_triggered_interrupt(int32 num)
92 if (num < 0 || num > PIC_NUM_INTS)
95 return (sLevelTriggeredInterrupts & (1 << num)) != 0;
104 pic_end_of_interrupt(int32 num)
106 if (num < 0 || num > PIC_NUM_INTS)
110 if (num >= PIC_SLAVE_INT_BASE)
120 pic_enable_io_interrupt(int32 num)
123 if (num < 0 || num > PIC_NUM_INTS)
128 TRACE(("pic_enable_io_interrupt: irq %ld\n", num));
130 if (num < PIC_SLAVE_INT_BASE)
131 out8(in8(PIC_MASTER_MASK) & ~(1 << num), PIC_MASTER_MASK);
133 out8(in8(PIC_SLAVE_MASK) & ~(1 << (num - PIC_SLAVE_INT_BASE)), PIC_SLAVE_MASK);
138 pic_disable_io_interrupt(int32 num)
142 if (num < 0 || num > PIC_NUM_INTS || num == 2)
147 TRACE(("pic_disable_io_interrupt: irq %ld\n", num));
149 if (num < PIC_SLAVE_INT_BASE)
150 out8(in8(PIC_MASTER_MASK) | (1 << num), PIC_MASTER_MASK);
152 out8(in8(PIC_SLAVE_MASK) | (1 << (num - PIC_SLAVE_INT_BASE)), PIC_SLAVE_MASK);
157 pic_configure_io_interrupt(int32 num, uint32 config)
161 if (num < 0 || num > PIC_NUM_INTS || num == 2)
164 TRACE(("pic_configure_io_interrupt: irq %ld; config 0x%08lx\n", num, config));
166 if (num < PIC_SLAVE_INT_BASE) {
168 localBit = num;
171 localBit = num - PIC_SLAVE_INT_BASE;
179 if (num < PIC_SLAVE_INT_BASE)