Lines Matching refs:rtcdev
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()
348 return devm_rtc_register_device(priv->rtcdev); in loongson_rtc_probe()
356 if (!test_bit(RTC_FEATURE_ALARM, priv->rtcdev->features)) in loongson_rtc_remove()