da9052 45 drivers/gpio/gpio-da9052.c struct da9052 *da9052; da9052 60 drivers/gpio/gpio-da9052.c ret = da9052_reg_read(gpio->da9052, da9052 75 drivers/gpio/gpio-da9052.c ret = da9052_reg_read(gpio->da9052, da9052 78 drivers/gpio/gpio-da9052.c ret = da9052_reg_read(gpio->da9052, da9052 99 drivers/gpio/gpio-da9052.c ret = da9052_reg_update(gpio->da9052, (offset >> 1) + da9052 104 drivers/gpio/gpio-da9052.c dev_err(gpio->da9052->dev, da9052 108 drivers/gpio/gpio-da9052.c ret = da9052_reg_update(gpio->da9052, (offset >> 1) + da9052 113 drivers/gpio/gpio-da9052.c dev_err(gpio->da9052->dev, da9052 130 drivers/gpio/gpio-da9052.c ret = da9052_reg_update(gpio->da9052, (offset >> 1) + da9052 136 drivers/gpio/gpio-da9052.c ret = da9052_reg_update(gpio->da9052, (offset >> 1) + da9052 156 drivers/gpio/gpio-da9052.c ret = da9052_reg_update(gpio->da9052, (offset >> 1) + da9052 162 drivers/gpio/gpio-da9052.c ret = da9052_reg_update(gpio->da9052, (offset >> 1) + da9052 173 drivers/gpio/gpio-da9052.c struct da9052 *da9052 = gpio->da9052; da9052 177 drivers/gpio/gpio-da9052.c irq = regmap_irq_get_virq(da9052->irq_data, DA9052_IRQ_GPI0 + offset); da9052 205 drivers/gpio/gpio-da9052.c gpio->da9052 = dev_get_drvdata(pdev->dev.parent); da9052 206 drivers/gpio/gpio-da9052.c pdata = dev_get_platdata(gpio->da9052->dev); da9052 25 drivers/hwmon/da9052-hwmon.c struct da9052 *da9052; da9052 72 drivers/hwmon/da9052-hwmon.c static inline int da9052_enable_vddout_channel(struct da9052 *da9052) da9052 74 drivers/hwmon/da9052-hwmon.c return da9052_reg_update(da9052, DA9052_ADC_CONT_REG, da9052 79 drivers/hwmon/da9052-hwmon.c static inline int da9052_disable_vddout_channel(struct da9052 *da9052) da9052 81 drivers/hwmon/da9052-hwmon.c return da9052_reg_update(da9052, DA9052_ADC_CONT_REG, da9052 93 drivers/hwmon/da9052-hwmon.c ret = da9052_enable_vddout_channel(hwmon->da9052); da9052 97 drivers/hwmon/da9052-hwmon.c vdd = da9052_reg_read(hwmon->da9052, DA9052_VDD_RES_REG); da9052 103 drivers/hwmon/da9052-hwmon.c ret = da9052_disable_vddout_channel(hwmon->da9052); da9052 111 drivers/hwmon/da9052-hwmon.c da9052_disable_vddout_channel(hwmon->da9052); da9052 123 drivers/hwmon/da9052-hwmon.c ret = da9052_reg_read(hwmon->da9052, DA9052_ICHG_AV_REG); da9052 136 drivers/hwmon/da9052-hwmon.c return sprintf(buf, "%d\n", da9052_adc_read_temp(hwmon->da9052)); da9052 145 drivers/hwmon/da9052-hwmon.c ret = da9052_adc_manual_read(hwmon->da9052, DA9052_ADC_VBAT); da9052 160 drivers/hwmon/da9052-hwmon.c ret = da9052_adc_manual_read(hwmon->da9052, channel); da9052 186 drivers/hwmon/da9052-hwmon.c return da9052_reg_write(hwmon->da9052, DA9052_TSI_CONT_B_REG, val); da9052 195 drivers/hwmon/da9052-hwmon.c err = da9052_group_read(hwmon->da9052, DA9052_TSI_X_MSB_REG, da9052 247 drivers/hwmon/da9052-hwmon.c mutex_lock(&hwmon->da9052->auxadc_lock); da9052 249 drivers/hwmon/da9052-hwmon.c mutex_unlock(&hwmon->da9052->auxadc_lock); da9052 264 drivers/hwmon/da9052-hwmon.c tjunc = da9052_reg_read(hwmon->da9052, DA9052_TJUNC_RES_REG); da9052 268 drivers/hwmon/da9052-hwmon.c toffset = da9052_reg_read(hwmon->da9052, DA9052_T_OFFSET_REG); da9052 285 drivers/hwmon/da9052-hwmon.c ret = da9052_adc_manual_read(hwmon->da9052, DA9052_ADC_VBBAT); da9052 385 drivers/hwmon/da9052-hwmon.c __ATTRIBUTE_GROUPS(da9052); da9052 409 drivers/hwmon/da9052-hwmon.c hwmon->da9052 = dev_get_drvdata(pdev->dev.parent); da9052 439 drivers/hwmon/da9052-hwmon.c dev_err(hwmon->da9052->dev, "invalid TSIREF voltage: %d", da9052 446 drivers/hwmon/da9052-hwmon.c da9052_reg_write(hwmon->da9052, DA9052_TSI_CONT_A_REG, 0x00); da9052 449 drivers/hwmon/da9052-hwmon.c da9052_reg_update(hwmon->da9052, DA9052_ADC_CONT_REG, da9052 453 drivers/hwmon/da9052-hwmon.c err = da9052_request_irq(hwmon->da9052, DA9052_IRQ_TSIREADY, da9052 474 drivers/hwmon/da9052-hwmon.c da9052_free_irq(hwmon->da9052, DA9052_IRQ_TSIREADY, hwmon); da9052 487 drivers/hwmon/da9052-hwmon.c da9052_free_irq(hwmon->da9052, DA9052_IRQ_TSIREADY, hwmon); da9052 19 drivers/input/misc/da9052_onkey.c struct da9052 *da9052; da9052 28 drivers/input/misc/da9052_onkey.c ret = da9052_reg_read(onkey->da9052, DA9052_STATUS_A_REG); da9052 30 drivers/input/misc/da9052_onkey.c dev_err(onkey->da9052->dev, da9052 73 drivers/input/misc/da9052_onkey.c struct da9052 *da9052 = dev_get_drvdata(pdev->dev.parent); da9052 78 drivers/input/misc/da9052_onkey.c if (!da9052) { da9052 92 drivers/input/misc/da9052_onkey.c onkey->da9052 = da9052; da9052 102 drivers/input/misc/da9052_onkey.c error = da9052_request_irq(onkey->da9052, DA9052_IRQ_NONKEY, "ONKEY", da9052 105 drivers/input/misc/da9052_onkey.c dev_err(onkey->da9052->dev, da9052 121 drivers/input/misc/da9052_onkey.c da9052_free_irq(onkey->da9052, DA9052_IRQ_NONKEY, onkey); da9052 134 drivers/input/misc/da9052_onkey.c da9052_free_irq(onkey->da9052, DA9052_IRQ_NONKEY, onkey); da9052 21 drivers/input/touchscreen/da9052_tsi.c struct da9052 *da9052; da9052 30 drivers/input/touchscreen/da9052_tsi.c da9052_reg_update(tsi->da9052, DA9052_TSI_CONT_A_REG, 1 << 0, on); da9052 40 drivers/input/touchscreen/da9052_tsi.c da9052_disable_irq_nosync(tsi->da9052, DA9052_IRQ_PENDOWN); da9052 41 drivers/input/touchscreen/da9052_tsi.c da9052_enable_irq(tsi->da9052, DA9052_IRQ_TSIREADY); da9052 58 drivers/input/touchscreen/da9052_tsi.c ret = da9052_reg_read(tsi->da9052, DA9052_TSI_X_MSB_REG); da9052 64 drivers/input/touchscreen/da9052_tsi.c ret = da9052_reg_read(tsi->da9052, DA9052_TSI_Y_MSB_REG); da9052 70 drivers/input/touchscreen/da9052_tsi.c ret = da9052_reg_read(tsi->da9052, DA9052_TSI_Z_MSB_REG); da9052 76 drivers/input/touchscreen/da9052_tsi.c ret = da9052_reg_read(tsi->da9052, DA9052_TSI_LSB_REG); da9052 107 drivers/input/touchscreen/da9052_tsi.c int ret = da9052_reg_read(tsi->da9052, DA9052_TSI_LSB_REG); da9052 126 drivers/input/touchscreen/da9052_tsi.c ret = da9052_reg_update(tsi->da9052, da9052 132 drivers/input/touchscreen/da9052_tsi.c da9052_disable_irq(tsi->da9052, DA9052_IRQ_TSIREADY); da9052 133 drivers/input/touchscreen/da9052_tsi.c da9052_enable_irq(tsi->da9052, DA9052_IRQ_PENDOWN); da9052 138 drivers/input/touchscreen/da9052_tsi.c static int da9052_ts_configure_gpio(struct da9052 *da9052) da9052 142 drivers/input/touchscreen/da9052_tsi.c error = da9052_reg_update(da9052, DA9052_GPIO_2_3_REG, 0x30, 0); da9052 146 drivers/input/touchscreen/da9052_tsi.c error = da9052_reg_update(da9052, DA9052_GPIO_4_5_REG, 0x33, 0); da9052 150 drivers/input/touchscreen/da9052_tsi.c error = da9052_reg_update(da9052, DA9052_GPIO_6_7_REG, 0x33, 0); da9052 161 drivers/input/touchscreen/da9052_tsi.c error = da9052_ts_configure_gpio(tsi->da9052); da9052 166 drivers/input/touchscreen/da9052_tsi.c error = da9052_reg_update(tsi->da9052, DA9052_ADC_CONT_REG, da9052 172 drivers/input/touchscreen/da9052_tsi.c error = da9052_reg_update(tsi->da9052, DA9052_TSI_CONT_A_REG, 0xFC, 0xC0); da9052 177 drivers/input/touchscreen/da9052_tsi.c error = da9052_reg_write(tsi->da9052, DA9052_LDO9_REG, 0x59); da9052 192 drivers/input/touchscreen/da9052_tsi.c da9052_enable_irq(tsi->da9052, DA9052_IRQ_PENDOWN); da9052 195 drivers/input/touchscreen/da9052_tsi.c return da9052_reg_update(tsi->da9052, DA9052_TSI_CONT_A_REG, da9052 205 drivers/input/touchscreen/da9052_tsi.c da9052_disable_irq(tsi->da9052, DA9052_IRQ_PENDOWN); da9052 209 drivers/input/touchscreen/da9052_tsi.c da9052_disable_irq(tsi->da9052, DA9052_IRQ_TSIREADY); da9052 217 drivers/input/touchscreen/da9052_tsi.c da9052_enable_irq(tsi->da9052, DA9052_IRQ_PENDOWN); da9052 221 drivers/input/touchscreen/da9052_tsi.c da9052_reg_update(tsi->da9052, DA9052_TSI_CONT_A_REG, 1 << 1, 0); da9052 226 drivers/input/touchscreen/da9052_tsi.c struct da9052 *da9052; da9052 231 drivers/input/touchscreen/da9052_tsi.c da9052 = dev_get_drvdata(pdev->dev.parent); da9052 232 drivers/input/touchscreen/da9052_tsi.c if (!da9052) da9052 242 drivers/input/touchscreen/da9052_tsi.c tsi->da9052 = da9052; da9052 266 drivers/input/touchscreen/da9052_tsi.c da9052_reg_update(tsi->da9052, DA9052_TSI_CONT_A_REG, 1 << 1, 0); da9052 271 drivers/input/touchscreen/da9052_tsi.c error = da9052_request_irq(tsi->da9052, DA9052_IRQ_PENDOWN, da9052 274 drivers/input/touchscreen/da9052_tsi.c dev_err(tsi->da9052->dev, da9052 279 drivers/input/touchscreen/da9052_tsi.c error = da9052_request_irq(tsi->da9052, DA9052_IRQ_TSIREADY, da9052 282 drivers/input/touchscreen/da9052_tsi.c dev_err(tsi->da9052->dev, da9052 288 drivers/input/touchscreen/da9052_tsi.c da9052_disable_irq(tsi->da9052, DA9052_IRQ_PENDOWN); da9052 289 drivers/input/touchscreen/da9052_tsi.c da9052_disable_irq(tsi->da9052, DA9052_IRQ_TSIREADY); da9052 304 drivers/input/touchscreen/da9052_tsi.c da9052_free_irq(tsi->da9052, DA9052_IRQ_TSIREADY, tsi); da9052 306 drivers/input/touchscreen/da9052_tsi.c da9052_free_irq(tsi->da9052, DA9052_IRQ_PENDOWN, tsi); da9052 318 drivers/input/touchscreen/da9052_tsi.c da9052_reg_write(tsi->da9052, DA9052_LDO9_REG, 0x19); da9052 320 drivers/input/touchscreen/da9052_tsi.c da9052_free_irq(tsi->da9052, DA9052_IRQ_TSIREADY, tsi); da9052 321 drivers/input/touchscreen/da9052_tsi.c da9052_free_irq(tsi->da9052, DA9052_IRQ_PENDOWN, tsi); da9052 29 drivers/leds/leds-da9052.c struct da9052 *da9052; da9052 47 drivers/leds/leds-da9052.c error = da9052_reg_write(led->da9052, led_reg[led->led_index], val); da9052 49 drivers/leds/leds-da9052.c dev_err(led->da9052->dev, "Failed to set led brightness, %d\n", da9052 63 drivers/leds/leds-da9052.c static int da9052_configure_leds(struct da9052 *da9052) da9052 69 drivers/leds/leds-da9052.c error = da9052_reg_update(da9052, DA9052_GPIO_14_15_REG, da9052 74 drivers/leds/leds-da9052.c dev_err(da9052->dev, "Failed to write GPIO 14-15 reg, %d\n", da9052 79 drivers/leds/leds-da9052.c error = da9052_reg_update(da9052, DA9052_GPIO_14_15_REG, da9052 83 drivers/leds/leds-da9052.c dev_err(da9052->dev, "Failed to write GPIO 14-15 reg, %d\n", da9052 92 drivers/leds/leds-da9052.c struct da9052 *da9052; da9052 98 drivers/leds/leds-da9052.c da9052 = dev_get_drvdata(pdev->dev.parent); da9052 99 drivers/leds/leds-da9052.c pdata = dev_get_platdata(da9052->dev); da9052 125 drivers/leds/leds-da9052.c led[i].da9052 = dev_get_drvdata(pdev->dev.parent); da9052 142 drivers/leds/leds-da9052.c error = da9052_configure_leds(led->da9052); da9052 163 drivers/leds/leds-da9052.c struct da9052 *da9052; da9052 167 drivers/leds/leds-da9052.c da9052 = dev_get_drvdata(pdev->dev.parent); da9052 168 drivers/leds/leds-da9052.c pdata = dev_get_platdata(da9052->dev); da9052 374 drivers/mfd/da9052-core.c int da9052_adc_manual_read(struct da9052 *da9052, unsigned char channel) da9052 384 drivers/mfd/da9052-core.c mutex_lock(&da9052->auxadc_lock); da9052 386 drivers/mfd/da9052-core.c reinit_completion(&da9052->done); da9052 391 drivers/mfd/da9052-core.c ret = da9052_reg_write(da9052, DA9052_ADC_MAN_REG, mux_sel); da9052 396 drivers/mfd/da9052-core.c if (!wait_for_completion_timeout(&da9052->done, da9052 398 drivers/mfd/da9052-core.c dev_err(da9052->dev, da9052 404 drivers/mfd/da9052-core.c ret = da9052_reg_read(da9052, DA9052_ADC_RES_H_REG); da9052 411 drivers/mfd/da9052-core.c ret = da9052_reg_read(da9052, DA9052_ADC_RES_L_REG); da9052 421 drivers/mfd/da9052-core.c mutex_unlock(&da9052->auxadc_lock); da9052 426 drivers/mfd/da9052-core.c int da9052_adc_read_temp(struct da9052 *da9052) da9052 430 drivers/mfd/da9052-core.c tbat = da9052_reg_read(da9052, DA9052_TBAT_RES_REG); da9052 545 drivers/mfd/da9052-core.c static int da9052_clear_fault_log(struct da9052 *da9052) da9052 550 drivers/mfd/da9052-core.c fault_log = da9052_reg_read(da9052, DA9052_FAULTLOG_REG); da9052 552 drivers/mfd/da9052-core.c dev_err(da9052->dev, da9052 559 drivers/mfd/da9052-core.c dev_dbg(da9052->dev, da9052 562 drivers/mfd/da9052-core.c dev_dbg(da9052->dev, da9052 565 drivers/mfd/da9052-core.c dev_dbg(da9052->dev, da9052 568 drivers/mfd/da9052-core.c dev_dbg(da9052->dev, da9052 571 drivers/mfd/da9052-core.c dev_dbg(da9052->dev, da9052 574 drivers/mfd/da9052-core.c dev_dbg(da9052->dev, da9052 577 drivers/mfd/da9052-core.c dev_dbg(da9052->dev, da9052 580 drivers/mfd/da9052-core.c ret = da9052_reg_write(da9052, da9052 584 drivers/mfd/da9052-core.c dev_err(da9052->dev, da9052 591 drivers/mfd/da9052-core.c int da9052_device_init(struct da9052 *da9052, u8 chip_id) da9052 593 drivers/mfd/da9052-core.c struct da9052_pdata *pdata = dev_get_platdata(da9052->dev); da9052 596 drivers/mfd/da9052-core.c mutex_init(&da9052->auxadc_lock); da9052 597 drivers/mfd/da9052-core.c init_completion(&da9052->done); da9052 599 drivers/mfd/da9052-core.c ret = da9052_clear_fault_log(da9052); da9052 601 drivers/mfd/da9052-core.c dev_warn(da9052->dev, "Cannot clear FAULT_LOG\n"); da9052 604 drivers/mfd/da9052-core.c pdata->init(da9052); da9052 606 drivers/mfd/da9052-core.c da9052->chip_id = chip_id; da9052 608 drivers/mfd/da9052-core.c ret = da9052_irq_init(da9052); da9052 610 drivers/mfd/da9052-core.c dev_err(da9052->dev, "da9052_irq_init failed: %d\n", ret); da9052 614 drivers/mfd/da9052-core.c ret = mfd_add_devices(da9052->dev, PLATFORM_DEVID_AUTO, da9052 618 drivers/mfd/da9052-core.c dev_err(da9052->dev, "mfd_add_devices failed: %d\n", ret); da9052 627 drivers/mfd/da9052-core.c if (!device_property_read_bool(da9052->dev, "dlg,tsi-as-adc")) { da9052 628 drivers/mfd/da9052-core.c ret = mfd_add_devices(da9052->dev, PLATFORM_DEVID_AUTO, da9052 633 drivers/mfd/da9052-core.c dev_err(da9052->dev, "failed to add TSI subdev: %d\n", da9052 642 drivers/mfd/da9052-core.c mfd_remove_devices(da9052->dev); da9052 643 drivers/mfd/da9052-core.c da9052_irq_exit(da9052); da9052 648 drivers/mfd/da9052-core.c void da9052_device_exit(struct da9052 *da9052) da9052 650 drivers/mfd/da9052-core.c mfd_remove_devices(da9052->dev); da9052 651 drivers/mfd/da9052-core.c da9052_irq_exit(da9052); da9052 58 drivers/mfd/da9052-i2c.c static int da9052_i2c_fix(struct da9052 *da9052, unsigned char reg) da9052 62 drivers/mfd/da9052-i2c.c switch (da9052->chip_id) { da9052 69 drivers/mfd/da9052-i2c.c return regmap_read(da9052->regmap, da9052 89 drivers/mfd/da9052-i2c.c static int da9052_i2c_disable_multiwrite(struct da9052 *da9052) da9052 93 drivers/mfd/da9052-i2c.c ret = regmap_read(da9052->regmap, DA9052_CONTROL_B_REG, ®_val); da9052 99 drivers/mfd/da9052-i2c.c ret = regmap_write(da9052->regmap, DA9052_CONTROL_B_REG, da9052 131 drivers/mfd/da9052-i2c.c struct da9052 *da9052; da9052 134 drivers/mfd/da9052-i2c.c da9052 = devm_kzalloc(&client->dev, sizeof(struct da9052), GFP_KERNEL); da9052 135 drivers/mfd/da9052-i2c.c if (!da9052) da9052 138 drivers/mfd/da9052-i2c.c da9052->dev = &client->dev; da9052 139 drivers/mfd/da9052-i2c.c da9052->chip_irq = client->irq; da9052 140 drivers/mfd/da9052-i2c.c da9052->fix_io = da9052_i2c_fix; da9052 142 drivers/mfd/da9052-i2c.c i2c_set_clientdata(client, da9052); da9052 144 drivers/mfd/da9052-i2c.c da9052->regmap = devm_regmap_init_i2c(client, &da9052_regmap_config); da9052 145 drivers/mfd/da9052-i2c.c if (IS_ERR(da9052->regmap)) { da9052 146 drivers/mfd/da9052-i2c.c ret = PTR_ERR(da9052->regmap); da9052 152 drivers/mfd/da9052-i2c.c ret = da9052_i2c_disable_multiwrite(da9052); da9052 172 drivers/mfd/da9052-i2c.c return da9052_device_init(da9052, id->driver_data); da9052 177 drivers/mfd/da9052-i2c.c struct da9052 *da9052 = i2c_get_clientdata(client); da9052 179 drivers/mfd/da9052-i2c.c da9052_device_exit(da9052); da9052 176 drivers/mfd/da9052-irq.c static int da9052_map_irq(struct da9052 *da9052, int irq) da9052 178 drivers/mfd/da9052-irq.c return regmap_irq_get_virq(da9052->irq_data, irq); da9052 181 drivers/mfd/da9052-irq.c int da9052_enable_irq(struct da9052 *da9052, int irq) da9052 183 drivers/mfd/da9052-irq.c irq = da9052_map_irq(da9052, irq); da9052 193 drivers/mfd/da9052-irq.c int da9052_disable_irq(struct da9052 *da9052, int irq) da9052 195 drivers/mfd/da9052-irq.c irq = da9052_map_irq(da9052, irq); da9052 205 drivers/mfd/da9052-irq.c int da9052_disable_irq_nosync(struct da9052 *da9052, int irq) da9052 207 drivers/mfd/da9052-irq.c irq = da9052_map_irq(da9052, irq); da9052 217 drivers/mfd/da9052-irq.c int da9052_request_irq(struct da9052 *da9052, int irq, char *name, da9052 220 drivers/mfd/da9052-irq.c irq = da9052_map_irq(da9052, irq); da9052 230 drivers/mfd/da9052-irq.c void da9052_free_irq(struct da9052 *da9052, int irq, void *data) da9052 232 drivers/mfd/da9052-irq.c irq = da9052_map_irq(da9052, irq); da9052 242 drivers/mfd/da9052-irq.c struct da9052 *da9052 = irq_data; da9052 244 drivers/mfd/da9052-irq.c complete(&da9052->done); da9052 249 drivers/mfd/da9052-irq.c int da9052_irq_init(struct da9052 *da9052) da9052 253 drivers/mfd/da9052-irq.c ret = regmap_add_irq_chip(da9052->regmap, da9052->chip_irq, da9052 256 drivers/mfd/da9052-irq.c &da9052->irq_data); da9052 258 drivers/mfd/da9052-irq.c dev_err(da9052->dev, "regmap_add_irq_chip failed: %d\n", ret); da9052 262 drivers/mfd/da9052-irq.c enable_irq_wake(da9052->chip_irq); da9052 264 drivers/mfd/da9052-irq.c ret = da9052_request_irq(da9052, DA9052_IRQ_ADC_EOM, "adc-irq", da9052 265 drivers/mfd/da9052-irq.c da9052_auxadc_irq, da9052); da9052 268 drivers/mfd/da9052-irq.c dev_err(da9052->dev, "DA9052_IRQ_ADC_EOM failed: %d\n", ret); da9052 275 drivers/mfd/da9052-irq.c regmap_del_irq_chip(da9052->chip_irq, da9052->irq_data); da9052 281 drivers/mfd/da9052-irq.c int da9052_irq_exit(struct da9052 *da9052) da9052 283 drivers/mfd/da9052-irq.c da9052_free_irq(da9052, DA9052_IRQ_ADC_EOM, da9052); da9052 284 drivers/mfd/da9052-irq.c regmap_del_irq_chip(da9052->chip_irq, da9052->irq_data); da9052 24 drivers/mfd/da9052-spi.c struct da9052 *da9052; da9052 26 drivers/mfd/da9052-spi.c da9052 = devm_kzalloc(&spi->dev, sizeof(struct da9052), GFP_KERNEL); da9052 27 drivers/mfd/da9052-spi.c if (!da9052) da9052 34 drivers/mfd/da9052-spi.c da9052->dev = &spi->dev; da9052 35 drivers/mfd/da9052-spi.c da9052->chip_irq = spi->irq; da9052 37 drivers/mfd/da9052-spi.c spi_set_drvdata(spi, da9052); da9052 47 drivers/mfd/da9052-spi.c da9052->regmap = devm_regmap_init_spi(spi, &config); da9052 48 drivers/mfd/da9052-spi.c if (IS_ERR(da9052->regmap)) { da9052 49 drivers/mfd/da9052-spi.c ret = PTR_ERR(da9052->regmap); da9052 55 drivers/mfd/da9052-spi.c return da9052_device_init(da9052, id->driver_data); da9052 60 drivers/mfd/da9052-spi.c struct da9052 *da9052 = spi_get_drvdata(spi); da9052 62 drivers/mfd/da9052-spi.c da9052_device_exit(da9052); da9052 167 drivers/power/supply/da9052-battery.c struct da9052 *da9052; da9052 193 drivers/power/supply/da9052-battery.c ret = da9052_reg_read(bat->da9052, DA9052_ICHG_END_REG); da9052 209 drivers/power/supply/da9052-battery.c ret = da9052_reg_read(bat->da9052, DA9052_ICHG_AV_REG); da9052 233 drivers/power/supply/da9052-battery.c ret = da9052_group_read(bat->da9052, DA9052_STATUS_A_REG, 2, v); da9052 289 drivers/power/supply/da9052-battery.c volt = da9052_adc_manual_read(bat->da9052, DA9052_ADC_MAN_MUXSEL_VBAT); da9052 302 drivers/power/supply/da9052-battery.c bat_temp = da9052_adc_read_temp(bat->da9052); da9052 370 drivers/power/supply/da9052-battery.c adc_temp = da9052_adc_read_temp(bat->da9052); da9052 441 drivers/power/supply/da9052-battery.c virq = regmap_irq_get_virq(bat->da9052->irq_data, irq); da9052 470 drivers/power/supply/da9052-battery.c ret = da9052_reg_read(bat->da9052, DA9052_CHGBUCK_REG); da9052 474 drivers/power/supply/da9052-battery.c if (bat->da9052->chip_id == DA9052) da9052 488 drivers/power/supply/da9052-battery.c return da9052_reg_update(bat->da9052, DA9052_ISET_REG, da9052 534 drivers/power/supply/da9052-battery.c val->intval = da9052_adc_read_temp(bat->da9052); da9052 600 drivers/power/supply/da9052-battery.c bat->da9052 = dev_get_drvdata(pdev->dev.parent); da9052 606 drivers/power/supply/da9052-battery.c pdata = bat->da9052->dev->platform_data; da9052 613 drivers/power/supply/da9052-battery.c ret = da9052_request_irq(bat->da9052, da9052 618 drivers/power/supply/da9052-battery.c dev_err(bat->da9052->dev, da9052 636 drivers/power/supply/da9052-battery.c da9052_free_irq(bat->da9052, da9052_bat_irq_bits[i], bat); da9052 646 drivers/power/supply/da9052-battery.c da9052_free_irq(bat->da9052, da9052_bat_irq_bits[i], bat); da9052 69 drivers/regulator/da9052-regulator.c struct da9052 *da9052; da9052 89 drivers/regulator/da9052-regulator.c ret = da9052_reg_read(regulator->da9052, DA9052_BUCKA_REG + offset/2); da9052 102 drivers/regulator/da9052-regulator.c if (regulator->da9052->chip_id == DA9052) da9052 119 drivers/regulator/da9052-regulator.c if (regulator->da9052->chip_id == DA9052) da9052 139 drivers/regulator/da9052-regulator.c return da9052_reg_update(regulator->da9052, da9052 144 drivers/regulator/da9052-regulator.c return da9052_reg_update(regulator->da9052, da9052 158 drivers/regulator/da9052-regulator.c if ((id == DA9052_ID_BUCK4) && (regulator->da9052->chip_id == DA9052) da9052 189 drivers/regulator/da9052-regulator.c if ((id == DA9052_ID_BUCK4) && (regulator->da9052->chip_id == DA9052) da9052 213 drivers/regulator/da9052-regulator.c ret = da9052_reg_update(regulator->da9052, rdev->desc->vsel_reg, da9052 227 drivers/regulator/da9052-regulator.c ret = da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG, da9052 397 drivers/regulator/da9052-regulator.c struct da9052 *da9052; da9052 405 drivers/regulator/da9052-regulator.c da9052 = dev_get_drvdata(pdev->dev.parent); da9052 406 drivers/regulator/da9052-regulator.c pdata = dev_get_platdata(da9052->dev); da9052 407 drivers/regulator/da9052-regulator.c regulator->da9052 = da9052; da9052 409 drivers/regulator/da9052-regulator.c regulator->info = find_regulator_info(regulator->da9052->chip_id, da9052 416 drivers/regulator/da9052-regulator.c config.dev = da9052->dev; da9052 418 drivers/regulator/da9052-regulator.c config.regmap = da9052->regmap; da9052 20 drivers/rtc/rtc-da9052.c dev_err(rtc->da9052->dev, "%s: " fmt, __func__, ##__VA_ARGS__) da9052 26 drivers/rtc/rtc-da9052.c struct da9052 *da9052; da9052 33 drivers/rtc/rtc-da9052.c ret = da9052_reg_update(rtc->da9052, DA9052_ALARM_Y_REG, da9052 39 drivers/rtc/rtc-da9052.c ret = da9052_reg_update(rtc->da9052, DA9052_ALARM_Y_REG, da9052 63 drivers/rtc/rtc-da9052.c ret = da9052_group_read(rtc->da9052, DA9052_ALARM_MI_REG, 5, &v[0][0]); da9052 70 drivers/rtc/rtc-da9052.c ret = da9052_group_read(rtc->da9052, da9052 101 drivers/rtc/rtc-da9052.c struct da9052 *da9052 = rtc->da9052; da9052 119 drivers/rtc/rtc-da9052.c ret = da9052_reg_update(da9052, DA9052_ALARM_MI_REG, da9052 130 drivers/rtc/rtc-da9052.c ret = da9052_group_write(da9052, DA9052_ALARM_H_REG, 3, v); da9052 134 drivers/rtc/rtc-da9052.c ret = da9052_reg_update(da9052, DA9052_ALARM_Y_REG, da9052 146 drivers/rtc/rtc-da9052.c ret = da9052_reg_read(rtc->da9052, DA9052_ALARM_Y_REG); da9052 163 drivers/rtc/rtc-da9052.c ret = da9052_group_read(rtc->da9052, DA9052_COUNT_S_REG, 6, &v[0][0]); da9052 170 drivers/rtc/rtc-da9052.c ret = da9052_group_read(rtc->da9052, da9052 217 drivers/rtc/rtc-da9052.c ret = da9052_group_write(rtc->da9052, DA9052_COUNT_S_REG, 6, v); da9052 285 drivers/rtc/rtc-da9052.c rtc->da9052 = dev_get_drvdata(pdev->dev.parent); da9052 288 drivers/rtc/rtc-da9052.c ret = da9052_reg_write(rtc->da9052, DA9052_BBAT_CONT_REG, 0xFE); da9052 295 drivers/rtc/rtc-da9052.c ret = da9052_reg_update(rtc->da9052, DA9052_ALARM_Y_REG, da9052 307 drivers/rtc/rtc-da9052.c ret = da9052_request_irq(rtc->da9052, DA9052_IRQ_ALARM, "ALM", da9052 39 drivers/video/backlight/da9052_bl.c struct da9052 *da9052; da9052 58 drivers/video/backlight/da9052_bl.c ret = da9052_reg_write(wleds->da9052, DA9052_BOOST_REG, boost_en); da9052 62 drivers/video/backlight/da9052_bl.c ret = da9052_reg_write(wleds->da9052, DA9052_LED_CONT_REG, i_sink); da9052 66 drivers/video/backlight/da9052_bl.c ret = da9052_reg_write(wleds->da9052, wled_bank[wleds->led_reg], 0x0); da9052 73 drivers/video/backlight/da9052_bl.c ret = da9052_reg_write(wleds->da9052, wled_bank[wleds->led_reg], da9052 115 drivers/video/backlight/da9052_bl.c wleds->da9052 = dev_get_drvdata(pdev->dev.parent); da9052 124 drivers/video/backlight/da9052_bl.c wleds->da9052->dev, wleds, da9052 29 drivers/watchdog/da9052_wdt.c struct da9052 *da9052; da9052 53 drivers/watchdog/da9052_wdt.c struct da9052 *da9052 = driver_data->da9052; da9052 60 drivers/watchdog/da9052_wdt.c ret = da9052_reg_update(da9052, DA9052_CONTROL_D_REG, da9052 63 drivers/watchdog/da9052_wdt.c dev_err(da9052->dev, "Failed to disable watchdog bit, %d\n", da9052 82 drivers/watchdog/da9052_wdt.c ret = da9052_reg_update(da9052, DA9052_CONTROL_D_REG, da9052 86 drivers/watchdog/da9052_wdt.c dev_err(da9052->dev, da9052 111 drivers/watchdog/da9052_wdt.c struct da9052 *da9052 = driver_data->da9052; da9052 124 drivers/watchdog/da9052_wdt.c ret = da9052_reg_update(da9052, DA9052_CONTROL_D_REG, da9052 133 drivers/watchdog/da9052_wdt.c return da9052_reg_update(da9052, DA9052_CONTROL_D_REG, da9052 154 drivers/watchdog/da9052_wdt.c struct da9052 *da9052 = dev_get_drvdata(dev->parent); da9052 162 drivers/watchdog/da9052_wdt.c driver_data->da9052 = da9052; da9052 172 drivers/watchdog/da9052_wdt.c ret = da9052_reg_update(da9052, DA9052_CONTROL_D_REG, da9052 97 include/linux/mfd/da9052/da9052.h int (*fix_io) (struct da9052 *da9052, unsigned char reg); da9052 101 include/linux/mfd/da9052/da9052.h int da9052_adc_manual_read(struct da9052 *da9052, unsigned char channel); da9052 102 include/linux/mfd/da9052/da9052.h int da9052_adc_read_temp(struct da9052 *da9052); da9052 105 include/linux/mfd/da9052/da9052.h static inline int da9052_reg_read(struct da9052 *da9052, unsigned char reg) da9052 109 include/linux/mfd/da9052/da9052.h ret = regmap_read(da9052->regmap, reg, &val); da9052 113 include/linux/mfd/da9052/da9052.h if (da9052->fix_io) { da9052 114 include/linux/mfd/da9052/da9052.h ret = da9052->fix_io(da9052, reg); da9052 122 include/linux/mfd/da9052/da9052.h static inline int da9052_reg_write(struct da9052 *da9052, unsigned char reg, da9052 127 include/linux/mfd/da9052/da9052.h ret = regmap_write(da9052->regmap, reg, val); da9052 131 include/linux/mfd/da9052/da9052.h if (da9052->fix_io) { da9052 132 include/linux/mfd/da9052/da9052.h ret = da9052->fix_io(da9052, reg); da9052 140 include/linux/mfd/da9052/da9052.h static inline int da9052_group_read(struct da9052 *da9052, unsigned char reg, da9052 148 include/linux/mfd/da9052/da9052.h ret = regmap_read(da9052->regmap, reg + i, &tmp); da9052 154 include/linux/mfd/da9052/da9052.h if (da9052->fix_io) { da9052 155 include/linux/mfd/da9052/da9052.h ret = da9052->fix_io(da9052, reg); da9052 163 include/linux/mfd/da9052/da9052.h static inline int da9052_group_write(struct da9052 *da9052, unsigned char reg, da9052 170 include/linux/mfd/da9052/da9052.h ret = regmap_write(da9052->regmap, reg + i, val[i]); da9052 175 include/linux/mfd/da9052/da9052.h if (da9052->fix_io) { da9052 176 include/linux/mfd/da9052/da9052.h ret = da9052->fix_io(da9052, reg); da9052 184 include/linux/mfd/da9052/da9052.h static inline int da9052_reg_update(struct da9052 *da9052, unsigned char reg, da9052 190 include/linux/mfd/da9052/da9052.h ret = regmap_update_bits(da9052->regmap, reg, bit_mask, reg_val); da9052 194 include/linux/mfd/da9052/da9052.h if (da9052->fix_io) { da9052 195 include/linux/mfd/da9052/da9052.h ret = da9052->fix_io(da9052, reg); da9052 203 include/linux/mfd/da9052/da9052.h int da9052_device_init(struct da9052 *da9052, u8 chip_id); da9052 204 include/linux/mfd/da9052/da9052.h void da9052_device_exit(struct da9052 *da9052); da9052 208 include/linux/mfd/da9052/da9052.h int da9052_irq_init(struct da9052 *da9052); da9052 209 include/linux/mfd/da9052/da9052.h int da9052_irq_exit(struct da9052 *da9052); da9052 210 include/linux/mfd/da9052/da9052.h int da9052_request_irq(struct da9052 *da9052, int irq, char *name, da9052 212 include/linux/mfd/da9052/da9052.h void da9052_free_irq(struct da9052 *da9052, int irq, void *data); da9052 214 include/linux/mfd/da9052/da9052.h int da9052_enable_irq(struct da9052 *da9052, int irq); da9052 215 include/linux/mfd/da9052/da9052.h int da9052_disable_irq(struct da9052 *da9052, int irq); da9052 216 include/linux/mfd/da9052/da9052.h int da9052_disable_irq_nosync(struct da9052 *da9052, int irq); da9052 15 include/linux/mfd/da9052/pdata.h struct da9052; da9052 19 include/linux/mfd/da9052/pdata.h int (*init) (struct da9052 *da9052);