Lines Matching refs:rtc
12 #include <linux/rtc.h>
18 * in an rtc sync function, to read both xtime.tv_sec and
32 struct rtc_device *rtc = rtc_class_open(CONFIG_RTC_HCTOSYS_DEVICE);
34 if (rtc == NULL) {
35 pr_err("%s: unable to open rtc device (%s)\n",
40 err = rtc_read_time(rtc, &tm);
42 dev_err(rtc->dev.parent,
50 dev_err(rtc->dev.parent,
59 dev_info(rtc->dev.parent,
68 rtc_class_close(rtc);