Lines Matching refs:rtc_dev
104 struct rtc_device *rtc_dev; member
121 rtc_update_irq(rtc->rtc_dev, 1, RTC_UF | RTC_IRQF); in __sh_rtc_interrupt()
136 rtc_update_irq(rtc->rtc_dev, 1, RTC_AF | RTC_IRQF); in __sh_rtc_alarm()
159 rtc_update_irq(rtc->rtc_dev, 1, RTC_PF | RTC_IRQF); in __sh_rtc_periodic()
532 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in sh_rtc_probe()
533 if (IS_ERR(rtc->rtc_dev)) in sh_rtc_probe()
534 return PTR_ERR(rtc->rtc_dev); in sh_rtc_probe()
599 rtc->rtc_dev->ops = &sh_rtc_ops; in sh_rtc_probe()
600 rtc->rtc_dev->max_user_freq = 256; in sh_rtc_probe()
603 rtc->rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_1900; in sh_rtc_probe()
604 rtc->rtc_dev->range_max = RTC_TIMESTAMP_END_9999; in sh_rtc_probe()
606 rtc->rtc_dev->range_min = mktime64(1999, 1, 1, 0, 0, 0); in sh_rtc_probe()
607 rtc->rtc_dev->range_max = mktime64(2098, 12, 31, 23, 59, 59); in sh_rtc_probe()
610 ret = devm_rtc_register_device(rtc->rtc_dev); in sh_rtc_probe()