Lines Matching refs:Secondary
22 Secondary = 1, enumerator
137 PIC_SECONDARY_COMMAND => self.pic_write_command(PicSelect::Secondary, data[0]), in write()
138 PIC_SECONDARY_DATA => self.pic_write_data(PicSelect::Secondary, data[0]), in write()
139 PIC_SECONDARY_ELCR => self.pic_write_elcr(PicSelect::Secondary, data[0]), in write()
153 PIC_SECONDARY_COMMAND => self.pic_read_command(PicSelect::Secondary), in read()
154 PIC_SECONDARY_DATA => self.pic_read_data(PicSelect::Secondary), in read()
155 PIC_SECONDARY_ELCR => self.pic_read_elcr(PicSelect::Secondary), in read()
191 PicSelect::Secondary in service_irq()
225 let irq_secondary = if let Some(irq) = self.get_irq(PicSelect::Secondary) { in get_external_interrupt()
226 Pic::interrupt_ack(&mut self.pics[PicSelect::Secondary as usize], irq); in get_external_interrupt()
231 self.pics[PicSelect::Secondary as usize].irq_base + irq_secondary in get_external_interrupt()
346 if pic_type == PicSelect::Secondary { in poll_read()
353 pic_type == PicSelect::Secondary && irq != PRIMARY_PIC_CASCADE_PIN; in poll_read()
391 if self.get_irq(PicSelect::Secondary).is_some() { in update_irq()
564 PicSelect::Secondary => PIC_SECONDARY_COMMAND, in icw_init()
568 PicSelect::Secondary => PIC_SECONDARY_DATA, in icw_init()
592 icw_init(pic, PicSelect::Secondary, 0x11, 0x70, 0xff, 0x13); in icw_init_secondary()
604 icw_init(pic, PicSelect::Secondary, 0x11, 0x70, 0xff, icw4); in icw_init_both_with_icw4()
702 let secondary_pic = &data.pic.pics[PicSelect::Secondary as usize]; in ocw()
727 let secondary_pic = &data.pic.pics[PicSelect::Secondary as usize]; in ocw_auto_rotate_set_and_clear()
733 let secondary_pic = &data.pic.pics[PicSelect::Secondary as usize]; in ocw_auto_rotate_set_and_clear()
748 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].irr, (1 << 4)); in auto_eoi()
749 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].isr, 0); in auto_eoi()
757 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].irr, 0); in auto_eoi()
758 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].isr, 0); in auto_eoi()
783 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].irr, 0); in fully_nested_mode_on()
785 data.pic.pics[PicSelect::Secondary as usize].isr, in fully_nested_mode_on()
810 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].irr, 1 << 0); in fully_nested_mode_off()
811 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].isr, 1 << 4); in fully_nested_mode_off()
825 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].irr, 0); in fully_nested_mode_off()
826 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].isr, 1 << 0); in fully_nested_mode_off()
844 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].irr, 1 << 6); in mask_irq()
845 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].isr, 0); in mask_irq()
856 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].irr, 0); in mask_irq()
857 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].isr, 1 << 6); in mask_irq()
1115 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].irr, 1 << 4); in cascade_irq()
1120 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].irr, 0); in cascade_irq()
1121 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].isr, 1 << 4); in cascade_irq()
1133 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].isr, 0); in cascade_irq()
1134 assert_eq!(data.pic.pics[PicSelect::Secondary as usize].priority_add, 5); in cascade_irq()