Lines Matching refs:rtc_device

71 struct rtc_device;
76 void (*func)(struct rtc_device *rtc);
77 struct rtc_device *rtc;
84 struct rtc_device { struct
163 #define to_rtc_device(d) container_of(d, struct rtc_device, dev) argument
178 extern struct rtc_device *devm_rtc_device_register(struct device *dev,
182 struct rtc_device *devm_rtc_allocate_device(struct device *dev);
183 int __devm_rtc_register_device(struct module *owner, struct rtc_device *rtc);
185 extern int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm);
186 extern int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm);
187 int __rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm);
188 extern int rtc_read_alarm(struct rtc_device *rtc,
190 extern int rtc_set_alarm(struct rtc_device *rtc,
192 extern int rtc_initialize_alarm(struct rtc_device *rtc,
194 extern void rtc_update_irq(struct rtc_device *rtc,
197 extern struct rtc_device *rtc_class_open(const char *name);
198 extern void rtc_class_close(struct rtc_device *rtc);
200 extern int rtc_irq_set_state(struct rtc_device *rtc, int enabled);
201 extern int rtc_irq_set_freq(struct rtc_device *rtc, int freq);
202 extern int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled);
203 extern int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled);
204 extern int rtc_dev_update_irq_enable_emul(struct rtc_device *rtc,
207 void rtc_handle_legacy_irq(struct rtc_device *rtc, int num, int mode);
208 void rtc_aie_update_irq(struct rtc_device *rtc);
209 void rtc_uie_update_irq(struct rtc_device *rtc);
212 void rtc_timer_init(struct rtc_timer *timer, void (*f)(struct rtc_device *r),
213 struct rtc_device *rtc);
214 int rtc_timer_start(struct rtc_device *rtc, struct rtc_timer *timer,
216 void rtc_timer_cancel(struct rtc_device *rtc, struct rtc_timer *timer);
217 int rtc_read_offset(struct rtc_device *rtc, long *offset);
218 int rtc_set_offset(struct rtc_device *rtc, long offset);
236 int devm_rtc_nvmem_register(struct rtc_device *rtc,
239 static inline int devm_rtc_nvmem_register(struct rtc_device *rtc, in devm_rtc_nvmem_register()
247 int rtc_add_group(struct rtc_device *rtc, const struct attribute_group *grp);
248 int rtc_add_groups(struct rtc_device *rtc, const struct attribute_group **grps);
251 int rtc_add_group(struct rtc_device *rtc, const struct attribute_group *grp) in rtc_add_group()
257 int rtc_add_groups(struct rtc_device *rtc, const struct attribute_group **grps) in rtc_add_groups()