Lines Matching refs:rtc_device
73 struct rtc_device;
78 void (*func)(struct rtc_device *rtc);
79 struct rtc_device *rtc;
87 struct rtc_device { struct
165 #define to_rtc_device(d) container_of(d, struct rtc_device, dev) argument
180 extern struct rtc_device *devm_rtc_device_register(struct device *dev,
184 struct rtc_device *devm_rtc_allocate_device(struct device *dev);
185 int __devm_rtc_register_device(struct module *owner, struct rtc_device *rtc);
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);
189 int __rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm);
190 extern int rtc_read_alarm(struct rtc_device *rtc,
192 extern int rtc_set_alarm(struct rtc_device *rtc,
194 extern int rtc_initialize_alarm(struct rtc_device *rtc,
196 extern void rtc_update_irq(struct rtc_device *rtc,
199 extern struct rtc_device *rtc_class_open(const char *name);
200 extern void rtc_class_close(struct rtc_device *rtc);
202 extern int rtc_irq_set_state(struct rtc_device *rtc, int enabled);
203 extern int rtc_irq_set_freq(struct rtc_device *rtc, int freq);
204 extern int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled);
205 extern int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled);
206 extern int rtc_dev_update_irq_enable_emul(struct rtc_device *rtc,
209 void rtc_handle_legacy_irq(struct rtc_device *rtc, int num, int mode);
210 void rtc_aie_update_irq(struct rtc_device *rtc);
211 void rtc_uie_update_irq(struct rtc_device *rtc);
214 void rtc_timer_init(struct rtc_timer *timer, void (*f)(struct rtc_device *r),
215 struct rtc_device *rtc);
216 int rtc_timer_start(struct rtc_device *rtc, struct rtc_timer *timer,
218 void rtc_timer_cancel(struct rtc_device *rtc, struct rtc_timer *timer);
219 int rtc_read_offset(struct rtc_device *rtc, long *offset);
220 int rtc_set_offset(struct rtc_device *rtc, long offset);
238 int devm_rtc_nvmem_register(struct rtc_device *rtc,
241 static inline int devm_rtc_nvmem_register(struct rtc_device *rtc, in devm_rtc_nvmem_register()
249 int rtc_add_group(struct rtc_device *rtc, const struct attribute_group *grp);
250 int rtc_add_groups(struct rtc_device *rtc, const struct attribute_group **grps);
253 int rtc_add_group(struct rtc_device *rtc, const struct attribute_group *grp) in rtc_add_group()
259 int rtc_add_groups(struct rtc_device *rtc, const struct attribute_group **grps) in rtc_add_groups()