Lines Matching refs:tps_rtc
333 struct tps65910_rtc *tps_rtc = dev_get_drvdata(dev); in tps65910_rtc_interrupt() local
349 rtc_update_irq(tps_rtc->rtc, 1, events); in tps65910_rtc_interrupt()
374 struct tps65910_rtc *tps_rtc = NULL; in tps65910_rtc_probe() local
381 tps_rtc = devm_kzalloc(&pdev->dev, sizeof(struct tps65910_rtc), in tps65910_rtc_probe()
383 if (!tps_rtc) in tps65910_rtc_probe()
386 tps_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); in tps65910_rtc_probe()
387 if (IS_ERR(tps_rtc->rtc)) in tps65910_rtc_probe()
388 return PTR_ERR(tps_rtc->rtc); in tps65910_rtc_probe()
412 platform_set_drvdata(pdev, tps_rtc); in tps65910_rtc_probe()
427 tps_rtc->irq = irq; in tps65910_rtc_probe()
430 tps_rtc->rtc->ops = &tps65910_rtc_ops; in tps65910_rtc_probe()
432 tps_rtc->rtc->ops = &tps65910_rtc_ops_noirq; in tps65910_rtc_probe()
434 tps_rtc->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; in tps65910_rtc_probe()
435 tps_rtc->rtc->range_max = RTC_TIMESTAMP_END_2099; in tps65910_rtc_probe()
437 return rtc_register_device(tps_rtc->rtc); in tps65910_rtc_probe()
443 struct tps65910_rtc *tps_rtc = dev_get_drvdata(dev); in tps65910_rtc_suspend() local
446 enable_irq_wake(tps_rtc->irq); in tps65910_rtc_suspend()
452 struct tps65910_rtc *tps_rtc = dev_get_drvdata(dev); in tps65910_rtc_resume() local
455 disable_irq_wake(tps_rtc->irq); in tps65910_rtc_resume()