Searched refs:rtc_dev (Results 1 – 6 of 6) sorted by relevance
/third_party/ltp/testcases/kernel/device-drivers/rtc/ |
D | rtc02.c | 25 static char *rtc_dev = "/dev/rtc"; variable 68 ret = tst_rtc_settime(rtc_dev, &set_tm); in set_rtc_test() 75 ret = tst_rtc_gettime(rtc_dev, &read_tm); in set_rtc_test() 92 int exists = access(rtc_dev, F_OK); in rtc_setup() 95 tst_brk(TCONF, "RTC device %s not available", rtc_dev); in rtc_setup() 97 tst_rtc_clock_save(rtc_dev); in rtc_setup() 102 tst_rtc_clock_restore(rtc_dev); in rtc_cleanup()
|
D | rtc01.c | 42 static char *rtc_dev = "/dev/rtc"; variable 45 {"d:", &dflag, &rtc_dev}, 52 rtc_dev); in help() 229 if (access(rtc_dev, F_OK) == -1) in main() 230 tst_brkm(TCONF, NULL, "couldn't find rtc device '%s'", rtc_dev); in main() 232 rtc_fd = SAFE_OPEN(NULL, rtc_dev, O_RDONLY); in main()
|
/third_party/ltp/include/ |
D | tst_rtctime.h | 12 int tst_rtc_ioctl(const char *rtc_dev, unsigned long request, 15 static inline int tst_rtc_gettime(const char *rtc_dev, struct rtc_time *rtc_tm) in tst_rtc_gettime() argument 17 return tst_rtc_ioctl(rtc_dev, RTC_RD_TIME, rtc_tm); in tst_rtc_gettime() 20 static inline int tst_rtc_settime(const char *rtc_dev, struct rtc_time *rtc_tm) in tst_rtc_settime() argument 22 return tst_rtc_ioctl(rtc_dev, RTC_SET_TIME, rtc_tm); in tst_rtc_settime()
|
D | tst_wallclock.h | 15 void tst_rtc_clock_save(const char *rtc_dev); 17 void tst_rtc_clock_restore(const char *rtc_dev);
|
/third_party/ltp/lib/ |
D | tst_wallclock.c | 80 void tst_rtc_clock_save(const char *rtc_dev) in tst_rtc_clock_save() argument 83 if (tst_rtc_gettime(rtc_dev, &rtc_begin)) in tst_rtc_clock_save() 92 void tst_rtc_clock_restore(const char *rtc_dev) in tst_rtc_clock_restore() argument 116 if (tst_rtc_settime(rtc_dev, &rtc_restore)) in tst_rtc_clock_restore()
|
D | tst_rtctime.c | 110 int tst_rtc_ioctl(const char *rtc_dev, unsigned long request, in tst_rtc_ioctl() argument 116 rtc_fd = SAFE_OPEN(rtc_dev, O_RDONLY); in tst_rtc_ioctl()
|