Lines Matching refs:sa1100_rtc
74 struct sa1100_rtc sa1100_rtc; member
170 ret = request_irq(pxa_rtc->sa1100_rtc.irq_1hz, pxa_rtc_irq, 0, in pxa_rtc_open()
174 pxa_rtc->sa1100_rtc.irq_1hz, ret); in pxa_rtc_open()
177 ret = request_irq(pxa_rtc->sa1100_rtc.irq_alarm, pxa_rtc_irq, 0, in pxa_rtc_open()
181 pxa_rtc->sa1100_rtc.irq_alarm, ret); in pxa_rtc_open()
188 free_irq(pxa_rtc->sa1100_rtc.irq_1hz, dev); in pxa_rtc_open()
201 free_irq(pxa_rtc->sa1100_rtc.irq_1hz, dev); in pxa_rtc_release()
202 free_irq(pxa_rtc->sa1100_rtc.irq_alarm, dev); in pxa_rtc_release()
306 struct sa1100_rtc *sa1100_rtc; in pxa_rtc_probe() local
312 sa1100_rtc = &pxa_rtc->sa1100_rtc; in pxa_rtc_probe()
323 sa1100_rtc->irq_1hz = platform_get_irq(pdev, 0); in pxa_rtc_probe()
324 if (sa1100_rtc->irq_1hz < 0) in pxa_rtc_probe()
326 sa1100_rtc->irq_alarm = platform_get_irq(pdev, 1); in pxa_rtc_probe()
327 if (sa1100_rtc->irq_alarm < 0) in pxa_rtc_probe()
330 sa1100_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); in pxa_rtc_probe()
331 if (IS_ERR(sa1100_rtc->rtc)) in pxa_rtc_probe()
332 return PTR_ERR(sa1100_rtc->rtc); in pxa_rtc_probe()
343 sa1100_rtc->rcnr = pxa_rtc->base + 0x0; in pxa_rtc_probe()
344 sa1100_rtc->rtsr = pxa_rtc->base + 0x8; in pxa_rtc_probe()
345 sa1100_rtc->rtar = pxa_rtc->base + 0x4; in pxa_rtc_probe()
346 sa1100_rtc->rttr = pxa_rtc->base + 0xc; in pxa_rtc_probe()
347 ret = sa1100_rtc_init(pdev, sa1100_rtc); in pxa_rtc_probe()
389 enable_irq_wake(pxa_rtc->sa1100_rtc.irq_alarm); in pxa_rtc_suspend()
398 disable_irq_wake(pxa_rtc->sa1100_rtc.irq_alarm); in pxa_rtc_resume()