wm831x_rtc 120 drivers/rtc/rtc-wm831x.c struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc 121 drivers/rtc/rtc-wm831x.c struct wm831x *wm831x = wm831x_rtc->wm831x; wm831x_rtc 170 drivers/rtc/rtc-wm831x.c struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc 171 drivers/rtc/rtc-wm831x.c struct wm831x *wm831x = wm831x_rtc->wm831x; wm831x_rtc 232 drivers/rtc/rtc-wm831x.c struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc 237 drivers/rtc/rtc-wm831x.c ret = wm831x_bulk_read(wm831x_rtc->wm831x, WM831X_RTC_ALARM_1, wm831x_rtc 248 drivers/rtc/rtc-wm831x.c ret = wm831x_reg_read(wm831x_rtc->wm831x, WM831X_RTC_CONTROL); wm831x_rtc 262 drivers/rtc/rtc-wm831x.c static int wm831x_rtc_stop_alarm(struct wm831x_rtc *wm831x_rtc) wm831x_rtc 264 drivers/rtc/rtc-wm831x.c wm831x_rtc->alarm_enabled = 0; wm831x_rtc 266 drivers/rtc/rtc-wm831x.c return wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL, wm831x_rtc 270 drivers/rtc/rtc-wm831x.c static int wm831x_rtc_start_alarm(struct wm831x_rtc *wm831x_rtc) wm831x_rtc 272 drivers/rtc/rtc-wm831x.c wm831x_rtc->alarm_enabled = 1; wm831x_rtc 274 drivers/rtc/rtc-wm831x.c return wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL, wm831x_rtc 280 drivers/rtc/rtc-wm831x.c struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc 281 drivers/rtc/rtc-wm831x.c struct wm831x *wm831x = wm831x_rtc->wm831x; wm831x_rtc 287 drivers/rtc/rtc-wm831x.c ret = wm831x_rtc_stop_alarm(wm831x_rtc); wm831x_rtc 307 drivers/rtc/rtc-wm831x.c ret = wm831x_rtc_start_alarm(wm831x_rtc); wm831x_rtc 320 drivers/rtc/rtc-wm831x.c struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc 323 drivers/rtc/rtc-wm831x.c return wm831x_rtc_start_alarm(wm831x_rtc); wm831x_rtc 325 drivers/rtc/rtc-wm831x.c return wm831x_rtc_stop_alarm(wm831x_rtc); wm831x_rtc 330 drivers/rtc/rtc-wm831x.c struct wm831x_rtc *wm831x_rtc = data; wm831x_rtc 332 drivers/rtc/rtc-wm831x.c rtc_update_irq(wm831x_rtc->rtc, 1, RTC_IRQF | RTC_AF); wm831x_rtc 349 drivers/rtc/rtc-wm831x.c struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc 352 drivers/rtc/rtc-wm831x.c if (wm831x_rtc->alarm_enabled && device_may_wakeup(dev)) wm831x_rtc 357 drivers/rtc/rtc-wm831x.c ret = wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL, wm831x_rtc 370 drivers/rtc/rtc-wm831x.c struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc 373 drivers/rtc/rtc-wm831x.c if (wm831x_rtc->alarm_enabled) { wm831x_rtc 374 drivers/rtc/rtc-wm831x.c ret = wm831x_rtc_start_alarm(wm831x_rtc); wm831x_rtc 385 drivers/rtc/rtc-wm831x.c struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev); wm831x_rtc 388 drivers/rtc/rtc-wm831x.c ret = wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL, wm831x_rtc 404 drivers/rtc/rtc-wm831x.c struct wm831x_rtc *wm831x_rtc; wm831x_rtc 408 drivers/rtc/rtc-wm831x.c wm831x_rtc = devm_kzalloc(&pdev->dev, sizeof(*wm831x_rtc), GFP_KERNEL); wm831x_rtc 409 drivers/rtc/rtc-wm831x.c if (wm831x_rtc == NULL) wm831x_rtc 412 drivers/rtc/rtc-wm831x.c platform_set_drvdata(pdev, wm831x_rtc); wm831x_rtc 413 drivers/rtc/rtc-wm831x.c wm831x_rtc->wm831x = wm831x; wm831x_rtc 421 drivers/rtc/rtc-wm831x.c wm831x_rtc->alarm_enabled = 1; wm831x_rtc 425 drivers/rtc/rtc-wm831x.c wm831x_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); wm831x_rtc 426 drivers/rtc/rtc-wm831x.c if (IS_ERR(wm831x_rtc->rtc)) wm831x_rtc 427 drivers/rtc/rtc-wm831x.c return PTR_ERR(wm831x_rtc->rtc); wm831x_rtc 429 drivers/rtc/rtc-wm831x.c wm831x_rtc->rtc->ops = &wm831x_rtc_ops; wm831x_rtc 430 drivers/rtc/rtc-wm831x.c wm831x_rtc->rtc->range_max = U32_MAX; wm831x_rtc 432 drivers/rtc/rtc-wm831x.c ret = rtc_register_device(wm831x_rtc->rtc); wm831x_rtc 440 drivers/rtc/rtc-wm831x.c wm831x_rtc);