Lines Matching full:wait
26 nvif_timer_wait_test(struct nvif_timer_wait *wait) in nvif_timer_wait_test() argument
28 u64 time = nvif_device_time(wait->device); in nvif_timer_wait_test()
30 if (wait->reads == 0) { in nvif_timer_wait_test()
31 wait->time0 = time; in nvif_timer_wait_test()
32 wait->time1 = time; in nvif_timer_wait_test()
35 if (wait->time1 == time) { in nvif_timer_wait_test()
36 if (WARN_ON(wait->reads++ == 16)) in nvif_timer_wait_test()
39 wait->time1 = time; in nvif_timer_wait_test()
40 wait->reads = 1; in nvif_timer_wait_test()
43 if (wait->time1 - wait->time0 > wait->limit) in nvif_timer_wait_test()
46 return wait->time1 - wait->time0; in nvif_timer_wait_test()
51 struct nvif_timer_wait *wait) in nvif_timer_wait_init() argument
53 wait->device = device; in nvif_timer_wait_init()
54 wait->limit = nsec; in nvif_timer_wait_init()
55 wait->reads = 0; in nvif_timer_wait_init()