Searched refs:mrst_rtc (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/rtc/
H A Drtc-mrst.c44 struct mrst_rtc { struct
146 struct mrst_rtc *mrst = dev_get_drvdata(dev); mrst_read_alarm()
175 static void mrst_checkintr(struct mrst_rtc *mrst, unsigned char rtc_control) mrst_checkintr()
189 static void mrst_irq_enable(struct mrst_rtc *mrst, unsigned char mask) mrst_irq_enable()
206 static void mrst_irq_disable(struct mrst_rtc *mrst, unsigned char mask) mrst_irq_disable()
218 struct mrst_rtc *mrst = dev_get_drvdata(dev); mrst_set_alarm()
256 struct mrst_rtc *mrst = dev_get_drvdata(dev); mrst_rtc_alarm_irq_enable()
304 static struct mrst_rtc mrst_rtc; variable in typeref:struct:mrst_rtc
334 if (mrst_rtc.dev) vrtc_mrst_do_probe()
347 mrst_rtc.irq = rtc_irq; vrtc_mrst_do_probe()
348 mrst_rtc.iomem = iomem; vrtc_mrst_do_probe()
349 mrst_rtc.dev = dev; vrtc_mrst_do_probe()
350 dev_set_drvdata(dev, &mrst_rtc); vrtc_mrst_do_probe()
352 mrst_rtc.rtc = rtc_device_register(driver_name, dev, vrtc_mrst_do_probe()
354 if (IS_ERR(mrst_rtc.rtc)) { vrtc_mrst_do_probe()
355 retval = PTR_ERR(mrst_rtc.rtc); vrtc_mrst_do_probe()
359 rename_region(iomem, dev_name(&mrst_rtc.rtc->dev)); vrtc_mrst_do_probe()
362 mrst_irq_disable(&mrst_rtc, RTC_PIE | RTC_AIE); vrtc_mrst_do_probe()
371 0, dev_name(&mrst_rtc.rtc->dev), vrtc_mrst_do_probe()
372 mrst_rtc.rtc); vrtc_mrst_do_probe()
383 rtc_device_unregister(mrst_rtc.rtc); vrtc_mrst_do_probe()
385 mrst_rtc.dev = NULL; vrtc_mrst_do_probe()
394 mrst_irq_disable(&mrst_rtc, RTC_IRQMASK); rtc_mrst_do_shutdown()
400 struct mrst_rtc *mrst = dev_get_drvdata(dev); rtc_mrst_do_remove()
421 struct mrst_rtc *mrst = dev_get_drvdata(dev); mrst_suspend()
446 dev_dbg(&mrst_rtc.rtc->dev, "suspend%s, ctrl %02x\n", mrst_suspend()
463 struct mrst_rtc *mrst = dev_get_drvdata(dev); mrst_resume()
490 dev_dbg(&mrst_rtc.rtc->dev, "resume, ctrl %02x\n", tmp); mrst_resume()

Completed in 103 milliseconds