Home
last modified time | relevance | path

Searched refs:rtcdev (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/drivers/rtc/
Drtc-mpfs.c61 static void mpfs_rtc_start(struct mpfs_rtc_dev *rtcdev) in mpfs_rtc_start() argument
65 ctrl = readl(rtcdev->base + CONTROL_REG); in mpfs_rtc_start()
68 writel(ctrl, rtcdev->base + CONTROL_REG); in mpfs_rtc_start()
71 static void mpfs_rtc_clear_irq(struct mpfs_rtc_dev *rtcdev) in mpfs_rtc_clear_irq() argument
73 u32 val = readl(rtcdev->base + CONTROL_REG); in mpfs_rtc_clear_irq()
77 writel(val, rtcdev->base + CONTROL_REG); in mpfs_rtc_clear_irq()
83 (void)readl(rtcdev->base + CONTROL_REG); in mpfs_rtc_clear_irq()
88 struct mpfs_rtc_dev *rtcdev = dev_get_drvdata(dev); in mpfs_rtc_readtime() local
91 time = readl(rtcdev->base + DATETIME_LOWER_REG); in mpfs_rtc_readtime()
92 time |= ((u64)readl(rtcdev->base + DATETIME_UPPER_REG) & DATETIME_UPPER_MASK) << 32; in mpfs_rtc_readtime()
[all …]
Drtc-au1xxx.c63 struct rtc_device *rtcdev; in au1xtoy_rtc_probe() local
95 rtcdev = devm_rtc_allocate_device(&pdev->dev); in au1xtoy_rtc_probe()
96 if (IS_ERR(rtcdev)) in au1xtoy_rtc_probe()
97 return PTR_ERR(rtcdev); in au1xtoy_rtc_probe()
99 rtcdev->ops = &au1xtoy_rtc_ops; in au1xtoy_rtc_probe()
100 rtcdev->range_max = U32_MAX; in au1xtoy_rtc_probe()
102 platform_set_drvdata(pdev, rtcdev); in au1xtoy_rtc_probe()
104 return devm_rtc_register_device(rtcdev); in au1xtoy_rtc_probe()
Drtc-ls1x.c145 struct rtc_device *rtcdev; in ls1x_rtc_probe() local
170 rtcdev = devm_rtc_allocate_device(&pdev->dev); in ls1x_rtc_probe()
171 if (IS_ERR(rtcdev)) in ls1x_rtc_probe()
172 return PTR_ERR(rtcdev); in ls1x_rtc_probe()
174 platform_set_drvdata(pdev, rtcdev); in ls1x_rtc_probe()
175 rtcdev->ops = &ls1x_rtc_ops; in ls1x_rtc_probe()
176 rtcdev->range_min = RTC_TIMESTAMP_BEGIN_1900; in ls1x_rtc_probe()
177 rtcdev->range_max = RTC_TIMESTAMP_END_2099; in ls1x_rtc_probe()
179 return devm_rtc_register_device(rtcdev); in ls1x_rtc_probe()
Drtc-rzn1.c63 struct rtc_device *rtcdev; member
163 rtc_update_irq(rtc->rtcdev, 1, RTC_AF | RTC_IRQF); in rzn1_rtc_alarm_irq()
348 rtc->rtcdev = devm_rtc_allocate_device(&pdev->dev); in rzn1_rtc_probe()
349 if (IS_ERR(rtc->rtcdev)) in rzn1_rtc_probe()
350 return PTR_ERR(rtc->rtcdev); in rzn1_rtc_probe()
352 rtc->rtcdev->range_min = RTC_TIMESTAMP_BEGIN_2000; in rzn1_rtc_probe()
353 rtc->rtcdev->range_max = RTC_TIMESTAMP_END_2099; in rzn1_rtc_probe()
354 rtc->rtcdev->ops = &rzn1_rtc_ops; in rzn1_rtc_probe()
355 set_bit(RTC_FEATURE_ALARM_RES_MINUTE, rtc->rtcdev->features); in rzn1_rtc_probe()
356 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->rtcdev->features); in rzn1_rtc_probe()
[all …]
Drtc-at91sam9.c70 struct rtc_device *rtcdev; member
287 rtc_update_irq(rtc->rtcdev, 1, rtc->events); in at91_rtc_flush_events()
406 rtc->rtcdev = devm_rtc_allocate_device(&pdev->dev); in at91_rtc_probe()
407 if (IS_ERR(rtc->rtcdev)) { in at91_rtc_probe()
408 ret = PTR_ERR(rtc->rtcdev); in at91_rtc_probe()
412 rtc->rtcdev->ops = &at91_rtc_ops; in at91_rtc_probe()
413 rtc->rtcdev->range_max = U32_MAX; in at91_rtc_probe()
418 dev_name(&rtc->rtcdev->dev), rtc); in at91_rtc_probe()
432 dev_name(&rtc->rtcdev->dev)); in at91_rtc_probe()
434 return devm_rtc_register_device(rtc->rtcdev); in at91_rtc_probe()
Drtc-rtd119x.c45 struct rtc_device *rtcdev; member
207 data->rtcdev = devm_rtc_device_register(&pdev->dev, "rtc", in rtd119x_rtc_probe()
209 if (IS_ERR(data->rtcdev)) { in rtd119x_rtc_probe()
213 return PTR_ERR(data->rtcdev); in rtd119x_rtc_probe()
/linux-6.1.9/kernel/time/
Dalarmtimer.c63 static struct rtc_device *rtcdev; variable
77 ret = rtcdev; in alarmtimer_get_rtcdev()
92 if (rtcdev) in alarmtimer_rtc_add_device()
106 if (!IS_ERR(pdev) && !rtcdev) { in alarmtimer_rtc_add_device()
112 rtcdev = rtc; in alarmtimer_rtc_add_device()