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)
449 int rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
493 int rtc_initialize_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
525 int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled)
556 int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled)
617 void rtc_handle_legacy_irq(struct rtc_device *rtc, int num, int mode)
632 * @rtc: pointer to the rtc_device
636 void rtc_aie_update_irq(struct rtc_device *rtc)
643 * @rtc: pointer to the rtc_device
647 void rtc_uie_update_irq(struct rtc_device *rtc)
662 struct rtc_device *rtc;
666 rtc = container_of(timer, struct rtc_device, pie_timer);
683 void rtc_update_irq(struct rtc_device *rtc,
694 struct rtc_device *rtc_class_open(const char *name)
697 struct rtc_device *rtc = NULL;
714 void rtc_class_close(struct rtc_device *rtc)
721 static int rtc_update_hrtimer(struct rtc_device *rtc, int enabled)
753 int rtc_irq_set_state(struct rtc_device *rtc, int enabled)
775 int rtc_irq_set_freq(struct rtc_device *rtc, int freq)
791 * rtc_timer_enqueue - Adds a rtc_timer to the rtc_device timerqueue
802 static int rtc_timer_enqueue(struct rtc_device *rtc, struct rtc_timer *timer)
844 static void rtc_alarm_disable(struct rtc_device *rtc)
854 * rtc_timer_remove - Removes a rtc_timer from the rtc_device timerqueue
865 static void rtc_timer_remove(struct rtc_device *rtc, struct rtc_timer *timer)
907 struct rtc_device *rtc =
908 container_of(work, struct rtc_device, irqwork);
971 * @rtc: pointer to the rtc_device
975 void rtc_timer_init(struct rtc_timer *timer, void (*f)(struct rtc_device *r),
976 struct rtc_device *rtc)
992 int rtc_timer_start(struct rtc_device *rtc, struct rtc_timer *timer,
1016 void rtc_timer_cancel(struct rtc_device *rtc, struct rtc_timer *timer)
1035 int rtc_read_offset(struct rtc_device *rtc, long *offset)
1070 int rtc_set_offset(struct rtc_device *rtc, long offset)