Lines Matching refs:count
41 int count;
52 * before latching the timer count to guarantee that although
53 * the jiffies value might be older than the count (that is,
56 * count), it cannot be newer.
59 outb_p(0x00, PIT_MODE); /* latch the count ASAP */
60 count = inb_p(PIT_CH0); /* read the latched count */
61 count |= inb_p(PIT_CH0) << 8;
63 /* VIA686a test code... reset the latch if count > max + 1 */
64 if (count > PIT_LATCH) {
68 count = PIT_LATCH - 1;
72 * It's possible for count to appear to go the wrong way for a
84 if (count > old_count && jifs == old_jifs)
85 count = old_count;
87 old_count = count;
92 count = (PIT_LATCH - 1) - count;
94 return (u64)(jifs * PIT_LATCH) + count;