/linux/drivers/usb/typec/tipd/ |
A D | core.c | 125 if (!tps->i2c_protocol) in tps6598x_block_read() 147 if (!tps->i2c_protocol) in tps6598x_block_write() 236 if (tps->partner) in tps6598x_connect() 261 tps->partner = typec_register_partner(tps->port, &desc); in tps6598x_connect() 277 tps->partner = NULL; in tps6598x_disconnect() 356 mutex_lock(&tps->lock); in tps6598x_dr_set() 386 mutex_lock(&tps->lock); in tps6598x_pr_set() 694 tps->psy = devm_power_supply_register(tps->dev, &tps->psy_desc, in devm_tps6598_psy_register() 704 struct tps6598x *tps; in tps6598x_probe() local 712 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps6598x_probe() [all …]
|
/linux/drivers/regulator/ |
A D | tps62360-regulator.c | 103 if (tps->curr_vset_vsel[tps->lru_index[i]] == req_vsel) { in find_voltage_set_register() 113 tps->lru_index[i] = tps->lru_index[i - 1]; in find_voltage_set_register() 127 ret = regmap_read(tps->regmap, REG_VSET0 + tps->curr_vset_id, &data); in tps62360_dcdc_get_voltage_sel() 352 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps62360_probe() 353 if (!tps) in tps62360_probe() 357 tps->desc.id = 0; in tps62360_probe() 421 tps->lru_index[0] = tps->curr_vset_id; in tps62360_probe() 444 if (tps->vsel0_gpio != NULL && tps->vsel1_gpio != NULL) { in tps62360_probe() 453 tps->lru_index[0] = tps->curr_vset_id; in tps62360_probe() 454 tps->lru_index[tps->curr_vset_id] = 0; in tps62360_probe() [all …]
|
A D | tps6507x-regulator.c | 126 err = tps->mfd->read_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_read() 136 return tps->mfd->write_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_write() 143 mutex_lock(&tps->io_lock); in tps6507x_pmic_set_bits() 166 mutex_lock(&tps->io_lock); in tps6507x_pmic_clear_bits() 189 mutex_lock(&tps->io_lock); in tps6507x_pmic_reg_read() 203 mutex_lock(&tps->io_lock); in tps6507x_pmic_reg_write() 397 tps = devm_kzalloc(&pdev->dev, sizeof(*tps), GFP_KERNEL); in tps6507x_pmic_probe() 398 if (!tps) in tps6507x_pmic_probe() 404 tps->mfd = tps6507x_dev; in tps6507x_pmic_probe() 408 tps->info[i] = info; in tps6507x_pmic_probe() [all …]
|
A D | tps51632-regulator.c | 158 dev_err(tps->dev, in tps51632_init_dcdc() 268 struct tps51632_chip *tps; in tps51632_probe() local 282 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps51632_probe() 283 if (!tps) in tps51632_probe() 286 tps->dev = &client->dev; in tps51632_probe() 288 tps->desc.id = 0; in tps51632_probe() 328 if (IS_ERR(tps->regmap)) { in tps51632_probe() 329 ret = PTR_ERR(tps->regmap); in tps51632_probe() 344 config.driver_data = tps; in tps51632_probe() 345 config.regmap = tps->regmap; in tps51632_probe() [all …]
|
A D | tps65217-regulator.c | 74 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_enable() local 88 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_disable() local 103 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_set_voltage_sel() local 143 if (!tps->strobes[rid]) in tps65217_pmic_set_suspend_disable() 148 tps->strobes[rid], TPS65217_PROTECT_L1); in tps65217_pmic_set_suspend_disable() 231 tps->strobes = devm_kcalloc(&pdev->dev, in tps65217_regulator_probe() 234 if (!tps->strobes) in tps65217_regulator_probe() 237 platform_set_drvdata(pdev, tps); in tps65217_regulator_probe() 241 config.dev = tps->dev; in tps65217_regulator_probe() 244 config.driver_data = tps; in tps65217_regulator_probe() [all …]
|
A D | tps65218-regulator.c | 78 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_voltage_sel() local 101 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_enable() local 115 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_disable() local 155 if (!tps->strobes[rid]) { in tps65218_pmic_set_suspend_disable() 157 tps->strobes[rid] = 3; in tps65218_pmic_set_suspend_disable() 164 tps->strobes[rid], TPS65218_PROTECT_L1); in tps65218_pmic_set_suspend_disable() 321 config.dev->of_node = tps->dev->of_node; in tps65218_regulator_probe() 322 config.driver_data = tps; in tps65218_regulator_probe() 323 config.regmap = tps->regmap; in tps65218_regulator_probe() 326 tps->strobes = devm_kcalloc(&pdev->dev, in tps65218_regulator_probe() [all …]
|
A D | tps65132-regulator.c | 63 struct tps65132_regulator *tps = rdev_get_drvdata(rdev); in tps65132_regulator_enable() local 65 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_enable() 89 struct tps65132_regulator *tps = rdev_get_drvdata(rdev); in tps65132_regulator_disable() local 91 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_disable() 135 struct tps65132_regulator *tps = config->driver_data; in tps65132_of_parse_cb() local 226 struct tps65132_regulator *tps; in tps65132_probe() local 233 tps = devm_kzalloc(dev, sizeof(*tps), GFP_KERNEL); in tps65132_probe() 234 if (!tps) in tps65132_probe() 244 i2c_set_clientdata(client, tps); in tps65132_probe() 245 tps->dev = dev; in tps65132_probe() [all …]
|
A D | tps65023-regulator.c | 273 struct tps_pmic *tps; in tps_65023_probe() local 277 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps_65023_probe() 278 if (!tps) in tps_65023_probe() 284 if (IS_ERR(tps->regmap)) { in tps_65023_probe() 285 error = PTR_ERR(tps->regmap); in tps_65023_probe() 293 config.driver_data = tps; in tps_65023_probe() 294 config.regmap = tps->regmap; in tps_65023_probe() 302 &tps->driver_data->desc[i], &config); in tps_65023_probe() 303 if (IS_ERR(tps->rdev[i])) { in tps_65023_probe() 306 return PTR_ERR(tps->rdev[i]); in tps_65023_probe() [all …]
|
/linux/drivers/mfd/ |
A D | tps65217.c | 49 mutex_lock(&tps->irq_lock); in tps65217_irq_lock() 70 tps->irq_mask &= ~mask; in tps65217_irq_enable() 78 tps->irq_mask |= mask; in tps65217_irq_disable() 163 tps->irq = irq; in tps65217_irq_init() 170 tps->irq_domain = irq_domain_add_linear(tps->dev->of_node, in tps65217_irq_init() 172 if (!tps->irq_domain) { in tps65217_irq_init() 321 struct tps65217 *tps; in tps65217_probe() local 329 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65217_probe() 330 if (!tps) in tps65217_probe() 356 tps->irq_domain); in tps65217_probe() [all …]
|
A D | tps65218.c | 103 mutex_lock(&tps->tps_lock); in tps65218_update_bits() 224 dev_err(tps->dev, in tps65218_voltage_set_strict() 245 dev_err(tps->dev, in tps65218_voltage_set_uv_hyst() 280 dev_err(tps->dev, in tps65218_voltage_set_uvlo() 294 struct tps65218 *tps; in tps65218_probe() local 298 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65218_probe() 299 if (!tps) in tps65218_probe() 303 tps->dev = &client->dev; in tps65218_probe() 304 tps->irq = client->irq; in tps65218_probe() 306 if (IS_ERR(tps->regmap)) { in tps65218_probe() [all …]
|
A D | tps65010.c | 317 if (tps->nmask2) { in tps65010_interrupt() 356 show_chgconfig(tps->por, "conf", tps->chgconf); in tps65010_interrupt() 386 if ((tps->model != TPS65013 || !tps->charging) in tps65010_interrupt() 538 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65010_probe() 539 if (!tps) in tps65010_probe() 571 tps->por = 1; in tps65010_probe() 576 show_chgconfig(tps->por, "conf/init", tps->chgconf); in tps65010_probe() 592 the_tps = tps; in tps65010_probe() 599 tps->vbus = 100; in tps65010_probe() 606 tps->nmask1 = ~0; in tps65010_probe() [all …]
|
A D | tps65086.c | 75 struct tps65086 *tps; in tps65086_probe() local 79 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65086_probe() 80 if (!tps) in tps65086_probe() 84 tps->dev = &client->dev; in tps65086_probe() 85 tps->irq = client->irq; in tps65086_probe() 104 if (tps->irq > 0) { in tps65086_probe() 105 ret = regmap_add_irq_chip(tps->regmap, tps->irq, IRQF_ONESHOT, 0, in tps65086_probe() 116 if (ret && tps->irq > 0) in tps65086_probe() 117 regmap_del_irq_chip(tps->irq, tps->irq_data); in tps65086_probe() 126 if (tps->irq > 0) in tps65086_remove() [all …]
|
A D | tps65912-i2c.c | 35 struct tps65912 *tps; in tps65912_i2c_probe() local 37 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65912_i2c_probe() 38 if (!tps) in tps65912_i2c_probe() 41 i2c_set_clientdata(client, tps); in tps65912_i2c_probe() 42 tps->dev = &client->dev; in tps65912_i2c_probe() 43 tps->irq = client->irq; in tps65912_i2c_probe() 46 if (IS_ERR(tps->regmap)) { in tps65912_i2c_probe() 48 return PTR_ERR(tps->regmap); in tps65912_i2c_probe() 51 return tps65912_device_init(tps); in tps65912_i2c_probe() 56 struct tps65912 *tps = i2c_get_clientdata(client); in tps65912_i2c_remove() local [all …]
|
A D | tps65912-spi.c | 34 struct tps65912 *tps; in tps65912_spi_probe() local 36 tps = devm_kzalloc(&spi->dev, sizeof(*tps), GFP_KERNEL); in tps65912_spi_probe() 37 if (!tps) in tps65912_spi_probe() 40 spi_set_drvdata(spi, tps); in tps65912_spi_probe() 41 tps->dev = &spi->dev; in tps65912_spi_probe() 42 tps->irq = spi->irq; in tps65912_spi_probe() 45 if (IS_ERR(tps->regmap)) { in tps65912_spi_probe() 47 return PTR_ERR(tps->regmap); in tps65912_spi_probe() 50 return tps65912_device_init(tps); in tps65912_spi_probe() 55 struct tps65912 *tps = spi_get_drvdata(spi); in tps65912_spi_remove() local [all …]
|
A D | tps65912-core.c | 97 int tps65912_device_init(struct tps65912 *tps) in tps65912_device_init() argument 101 ret = regmap_add_irq_chip(tps->regmap, tps->irq, IRQF_ONESHOT, 0, in tps65912_device_init() 102 &tps65912_irq_chip, &tps->irq_data); in tps65912_device_init() 106 ret = mfd_add_devices(tps->dev, PLATFORM_DEVID_AUTO, tps65912_cells, in tps65912_device_init() 108 regmap_irq_get_domain(tps->irq_data)); in tps65912_device_init() 110 regmap_del_irq_chip(tps->irq, tps->irq_data); in tps65912_device_init() 118 void tps65912_device_exit(struct tps65912 *tps) in tps65912_device_exit() argument 120 regmap_del_irq_chip(tps->irq, tps->irq_data); in tps65912_device_exit()
|
/linux/tools/perf/util/ |
A D | trace-event-info.c | 146 while (tps) { in name_in_tp_list() 147 if (!strcmp(sys, tps->name)) in name_in_tp_list() 149 tps = tps->next; in name_in_tp_list() 244 while (tps) { in system_in_tp_list() 245 if (!strcmp(sys, tps->system)) in system_in_tp_list() 247 tps = tps->next; in system_in_tp_list() 393 while (tps) { in put_tracepoints_path() 396 tps = tps->next; in put_tracepoints_path() 494 struct tracepoint_path *tps; in tracing_data_get() local 501 if (!tps) in tracing_data_get() [all …]
|
/linux/drivers/media/usb/dvb-usb/ |
A D | cinergyT2-fe.c | 31 uint16_t tps = 0; in compute_tps() local 35 tps |= (1 << 7); in compute_tps() 38 tps |= (2 << 7); in compute_tps() 41 tps |= (3 << 7); in compute_tps() 44 tps |= (4 << 7); in compute_tps() 54 tps |= (1 << 4); in compute_tps() 57 tps |= (2 << 4); in compute_tps() 60 tps |= (3 << 4); in compute_tps() 63 tps |= (4 << 4); in compute_tps() 85 tps |= (1 << 0); in compute_tps() [all …]
|
/linux/drivers/media/dvb-frontends/ |
A D | mt352.c | 166 tps |= (1 << 7); in mt352_set_parameters() 169 tps |= (2 << 7); in mt352_set_parameters() 172 tps |= (3 << 7); in mt352_set_parameters() 175 tps |= (4 << 7); in mt352_set_parameters() 186 tps |= (1 << 4); in mt352_set_parameters() 189 tps |= (2 << 4); in mt352_set_parameters() 192 tps |= (3 << 4); in mt352_set_parameters() 195 tps |= (4 << 4); in mt352_set_parameters() 228 tps |= (1 << 0); in mt352_set_parameters() 239 tps |= (1 << 2); in mt352_set_parameters() [all …]
|
A D | zl10353.c | 172 u16 tps = 0; in zl10353_set_parameters() local 223 tps |= (1 << 7); in zl10353_set_parameters() 226 tps |= (2 << 7); in zl10353_set_parameters() 229 tps |= (3 << 7); in zl10353_set_parameters() 232 tps |= (4 << 7); in zl10353_set_parameters() 243 tps |= (1 << 4); in zl10353_set_parameters() 246 tps |= (2 << 4); in zl10353_set_parameters() 249 tps |= (3 << 4); in zl10353_set_parameters() 252 tps |= (4 << 4); in zl10353_set_parameters() 285 tps |= (1 << 0); in zl10353_set_parameters() [all …]
|
/linux/drivers/rtc/ |
A D | rtc-tps65910.c | 50 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_alarm_irq_enable() local 71 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_read_time() local 75 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL, in tps65910_rtc_read_time() 102 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_time() local 113 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL, in tps65910_rtc_set_time() 129 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL, in tps65910_rtc_set_time() 144 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_read_alarm() local 174 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_alarm() local 205 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_calibration() local 250 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_get_calibration() local [all …]
|
/linux/drivers/gpio/ |
A D | gpio-tps65912.c | 20 struct tps65912 *tps; member 30 ret = regmap_read(gpio->tps->regmap, TPS65912_GPIO1 + offset, &val); in tps65912_gpio_get_direction() 44 return regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, in tps65912_gpio_direction_input() 54 regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, in tps65912_gpio_direction_output() 57 return regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, in tps65912_gpio_direction_output() 66 ret = regmap_read(gpio->tps->regmap, TPS65912_GPIO1 + offset, &val); in tps65912_gpio_get() 81 regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, in tps65912_gpio_set() 100 struct tps65912 *tps = dev_get_drvdata(pdev->dev.parent); in tps65912_gpio_probe() local 107 gpio->tps = dev_get_drvdata(pdev->dev.parent); in tps65912_gpio_probe() 109 gpio->gpio_chip.parent = tps->dev; in tps65912_gpio_probe()
|
A D | gpio-tps65086.c | 17 struct tps65086 *tps; member 40 regmap_update_bits(gpio->tps->regmap, TPS65086_GPOCTRL, in tps65086_gpio_direction_output() 51 ret = regmap_read(gpio->tps->regmap, TPS65086_GPOCTRL, &val); in tps65086_gpio_get() 63 regmap_update_bits(gpio->tps->regmap, TPS65086_GPOCTRL, in tps65086_gpio_set() 91 gpio->tps = dev_get_drvdata(pdev->dev.parent); in tps65086_gpio_probe() 93 gpio->chip.parent = gpio->tps->dev; in tps65086_gpio_probe()
|
/linux/include/linux/mfd/ |
A D | tps65090.h | 116 struct tps65090 *tps = dev_get_drvdata(dev); in tps65090_write() local 118 return regmap_write(tps->rmap, reg, val); in tps65090_write() 123 struct tps65090 *tps = dev_get_drvdata(dev); in tps65090_read() local 127 ret = regmap_read(tps->rmap, reg, &temp_val); in tps65090_read() 136 struct tps65090 *tps = dev_get_drvdata(dev); in tps65090_set_bits() local 138 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), ~0u); in tps65090_set_bits() 144 struct tps65090 *tps = dev_get_drvdata(dev); in tps65090_clr_bits() local 146 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), 0u); in tps65090_clr_bits()
|
/linux/drivers/video/backlight/ |
A D | tps65217_bl.c | 29 struct tps65217 *tps; member 39 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1, in tps65217_bl_enable() 59 rc = tps65217_clear_bits(tps65217_bl->tps, in tps65217_bl_disable() 83 rc = tps65217_reg_write(tps65217_bl->tps, in tps65217_bl_update_status() 121 rc = tps65217_clear_bits(tps65217_bl->tps, in tps65217_bl_hw_init() 138 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1, in tps65217_bl_hw_init() 159 rc = tps65217_set_bits(tps65217_bl->tps, in tps65217_bl_hw_init() 178 struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); in tps65217_bl_parse_dt() local 183 node = of_get_child_by_name(tps->dev->of_node, "backlight"); in tps65217_bl_parse_dt() 264 struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); in tps65217_bl_probe() local [all …]
|
/linux/drivers/power/supply/ |
A D | tps65217_charger.c | 31 struct tps65217 *tps; member 67 ret = tps65217_clear_bits(charger->tps, TPS65217_REG_CHGCONFIG1, in tps65217_config_charger() 88 ret = tps65217_set_bits(charger->tps, TPS65217_REG_CHGCONFIG1, in tps65217_enable_charging() 124 ret = tps65217_reg_read(charger->tps, TPS65217_REG_STATUS, &val); in tps65217_charger_irq() 148 ret = tps65217_reg_read(charger->tps, TPS65217_REG_CHGCONFIG0, &val); in tps65217_charger_irq() 186 struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); in tps65217_charger_probe() local 199 charger->tps = tps; in tps65217_charger_probe()
|