Searched refs:rtc_fd (Results 1 – 2 of 2) sorted by relevance
/third_party/ltp/testcases/kernel/device-drivers/rtc/ |
D | rtc01.c | 38 int rtc_fd = -1; variable 71 ret = ioctl(rtc_fd, RTC_RD_TIME, &rtc_tm); in read_alarm_test() 100 ret = ioctl(rtc_fd, RTC_ALM_SET, &rtc_tm); in read_alarm_test() 110 ret = ioctl(rtc_fd, RTC_ALM_READ, &rtc_tm); in read_alarm_test() 124 ret = ioctl(rtc_fd, RTC_AIE_ON, 0); in read_alarm_test() 136 FD_SET(rtc_fd, &rfds); in read_alarm_test() 138 ret = select(rtc_fd + 1, &rfds, NULL, NULL, &tv); /*wait for alarm */ in read_alarm_test() 144 ret = read(rtc_fd, &data, sizeof(unsigned long)); in read_alarm_test() 156 ret = ioctl(rtc_fd, RTC_AIE_OFF, 0); in read_alarm_test() 178 ret = ioctl(rtc_fd, RTC_UIE_ON, 0); in update_interrupts_test() [all …]
|
/third_party/ltp/lib/ |
D | tst_rtctime.c | 114 int rtc_fd = -1; in tst_rtc_ioctl() local 116 rtc_fd = SAFE_OPEN(rtc_dev, O_RDONLY); in tst_rtc_ioctl() 118 ret = ioctl(rtc_fd, request, rtc_tm); in tst_rtc_ioctl() 123 if (rtc_fd > 0) in tst_rtc_ioctl() 124 SAFE_CLOSE(rtc_fd); in tst_rtc_ioctl()
|