Lines Matching refs:rtc_dev
127 struct rtc_device *rtc_dev; member
155 rtc_update_irq(priv->rtc_dev, 1, RTC_AF | RTC_IRQF); in rtca3_alarm_handler_helper()
773 priv->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in rtca3_probe()
774 if (IS_ERR(priv->rtc_dev)) in rtca3_probe()
775 return PTR_ERR(priv->rtc_dev); in rtca3_probe()
777 priv->rtc_dev->ops = &rtca3_ops; in rtca3_probe()
778 priv->rtc_dev->max_user_freq = 256; in rtca3_probe()
779 priv->rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000; in rtca3_probe()
780 priv->rtc_dev->range_max = RTC_TIMESTAMP_END_2099; in rtca3_probe()
782 return devm_rtc_register_device(priv->rtc_dev); in rtca3_probe()
816 struct rtc_device *rtc_dev = priv->rtc_dev; in rtca3_clean_alarm() local
823 ret = rtc_read_alarm(rtc_dev, &alarm); in rtca3_clean_alarm()
830 ret = rtc_read_time(rtc_dev, &tm); in rtca3_clean_alarm()
849 rtc_update_irq(priv->rtc_dev, 1, RTC_AF | RTC_IRQF); in rtca3_clean_alarm()