rk808 18 drivers/clk/clk-rk808.c struct rk808 *rk808; rk808 34 drivers/clk/clk-rk808.c struct rk808 *rk808 = rk808_clkout->rk808; rk808 36 drivers/clk/clk-rk808.c return regmap_update_bits(rk808->regmap, RK808_CLK32OUT_REG, rk808 55 drivers/clk/clk-rk808.c struct rk808 *rk808 = rk808_clkout->rk808; rk808 58 drivers/clk/clk-rk808.c int ret = regmap_read(rk808->regmap, RK808_CLK32OUT_REG, &val); rk808 96 drivers/clk/clk-rk808.c struct rk808 *rk808 = rk808_clkout->rk808; rk808 98 drivers/clk/clk-rk808.c return regmap_update_bits(rk808->regmap, RK817_SYS_CFG(1), rk808 118 drivers/clk/clk-rk808.c struct rk808 *rk808 = rk808_clkout->rk808; rk808 121 drivers/clk/clk-rk808.c int ret = regmap_read(rk808->regmap, RK817_SYS_CFG(1), &val); rk808 155 drivers/clk/clk-rk808.c struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); rk808 156 drivers/clk/clk-rk808.c struct i2c_client *client = rk808->i2c; rk808 167 drivers/clk/clk-rk808.c rk808_clkout->rk808 = rk808; rk808 184 drivers/clk/clk-rk808.c init.ops = rkpmic_get_ops(rk808->variant); rk808 467 drivers/mfd/rk808.c struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); rk808 469 drivers/mfd/rk808.c if (!rk808) rk808 472 drivers/mfd/rk808.c ret = regmap_update_bits(rk808->regmap, rk808 482 drivers/mfd/rk808.c struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); rk808 484 drivers/mfd/rk808.c if (!rk808) rk808 487 drivers/mfd/rk808.c ret = regmap_update_bits(rk808->regmap, rk808 497 drivers/mfd/rk808.c struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); rk808 499 drivers/mfd/rk808.c if (!rk808) rk808 502 drivers/mfd/rk808.c ret = regmap_update_bits(rk808->regmap, rk808 512 drivers/mfd/rk808.c struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); rk808 514 drivers/mfd/rk808.c if (!rk808) rk808 517 drivers/mfd/rk808.c ret = regmap_update_bits(rk808->regmap, rk808 526 drivers/mfd/rk808.c struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); rk808 530 drivers/mfd/rk808.c (rk808->variant == RK809_ID || rk808->variant == RK817_ID)) { rk808 531 drivers/mfd/rk808.c ret = regmap_update_bits(rk808->regmap, rk808 560 drivers/mfd/rk808.c struct rk808 *rk808; rk808 570 drivers/mfd/rk808.c rk808 = devm_kzalloc(&client->dev, sizeof(*rk808), GFP_KERNEL); rk808 571 drivers/mfd/rk808.c if (!rk808) rk808 598 drivers/mfd/rk808.c rk808->variant = ((msb << 8) | lsb) & RK8XX_ID_MSK; rk808 599 drivers/mfd/rk808.c dev_info(&client->dev, "chip id: 0x%x\n", (unsigned int)rk808->variant); rk808 601 drivers/mfd/rk808.c switch (rk808->variant) { rk808 603 drivers/mfd/rk808.c rk808->regmap_cfg = &rk805_regmap_config; rk808 604 drivers/mfd/rk808.c rk808->regmap_irq_chip = &rk805_irq_chip; rk808 609 drivers/mfd/rk808.c rk808->pm_pwroff_fn = rk805_device_shutdown; rk808 610 drivers/mfd/rk808.c rk808->pm_pwroff_prep_fn = rk805_device_shutdown_prepare; rk808 613 drivers/mfd/rk808.c rk808->regmap_cfg = &rk808_regmap_config; rk808 614 drivers/mfd/rk808.c rk808->regmap_irq_chip = &rk808_irq_chip; rk808 619 drivers/mfd/rk808.c rk808->pm_pwroff_fn = rk808_device_shutdown; rk808 622 drivers/mfd/rk808.c rk808->regmap_cfg = &rk818_regmap_config; rk808 623 drivers/mfd/rk808.c rk808->regmap_irq_chip = &rk818_irq_chip; rk808 628 drivers/mfd/rk808.c rk808->pm_pwroff_fn = rk818_device_shutdown; rk808 632 drivers/mfd/rk808.c rk808->regmap_cfg = &rk817_regmap_config; rk808 633 drivers/mfd/rk808.c rk808->regmap_irq_chip = &rk817_irq_chip; rk808 642 drivers/mfd/rk808.c rk808->variant); rk808 646 drivers/mfd/rk808.c rk808->i2c = client; rk808 647 drivers/mfd/rk808.c i2c_set_clientdata(client, rk808); rk808 649 drivers/mfd/rk808.c rk808->regmap = devm_regmap_init_i2c(client, rk808->regmap_cfg); rk808 650 drivers/mfd/rk808.c if (IS_ERR(rk808->regmap)) { rk808 652 drivers/mfd/rk808.c return PTR_ERR(rk808->regmap); rk808 660 drivers/mfd/rk808.c ret = regmap_add_irq_chip(rk808->regmap, client->irq, rk808 662 drivers/mfd/rk808.c rk808->regmap_irq_chip, &rk808->irq_data); rk808 669 drivers/mfd/rk808.c ret = regmap_update_bits(rk808->regmap, rk808 683 drivers/mfd/rk808.c regmap_irq_get_domain(rk808->irq_data)); rk808 693 drivers/mfd/rk808.c pm_power_off = rk808->pm_pwroff_fn; rk808 699 drivers/mfd/rk808.c pm_power_off_prepare = rk808->pm_pwroff_prep_fn; rk808 705 drivers/mfd/rk808.c regmap_del_irq_chip(client->irq, rk808->irq_data); rk808 711 drivers/mfd/rk808.c struct rk808 *rk808 = i2c_get_clientdata(client); rk808 713 drivers/mfd/rk808.c regmap_del_irq_chip(client->irq, rk808->irq_data); rk808 719 drivers/mfd/rk808.c if (rk808->pm_pwroff_fn && pm_power_off == rk808->pm_pwroff_fn) rk808 725 drivers/mfd/rk808.c if (rk808->pm_pwroff_prep_fn && rk808 726 drivers/mfd/rk808.c pm_power_off_prepare == rk808->pm_pwroff_prep_fn) rk808 734 drivers/mfd/rk808.c struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); rk808 737 drivers/mfd/rk808.c switch (rk808->variant) { rk808 740 drivers/mfd/rk808.c ret = regmap_update_bits(rk808->regmap, rk808 754 drivers/mfd/rk808.c struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); rk808 757 drivers/mfd/rk808.c switch (rk808->variant) { rk808 760 drivers/mfd/rk808.c ret = regmap_update_bits(rk808->regmap, rk808 65 drivers/pinctrl/pinctrl-rk805.c struct rk808 *rk808; rk808 141 drivers/pinctrl/pinctrl-rk805.c ret = regmap_read(pci->rk808->regmap, pci->pin_cfg[offset].reg, &val); rk808 157 drivers/pinctrl/pinctrl-rk805.c ret = regmap_update_bits(pci->rk808->regmap, rk808 189 drivers/pinctrl/pinctrl-rk805.c ret = regmap_read(pci->rk808->regmap, rk808 290 drivers/pinctrl/pinctrl-rk805.c ret = regmap_update_bits(pci->rk808->regmap, rk808 335 drivers/pinctrl/pinctrl-rk805.c ret = regmap_update_bits(pci->rk808->regmap, rk808 426 drivers/pinctrl/pinctrl-rk805.c pci->rk808 = dev_get_drvdata(pdev->dev.parent); rk808 435 drivers/pinctrl/pinctrl-rk805.c switch (pci->rk808->variant) { rk808 450 drivers/pinctrl/pinctrl-rk805.c pci->rk808->variant); rk808 1317 drivers/regulator/rk808-regulator.c struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); rk808 1318 drivers/regulator/rk808-regulator.c struct i2c_client *client = rk808->i2c; rk808 1330 drivers/regulator/rk808-regulator.c rk808->regmap, pdata); rk808 1336 drivers/regulator/rk808-regulator.c switch (rk808->variant) { rk808 1359 drivers/regulator/rk808-regulator.c rk808->variant); rk808 1365 drivers/regulator/rk808-regulator.c config.regmap = rk808->regmap; rk808 54 drivers/rtc/rtc-rk808.c struct rk808 *rk808; rk808 100 drivers/rtc/rtc-rk808.c struct rk808 *rk808 = rk808_rtc->rk808; rk808 105 drivers/rtc/rtc-rk808.c ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, rk808 119 drivers/rtc/rtc-rk808.c ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, rk808 127 drivers/rtc/rtc-rk808.c ret = regmap_bulk_read(rk808->regmap, rk808_rtc->creg->seconds_reg, rk808 151 drivers/rtc/rtc-rk808.c struct rk808 *rk808 = rk808_rtc->rk808; rk808 166 drivers/rtc/rtc-rk808.c ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, rk808 174 drivers/rtc/rtc-rk808.c ret = regmap_bulk_write(rk808->regmap, rk808_rtc->creg->seconds_reg, rk808 181 drivers/rtc/rtc-rk808.c ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, rk808 194 drivers/rtc/rtc-rk808.c struct rk808 *rk808 = rk808_rtc->rk808; rk808 199 drivers/rtc/rtc-rk808.c ret = regmap_bulk_read(rk808->regmap, rk808 215 drivers/rtc/rtc-rk808.c ret = regmap_read(rk808->regmap, rk808_rtc->creg->int_reg, &int_reg); rk808 231 drivers/rtc/rtc-rk808.c struct rk808 *rk808 = rk808_rtc->rk808; rk808 234 drivers/rtc/rtc-rk808.c ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->int_reg, rk808 242 drivers/rtc/rtc-rk808.c struct rk808 *rk808 = rk808_rtc->rk808; rk808 245 drivers/rtc/rtc-rk808.c ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->int_reg, rk808 255 drivers/rtc/rtc-rk808.c struct rk808 *rk808 = rk808_rtc->rk808; rk808 275 drivers/rtc/rtc-rk808.c ret = regmap_bulk_write(rk808->regmap, rk808 316 drivers/rtc/rtc-rk808.c struct rk808 *rk808 = rk808_rtc->rk808; rk808 317 drivers/rtc/rtc-rk808.c struct i2c_client *client = rk808->i2c; rk808 320 drivers/rtc/rtc-rk808.c ret = regmap_write(rk808->regmap, rk808_rtc->creg->status_reg, rk808 389 drivers/rtc/rtc-rk808.c struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); rk808 397 drivers/rtc/rtc-rk808.c switch (rk808->variant) { rk808 407 drivers/rtc/rtc-rk808.c rk808_rtc->rk808 = rk808; rk808 410 drivers/rtc/rtc-rk808.c ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, rk808 420 drivers/rtc/rtc-rk808.c ret = regmap_write(rk808->regmap, rk808_rtc->creg->status_reg,