| /Linux-v5.4/include/linux/ |
| D | rtc.h | 87 struct rtc_device; 92 void (*func)(struct rtc_device *rtc); 93 struct rtc_device *rtc; 100 struct rtc_device { struct 160 #define to_rtc_device(d) container_of(d, struct rtc_device, dev) argument 169 extern struct rtc_device *devm_rtc_device_register(struct device *dev, 173 struct rtc_device *devm_rtc_allocate_device(struct device *dev); 174 int __rtc_register_device(struct module *owner, struct rtc_device *rtc); 176 extern int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm); 177 extern int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm); [all …]
|
| D | alarmtimer.h | 9 struct rtc_device; 64 struct rtc_device *alarmtimer_get_rtcdev(void);
|
| /Linux-v5.4/drivers/rtc/ |
| D | rtc-core.h | 6 extern void rtc_dev_prepare(struct rtc_device *rtc); 18 static inline void rtc_dev_prepare(struct rtc_device *rtc) in rtc_dev_prepare() 26 extern void rtc_proc_add_device(struct rtc_device *rtc); 27 extern void rtc_proc_del_device(struct rtc_device *rtc); 31 static inline void rtc_proc_add_device(struct rtc_device *rtc) in rtc_proc_add_device() 35 static inline void rtc_proc_del_device(struct rtc_device *rtc) in rtc_proc_del_device()
|
| D | interface.c | 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) in rtc_add_offset() 46 static void rtc_subtract_offset(struct rtc_device *rtc, struct rtc_time *tm) in rtc_subtract_offset() 67 static int rtc_valid_range(struct rtc_device *rtc, struct rtc_time *tm) in rtc_valid_range() 84 static int __rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in __rtc_read_time() 110 int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_read_time() 126 int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_set_time() 161 static int rtc_read_alarm_internal(struct rtc_device *rtc, in rtc_read_alarm_internal() 195 int __rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) in __rtc_read_alarm() [all …]
|
| D | class.c | 28 struct rtc_device *rtc = to_rtc_device(dev); in rtc_device_release() 49 struct rtc_device *rtc = to_rtc_device(dev); in rtc_suspend() 94 struct rtc_device *rtc = to_rtc_device(dev); in rtc_resume() 149 static struct rtc_device *rtc_allocate_device(void) in rtc_allocate_device() 151 struct rtc_device *rtc; in rtc_allocate_device() 208 static void rtc_device_get_offset(struct rtc_device *rtc) in rtc_device_get_offset() 280 static void rtc_device_unregister(struct rtc_device *rtc) in rtc_device_unregister() 296 struct rtc_device *rtc = *(struct rtc_device **)res; in devm_rtc_release_device() 306 struct rtc_device *devm_rtc_allocate_device(struct device *dev) in devm_rtc_allocate_device() 308 struct rtc_device **ptr, *rtc; in devm_rtc_allocate_device() [all …]
|
| D | dev.c | 24 struct rtc_device *rtc = container_of(inode->i_cdev, in rtc_dev_open() 25 struct rtc_device, char_dev); in rtc_dev_open() 46 struct rtc_device *rtc = in rtc_uie_task() 47 container_of(work, struct rtc_device, uie_task); in rtc_uie_task() 74 struct rtc_device *rtc = from_timer(rtc, t, uie_timer); in rtc_uie_timer() 85 static int clear_uie(struct rtc_device *rtc) in clear_uie() 107 static int set_uie(struct rtc_device *rtc) in set_uie() 129 int rtc_dev_update_irq_enable_emul(struct rtc_device *rtc, unsigned int enabled) in rtc_dev_update_irq_enable_emul() 143 struct rtc_device *rtc = file->private_data; in rtc_dev_read() 192 struct rtc_device *rtc = file->private_data; in rtc_dev_poll() [all …]
|
| D | proc.c | 21 static bool is_rtc_hctosys(struct rtc_device *rtc) in is_rtc_hctosys() 33 static bool is_rtc_hctosys(struct rtc_device *rtc) in is_rtc_hctosys() 42 struct rtc_device *rtc = seq->private; in rtc_proc_show() 81 void rtc_proc_add_device(struct rtc_device *rtc) in rtc_proc_add_device() 88 void rtc_proc_del_device(struct rtc_device *rtc) in rtc_proc_del_device()
|
| D | nvmem.c | 41 static int rtc_nvram_register(struct rtc_device *rtc, in rtc_nvram_register() 70 static void rtc_nvram_unregister(struct rtc_device *rtc) in rtc_nvram_unregister() 80 int rtc_nvmem_register(struct rtc_device *rtc, in rtc_nvmem_register() 102 void rtc_nvmem_unregister(struct rtc_device *rtc) in rtc_nvmem_unregister()
|
| D | sysfs.c | 87 struct rtc_device *rtc = to_rtc_device(dev); in max_user_freq_store() 155 struct rtc_device *rtc = to_rtc_device(dev); in wakealarm_store() 268 static bool rtc_does_wakealarm(struct rtc_device *rtc) in rtc_does_wakealarm() 280 struct rtc_device *rtc = to_rtc_device(dev); in rtc_attr_is_visible() 312 int rtc_add_groups(struct rtc_device *rtc, const struct attribute_group **grps) in rtc_add_groups() 347 int rtc_add_group(struct rtc_device *rtc, const struct attribute_group *grp) in rtc_add_group()
|
| D | rtc-puv3.c | 36 struct rtc_device *rdev = id; in puv3_rtc_alarmirq() 45 struct rtc_device *rdev = id; in puv3_rtc_tickirq() 181 struct rtc_device *rtc; in puv3_rtc_probe()
|
| D | rtc-vr41xx.c | 216 struct rtc_device *rtc = platform_get_drvdata(pdev); in elapsedtime_interrupt() 228 struct rtc_device *rtc = platform_get_drvdata(pdev); in rtclong1_interrupt() 253 struct rtc_device *rtc; in rtc_probe()
|
| D | rtc-sa1100.h | 18 struct rtc_device *rtc;
|
| D | rtc-generic.c | 15 struct rtc_device *rtc; in generic_rtc_probe()
|
| D | rtc-starfire.c | 40 struct rtc_device *rtc; in starfire_rtc_probe()
|
| D | rtc-rs5c348.c | 54 struct rtc_device *rtc; 167 struct rtc_device *rtc; in rs5c348_probe()
|
| /Linux-v5.4/arch/x86/kernel/ |
| D | rtc.c | 173 static struct platform_device rtc_device = { variable 201 platform_device_register(&rtc_device); in add_rtc_cmos() 202 dev_info(&rtc_device.dev, in add_rtc_cmos()
|
| /Linux-v5.4/kernel/power/ |
| D | suspend_test.c | 62 static void __init test_wakealarm(struct rtc_device *rtc, suspend_state_t state) in test_wakealarm() 130 struct rtc_device *candidate = to_rtc_device(dev); in has_wakealarm() 184 struct rtc_device *rtc = NULL; in test_suspend()
|
| /Linux-v5.4/arch/arm/mach-footbridge/ |
| D | isa.c | 28 static struct platform_device rtc_device = { variable 88 err = platform_device_register(&rtc_device); in footbridge_isa_init()
|
| /Linux-v5.4/arch/sh/boards/mach-landisk/ |
| D | setup.c | 42 static struct platform_device rtc_device = { variable 49 &rtc_device,
|
| /Linux-v5.4/arch/sh/kernel/cpu/sh5/ |
| D | setup-sh5.c | 62 static struct platform_device rtc_device = { variable 99 &rtc_device,
|
| /Linux-v5.4/arch/m68k/coldfire/ |
| D | amcore.c | 122 static struct platform_device rtc_device = { variable 138 &rtc_device,
|
| /Linux-v5.4/kernel/time/ |
| D | alarmtimer.c | 62 static struct rtc_device *rtcdev; 72 struct rtc_device *alarmtimer_get_rtcdev(void) in alarmtimer_get_rtcdev() 75 struct rtc_device *ret; in alarmtimer_get_rtcdev() 89 struct rtc_device *rtc = to_rtc_device(dev); in alarmtimer_rtc_add_device() 141 struct rtc_device *alarmtimer_get_rtcdev(void) in alarmtimer_get_rtcdev() 246 struct rtc_device *rtc; in alarmtimer_suspend() 305 struct rtc_device *rtc; in alarmtimer_resume()
|
| /Linux-v5.4/arch/sh/kernel/cpu/sh3/ |
| D | setup-sh7705.c | 128 static struct platform_device rtc_device = { variable 163 &rtc_device,
|
| D | setup-sh7710.c | 87 static struct platform_device rtc_device = { variable 162 &rtc_device,
|
| D | setup-sh770x.c | 101 static struct platform_device rtc_device = { variable 207 &rtc_device,
|