Lines Matching refs:read_counter
238 Some(PortIOSpace::PortCounter0Data) => self.counters[0].lock().read_counter(), in read()
239 Some(PortIOSpace::PortCounter1Data) => self.counters[1].lock().read_counter(), in read()
240 Some(PortIOSpace::PortCounter2Data) => self.counters[2].lock().read_counter(), in read()
425 fn read_counter(&mut self) -> u8 { in read_counter() method
809 fn read_counter(pit: &mut Pit, counter_idx: usize, expected: u16, access_mode: CommandAccess) { in read_counter() function
880 read_counter(&mut data.pit, 0, 23, CommandAccess::CommandRWBoth); in write_and_latch()
894 read_counter(&mut data.pit, 1, 313, CommandAccess::CommandRWBoth); in write_and_latch()
908 read_counter(&mut data.pit, 2, 0xfffe, CommandAccess::CommandRWBoth); in write_and_latch()
922 read_counter(&mut data.pit, 0, 0x0024, CommandAccess::CommandRWLeast); in write_and_read_least()
928 read_counter(&mut data.pit, 0, 0x0024, CommandAccess::CommandRWLeast); in write_and_read_least()
942 read_counter(&mut data.pit, 0, 0x3400, CommandAccess::CommandRWMost); in write_and_read_most()
948 read_counter(&mut data.pit, 0, 0x3400, CommandAccess::CommandRWMost); in write_and_read_most()
981 read_counter(&mut data.pit, 0, 0xffff, CommandAccess::CommandRWBoth); in test_timed_latch()
987 read_counter( in test_timed_latch()
1049 read_counter( in square_wave_counter_read()
1070 read_counter( in rate_gen_counter_read()
1091 read_counter( in interrupt_counter_read()
1099 read_counter(&mut data.pit, 0, 0, CommandAccess::CommandRWBoth); in interrupt_counter_read()
1128 read_counter(&mut data.pit, 0, 0x00ff, CommandAccess::CommandRWLeast); in read_back_count_access_low()
1135 read_counter( in read_back_count_access_low()
1169 read_counter(&mut data.pit, 0, 0xff00, CommandAccess::CommandRWMost); in read_back_count_access_high()
1176 read_counter( in read_back_count_access_high()
1202 read_counter( in read_back_status()
1222 read_counter( in speaker_square_wave()
1244 read_counter(&mut data.pit, 2, 0xffff - 128, CommandAccess::CommandRWBoth); in speaker_rate_gen()
1248 read_counter(&mut data.pit, 2, 0xffff - 128, CommandAccess::CommandRWBoth); in speaker_rate_gen()
1266 read_counter(&mut data.pit, 2, 0xffff - 128, CommandAccess::CommandRWBoth); in speaker_interrupt()
1270 read_counter(&mut data.pit, 2, 0xffff - 256, CommandAccess::CommandRWBoth); in speaker_interrupt()