Lines Matching refs:wtime
120 long wtime, // don't use "time", MIPS cannot handle it in ui_inchar() argument
144 if (do_profiling == PROF_YES && wtime != 0) in ui_inchar()
158 retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt); in ui_inchar()
159 if (retval > 0 || typebuf_changed(tb_change_cnt) || wtime >= 0) in ui_inchar()
162 if (wtime == -1 && ++count == 1000) in ui_inchar()
171 if (wtime == -1 || wtime > 100L) in ui_inchar()
226 retval = gui_inchar(buf, maxlen, wtime, tb_change_cnt); in ui_inchar()
232 retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt); in ui_inchar()
235 if (wtime == -1 || wtime > 100L) in ui_inchar()
245 if (do_profiling == PROF_YES && wtime != 0) in ui_inchar()
269 long wtime, // don't use "time", MIPS cannot handle it in inchar_loop() argument
271 int (*wait_func)(long wtime, int *interrupted, int ignore_input), in inchar_loop() argument
296 if (wtime != 0) in inchar_loop()
304 if (wtime < 0 && did_start_blocking) in inchar_loop()
309 if (wtime >= 0) in inchar_loop()
310 wait_time = wtime; in inchar_loop()
324 if (wtime >= 0) in inchar_loop()
416 || (wtime < 0 && !did_start_blocking)) in inchar_loop()
435 long wtime, in ui_wait_for_chars_or_timer() argument
436 int (*wait_func)(long wtime, int *interrupted, int ignore_input), in ui_wait_for_chars_or_timer() argument
441 long remaining = wtime; in ui_wait_for_chars_or_timer()
448 if (wtime >= 0 && wtime < 10L) in ui_wait_for_chars_or_timer()
449 return wait_func(wtime, NULL, ignore_input); in ui_wait_for_chars_or_timer()
451 while (wtime < 0 || remaining > 0) in ui_wait_for_chars_or_timer()
461 if (due_time <= 0 || (wtime > 0 && due_time > remaining)) in ui_wait_for_chars_or_timer()
498 if (wtime > 0) in ui_wait_for_chars_or_timer()