Lines Matching refs:count
33 int count;
44 * before latching the timer count to guarantee that although
45 * the jiffies value might be older than the count (that is,
48 * count), it cannot be newer.
51 outb_p(0x00, PIT_MODE); /* latch the count ASAP */
52 count = inb_p(PIT_CH0); /* read the latched count */
53 count |= inb_p(PIT_CH0) << 8;
55 /* VIA686a test code... reset the latch if count > max + 1 */
56 if (count > PIT_LATCH) {
60 count = PIT_LATCH - 1;
64 * It's possible for count to appear to go the wrong way for a
76 if (count > old_count && jifs == old_jifs)
77 count = old_count;
79 old_count = count;
84 count = (PIT_LATCH - 1) - count;
86 return (cycle_t)(jifs * PIT_LATCH) + count;