Lines Matching refs:sa1100_rtc
77 struct sa1100_rtc sa1100_rtc; member
173 ret = request_irq(pxa_rtc->sa1100_rtc.irq_1hz, pxa_rtc_irq, 0, in pxa_rtc_open()
177 pxa_rtc->sa1100_rtc.irq_1hz, ret); in pxa_rtc_open()
180 ret = request_irq(pxa_rtc->sa1100_rtc.irq_alarm, pxa_rtc_irq, 0, in pxa_rtc_open()
184 pxa_rtc->sa1100_rtc.irq_alarm, ret); in pxa_rtc_open()
191 free_irq(pxa_rtc->sa1100_rtc.irq_1hz, dev); in pxa_rtc_open()
204 free_irq(pxa_rtc->sa1100_rtc.irq_1hz, dev); in pxa_rtc_release()
205 free_irq(pxa_rtc->sa1100_rtc.irq_alarm, dev); in pxa_rtc_release()
309 struct sa1100_rtc *sa1100_rtc; in pxa_rtc_probe() local
315 sa1100_rtc = &pxa_rtc->sa1100_rtc; in pxa_rtc_probe()
326 sa1100_rtc->irq_1hz = platform_get_irq(pdev, 0); in pxa_rtc_probe()
327 if (sa1100_rtc->irq_1hz < 0) in pxa_rtc_probe()
329 sa1100_rtc->irq_alarm = platform_get_irq(pdev, 1); in pxa_rtc_probe()
330 if (sa1100_rtc->irq_alarm < 0) in pxa_rtc_probe()
342 sa1100_rtc->rcnr = pxa_rtc->base + 0x0; in pxa_rtc_probe()
343 sa1100_rtc->rtsr = pxa_rtc->base + 0x8; in pxa_rtc_probe()
344 sa1100_rtc->rtar = pxa_rtc->base + 0x4; in pxa_rtc_probe()
345 sa1100_rtc->rttr = pxa_rtc->base + 0xc; in pxa_rtc_probe()
346 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()