Lines Matching refs:tps_rtc
334 struct tps65910_rtc *tps_rtc = dev_get_drvdata(dev); in tps65910_rtc_interrupt() local
350 rtc_update_irq(tps_rtc->rtc, 1, events); in tps65910_rtc_interrupt()
368 struct tps65910_rtc *tps_rtc = NULL; in tps65910_rtc_probe() local
375 tps_rtc = devm_kzalloc(&pdev->dev, sizeof(struct tps65910_rtc), in tps65910_rtc_probe()
377 if (!tps_rtc) in tps65910_rtc_probe()
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()
406 platform_set_drvdata(pdev, tps_rtc); in tps65910_rtc_probe()
418 tps_rtc->irq = irq; 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()
438 struct tps65910_rtc *tps_rtc = dev_get_drvdata(dev); in tps65910_rtc_suspend() local
441 enable_irq_wake(tps_rtc->irq); in tps65910_rtc_suspend()
447 struct tps65910_rtc *tps_rtc = dev_get_drvdata(dev); in tps65910_rtc_resume() local
450 disable_irq_wake(tps_rtc->irq); in tps65910_rtc_resume()