Lines Matching refs:tps_rtc
337 struct tps65910_rtc *tps_rtc = dev_get_drvdata(dev); in tps65910_rtc_interrupt() local
353 rtc_update_irq(tps_rtc->rtc, 1, events); in tps65910_rtc_interrupt()
371 struct tps65910_rtc *tps_rtc = NULL; in tps65910_rtc_probe() local
378 tps_rtc = devm_kzalloc(&pdev->dev, sizeof(struct tps65910_rtc), in tps65910_rtc_probe()
380 if (!tps_rtc) in tps65910_rtc_probe()
383 tps_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); in tps65910_rtc_probe()
384 if (IS_ERR(tps_rtc->rtc)) in tps65910_rtc_probe()
385 return PTR_ERR(tps_rtc->rtc); in tps65910_rtc_probe()
409 platform_set_drvdata(pdev, tps_rtc); in tps65910_rtc_probe()
425 tps_rtc->irq = irq; 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 ret = rtc_register_device(tps_rtc->rtc); in tps65910_rtc_probe()
444 struct tps65910_rtc *tps_rtc = dev_get_drvdata(dev); in tps65910_rtc_suspend() local
447 enable_irq_wake(tps_rtc->irq); in tps65910_rtc_suspend()
453 struct tps65910_rtc *tps_rtc = dev_get_drvdata(dev); in tps65910_rtc_resume() local
456 disable_irq_wake(tps_rtc->irq); in tps65910_rtc_resume()