Lines Matching refs:rtc
27 struct rtc_device *rtc; member
329 static irqreturn_t tps65910_rtc_interrupt(int irq, void *rtc) in tps65910_rtc_interrupt() argument
331 struct device *dev = rtc; in tps65910_rtc_interrupt()
350 rtc_update_irq(tps_rtc->rtc, 1, events); in tps65910_rtc_interrupt()
380 tps_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); in tps65910_rtc_probe()
381 if (IS_ERR(tps_rtc->rtc)) in tps65910_rtc_probe()
382 return PTR_ERR(tps_rtc->rtc); in tps65910_rtc_probe()
425 clear_bit(RTC_FEATURE_ALARM, tps_rtc->rtc->features); in tps65910_rtc_probe()
428 tps_rtc->rtc->ops = &tps65910_rtc_ops; in tps65910_rtc_probe()
429 tps_rtc->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; in tps65910_rtc_probe()
430 tps_rtc->rtc->range_max = RTC_TIMESTAMP_END_2099; in tps65910_rtc_probe()
432 return devm_rtc_register_device(tps_rtc->rtc); in tps65910_rtc_probe()