Home
last modified time | relevance | path

Searched refs:rtc_device (Results 1 – 25 of 191) sorted by relevance

12345678

/Linux-v4.19/include/linux/
Drtc.h102 struct rtc_device { struct
163 #define to_rtc_device(d) container_of(d, struct rtc_device, dev) argument
170 extern struct rtc_device *rtc_device_register(const char *name,
174 extern struct rtc_device *devm_rtc_device_register(struct device *dev,
178 struct rtc_device *devm_rtc_allocate_device(struct device *dev);
179 int __rtc_register_device(struct module *owner, struct rtc_device *rtc);
180 extern void rtc_device_unregister(struct rtc_device *rtc);
182 struct rtc_device *rtc);
184 extern int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm);
185 extern int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm);
[all …]
/Linux-v4.19/drivers/rtc/
Drtc-core.h6 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()
43 int rtc_add_group(struct rtc_device *rtc, const struct attribute_group *grp);
44 int rtc_add_groups(struct rtc_device *rtc, const struct attribute_group **grps);
52 int rtc_add_group(struct rtc_device *rtc, const struct attribute_group *grp) in rtc_add_group()
58 int rtc_add_groups(struct rtc_device *rtc, const struct attribute_group **grps) in rtc_add_groups()
Dinterface.c23 static int rtc_timer_enqueue(struct rtc_device *rtc, struct rtc_timer *timer);
24 static void rtc_timer_remove(struct rtc_device *rtc, struct rtc_timer *timer);
26 static void rtc_add_offset(struct rtc_device *rtc, struct rtc_time *tm) in rtc_add_offset()
49 static void rtc_subtract_offset(struct rtc_device *rtc, struct rtc_time *tm) in rtc_subtract_offset()
70 static int rtc_valid_range(struct rtc_device *rtc, struct rtc_time *tm) in rtc_valid_range()
87 static int __rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in __rtc_read_time()
112 int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_read_time()
128 int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_set_time()
170 static int rtc_read_alarm_internal(struct rtc_device *rtc, struct rtc_wkalrm *alarm) in rtc_read_alarm_internal()
203 int __rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) in __rtc_read_alarm()
[all …]
Dclass.c32 struct rtc_device *rtc = to_rtc_device(dev); in rtc_device_release()
53 struct rtc_device *rtc = to_rtc_device(dev); in rtc_suspend()
99 struct rtc_device *rtc = to_rtc_device(dev); in rtc_resume()
154 static struct rtc_device *rtc_allocate_device(void) in rtc_allocate_device()
156 struct rtc_device *rtc; in rtc_allocate_device()
213 static void rtc_device_get_offset(struct rtc_device *rtc) in rtc_device_get_offset()
289 struct rtc_device *rtc_device_register(const char *name, struct device *dev, in rtc_device_register()
293 struct rtc_device *rtc; in rtc_device_register()
362 void rtc_device_unregister(struct rtc_device *rtc) in rtc_device_unregister()
379 struct rtc_device *rtc = *(struct rtc_device **)res; in devm_rtc_device_release()
[all …]
Drtc-dev.c27 struct rtc_device *rtc = container_of(inode->i_cdev, in rtc_dev_open()
28 struct rtc_device, char_dev); in rtc_dev_open()
49 struct rtc_device *rtc = in rtc_uie_task()
50 container_of(work, struct rtc_device, uie_task); in rtc_uie_task()
76 struct rtc_device *rtc = from_timer(rtc, t, uie_timer); in rtc_uie_timer()
87 static int clear_uie(struct rtc_device *rtc) in clear_uie()
109 static int set_uie(struct rtc_device *rtc) in set_uie()
131 int rtc_dev_update_irq_enable_emul(struct rtc_device *rtc, unsigned int enabled) in rtc_dev_update_irq_enable_emul()
145 struct rtc_device *rtc = file->private_data; in rtc_dev_read()
199 struct rtc_device *rtc = file->private_data; in rtc_dev_poll()
[all …]
Dnvmem.c28 struct rtc_device *rtc = attr->private; in rtc_nvram_read()
40 struct rtc_device *rtc = attr->private; in rtc_nvram_write()
47 static int rtc_nvram_register(struct rtc_device *rtc, size_t size) in rtc_nvram_register()
77 static void rtc_nvram_unregister(struct rtc_device *rtc) in rtc_nvram_unregister()
85 int rtc_nvmem_register(struct rtc_device *rtc, in rtc_nvmem_register()
108 void rtc_nvmem_unregister(struct rtc_device *rtc) in rtc_nvmem_unregister()
Drtc-proc.c24 static bool is_rtc_hctosys(struct rtc_device *rtc) in is_rtc_hctosys()
36 static bool is_rtc_hctosys(struct rtc_device *rtc) in is_rtc_hctosys()
45 struct rtc_device *rtc = seq->private; in rtc_proc_show()
110 void rtc_proc_add_device(struct rtc_device *rtc) in rtc_proc_add_device()
117 void rtc_proc_del_device(struct rtc_device *rtc) in rtc_proc_del_device()
Drtc-sysfs.c95 struct rtc_device *rtc = to_rtc_device(dev); in max_user_freq_store()
164 struct rtc_device *rtc = to_rtc_device(dev); in wakealarm_store()
277 static bool rtc_does_wakealarm(struct rtc_device *rtc) in rtc_does_wakealarm()
289 struct rtc_device *rtc = to_rtc_device(dev); in rtc_attr_is_visible()
321 int rtc_add_groups(struct rtc_device *rtc, const struct attribute_group **grps) in rtc_add_groups()
356 int rtc_add_group(struct rtc_device *rtc, const struct attribute_group *grp) in rtc_add_group()
Drtc-puv3.c39 struct rtc_device *rdev = id; in puv3_rtc_alarmirq()
48 struct rtc_device *rdev = id; in puv3_rtc_tickirq()
194 struct rtc_device *rtc; in puv3_rtc_probe()
Drtc-vr41xx.c232 struct rtc_device *rtc = platform_get_drvdata(pdev); in elapsedtime_interrupt()
244 struct rtc_device *rtc = platform_get_drvdata(pdev); in rtclong1_interrupt()
269 struct rtc_device *rtc; in rtc_probe()
Drtc-sa1100.h18 struct rtc_device *rtc;
Drtc-generic.c14 struct rtc_device *rtc; in generic_rtc_probe()
Drtc-starfire.c40 struct rtc_device *rtc; in starfire_rtc_probe()
Dsystohc.c28 struct rtc_device *rtc; in rtc_set_ntp_time()
Drtc-rs5c348.c57 struct rtc_device *rtc;
151 struct rtc_device *rtc; in rs5c348_probe()
/Linux-v4.19/arch/x86/kernel/
Drtc.c173 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-v4.19/kernel/power/
Dsuspend_test.c63 static void __init test_wakealarm(struct rtc_device *rtc, suspend_state_t state) in test_wakealarm()
131 struct rtc_device *candidate = to_rtc_device(dev); in has_wakealarm()
185 struct rtc_device *rtc = NULL; in test_suspend()
/Linux-v4.19/arch/arm/mach-footbridge/
Disa.c31 static struct platform_device rtc_device = { variable
91 err = platform_device_register(&rtc_device); in footbridge_isa_init()
/Linux-v4.19/arch/sh/boards/mach-landisk/
Dsetup.c45 static struct platform_device rtc_device = { variable
52 &rtc_device,
/Linux-v4.19/arch/m68k/coldfire/
Damcore.c122 static struct platform_device rtc_device = { variable
138 &rtc_device,
/Linux-v4.19/arch/sh/kernel/cpu/sh5/
Dsetup-sh5.c65 static struct platform_device rtc_device = { variable
102 &rtc_device,
/Linux-v4.19/kernel/time/
Dalarmtimer.c65 static struct rtc_device *rtcdev;
75 struct rtc_device *alarmtimer_get_rtcdev(void) in alarmtimer_get_rtcdev()
78 struct rtc_device *ret; in alarmtimer_get_rtcdev()
92 struct rtc_device *rtc = to_rtc_device(dev); in alarmtimer_rtc_add_device()
144 struct rtc_device *alarmtimer_get_rtcdev(void) in alarmtimer_get_rtcdev()
250 struct rtc_device *rtc; in alarmtimer_suspend()
309 struct rtc_device *rtc; in alarmtimer_resume()
/Linux-v4.19/arch/sh/kernel/cpu/sh3/
Dsetup-sh7705.c131 static struct platform_device rtc_device = { variable
166 &rtc_device,
Dsetup-sh7710.c90 static struct platform_device rtc_device = { variable
165 &rtc_device,
Dsetup-sh770x.c104 static struct platform_device rtc_device = { variable
210 &rtc_device,

12345678