Lines Matching refs:tv
175 static void strtotimeval(struct timeval *tv, char *time)
180 tv->tv_sec = secs;
181 tv->tv_usec = 1000000 * (secs - tv->tv_sec);
184 static unsigned long tv_to_jify(struct timeval *tv)
188 jify = 1000000ULL * tv->tv_sec + tv->tv_usec;
204 struct timeval tv;
206 strtotimeval(&tv, argv[1]);
207 set_time(argv[0], BRCTL_SET_AGEING_TIME, tv_to_jify(&tv));
212 struct timeval tv;
214 strtotimeval(&tv, argv[1]);
215 set_time(argv[0], BRCTL_SET_BRIDGE_FORWARD_DELAY, tv_to_jify(&tv));
220 struct timeval tv;
222 strtotimeval(&tv, argv[1]);
223 set_time(argv[0], BRCTL_SET_BRIDGE_HELLO_TIME, tv_to_jify(&tv));
228 struct timeval tv;
230 strtotimeval(&tv, argv[1]);
231 set_time(argv[0], BRCTL_SET_BRIDGE_MAX_AGE, tv_to_jify(&tv));