Searched refs:rtcdev (Results 1 – 10 of 10) sorted by relevance
/linux-6.12.1/drivers/rtc/ |
D | rtc-mpfs.c | 61 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 …]
|
D | rtc-au1xxx.c | 63 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()
|
D | rtc-loongson.c | 79 struct rtc_device *rtcdev; member 116 rtc_update_irq(priv->rtcdev, 1, RTC_AF | RTC_IRQF); in loongson_rtc_isr() 317 priv->rtcdev = devm_rtc_allocate_device(dev); in loongson_rtc_probe() 318 if (IS_ERR(priv->rtcdev)) in loongson_rtc_probe() 319 return dev_err_probe(dev, PTR_ERR(priv->rtcdev), in loongson_rtc_probe() 339 clear_bit(RTC_FEATURE_ALARM, priv->rtcdev->features); in loongson_rtc_probe() 343 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, priv->rtcdev->features); in loongson_rtc_probe() 344 priv->rtcdev->ops = &loongson_rtc_ops; in loongson_rtc_probe() 345 priv->rtcdev->range_min = RTC_TIMESTAMP_BEGIN_2000; in loongson_rtc_probe() 346 priv->rtcdev->range_max = RTC_TIMESTAMP_END_2099; in loongson_rtc_probe() [all …]
|
D | rtc-rzn1.c | 63 struct rtc_device *rtcdev; member 163 rtc_update_irq(rtc->rtcdev, 1, RTC_AF | RTC_IRQF); in rzn1_rtc_alarm_irq() 230 farest = rtc_tm_to_time64(&tm_now) + rtc->rtcdev->alarm_offset_max; in rzn1_rtc_set_alarm() 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->alarm_offset_max = 7 * 86400; in rzn1_rtc_probe() 355 rtc->rtcdev->ops = &rzn1_rtc_ops; in rzn1_rtc_probe() [all …]
|
D | rtc-ma35d1.c | 57 struct rtc_device *rtcdev; member 82 rtc_update_irq(rtc->rtcdev, 1, events); in ma35d1_rtc_interrupt() 249 rtc->rtcdev = devm_rtc_allocate_device(&pdev->dev); in ma35d1_rtc_probe() 250 if (IS_ERR(rtc->rtcdev)) in ma35d1_rtc_probe() 251 return PTR_ERR(rtc->rtcdev); in ma35d1_rtc_probe() 253 rtc->rtcdev->ops = &ma35d1_rtc_ops; in ma35d1_rtc_probe() 254 rtc->rtcdev->range_min = RTC_TIMESTAMP_BEGIN_2000; in ma35d1_rtc_probe() 255 rtc->rtcdev->range_max = RTC_TIMESTAMP_END_2099; in ma35d1_rtc_probe() 257 ret = devm_rtc_register_device(rtc->rtcdev); in ma35d1_rtc_probe()
|
D | rtc-at91sam9.c | 70 struct rtc_device *rtcdev; member 287 rtc_update_irq(rtc->rtcdev, 1, rtc->events); in at91_rtc_flush_events() 407 rtc->rtcdev = devm_rtc_allocate_device(&pdev->dev); in at91_rtc_probe() 408 if (IS_ERR(rtc->rtcdev)) { in at91_rtc_probe() 409 ret = PTR_ERR(rtc->rtcdev); in at91_rtc_probe() 413 rtc->rtcdev->ops = &at91_rtc_ops; in at91_rtc_probe() 414 rtc->rtcdev->range_max = U32_MAX; in at91_rtc_probe() 419 dev_name(&rtc->rtcdev->dev), rtc); in at91_rtc_probe() 433 dev_name(&rtc->rtcdev->dev)); in at91_rtc_probe() 435 return devm_rtc_register_device(rtc->rtcdev); in at91_rtc_probe()
|
D | rtc-rtd119x.c | 45 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.12.1/drivers/platform/cznic/ |
D | turris-omnia-mcu-sys-off-wakeup.c | 244 mcu->rtcdev = devm_rtc_allocate_device(dev); in omnia_mcu_register_sys_off_and_wakeup() 245 if (IS_ERR(mcu->rtcdev)) in omnia_mcu_register_sys_off_and_wakeup() 246 return dev_err_probe(dev, PTR_ERR(mcu->rtcdev), in omnia_mcu_register_sys_off_and_wakeup() 249 mcu->rtcdev->ops = &omnia_rtc_ops; in omnia_mcu_register_sys_off_and_wakeup() 250 mcu->rtcdev->range_max = U32_MAX; in omnia_mcu_register_sys_off_and_wakeup() 251 set_bit(RTC_FEATURE_ALARM_WAKEUP_ONLY, mcu->rtcdev->features); in omnia_mcu_register_sys_off_and_wakeup() 253 err = devm_rtc_register_device(mcu->rtcdev); in omnia_mcu_register_sys_off_and_wakeup()
|
D | turris-omnia-mcu.h | 49 struct rtc_device *rtcdev; member
|
/linux-6.12.1/kernel/time/ |
D | alarmtimer.c | 63 static struct rtc_device *rtcdev; variable 77 ret = rtcdev; in alarmtimer_get_rtcdev() 91 if (rtcdev) in alarmtimer_rtc_add_device() 105 if (!IS_ERR(pdev) && !rtcdev) { in alarmtimer_rtc_add_device() 111 rtcdev = rtc; in alarmtimer_rtc_add_device()
|