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