Lines Matching refs:rtc_time
6 * Struct rtc_time and first 12 ioctl by Paul Gortmaker, 1996 - separated out
23 extern int rtc_valid_tm(struct rtc_time *tm);
24 extern time64_t rtc_tm_to_time64(struct rtc_time *tm);
25 extern void rtc_time64_to_tm(time64_t time, struct rtc_time *tm);
26 ktime_t rtc_tm_to_ktime(struct rtc_time tm);
27 struct rtc_time rtc_ktime_to_tm(ktime_t kt);
32 static inline time64_t rtc_tm_sub(struct rtc_time *lhs, struct rtc_time *rhs)
61 int (*read_time)(struct device *, struct rtc_time *);
62 int (*set_time)(struct device *, struct rtc_time *);
187 extern int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm);
188 extern int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm);