Lines Matching refs:tfd
55 static void settime(int tfd, struct tst_its *tmr, int tflags, in settime() argument
63 if (tv->tfd_settime(tfd, tflags, tst_its_get(tmr), NULL)) in settime()
67 static void waittmr(int tfd, unsigned int exp_ticks) in waittmr() argument
72 pfd.fd = tfd; in waittmr()
83 SAFE_READ(0, tfd, &ticks, sizeof(ticks)); in waittmr()
96 int tfd; in run() local
104 tfd = SAFE_TIMERFD_CREATE(clks->id, 0); in run()
107 settime(tfd, &tmr, 0, 100 * 1000, 0); in run()
108 waittmr(tfd, 1); in run()
112 settime(tfd, &tmr, TFD_TIMER_ABSTIME, tnow + 100 * 1000, 0); in run()
113 waittmr(tfd, 1); in run()
117 settime(tfd, &tmr, TFD_TIMER_ABSTIME, tnow + 50 * 1000, 50 * 1000); in run()
122 if (tv->tfd_gettime(tfd, tst_its_get(&tmr))) in run()
132 waittmr(tfd, 3); in run()
135 settime(tfd, &tmr, 0, 100 * 1000, 0); in run()
136 waittmr(tfd, 1); in run()
138 SAFE_FCNTL(tfd, F_SETFL, fcntl(tfd, F_GETFL, 0) | O_NONBLOCK); in run()
140 TEST(read(tfd, &uticks, sizeof(uticks))); in run()
148 SAFE_CLOSE(tfd); in run()