Searched refs:wm831x_rtc (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/rtc/ |
H A D | rtc-wm831x.c | 93 struct wm831x_rtc { struct 124 struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc_readtime() local 125 struct wm831x *wm831x = wm831x_rtc->wm831x; wm831x_rtc_readtime() 174 struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc_set_mmss() local 175 struct wm831x *wm831x = wm831x_rtc->wm831x; wm831x_rtc_set_mmss() 238 struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc_readalarm() local 243 ret = wm831x_bulk_read(wm831x_rtc->wm831x, WM831X_RTC_ALARM_1, wm831x_rtc_readalarm() 254 ret = wm831x_reg_read(wm831x_rtc->wm831x, WM831X_RTC_CONTROL); wm831x_rtc_readalarm() 268 static int wm831x_rtc_stop_alarm(struct wm831x_rtc *wm831x_rtc) wm831x_rtc_stop_alarm() argument 270 wm831x_rtc->alarm_enabled = 0; wm831x_rtc_stop_alarm() 272 return wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL, wm831x_rtc_stop_alarm() 276 static int wm831x_rtc_start_alarm(struct wm831x_rtc *wm831x_rtc) wm831x_rtc_start_alarm() argument 278 wm831x_rtc->alarm_enabled = 1; wm831x_rtc_start_alarm() 280 return wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL, wm831x_rtc_start_alarm() 286 struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc_setalarm() local 287 struct wm831x *wm831x = wm831x_rtc->wm831x; wm831x_rtc_setalarm() 297 ret = wm831x_rtc_stop_alarm(wm831x_rtc); wm831x_rtc_setalarm() 317 ret = wm831x_rtc_start_alarm(wm831x_rtc); wm831x_rtc_setalarm() 330 struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc_alarm_irq_enable() local 333 return wm831x_rtc_start_alarm(wm831x_rtc); wm831x_rtc_alarm_irq_enable() 335 return wm831x_rtc_stop_alarm(wm831x_rtc); wm831x_rtc_alarm_irq_enable() 340 struct wm831x_rtc *wm831x_rtc = data; wm831x_alm_irq() local 342 rtc_update_irq(wm831x_rtc->rtc, 1, RTC_IRQF | RTC_AF); wm831x_alm_irq() 360 struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(&pdev->dev); wm831x_rtc_suspend() local 363 if (wm831x_rtc->alarm_enabled && device_may_wakeup(&pdev->dev)) wm831x_rtc_suspend() 368 ret = wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL, wm831x_rtc_suspend() 382 struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(&pdev->dev); wm831x_rtc_resume() local 385 if (wm831x_rtc->alarm_enabled) { wm831x_rtc_resume() 386 ret = wm831x_rtc_start_alarm(wm831x_rtc); wm831x_rtc_resume() 399 struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(&pdev->dev); wm831x_rtc_freeze() local 402 ret = wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL, wm831x_rtc_freeze() 418 struct wm831x_rtc *wm831x_rtc; wm831x_rtc_probe() local 422 wm831x_rtc = devm_kzalloc(&pdev->dev, sizeof(*wm831x_rtc), GFP_KERNEL); wm831x_rtc_probe() 423 if (wm831x_rtc == NULL) wm831x_rtc_probe() 426 platform_set_drvdata(pdev, wm831x_rtc); wm831x_rtc_probe() 427 wm831x_rtc->wm831x = wm831x; wm831x_rtc_probe() 435 wm831x_rtc->alarm_enabled = 1; wm831x_rtc_probe() 439 wm831x_rtc->rtc = devm_rtc_device_register(&pdev->dev, "wm831x", wm831x_rtc_probe() 441 if (IS_ERR(wm831x_rtc->rtc)) { wm831x_rtc_probe() 442 ret = PTR_ERR(wm831x_rtc->rtc); wm831x_rtc_probe() 449 wm831x_rtc); wm831x_rtc_probe()
|
Completed in 87 milliseconds