Lines Matching refs:wm831x

90 	struct wm831x *wm831x;  member
95 static void wm831x_rtc_add_randomness(struct wm831x *wm831x) in wm831x_rtc_add_randomness() argument
105 ret = wm831x_reg_read(wm831x, WM831X_RTC_WRITE_COUNTER); in wm831x_rtc_add_randomness()
110 dev_warn(wm831x->dev, "Failed to read RTC write counter: %d\n", in wm831x_rtc_add_randomness()
121 struct wm831x *wm831x = wm831x_rtc->wm831x; in wm831x_rtc_readtime() local
127 ret = wm831x_reg_read(wm831x, WM831X_RTC_CONTROL); in wm831x_rtc_readtime()
141 ret = wm831x_bulk_read(wm831x, WM831X_RTC_TIME_1, in wm831x_rtc_readtime()
146 ret = wm831x_bulk_read(wm831x, WM831X_RTC_TIME_1, in wm831x_rtc_readtime()
171 struct wm831x *wm831x = wm831x_rtc->wm831x; in wm831x_rtc_settime() local
179 ret = wm831x_reg_write(wm831x, WM831X_RTC_TIME_1, in wm831x_rtc_settime()
186 ret = wm831x_reg_write(wm831x, WM831X_RTC_TIME_2, time & 0xffff); in wm831x_rtc_settime()
198 ret = wm831x_reg_read(wm831x, WM831X_RTC_CONTROL); in wm831x_rtc_settime()
237 ret = wm831x_bulk_read(wm831x_rtc->wm831x, WM831X_RTC_ALARM_1, in wm831x_rtc_readalarm()
248 ret = wm831x_reg_read(wm831x_rtc->wm831x, WM831X_RTC_CONTROL); in wm831x_rtc_readalarm()
266 return wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL, in wm831x_rtc_stop_alarm()
274 return wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL, in wm831x_rtc_start_alarm()
281 struct wm831x *wm831x = wm831x_rtc->wm831x; in wm831x_rtc_setalarm() local
293 ret = wm831x_reg_write(wm831x, WM831X_RTC_ALARM_1, in wm831x_rtc_setalarm()
300 ret = wm831x_reg_write(wm831x, WM831X_RTC_ALARM_2, time & 0xffff); in wm831x_rtc_setalarm()
357 ret = wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL, in wm831x_rtc_suspend()
388 ret = wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL, in wm831x_rtc_freeze()
403 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); in wm831x_rtc_probe() local
405 int alm_irq = wm831x_irq(wm831x, platform_get_irq_byname(pdev, "ALM")); in wm831x_rtc_probe()
413 wm831x_rtc->wm831x = wm831x; in wm831x_rtc_probe()
415 ret = wm831x_reg_read(wm831x, WM831X_RTC_CONTROL); in wm831x_rtc_probe()
446 wm831x_rtc_add_randomness(wm831x); in wm831x_rtc_probe()