Lines Matching refs:cnt
22 unsigned int cnt; in mips_next_event() local
25 cnt = read_c0_count(); in mips_next_event()
26 cnt += delta; in mips_next_event()
27 write_c0_compare(cnt); in mips_next_event()
28 res = ((int)(read_c0_count() - cnt) >= 0) ? -ETIME : 0; in mips_next_event()
51 unsigned int cnt, i, j, k, l; in calculate_min_delta() local
65 cnt = read_c0_count(); in calculate_min_delta()
66 write_c0_compare(cnt); in calculate_min_delta()
67 cnt = read_c0_count() - cnt; in calculate_min_delta()
71 if (cnt < buf1[k]) { in calculate_min_delta()
80 buf1[k] = cnt; in calculate_min_delta()
196 unsigned int cnt; in c0_compare_int_usable() local
202 cnt = read_c0_count(); in c0_compare_int_usable()
203 write_c0_compare(cnt); in c0_compare_int_usable()
205 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) in c0_compare_int_usable()
213 cnt = read_c0_count(); in c0_compare_int_usable()
214 cnt += delta; in c0_compare_int_usable()
215 write_c0_compare(cnt); in c0_compare_int_usable()
217 if ((int)(read_c0_count() - cnt) < 0) in c0_compare_int_usable()
222 while ((int)(read_c0_count() - cnt) <= 0) in c0_compare_int_usable()
225 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) in c0_compare_int_usable()
230 cnt = read_c0_count(); in c0_compare_int_usable()
231 write_c0_compare(cnt); in c0_compare_int_usable()
233 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) in c0_compare_int_usable()