Lines Matching refs:pics

73 	if (s != &s->pics_state->pics[0])  in pic_clear_isr()
147 if (s->special_fully_nested_mode && s == &s->pics_state->pics[0]) in pic_get_irq()
167 irq2 = pic_get_irq(&s->pics[1]); in pic_update_irq()
172 pic_set_irq1(&s->pics[0], 2, 1); in pic_update_irq()
173 pic_set_irq1(&s->pics[0], 2, 0); in pic_update_irq()
175 irq = pic_get_irq(&s->pics[0]); in pic_update_irq()
195 ret = pic_set_irq1(&s->pics[irq >> 3], irq & 7, irq_level); in kvm_pic_set_irq()
197 trace_kvm_pic_set_irq(irq >> 3, irq & 7, s->pics[irq >> 3].elcr, in kvm_pic_set_irq()
198 s->pics[irq >> 3].imr, ret == 0); in kvm_pic_set_irq()
242 irq = pic_get_irq(&s->pics[0]); in kvm_pic_read_irq()
244 pic_intack(&s->pics[0], irq); in kvm_pic_read_irq()
246 irq2 = pic_get_irq(&s->pics[1]); in kvm_pic_read_irq()
248 pic_intack(&s->pics[1], irq2); in kvm_pic_read_irq()
254 intno = s->pics[1].irq_base + irq2; in kvm_pic_read_irq()
257 intno = s->pics[0].irq_base + irq; in kvm_pic_read_irq()
263 intno = s->pics[0].irq_base + irq; in kvm_pic_read_irq()
368 off = (s == &s->pics_state->pics[0]) ? 0 : 8; in pic_ioport_write()
405 s->pics_state->pics[0].isr &= ~(1 << 2); in pic_poll_read()
406 s->pics_state->pics[0].irr &= ~(1 << 2); in pic_poll_read()
464 pic_ioport_write(&s->pics[0], addr, data); in picdev_write()
470 pic_ioport_write(&s->pics[1], addr, data); in picdev_write()
476 elcr_ioport_write(&s->pics[addr & 1], addr, data); in picdev_write()
501 *data = pic_ioport_read(&s->pics[addr >> 7], addr); in picdev_read()
507 *data = elcr_ioport_read(&s->pics[addr & 1], addr); in picdev_read()
595 s->pics[0].elcr_mask = 0xf8; in kvm_pic_init()
596 s->pics[1].elcr_mask = 0xde; in kvm_pic_init()
597 s->pics[0].pics_state = s; in kvm_pic_init()
598 s->pics[1].pics_state = s; in kvm_pic_init()