/linux-6.3-rc2/drivers/usb/typec/tipd/ |
A D | core.c | 239 if (tps->partner) in tps6598x_connect() 265 tps->partner = typec_register_partner(tps->port, &desc); in tps6598x_connect() 281 tps->partner = NULL; in tps6598x_disconnect() 690 tps->psy = devm_power_supply_register(tps->dev, &tps->psy_desc, in devm_tps6598_psy_register() 708 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps6598x_probe() 709 if (!tps) in tps6598x_probe() 830 ret = tps6598x_read16(tps, TPS_REG_POWER_STATUS, &tps->pwr_status); in tps6598x_probe() 850 tps->wakeup = device_property_read_bool(tps->dev, "wakeup-source"); in tps6598x_probe() 851 if (tps->wakeup) { in tps6598x_probe() 885 if (tps->wakeup) { in tps6598x_suspend() [all …]
|
/linux-6.3-rc2/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() 339 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps62360_probe() 340 if (!tps) in tps62360_probe() 344 tps->desc.id = 0; in tps62360_probe() 408 tps->lru_index[0] = tps->curr_vset_id; in tps62360_probe() 431 if (tps->vsel0_gpio != NULL && tps->vsel1_gpio != NULL) { in tps62360_probe() 440 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 | 145 dev_err(tps->dev, in tps51632_init_dcdc() 254 struct tps51632_chip *tps; in tps51632_probe() local 268 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps51632_probe() 269 if (!tps) in tps51632_probe() 272 tps->dev = &client->dev; in tps51632_probe() 274 tps->desc.id = 0; in tps51632_probe() 314 if (IS_ERR(tps->regmap)) { in tps51632_probe() 315 ret = PTR_ERR(tps->regmap); in tps51632_probe() 330 config.driver_data = tps; in tps51632_probe() 331 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 …]
|
A D | tps65219-regulator.c | 141 struct tps65219 *tps = rdev_get_drvdata(dev); in tps65219_set_mode() local 149 return regmap_clear_bits(tps->regmap, in tps65219_set_mode() 159 struct tps65219 *tps = rdev_get_drvdata(dev); in tps65219_get_mode() local 165 dev_dbg(tps->dev, "%s failed for regulator %s: %d ", in tps65219_get_mode() 317 config.dev = tps->dev; in tps65219_regulator_probe() 318 config.driver_data = tps; in tps65219_regulator_probe() 319 config.regmap = tps->regmap; in tps65219_regulator_probe() 334 irq_data = devm_kmalloc(tps->dev, in tps65219_regulator_probe() 348 irq_data[i].dev = tps->dev; in tps65219_regulator_probe() 353 dev_err(tps->dev, "Failed to get rdev for %s\n", in tps65219_regulator_probe() [all …]
|
/linux-6.3-rc2/drivers/mfd/ |
A D | tps65217.c | 41 mutex_lock(&tps->irq_lock); in tps65217_irq_lock() 62 tps->irq_mask &= ~mask; in tps65217_irq_enable() 70 tps->irq_mask |= mask; in tps65217_irq_disable() 155 tps->irq = irq; in tps65217_irq_init() 162 tps->irq_domain = irq_domain_add_linear(tps->dev->of_node, in tps65217_irq_init() 164 if (!tps->irq_domain) { in tps65217_irq_init() 313 struct tps65217 *tps; in tps65217_probe() local 321 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65217_probe() 322 if (!tps) in tps65217_probe() 348 tps->irq_domain); in tps65217_probe() [all …]
|
A D | tps65218.c | 95 mutex_lock(&tps->tps_lock); in tps65218_update_bits() 216 dev_err(tps->dev, in tps65218_voltage_set_strict() 237 dev_err(tps->dev, in tps65218_voltage_set_uv_hyst() 272 dev_err(tps->dev, in tps65218_voltage_set_uvlo() 285 struct tps65218 *tps; in tps65218_probe() local 289 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65218_probe() 290 if (!tps) in tps65218_probe() 294 tps->dev = &client->dev; in tps65218_probe() 295 tps->irq = client->irq; in tps65218_probe() 297 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() 537 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65010_probe() 538 if (!tps) in tps65010_probe() 570 tps->por = 1; in tps65010_probe() 575 show_chgconfig(tps->por, "conf/init", tps->chgconf); in tps65010_probe() 591 the_tps = tps; in tps65010_probe() 598 tps->vbus = 100; in tps65010_probe() 605 tps->nmask1 = ~0; in tps65010_probe() [all …]
|
A D | tps65086.c | 66 struct tps65086 *tps; in tps65086_probe() local 70 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65086_probe() 71 if (!tps) in tps65086_probe() 75 tps->dev = &client->dev; in tps65086_probe() 76 tps->irq = client->irq; in tps65086_probe() 95 if (tps->irq > 0) { in tps65086_probe() 96 ret = regmap_add_irq_chip(tps->regmap, tps->irq, IRQF_ONESHOT, 0, in tps65086_probe() 107 if (ret && tps->irq > 0) in tps65086_probe() 108 regmap_del_irq_chip(tps->irq, tps->irq_data); in tps65086_probe() 117 if (tps->irq > 0) in tps65086_remove() [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() 37 if (IS_ERR(tps->regmap)) { in tps65912_i2c_probe() 39 return PTR_ERR(tps->regmap); in tps65912_i2c_probe() 42 return tps65912_device_init(tps); in tps65912_i2c_probe() 47 struct tps65912 *tps = i2c_get_clientdata(client); in tps65912_i2c_remove() local [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() 37 if (IS_ERR(tps->regmap)) { in tps65912_spi_probe() 39 return PTR_ERR(tps->regmap); in tps65912_spi_probe() 42 return tps65912_device_init(tps); in tps65912_spi_probe() 47 struct tps65912 *tps = spi_get_drvdata(spi); in tps65912_spi_remove() local [all …]
|
A D | tps65219.c | 31 struct tps65219 *tps; in tps65219_restart() local 36 tps65219_warm_reset(tps); in tps65219_restart() 38 tps65219_cold_reset(tps); in tps65219_restart() 221 struct tps65219 *tps; in tps65219_probe() local 226 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65219_probe() 227 if (!tps) in tps65219_probe() 232 tps->dev = &client->dev; in tps65219_probe() 235 if (IS_ERR(tps->regmap)) { in tps65219_probe() 236 ret = PTR_ERR(tps->regmap); in tps65219_probe() 243 &tps->irq_data); in tps65219_probe() [all …]
|
A D | tps65912-core.c | 89 int tps65912_device_init(struct tps65912 *tps) in tps65912_device_init() argument 93 ret = regmap_add_irq_chip(tps->regmap, tps->irq, IRQF_ONESHOT, 0, in tps65912_device_init() 94 &tps65912_irq_chip, &tps->irq_data); in tps65912_device_init() 98 ret = mfd_add_devices(tps->dev, PLATFORM_DEVID_AUTO, tps65912_cells, in tps65912_device_init() 100 regmap_irq_get_domain(tps->irq_data)); in tps65912_device_init() 102 regmap_del_irq_chip(tps->irq, tps->irq_data); in tps65912_device_init() 110 void tps65912_device_exit(struct tps65912 *tps) in tps65912_device_exit() argument 112 regmap_del_irq_chip(tps->irq, tps->irq_data); in tps65912_device_exit()
|
/linux-6.3-rc2/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-6.3-rc2/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() 582 struct tracepoint_path *tps; in tracing_data_get() local 589 if (!tps) in tracing_data_get() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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()
|
/linux-6.3-rc2/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-6.3-rc2/drivers/video/backlight/ |
A D | tps65217_bl.c | 21 struct tps65217 *tps; member 31 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1, in tps65217_bl_enable() 51 rc = tps65217_clear_bits(tps65217_bl->tps, in tps65217_bl_disable() 75 rc = tps65217_reg_write(tps65217_bl->tps, in tps65217_bl_update_status() 113 rc = tps65217_clear_bits(tps65217_bl->tps, in tps65217_bl_hw_init() 130 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1, in tps65217_bl_hw_init() 151 rc = tps65217_set_bits(tps65217_bl->tps, in tps65217_bl_hw_init() 170 struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); in tps65217_bl_parse_dt() local 175 node = of_get_child_by_name(tps->dev->of_node, "backlight"); in tps65217_bl_parse_dt() 256 struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); in tps65217_bl_probe() local [all …]
|