/linux-master/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_dp_training_dpia.c | 202 static enum dc_status convert_trng_ptn_to_trng_stg(enum dc_dp_training_pattern tps, enum dpia_set_config_ts *ts) argument 206 switch (tps) {
|
/linux-master/drivers/regulator/ |
H A D | tps62360-regulator.c | 48 /* tps 62360 chip information */ 81 static bool find_voltage_set_register(struct tps62360_chip *tps, argument 86 int new_vset_reg = tps->lru_index[3]; 90 if (tps->curr_vset_vsel[tps->lru_index[i]] == req_vsel) { 91 new_vset_reg = tps->lru_index[i]; 100 tps->lru_index[i] = tps->lru_index[i - 1]; 102 tps->lru_index[0] = new_vset_reg; 109 struct tps62360_chip *tps local 127 struct tps62360_chip *tps = rdev_get_drvdata(dev); local 163 struct tps62360_chip *tps = rdev_get_drvdata(rdev); local 208 struct tps62360_chip *tps = rdev_get_drvdata(rdev); local 232 tps62360_init_dcdc(struct tps62360_chip *tps, struct tps62360_regulator_platform_data *pdata) argument 324 struct tps62360_chip *tps; local 464 struct tps62360_chip *tps = i2c_get_clientdata(client); local [all...] |
H A D | tps51632-regulator.c | 82 struct tps51632_chip *tps = rdev_get_drvdata(rdev); local 91 ret = regmap_write(tps->regmap, TPS51632_SLEW_REGS, BIT(bit)); 93 dev_err(tps->dev, "SLEW reg write failed, err %d\n", ret); 105 static int tps51632_init_dcdc(struct tps51632_chip *tps, argument 117 ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_BASE_REG, vsel); 119 dev_err(tps->dev, "BASE reg write failed, err %d\n", ret); 134 ret = regmap_read(tps->regmap, TPS51632_VMAX_REG, &vmax); 136 dev_err(tps->dev, "VMAX read failed, err %d\n", ret); 141 ret = regmap_write(tps->regmap, TPS51632_VMAX_REG, 144 dev_err(tps 253 struct tps51632_chip *tps; local [all...] |
H A D | max8973-regulator.c | 130 static bool find_voltage_set_register(struct max8973_chip *tps, argument 135 int new_vout_reg = tps->lru_index[MAX8973_MAX_VOUT_REG - 1]; 139 if (tps->curr_vout_val[tps->lru_index[i]] == req_vsel) { 140 new_vout_reg = tps->lru_index[i]; 149 tps->lru_index[i] = tps->lru_index[i - 1]; 151 tps->lru_index[0] = new_vout_reg;
|
H A D | tps65132-regulator.c | 63 struct tps65132_regulator *tps = rdev_get_drvdata(rdev); local 65 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; 78 dev_err(tps->dev, "Failed to disable active discharge: %d\n", 89 struct tps65132_regulator *tps = rdev_get_drvdata(rdev); local 91 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; 110 struct tps65132_regulator *tps = rdev_get_drvdata(rdev); local 112 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; 135 struct tps65132_regulator *tps = config->driver_data; local 136 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[desc->id]; 139 rpdata->en_gpiod = devm_fwnode_gpiod_get(tps 226 struct tps65132_regulator *tps; local [all...] |
H A D | tps6594-regulator.c | 376 struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent); local 387 irq_data[*irq_idx].dev = tps->dev; 391 error = devm_request_threaded_irq(tps->dev, irq, NULL, 395 dev_err(tps->dev, "tps6594 failed to request %s IRQ %d: %d\n", 406 struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent); local 433 config.dev = tps->dev; 434 config.driver_data = tps; 435 config.regmap = tps->regmap; 446 np = of_find_node_by_name(tps->dev->of_node, multiphases[multi]); 449 if (of_node_cmp(of_node_full_name(np_pmic_parent), tps [all...] |
/linux-master/drivers/usb/typec/tipd/ |
H A D | core.c | 114 int (*register_port)(struct tps6598x *tps, struct fwnode_handle *node); 117 int (*apply_patch)(struct tps6598x *tps); 118 int (*init)(struct tps6598x *tps); 119 int (*reset)(struct tps6598x *tps); 166 tps6598x_block_read(struct tps6598x *tps, u8 reg, void *val, size_t len) argument 174 if (!tps->i2c_protocol) 175 return regmap_raw_read(tps->regmap, reg, val, len); 177 ret = regmap_raw_read(tps->regmap, reg, data, len + 1); 188 static int tps6598x_block_write(struct tps6598x *tps, u8 reg, argument 196 if (!tps 205 tps6598x_read8(struct tps6598x *tps, u8 reg, u8 *val) argument 210 tps6598x_read16(struct tps6598x *tps, u8 reg, u16 *val) argument 215 tps6598x_read32(struct tps6598x *tps, u8 reg, u32 *val) argument 220 tps6598x_read64(struct tps6598x *tps, u8 reg, u64 *val) argument 225 tps6598x_write8(struct tps6598x *tps, u8 reg, u8 val) argument 230 tps6598x_write64(struct tps6598x *tps, u8 reg, u64 val) argument 236 tps6598x_write_4cc(struct tps6598x *tps, u8 reg, const char *val) argument 241 tps6598x_read_partner_identity(struct tps6598x *tps) argument 256 tps6598x_set_data_role(struct tps6598x *tps, enum typec_data_role role, bool connected) argument 273 tps6598x_connect(struct tps6598x *tps, u32 status) argument 317 tps6598x_disconnect(struct tps6598x *tps, u32 status) argument 332 tps6598x_exec_cmd_tmo(struct tps6598x *tps, const char *cmd, size_t in_len, const u8 *in_data, size_t out_len, u8 *out_data, u32 cmd_timeout_ms, u32 res_delay_ms) argument 398 tps6598x_exec_cmd(struct tps6598x *tps, const char *cmd, size_t in_len, const u8 *in_data, size_t out_len, u8 *out_data) argument 409 struct tps6598x *tps = typec_get_drvdata(port); local 439 struct tps6598x *tps = typec_get_drvdata(port); local 471 tps6598x_read_status(struct tps6598x *tps, u32 *status) argument 487 tps6598x_read_data_status(struct tps6598x *tps) argument 502 tps6598x_read_power_status(struct tps6598x *tps) argument 520 tps6598x_handle_plug_event(struct tps6598x *tps, u32 status) argument 535 struct tps6598x *tps = data; local 578 tps6598x_has_role_changed(struct tps6598x *tps, u32 status) argument 587 struct tps6598x *tps = data; local 639 struct tps6598x *tps = data; local 689 struct tps6598x *tps = container_of(to_delayed_work(work), local 697 tps6598x_check_mode(struct tps6598x *tps) argument 732 tps6598x_psy_get_online(struct tps6598x *tps, union power_supply_propval *val) argument 748 struct tps6598x *tps = power_supply_get_drvdata(psy); local 769 cd321x_switch_power_state(struct tps6598x *tps, u8 target_state) argument 795 devm_tps6598_psy_register(struct tps6598x *tps) argument 825 tps6598x_register_port(struct tps6598x *tps, struct fwnode_handle *fwnode) argument 876 tps_request_firmware(struct tps6598x *tps, const struct firmware **fw) argument 901 tps25750_write_firmware(struct tps6598x *tps, u8 bpms_addr, const u8 *data, size_t len) argument 928 tps25750_exec_pbms(struct tps6598x *tps, u8 *in_data, size_t in_len) argument 955 tps25750_abort_patch_process(struct tps6598x *tps) argument 970 tps25750_start_patch_burst_mode(struct tps6598x *tps) argument 1037 tps25750_complete_patch_process(struct tps6598x *tps) argument 1069 tps25750_apply_patch(struct tps6598x *tps) argument 1128 tps6598x_apply_patch(struct tps6598x *tps) argument 1193 cd321x_init(struct tps6598x *tps) argument 1198 tps25750_init(struct tps6598x *tps) argument 1216 tps6598x_init(struct tps6598x *tps) argument 1221 cd321x_reset(struct tps6598x *tps) argument 1226 tps25750_reset(struct tps6598x *tps) argument 1231 tps6598x_reset(struct tps6598x *tps) argument 1237 tps25750_register_port(struct tps6598x *tps, struct fwnode_handle *fwnode) argument 1293 struct tps6598x *tps; local 1457 struct tps6598x *tps = i2c_get_clientdata(client); local 1477 struct tps6598x *tps = i2c_get_clientdata(client); local 1495 struct tps6598x *tps = i2c_get_clientdata(client); local [all...] |
/linux-master/drivers/rtc/ |
H A D | rtc-tps6594.c | 48 struct tps6594 *tps = dev_get_drvdata(dev->parent); local 53 return regmap_update_bits(tps->regmap, TPS6594_REG_RTC_INTERRUPTS, 58 static int tps6594_rtc_shadow_timestamp(struct device *dev, struct tps6594 *tps) argument 66 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, 75 return regmap_set_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, 82 struct tps6594 *tps = dev_get_drvdata(dev->parent); local 86 ret = regmap_test_bits(tps->regmap, TPS6594_REG_RTC_STATUS, 93 ret = tps6594_rtc_shadow_timestamp(dev, tps); 98 ret = regmap_bulk_read(tps->regmap, TPS6594_REG_RTC_SECONDS, rtc_data, 117 struct tps6594 *tps local 149 struct tps6594 *tps = dev_get_drvdata(dev->parent); local 176 struct tps6594 *tps = dev_get_drvdata(dev->parent); local 205 struct tps6594 *tps = dev_get_drvdata(dev->parent); local 235 struct tps6594 *tps = dev_get_drvdata(dev->parent); local 331 struct tps6594 *tps = dev_get_drvdata(dev->parent); local 357 struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent); local [all...] |
H A D | rtc-tps65910.c | 50 struct tps65910 *tps = dev_get_drvdata(dev->parent); local 56 return regmap_write(tps->regmap, TPS65910_RTC_INTERRUPTS, val); 71 struct tps65910 *tps = dev_get_drvdata(dev->parent); local 75 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL, 82 ret = regmap_bulk_read(tps->regmap, TPS65910_SECONDS, rtc_data, 102 struct tps65910 *tps = dev_get_drvdata(dev->parent); local 113 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL, 121 ret = regmap_bulk_write(tps->regmap, TPS65910_SECONDS, rtc_data, 129 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL, 144 struct tps65910 *tps local 174 struct tps65910 *tps = dev_get_drvdata(dev->parent); local 205 struct tps65910 *tps = dev_get_drvdata(dev->parent); local 250 struct tps65910 *tps = dev_get_drvdata(dev->parent); local 333 struct tps65910 *tps = dev_get_drvdata(dev->parent); local [all...] |
/linux-master/drivers/pinctrl/ |
H A D | pinctrl-tps6594.c | 173 struct tps6594 *tps; member in struct:tps6594_pinctrl 233 return regmap_update_bits(pinctrl->tps->regmap, 312 struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent); local 331 pinctrl->tps = dev_get_drvdata(dev->parent); 339 config.parent = tps->dev; 340 config.regmap = tps->regmap;
|
/linux-master/drivers/mfd/ |
H A D | tps6594-core.c | 289 struct tps6594 *tps = irq_drv_data; local 302 if (tps->use_crc) 303 ret = regmap_write_bits(tps->regmap, TPS6594_REG_INT_COMM_ERR, 329 static int tps6594_check_crc_mode(struct tps6594 *tps, bool primary_pmic) argument 337 tps->use_crc = true; 338 ret = regmap_test_bits(tps->regmap, TPS6594_REG_SERIAL_IF_CONFIG, 343 dev_info(tps->dev, "CRC feature enabled on %s PMIC", 351 static int tps6594_set_crc_feature(struct tps6594 *tps) argument 355 ret = tps6594_check_crc_mode(tps, true); 361 tps 380 tps6594_enable_crc(struct tps6594 *tps) argument 415 tps6594_device_init(struct tps6594 *tps, bool enable_crc) argument [all...] |
H A D | tps65086.c | 67 struct tps65086 *tps; local 71 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); 72 if (!tps) 75 i2c_set_clientdata(client, tps); 76 tps->dev = &client->dev; 77 tps->irq = client->irq; 79 tps->regmap = devm_regmap_init_i2c(client, &tps65086_regmap_config); 80 if (IS_ERR(tps->regmap)) { 81 dev_err(tps 123 struct tps65086 *tps = i2c_get_clientdata(client); local [all...] |
H A D | tps6594-spi.c | 29 struct tps6594 *tps = spi_get_drvdata(spi); local 37 if (tps->use_crc) 44 if (tps->use_crc && buf[3] != crc8(tps6594_spi_crc_table, buf, 3, CRC8_INIT_VALUE)) 55 struct tps6594 *tps = spi_get_drvdata(spi); local 63 if (tps->use_crc) 91 struct tps6594 *tps; local 94 tps = devm_kzalloc(dev, sizeof(*tps), GFP_KERNEL); 95 if (!tps) 98 spi_set_drvdata(spi, tps); [all...] |
H A D | tps65912-core.c | 89 int tps65912_device_init(struct tps65912 *tps) argument 93 ret = regmap_add_irq_chip(tps->regmap, tps->irq, IRQF_ONESHOT, 0, 94 &tps65912_irq_chip, &tps->irq_data); 98 ret = mfd_add_devices(tps->dev, PLATFORM_DEVID_AUTO, tps65912_cells, 100 regmap_irq_get_domain(tps->irq_data)); 102 regmap_del_irq_chip(tps->irq, tps->irq_data); 110 void tps65912_device_exit(struct tps65912 *tps) argument 112 regmap_del_irq_chip(tps [all...] |
H A D | tps65218.c | 42 * @tps: Device to write to. 47 int tps65218_reg_write(struct tps65218 *tps, unsigned int reg, argument 55 return regmap_write(tps->regmap, reg, val); 58 ret = regmap_write(tps->regmap, TPS65218_REG_PASSWORD, 63 return regmap_write(tps->regmap, reg, val); 73 * @tps: Device to write to. 79 static int tps65218_update_bits(struct tps65218 *tps, unsigned int reg, argument 85 ret = regmap_read(tps->regmap, reg, &data); 87 dev_err(tps->dev, "Read from reg 0x%x failed\n", reg); 94 mutex_lock(&tps 103 tps65218_set_bits(struct tps65218 *tps, unsigned int reg, unsigned int mask, unsigned int val, unsigned int level) argument 110 tps65218_clear_bits(struct tps65218 *tps, unsigned int reg, unsigned int mask, unsigned int level) argument 205 tps65218_voltage_set_strict(struct tps65218 *tps) argument 227 tps65218_voltage_set_uv_hyst(struct tps65218 *tps) argument 248 tps65218_voltage_set_uvlo(struct tps65218 *tps) argument 284 struct tps65218 *tps; local [all...] |
H A D | tps65217.c | 38 struct tps65217 *tps = irq_data_get_irq_chip_data(data); local 40 mutex_lock(&tps->irq_lock); 45 struct tps65217 *tps = irq_data_get_irq_chip_data(data); local 48 ret = tps65217_set_bits(tps, TPS65217_REG_INT, TPS65217_INT_MASK, 49 tps->irq_mask, TPS65217_PROTECT_NONE); 51 dev_err(tps->dev, "Failed to sync IRQ masks\n"); 53 mutex_unlock(&tps->irq_lock); 58 struct tps65217 *tps = irq_data_get_irq_chip_data(data); local 61 tps->irq_mask &= ~mask; 66 struct tps65217 *tps local 105 struct tps65217 *tps = data; local 134 struct tps65217 *tps = h->host_data; local 149 tps65217_irq_init(struct tps65217 *tps, int irq) argument 189 tps65217_reg_read(struct tps65217 *tps, unsigned int reg, unsigned int *val) argument 204 tps65217_reg_write(struct tps65217 *tps, unsigned int reg, unsigned int val, unsigned int level) argument 250 tps65217_update_bits(struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int val, unsigned int level) argument 272 tps65217_set_bits(struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int val, unsigned int level) argument 279 tps65217_clear_bits(struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int level) argument 312 struct tps65217 *tps; local 378 struct tps65217 *tps = i2c_get_clientdata(client); local [all...] |
/linux-master/drivers/gpio/ |
H A D | gpio-tps65219.c | 23 struct tps65219 *tps; member in struct:tps65219_gpio 34 ret = regmap_read(gpio->tps->regmap, TPS65219_REG_MFP_1_CONFIG, &val); 44 struct device *dev = gpio->tps->dev; 52 ret = regmap_read(gpio->tps->regmap, TPS65219_REG_MFP_CTRL, &val); 73 struct device *dev = gpio->tps->dev; 81 if (regmap_update_bits(gpio->tps->regmap, TPS65219_REG_GENERAL_CONFIG, mask, v)) 89 struct device *dev = gpio->tps->dev; 100 int ret = regmap_update_bits(gpio->tps->regmap, TPS65219_REG_MFP_1_CONFIG, 120 struct device *dev = gpio->tps->dev; 160 struct tps65219 *tps local [all...] |
/linux-master/tools/perf/util/ |
H A D | trace-event-info.c | 144 static bool name_in_tp_list(char *sys, struct tracepoint_path *tps) argument 146 while (tps) { 147 if (!strcmp(sys, tps->name)) 149 tps = tps->next; 155 #define for_each_event_tps(dir, dent, tps) \ 161 static int copy_event_system(const char *sys, struct tracepoint_path *tps) argument 177 for_each_event_tps(dir, dent, tps) { 178 if (!name_in_tp_list(dent->d_name, tps)) 199 for_each_event_tps(dir, dent, tps) { 224 record_ftrace_files(struct tracepoint_path *tps) argument 242 system_in_tp_list(char *sys, struct tracepoint_path *tps) argument 253 record_event_files(struct tracepoint_path *tps) argument 392 put_tracepoints_path(struct tracepoint_path *tps) argument 595 struct tracepoint_path *tps; local [all...] |
/linux-master/drivers/power/supply/ |
H A D | tps65217_charger.c | 30 struct tps65217 *tps; member in struct:tps65217_charger 66 ret = tps65217_clear_bits(charger->tps, TPS65217_REG_CHGCONFIG1, 87 ret = tps65217_set_bits(charger->tps, TPS65217_REG_CHGCONFIG1, 123 ret = tps65217_reg_read(charger->tps, TPS65217_REG_STATUS, &val); 147 ret = tps65217_reg_read(charger->tps, TPS65217_REG_CHGCONFIG0, &val); 185 struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); local 198 charger->tps = tps;
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | zl10353.c | 172 u16 tps = 0; local 223 tps |= (1 << 7); 226 tps |= (2 << 7); 229 tps |= (3 << 7); 232 tps |= (4 << 7); 243 tps |= (1 << 4); 246 tps |= (2 << 4); 249 tps |= (3 << 4); 252 tps |= (4 << 4); 271 tps | 364 u16 tps; local [all...] |
H A D | mt352.c | 162 unsigned int tps = 0; local 166 tps |= (1 << 7); 169 tps |= (2 << 7); 172 tps |= (3 << 7); 175 tps |= (4 << 7); 186 tps |= (1 << 4); 189 tps |= (2 << 4); 192 tps |= (3 << 4); 195 tps |= (4 << 4); 214 tps | 305 u16 tps; local [all...] |
H A D | dib7000p.c | 1032 dib7000p_write_word(state, 5, (seq << 4) | 1); /* do not force tps, search list 0 */ 1425 u16 tps = dib7000p_read_word(state, 463); local 1431 switch ((tps >> 8) & 0x3) { 1441 switch (tps & 0x3) { 1456 switch ((tps >> 14) & 0x3) { 1470 /* (tps >> 13) & 0x1 == hrch is used, (tps >> 10) & 0x7 == alpha */ 1473 switch ((tps >> 5) & 0x7) { 1493 switch ((tps >> 2) & 0x7) {
|
H A D | dib7000m.c | 1162 u16 tps = dib7000m_read_word(state,480); local 1168 switch ((tps >> 8) & 0x3) { 1174 switch (tps & 0x3) { 1181 switch ((tps >> 14) & 0x3) { 1189 /* (tps >> 13) & 0x1 == hrch is used, (tps >> 10) & 0x7 == alpha */ 1192 switch ((tps >> 5) & 0x7) { 1202 switch ((tps >> 2) & 0x7) {
|
H A D | dib3000mc.c | 674 u16 tps = dib3000mc_read_word(state,458); local 680 switch ((tps >> 8) & 0x1) { 685 switch (tps & 0x3) { 692 switch ((tps >> 13) & 0x3) { 700 /* (tps >> 12) & 0x1 == hrch is used, (tps >> 9) & 0x7 == alpha */ 703 switch ((tps >> 5) & 0x7) { 713 switch ((tps >> 2) & 0x7) {
|
/linux-master/drivers/media/dvb-frontends/cxd2880/ |
H A D | cxd2880_top.c | 707 pr_err("tps monitor error ret = %d\n", ret); 1414 struct cxd2880_dvbt_tpsinfo tps; local 1469 ret = cxd2880_tnrdmd_dvbt_mon_tps_info(&priv->tnrdmd, &tps); 1472 switch (tps.hierarchy) { 1488 tps.hierarchy); 1492 switch (tps.rate_hp) { 1511 tps.rate_hp); 1514 switch (tps.rate_lp) { 1533 tps.rate_lp); 1536 switch (tps [all...] |