rv3028 95 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028 = dev_get_drvdata(dev->parent); rv3028 97 drivers/rtc/rtc-rv3028.c regmap_update_bits(rv3028->regmap, RV3028_EVT_CTRL, RV3028_EVT_CTRL_TSR, rv3028 106 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028 = dev_get_drvdata(dev->parent); rv3028 111 drivers/rtc/rtc-rv3028.c ret = regmap_read(rv3028->regmap, RV3028_TS_COUNT, &count); rv3028 118 drivers/rtc/rtc-rv3028.c ret = regmap_bulk_read(rv3028->regmap, RV3028_TS_SEC, date, rv3028 143 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028 = dev_get_drvdata(dev->parent); rv3028 146 drivers/rtc/rtc-rv3028.c ret = regmap_read(rv3028->regmap, RV3028_TS_COUNT, &count); rv3028 167 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028 = dev_id; rv3028 171 drivers/rtc/rtc-rv3028.c if (regmap_read(rv3028->regmap, RV3028_STATUS, &status) < 0 || rv3028 177 drivers/rtc/rtc-rv3028.c dev_warn(&rv3028->rtc->dev, "Voltage low, data loss detected.\n"); rv3028 198 drivers/rtc/rtc-rv3028.c rtc_update_irq(rv3028->rtc, 1, events); rv3028 199 drivers/rtc/rtc-rv3028.c regmap_update_bits(rv3028->regmap, RV3028_STATUS, status, 0); rv3028 200 drivers/rtc/rtc-rv3028.c regmap_update_bits(rv3028->regmap, RV3028_CTRL2, ctrl, 0); rv3028 204 drivers/rtc/rtc-rv3028.c sysfs_notify(&rv3028->rtc->dev.kobj, NULL, rv3028 206 drivers/rtc/rtc-rv3028.c dev_warn(&rv3028->rtc->dev, "event detected"); rv3028 214 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028 = dev_get_drvdata(dev); rv3028 218 drivers/rtc/rtc-rv3028.c ret = regmap_read(rv3028->regmap, RV3028_STATUS, &status); rv3028 227 drivers/rtc/rtc-rv3028.c ret = regmap_bulk_read(rv3028->regmap, RV3028_SEC, date, sizeof(date)); rv3028 244 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028 = dev_get_drvdata(dev); rv3028 260 drivers/rtc/rtc-rv3028.c ret = regmap_bulk_write(rv3028->regmap, RV3028_SEC, date, rv3028 265 drivers/rtc/rtc-rv3028.c ret = regmap_update_bits(rv3028->regmap, RV3028_STATUS, rv3028 273 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028 = dev_get_drvdata(dev); rv3028 277 drivers/rtc/rtc-rv3028.c ret = regmap_bulk_read(rv3028->regmap, RV3028_ALARM_MIN, alarmvals, rv3028 282 drivers/rtc/rtc-rv3028.c ret = regmap_read(rv3028->regmap, RV3028_STATUS, &status); rv3028 286 drivers/rtc/rtc-rv3028.c ret = regmap_read(rv3028->regmap, RV3028_CTRL2, &ctrl); rv3028 303 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028 = dev_get_drvdata(dev); rv3028 316 drivers/rtc/rtc-rv3028.c ret = regmap_update_bits(rv3028->regmap, RV3028_CTRL2, rv3028 325 drivers/rtc/rtc-rv3028.c ret = regmap_update_bits(rv3028->regmap, RV3028_STATUS, rv3028 330 drivers/rtc/rtc-rv3028.c ret = regmap_bulk_write(rv3028->regmap, RV3028_ALARM_MIN, alarmvals, rv3028 336 drivers/rtc/rtc-rv3028.c if (rv3028->rtc->uie_rtctimer.enabled) rv3028 338 drivers/rtc/rtc-rv3028.c if (rv3028->rtc->aie_timer.enabled) rv3028 342 drivers/rtc/rtc-rv3028.c ret = regmap_update_bits(rv3028->regmap, RV3028_CTRL2, rv3028 350 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028 = dev_get_drvdata(dev); rv3028 354 drivers/rtc/rtc-rv3028.c if (rv3028->rtc->uie_rtctimer.enabled) rv3028 356 drivers/rtc/rtc-rv3028.c if (rv3028->rtc->aie_timer.enabled) rv3028 360 drivers/rtc/rtc-rv3028.c ret = regmap_update_bits(rv3028->regmap, RV3028_STATUS, rv3028 365 drivers/rtc/rtc-rv3028.c ret = regmap_update_bits(rv3028->regmap, RV3028_CTRL2, rv3028 375 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028 = dev_get_drvdata(dev); rv3028 378 drivers/rtc/rtc-rv3028.c ret = regmap_read(rv3028->regmap, RV3028_OFFSET, &value); rv3028 384 drivers/rtc/rtc-rv3028.c ret = regmap_read(rv3028->regmap, RV3028_BACKUP, &value); rv3028 397 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028 = dev_get_drvdata(dev); rv3028 403 drivers/rtc/rtc-rv3028.c ret = regmap_write(rv3028->regmap, RV3028_OFFSET, offset >> 1); rv3028 407 drivers/rtc/rtc-rv3028.c return regmap_update_bits(rv3028->regmap, RV3028_BACKUP, BIT(7), rv3028 413 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028 = dev_get_drvdata(dev); rv3028 418 drivers/rtc/rtc-rv3028.c ret = regmap_read(rv3028->regmap, RV3028_STATUS, &status); rv3028 423 drivers/rtc/rtc-rv3028.c dev_warn(&rv3028->rtc->dev, "Voltage low, data loss detected.\n"); rv3028 433 drivers/rtc/rtc-rv3028.c ret = regmap_update_bits(rv3028->regmap, RV3028_STATUS, rv3028 600 drivers/rtc/rtc-rv3028.c struct rv3028_data *rv3028; rv3028 622 drivers/rtc/rtc-rv3028.c rv3028 = devm_kzalloc(&client->dev, sizeof(struct rv3028_data), rv3028 624 drivers/rtc/rtc-rv3028.c if (!rv3028) rv3028 627 drivers/rtc/rtc-rv3028.c rv3028->regmap = devm_regmap_init_i2c(client, ®map_config); rv3028 629 drivers/rtc/rtc-rv3028.c i2c_set_clientdata(client, rv3028); rv3028 631 drivers/rtc/rtc-rv3028.c ret = regmap_read(rv3028->regmap, RV3028_STATUS, &status); rv3028 641 drivers/rtc/rtc-rv3028.c rv3028->rtc = devm_rtc_allocate_device(&client->dev); rv3028 642 drivers/rtc/rtc-rv3028.c if (IS_ERR(rv3028->rtc)) rv3028 643 drivers/rtc/rtc-rv3028.c return PTR_ERR(rv3028->rtc); rv3028 649 drivers/rtc/rtc-rv3028.c "rv3028", rv3028); rv3028 660 drivers/rtc/rtc-rv3028.c ret = regmap_update_bits(rv3028->regmap, RV3028_CTRL1, rv3028 666 drivers/rtc/rtc-rv3028.c ret = regmap_update_bits(rv3028->regmap, RV3028_CTRL2, rv3028 682 drivers/rtc/rtc-rv3028.c ret = regmap_update_bits(rv3028->regmap, RV3028_BACKUP, rv3028 693 drivers/rtc/rtc-rv3028.c ret = rtc_add_group(rv3028->rtc, &rv3028_attr_group); rv3028 697 drivers/rtc/rtc-rv3028.c rv3028->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; rv3028 698 drivers/rtc/rtc-rv3028.c rv3028->rtc->range_max = RTC_TIMESTAMP_END_2099; rv3028 699 drivers/rtc/rtc-rv3028.c rv3028->rtc->ops = &rv3028_rtc_ops; rv3028 700 drivers/rtc/rtc-rv3028.c ret = rtc_register_device(rv3028->rtc); rv3028 704 drivers/rtc/rtc-rv3028.c nvmem_cfg.priv = rv3028->regmap; rv3028 705 drivers/rtc/rtc-rv3028.c rtc_nvmem_register(rv3028->rtc, &nvmem_cfg); rv3028 706 drivers/rtc/rtc-rv3028.c eeprom_cfg.priv = rv3028->regmap; rv3028 707 drivers/rtc/rtc-rv3028.c rtc_nvmem_register(rv3028->rtc, &eeprom_cfg); rv3028 709 drivers/rtc/rtc-rv3028.c rv3028->rtc->max_user_freq = 1;