Lines Matching refs:_control_rtc
93 static rt_err_t _control_rtc(int cmd, void *arg) in _control_rtc() function
345 if (_control_rtc(RT_DEVICE_CTRL_RTC_GET_TIME, &_t) != RT_EOK) in time()
371 if ((t != RT_NULL) && (_control_rtc(RT_DEVICE_CTRL_RTC_SET_TIME, (void *)t) == RT_EOK)) in stime()
490 if (_control_rtc(RT_DEVICE_CTRL_RTC_GET_TIMEVAL, tv) == RT_EOK) in gettimeofday()
496 if (_control_rtc(RT_DEVICE_CTRL_RTC_GET_TIME, (void *)&tv->tv_sec) == RT_EOK) in gettimeofday()
519 if (_control_rtc(RT_DEVICE_CTRL_RTC_SET_TIMEVAL, (void *)tv) == RT_EOK) in settimeofday()
525 if (_control_rtc(RT_DEVICE_CTRL_RTC_SET_TIME, (void *)&tv->tv_sec) == RT_EOK) in settimeofday()
608 return _control_rtc(RT_DEVICE_CTRL_RTC_GET_TIMERES, res); in clock_getres()
641 return _control_rtc(RT_DEVICE_CTRL_RTC_GET_TIMESPEC, tp); in clock_gettime()
685 err = _control_rtc(RT_DEVICE_CTRL_RTC_GET_TIMESPEC, &ts); in clock_nanosleep()
738 return _control_rtc(RT_DEVICE_CTRL_RTC_SET_TIMESPEC, (void *)tp); in clock_settime()
1206 err = _control_rtc(RT_DEVICE_CTRL_RTC_GET_TIMESPEC, &ts); in timer_settime()