Lines Matching refs:rtc_device
112 struct rtc_device { struct
155 #define to_rtc_device(d) container_of(d, struct rtc_device, dev) argument
157 extern struct rtc_device *rtc_device_register(const char *name,
161 extern struct rtc_device *devm_rtc_device_register(struct device *dev,
165 extern void rtc_device_unregister(struct rtc_device *rtc);
167 struct rtc_device *rtc);
169 extern int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm);
170 extern int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm);
172 int __rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm);
173 extern int rtc_read_alarm(struct rtc_device *rtc,
175 extern int rtc_set_alarm(struct rtc_device *rtc,
177 extern int rtc_initialize_alarm(struct rtc_device *rtc,
179 extern void rtc_update_irq(struct rtc_device *rtc,
182 extern struct rtc_device *rtc_class_open(const char *name);
183 extern void rtc_class_close(struct rtc_device *rtc);
185 extern int rtc_irq_register(struct rtc_device *rtc,
187 extern void rtc_irq_unregister(struct rtc_device *rtc,
189 extern int rtc_irq_set_state(struct rtc_device *rtc,
191 extern int rtc_irq_set_freq(struct rtc_device *rtc,
193 extern int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled);
194 extern int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled);
195 extern int rtc_dev_update_irq_enable_emul(struct rtc_device *rtc,
198 void rtc_handle_legacy_irq(struct rtc_device *rtc, int num, int mode);
208 int rtc_timer_start(struct rtc_device *rtc, struct rtc_timer *timer,
210 void rtc_timer_cancel(struct rtc_device *rtc, struct rtc_timer *timer);