Lines Matching refs:rtcdev
64 struct rtc_device *rtcdev; member
153 rtc_update_irq(rtc->rtcdev, 1, RTC_AF | RTC_IRQF); in rzn1_rtc_alarm_irq()
180 rtc_update_irq(rtc->rtcdev, 1, RTC_AF | RTC_IRQF); in rzn1_rtc_1s_irq()
272 farest = rtc_tm_to_time64(&tm_now) + rtc->rtcdev->alarm_offset_max; in rzn1_rtc_set_alarm()
402 rtc->rtcdev = devm_rtc_allocate_device(&pdev->dev); in rzn1_rtc_probe()
403 if (IS_ERR(rtc->rtcdev)) in rzn1_rtc_probe()
404 return PTR_ERR(rtc->rtcdev); in rzn1_rtc_probe()
406 rtc->rtcdev->range_min = RTC_TIMESTAMP_BEGIN_2000; in rzn1_rtc_probe()
407 rtc->rtcdev->range_max = RTC_TIMESTAMP_END_2099; in rzn1_rtc_probe()
408 rtc->rtcdev->alarm_offset_max = 7 * 86400; in rzn1_rtc_probe()
448 rtc->rtcdev->ops = &rzn1_rtc_ops_scmp; in rzn1_rtc_probe()
450 rtc->rtcdev->ops = &rzn1_rtc_ops_subu; in rzn1_rtc_probe()
472 set_bit(RTC_FEATURE_ALARM_RES_MINUTE, rtc->rtcdev->features); in rzn1_rtc_probe()
473 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->rtcdev->features); in rzn1_rtc_probe()
477 ret = devm_rtc_register_device(rtc->rtcdev); in rzn1_rtc_probe()