tv                103 bsp/drv/dev/rtc/mc146818.c mc146818_gettime(void *aux, struct timeval *tv)
tv                138 bsp/drv/dev/rtc/mc146818.c 	tv->tv_usec = 0;
tv                139 bsp/drv/dev/rtc/mc146818.c 	tv->tv_sec = rtc_ymdhms_to_secs(&cy);
tv                 70 bsp/drv/dev/rtc/pl030.c pl030_gettime(void *aux, struct timeval *tv)
tv                 73 bsp/drv/dev/rtc/pl030.c 	tv->tv_usec = 0;
tv                 74 bsp/drv/dev/rtc/pl030.c 	tv->tv_sec = bus_read_32(RTC_DR);
tv                 75 bsp/drv/dev/rtc/pl030.c 	printf("******* sec=%d\n", tv->tv_sec);
tv                181 bsp/drv/dev/rtc/rtc.c 	struct timeval tv;
tv                192 bsp/drv/dev/rtc/rtc.c 		tv.tv_sec = sc->boot_sec + (msec / 1000);
tv                193 bsp/drv/dev/rtc/rtc.c 		tv.tv_usec = (long)((msec * 1000) % 1000000);
tv                194 bsp/drv/dev/rtc/rtc.c 		if (copyout(&tv, arg, sizeof(tv)))
tv                215 bsp/drv/dev/rtc/rtc.c 	struct timeval tv;
tv                225 bsp/drv/dev/rtc/rtc.c 	ops->gettime(aux, &tv);
tv                226 bsp/drv/dev/rtc/rtc.c 	sc->boot_sec = tv.tv_sec;
tv                 43 bsp/drv/include/rtc.h 	int	(*gettime)(void *aux, struct timeval *tv);
tv                 44 bsp/drv/include/rtc.h 	int	(*settime)(void *aux, struct timeval *tv);
tv                 54 include/sys/time.h #define	TIMEVAL_TO_TIMESPEC(tv, ts) {					\
tv                 55 include/sys/time.h 	(ts)->ts_sec = (tv)->tv_sec;					\
tv                 56 include/sys/time.h 	(ts)->ts_nsec = (tv)->tv_usec * 1000;				\
tv                 58 include/sys/time.h #define	TIMESPEC_TO_TIMEVAL(tv, ts) {					\
tv                 59 include/sys/time.h 	(tv)->tv_sec = (ts)->ts_sec;					\
tv                 60 include/sys/time.h 	(tv)->tv_usec = (ts)->ts_nsec / 1000;				\
tv                 38 usr/lib/posix/time/gettimeofday.c gettimeofday(struct timeval *tv, struct timezone *tz)
tv                 46 usr/lib/posix/time/gettimeofday.c 	error = ioctl(fd, RTCIOC_GET_TIME, tv);
tv                 53 usr/sample/tetris/input.c #define	TV_POS(tv) \
tv                 54 usr/sample/tetris/input.c 	((tv)->tv_sec > 0 || ((tv)->tv_sec == 0 && (tv)->tv_usec > 0))
tv                124 usr/sample/tetris/input.c 	struct timeval tv;
tv                127 usr/sample/tetris/input.c 	tv.tv_sec = 0;
tv                128 usr/sample/tetris/input.c 	tv.tv_usec = fallrate;
tv                129 usr/sample/tetris/input.c 	while (TV_POS(&tv))
tv                130 usr/sample/tetris/input.c 		if (rwait(&tv) && read(0, &c, 1) != 1)
tv                140 usr/sample/tetris/input.c 	struct timeval tv;
tv                144 usr/sample/tetris/input.c 		tv.tv_sec = tv.tv_usec = 0;
tv                145 usr/sample/tetris/input.c 	} while (rwait(&tv) && read(0, &c, 1) == 1);