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