Lines Matching refs:rtc_device

20 static int rtc_timer_enqueue(struct rtc_device *rtc, struct rtc_timer *timer);
21 static void rtc_timer_remove(struct rtc_device *rtc, struct rtc_timer *timer);
23 static void rtc_add_offset(struct rtc_device *rtc, struct rtc_time *tm)
46 static void rtc_subtract_offset(struct rtc_device *rtc, struct rtc_time *tm)
67 static int rtc_valid_range(struct rtc_device *rtc, struct rtc_time *tm)
84 static int __rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm)
110 int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm)
126 int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm)
178 static int rtc_read_alarm_internal(struct rtc_device *rtc,
212 int __rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
386 int rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
409 static int __rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
448 int rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
483 int rtc_initialize_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
515 int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled)
546 int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled)
620 void rtc_handle_legacy_irq(struct rtc_device *rtc, int num, int mode)
635 * @rtc: pointer to the rtc_device
639 void rtc_aie_update_irq(struct rtc_device *rtc)
646 * @rtc: pointer to the rtc_device
650 void rtc_uie_update_irq(struct rtc_device *rtc)
665 struct rtc_device *rtc;
669 rtc = container_of(timer, struct rtc_device, pie_timer);
686 void rtc_update_irq(struct rtc_device *rtc,
697 struct rtc_device *rtc_class_open(const char *name)
700 struct rtc_device *rtc = NULL;
717 void rtc_class_close(struct rtc_device *rtc)
724 static int rtc_update_hrtimer(struct rtc_device *rtc, int enabled)
756 int rtc_irq_set_state(struct rtc_device *rtc, int enabled)
778 int rtc_irq_set_freq(struct rtc_device *rtc, int freq)
794 * rtc_timer_enqueue - Adds a rtc_timer to the rtc_device timerqueue
805 static int rtc_timer_enqueue(struct rtc_device *rtc, struct rtc_timer *timer)
847 static void rtc_alarm_disable(struct rtc_device *rtc)
857 * rtc_timer_remove - Removes a rtc_timer from the rtc_device timerqueue
868 static void rtc_timer_remove(struct rtc_device *rtc, struct rtc_timer *timer)
910 struct rtc_device *rtc =
911 container_of(work, struct rtc_device, irqwork);
974 * @rtc: pointer to the rtc_device
978 void rtc_timer_init(struct rtc_timer *timer, void (*f)(struct rtc_device *r),
979 struct rtc_device *rtc)
995 int rtc_timer_start(struct rtc_device *rtc, struct rtc_timer *timer,
1019 void rtc_timer_cancel(struct rtc_device *rtc, struct rtc_timer *timer)
1038 int rtc_read_offset(struct rtc_device *rtc, long *offset)
1073 int rtc_set_offset(struct rtc_device *rtc, long offset)