Lines Matching defs:rtcdev
63 struct rtc_device *rtcdev;
163 rtc_update_irq(rtc->rtcdev, 1, RTC_AF | RTC_IRQF);
230 farest = rtc_tm_to_time64(&tm_now) + rtc->rtcdev->alarm_offset_max;
348 rtc->rtcdev = devm_rtc_allocate_device(&pdev->dev);
349 if (IS_ERR(rtc->rtcdev))
350 return PTR_ERR(rtc->rtcdev);
352 rtc->rtcdev->range_min = RTC_TIMESTAMP_BEGIN_2000;
353 rtc->rtcdev->range_max = RTC_TIMESTAMP_END_2099;
354 rtc->rtcdev->alarm_offset_max = 7 * 86400;
355 rtc->rtcdev->ops = &rzn1_rtc_ops;
356 set_bit(RTC_FEATURE_ALARM_RES_MINUTE, rtc->rtcdev->features);
357 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->rtcdev->features);
383 ret = devm_rtc_register_device(rtc->rtcdev);