Lines Matching refs:count
23 * a loop count that approximates a ten microsecond delay.
45 * Loop count for 10 microsecond wait. MUST be initialized for those who
85 int count;
89 * In this mode, the PIT will count down from the loaded value and
119 count = inb(PITCTR0_PORT);
120 count |= inb(PITCTR0_PORT) << 8;
123 * Verify that the counter started counting down. The null count
129 * The counter did not begin. This means the loop count
131 * a zero count to represent that the delay was too small
145 * value. This means the loop count used by tenmicrosec is too
156 VERIFY(count <= 0xffff);
157 return (0xffff - count);
204 * Start at the smallest loop count, i.e. 1, and keep doubling
212 * We use a trial count of 7 to attempt to smooth out jitter
221 * previous ticks count and break out of the loop.
243 * Doubling the loop count again would cause an
257 * If we were unable to measure a positive PIT tick count, then
265 * Calculate the loop count based on the final PIT tick count and the
266 * loop count. Each PIT tick represents a duration of ~0.8381us, so we