| /linux/drivers/usb/typec/tipd/ |
| A D | core.c | 706 tps->data->irq_handler(0, tps); in tps6598x_poll_work() 833 tps->psy = devm_power_supply_register(tps->dev, &tps->psy_desc, in devm_tps6598_psy_register() 1207 ret = tps->data->apply_patch(tps); in tps25750_init() 1223 return tps->data->apply_patch(tps); in tps6598x_init() 1306 if (!tps) in tps6598x_probe() 1364 ret = tps->data->init(tps); in tps6598x_probe() 1399 ret = tps->data->register_port(tps, fwnode); in tps6598x_probe() 1452 tps->data->reset(tps); in tps6598x_probe() 1464 devm_free_irq(tps->dev, client->irq, tps); in tps6598x_remove() 1471 tps->data->reset(tps); in tps6598x_remove() [all …]
|
| /linux/drivers/regulator/ |
| A D | tps62360-regulator.c | 90 if (tps->curr_vset_vsel[tps->lru_index[i]] == req_vsel) { in find_voltage_set_register() 100 tps->lru_index[i] = tps->lru_index[i - 1]; in find_voltage_set_register() 114 ret = regmap_read(tps->regmap, REG_VSET0 + tps->curr_vset_id, &data); in tps62360_dcdc_get_voltage_sel() 244 dev_err(tps->dev, in tps62360_init_dcdc() 332 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps62360_probe() 333 if (!tps) in tps62360_probe() 337 tps->desc.id = 0; in tps62360_probe() 401 tps->lru_index[0] = tps->curr_vset_id; in tps62360_probe() 424 if (tps->vsel0_gpio != NULL && tps->vsel1_gpio != NULL) { in tps62360_probe() 433 tps->lru_index[0] = tps->curr_vset_id; in tps62360_probe() [all …]
|
| A D | tps6507x-regulator.c | 118 err = tps->mfd->read_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_read() 128 return tps->mfd->write_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_write() 135 mutex_lock(&tps->io_lock); in tps6507x_pmic_set_bits() 158 mutex_lock(&tps->io_lock); in tps6507x_pmic_clear_bits() 181 mutex_lock(&tps->io_lock); in tps6507x_pmic_reg_read() 195 mutex_lock(&tps->io_lock); in tps6507x_pmic_reg_write() 389 tps = devm_kzalloc(&pdev->dev, sizeof(*tps), GFP_KERNEL); in tps6507x_pmic_probe() 390 if (!tps) in tps6507x_pmic_probe() 396 tps->mfd = tps6507x_dev; in tps6507x_pmic_probe() 400 tps->info[i] = info; in tps6507x_pmic_probe() [all …]
|
| A D | tps51632-regulator.c | 144 dev_err(tps->dev, in tps51632_init_dcdc() 253 struct tps51632_chip *tps; in tps51632_probe() local 257 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps51632_probe() 258 if (!tps) in tps51632_probe() 261 tps->dev = &client->dev; in tps51632_probe() 263 tps->desc.id = 0; in tps51632_probe() 303 if (IS_ERR(tps->regmap)) { in tps51632_probe() 304 ret = PTR_ERR(tps->regmap); in tps51632_probe() 319 config.driver_data = tps; in tps51632_probe() 320 config.regmap = tps->regmap; in tps51632_probe() [all …]
|
| A D | tps65217-regulator.c | 66 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_enable() local 80 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_disable() local 95 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_set_voltage_sel() local 135 if (!tps->strobes[rid]) in tps65217_pmic_set_suspend_disable() 140 tps->strobes[rid], TPS65217_PROTECT_L1); in tps65217_pmic_set_suspend_disable() 223 tps->strobes = devm_kcalloc(&pdev->dev, in tps65217_regulator_probe() 226 if (!tps->strobes) in tps65217_regulator_probe() 229 platform_set_drvdata(pdev, tps); in tps65217_regulator_probe() 233 config.dev = tps->dev; in tps65217_regulator_probe() 236 config.driver_data = tps; in tps65217_regulator_probe() [all …]
|
| A D | tps65218-regulator.c | 70 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_voltage_sel() local 93 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_enable() local 107 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_disable() local 147 if (!tps->strobes[rid]) { in tps65218_pmic_set_suspend_disable() 149 tps->strobes[rid] = 3; in tps65218_pmic_set_suspend_disable() 156 tps->strobes[rid], TPS65218_PROTECT_L1); in tps65218_pmic_set_suspend_disable() 313 config.dev->of_node = tps->dev->of_node; in tps65218_regulator_probe() 314 config.driver_data = tps; in tps65218_regulator_probe() 315 config.regmap = tps->regmap; in tps65218_regulator_probe() 318 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 | 265 struct tps_pmic *tps; in tps_65023_probe() local 269 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps_65023_probe() 270 if (!tps) in tps_65023_probe() 276 if (IS_ERR(tps->regmap)) { in tps_65023_probe() 277 error = PTR_ERR(tps->regmap); in tps_65023_probe() 285 config.driver_data = tps; in tps_65023_probe() 286 config.regmap = tps->regmap; in tps_65023_probe() 294 &tps->driver_data->desc[i], &config); in tps_65023_probe() 295 if (IS_ERR(tps->rdev[i])) { in tps_65023_probe() 298 return PTR_ERR(tps->rdev[i]); in tps_65023_probe() [all …]
|
| /linux/drivers/mfd/ |
| A D | tps65217.c | 40 mutex_lock(&tps->irq_lock); in tps65217_irq_lock() 61 tps->irq_mask &= ~mask; in tps65217_irq_enable() 69 tps->irq_mask |= mask; in tps65217_irq_disable() 154 tps->irq = irq; in tps65217_irq_init() 161 tps->irq_domain = irq_domain_add_linear(tps->dev->of_node, in tps65217_irq_init() 163 if (!tps->irq_domain) { in tps65217_irq_init() 312 struct tps65217 *tps; in tps65217_probe() local 320 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65217_probe() 321 if (!tps) in tps65217_probe() 347 tps->irq_domain); in tps65217_probe() [all …]
|
| A D | tps65218.c | 94 mutex_lock(&tps->tps_lock); in tps65218_update_bits() 215 dev_err(tps->dev, in tps65218_voltage_set_strict() 236 dev_err(tps->dev, in tps65218_voltage_set_uv_hyst() 271 dev_err(tps->dev, in tps65218_voltage_set_uvlo() 284 struct tps65218 *tps; in tps65218_probe() local 288 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65218_probe() 289 if (!tps) in tps65218_probe() 293 tps->dev = &client->dev; in tps65218_probe() 294 tps->irq = client->irq; in tps65218_probe() 296 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() 533 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65010_probe() 534 if (!tps) in tps65010_probe() 566 tps->por = 1; in tps65010_probe() 571 show_chgconfig(tps->por, "conf/init", tps->chgconf); in tps65010_probe() 587 the_tps = tps; in tps65010_probe() 594 tps->vbus = 100; in tps65010_probe() 601 tps->nmask1 = ~0; in tps65010_probe() [all …]
|
| A D | tps65086.c | 67 struct tps65086 *tps; in tps65086_probe() local 71 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65086_probe() 72 if (!tps) in tps65086_probe() 76 tps->dev = &client->dev; in tps65086_probe() 77 tps->irq = client->irq; in tps65086_probe() 86 ret = regmap_read(tps->regmap, TPS65086_DEVICEID1, &tps->chip_id); in tps65086_probe() 103 if (tps->irq > 0) { in tps65086_probe() 104 ret = regmap_add_irq_chip(tps->regmap, tps->irq, IRQF_ONESHOT, 0, in tps65086_probe() 116 regmap_del_irq_chip(tps->irq, tps->irq_data); in tps65086_probe() 125 if (tps->irq > 0) in tps65086_remove() [all …]
|
| A D | tps65219.c | 44 tps65219_warm_reset(tps); in tps65219_restart() 46 tps65219_cold_reset(tps); in tps65219_restart() 230 struct tps65219 *tps; in tps65219_probe() local 235 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65219_probe() 236 if (!tps) in tps65219_probe() 241 tps->dev = &client->dev; in tps65219_probe() 244 if (IS_ERR(tps->regmap)) { in tps65219_probe() 245 ret = PTR_ERR(tps->regmap); in tps65219_probe() 252 &tps->irq_data); in tps65219_probe() 283 tps); in tps65219_probe() [all …]
|
| A D | tps6594-spi.c | 37 if (tps->use_crc) in tps6594_spi_reg_read() 63 if (tps->use_crc) in tps6594_spi_reg_write() 92 struct tps6594 *tps; in tps6594_spi_probe() local 95 tps = devm_kzalloc(dev, sizeof(*tps), GFP_KERNEL); in tps6594_spi_probe() 96 if (!tps) in tps6594_spi_probe() 99 spi_set_drvdata(spi, tps); in tps6594_spi_probe() 101 tps->dev = dev; in tps6594_spi_probe() 102 tps->reg = spi_get_chipselect(spi, 0); in tps6594_spi_probe() 103 tps->irq = spi->irq; in tps6594_spi_probe() 110 if (tps->chip_id == TPS65224) in tps6594_spi_probe() [all …]
|
| A D | tps65912-i2c.c | 26 struct tps65912 *tps; in tps65912_i2c_probe() local 28 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65912_i2c_probe() 29 if (!tps) in tps65912_i2c_probe() 32 i2c_set_clientdata(client, tps); in tps65912_i2c_probe() 33 tps->dev = &client->dev; in tps65912_i2c_probe() 34 tps->irq = client->irq; in tps65912_i2c_probe() 36 tps->regmap = devm_regmap_init_i2c(client, &tps65912_regmap_config); in tps65912_i2c_probe() 37 if (IS_ERR(tps->regmap)) { in tps65912_i2c_probe() 38 dev_err(tps->dev, "Failed to initialize register map\n"); in tps65912_i2c_probe() 39 return PTR_ERR(tps->regmap); in tps65912_i2c_probe() [all …]
|
| A D | tps65912-spi.c | 26 struct tps65912 *tps; in tps65912_spi_probe() local 28 tps = devm_kzalloc(&spi->dev, sizeof(*tps), GFP_KERNEL); in tps65912_spi_probe() 29 if (!tps) in tps65912_spi_probe() 32 spi_set_drvdata(spi, tps); in tps65912_spi_probe() 33 tps->dev = &spi->dev; in tps65912_spi_probe() 34 tps->irq = spi->irq; in tps65912_spi_probe() 36 tps->regmap = devm_regmap_init_spi(spi, &tps65912_regmap_config); in tps65912_spi_probe() 37 if (IS_ERR(tps->regmap)) { in tps65912_spi_probe() 38 dev_err(tps->dev, "Failed to initialize register map\n"); in tps65912_spi_probe() 39 return PTR_ERR(tps->regmap); in tps65912_spi_probe() [all …]
|
| A D | tps6594-i2c.c | 116 if (tps->use_crc) { in tps6594_i2c_read() 154 if (tps->use_crc) { in tps6594_i2c_write() 207 struct tps6594 *tps; in tps6594_i2c_probe() local 210 tps = devm_kzalloc(dev, sizeof(*tps), GFP_KERNEL); in tps6594_i2c_probe() 211 if (!tps) in tps6594_i2c_probe() 214 i2c_set_clientdata(client, tps); in tps6594_i2c_probe() 216 tps->dev = dev; in tps6594_i2c_probe() 217 tps->reg = client->addr; in tps6594_i2c_probe() 218 tps->irq = client->irq; in tps6594_i2c_probe() 225 if (tps->chip_id == TPS65224) in tps6594_i2c_probe() [all …]
|
| /linux/drivers/rtc/ |
| A D | rtc-tps6594.c | 53 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_alarm_irq_enable() local 80 return regmap_set_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_shadow_timestamp() 87 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_read_time() local 98 ret = tps6594_rtc_shadow_timestamp(dev, tps); in tps6594_rtc_read_time() 122 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_set_time() local 154 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_read_alarm() local 181 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_set_alarm() local 210 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_set_calibration() local 240 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_get_calibration() local 336 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_interrupt() local [all …]
|
| 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/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/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() 394 while (tps) { in put_tracepoints_path() 397 tps = tps->next; in put_tracepoints_path() 595 struct tracepoint_path *tps; in tracing_data_get() local 602 if (!tps) in tracing_data_get() [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/gpio/ |
| A D | gpio-tps65219.c | 23 struct tps65219 *tps; member 34 ret = regmap_read(gpio->tps->regmap, TPS65219_REG_MFP_1_CONFIG, &val); in tps65219_gpio_get_direction() 44 struct device *dev = gpio->tps->dev; in tps65219_gpio_get() 52 ret = regmap_read(gpio->tps->regmap, TPS65219_REG_MFP_CTRL, &val); in tps65219_gpio_get() 73 struct device *dev = gpio->tps->dev; in tps65219_gpio_set() 89 struct device *dev = gpio->tps->dev; in tps65219_gpio_change_direction() 100 int ret = regmap_update_bits(gpio->tps->regmap, TPS65219_REG_MFP_1_CONFIG, in tps65219_gpio_change_direction() 120 struct device *dev = gpio->tps->dev; in tps65219_gpio_direction_input() 160 struct tps65219 *tps = dev_get_drvdata(pdev->dev.parent); in tps65219_gpio_probe() local 167 gpio->tps = tps; in tps65219_gpio_probe() [all …]
|
| /linux/drivers/misc/ |
| A D | tps6594-esm.c | 35 struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent); in tps6594_esm_probe() local 48 ret = regmap_read(tps->regmap, TPS6594_REG_DEV_REV, &rev); in tps6594_esm_probe() 68 ret = regmap_set_bits(tps->regmap, TPS6594_REG_ESM_SOC_MODE_CFG, in tps6594_esm_probe() 73 ret = regmap_set_bits(tps->regmap, TPS6594_REG_ESM_SOC_START_REG, in tps6594_esm_probe() 86 struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent); in tps6594_esm_remove() local 90 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_ESM_SOC_START_REG, in tps6594_esm_remove() 97 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_ESM_SOC_MODE_CFG, in tps6594_esm_remove() 109 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_esm_suspend() local 112 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_ESM_SOC_START_REG, in tps6594_esm_suspend() 122 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_esm_resume() local [all …]
|