• Home
  • Raw
  • Download

Lines Matching refs:rk808

54 	struct rk808 *rk808;  member
100 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_rtc_readtime() local
105 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_readtime()
119 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_readtime()
127 ret = regmap_bulk_read(rk808->regmap, rk808_rtc->creg->seconds_reg, in rk808_rtc_readtime()
151 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_rtc_set_time() local
166 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_set_time()
174 ret = regmap_bulk_write(rk808->regmap, rk808_rtc->creg->seconds_reg, in rk808_rtc_set_time()
181 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_set_time()
194 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_rtc_readalarm() local
199 ret = regmap_bulk_read(rk808->regmap, in rk808_rtc_readalarm()
215 ret = regmap_read(rk808->regmap, rk808_rtc->creg->int_reg, &int_reg); in rk808_rtc_readalarm()
231 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_rtc_stop_alarm() local
234 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->int_reg, in rk808_rtc_stop_alarm()
242 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_rtc_start_alarm() local
245 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->int_reg, in rk808_rtc_start_alarm()
255 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_rtc_setalarm() local
275 ret = regmap_bulk_write(rk808->regmap, in rk808_rtc_setalarm()
316 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_alarm_irq() local
317 struct i2c_client *client = rk808->i2c; in rk808_alarm_irq()
320 ret = regmap_write(rk808->regmap, rk808_rtc->creg->status_reg, in rk808_alarm_irq()
389 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); in rk808_rtc_probe() local
397 switch (rk808->variant) { in rk808_rtc_probe()
407 rk808_rtc->rk808 = rk808; in rk808_rtc_probe()
410 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_probe()
420 ret = regmap_write(rk808->regmap, rk808_rtc->creg->status_reg, in rk808_rtc_probe()