/drivers/regulator/ |
D | tps62360-regulator.c | 95 static bool find_voltage_set_register(struct tps62360_chip *tps, in find_voltage_set_register() argument 100 int new_vset_reg = tps->lru_index[3]; in find_voltage_set_register() 104 if (tps->curr_vset_vsel[tps->lru_index[i]] == req_vsel) { in find_voltage_set_register() 105 new_vset_reg = tps->lru_index[i]; in find_voltage_set_register() 114 tps->lru_index[i] = tps->lru_index[i - 1]; in find_voltage_set_register() 116 tps->lru_index[0] = new_vset_reg; in find_voltage_set_register() 123 struct tps62360_chip *tps = rdev_get_drvdata(dev); in tps62360_dcdc_get_voltage_sel() local 128 ret = regmap_read(tps->regmap, REG_VSET0 + tps->curr_vset_id, &data); in tps62360_dcdc_get_voltage_sel() 130 dev_err(tps->dev, "%s(): register %d read failed with err %d\n", in tps62360_dcdc_get_voltage_sel() 131 __func__, REG_VSET0 + tps->curr_vset_id, ret); in tps62360_dcdc_get_voltage_sel() [all …]
|
D | tps6507x-regulator.c | 122 static inline int tps6507x_pmic_read(struct tps6507x_pmic *tps, u8 reg) in tps6507x_pmic_read() argument 127 err = tps->mfd->read_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_read() 135 static inline int tps6507x_pmic_write(struct tps6507x_pmic *tps, u8 reg, u8 val) in tps6507x_pmic_write() argument 137 return tps->mfd->write_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_write() 140 static int tps6507x_pmic_set_bits(struct tps6507x_pmic *tps, u8 reg, u8 mask) in tps6507x_pmic_set_bits() argument 144 mutex_lock(&tps->io_lock); in tps6507x_pmic_set_bits() 146 data = tps6507x_pmic_read(tps, reg); in tps6507x_pmic_set_bits() 148 dev_err(tps->mfd->dev, "Read from reg 0x%x failed\n", reg); in tps6507x_pmic_set_bits() 154 err = tps6507x_pmic_write(tps, reg, data); in tps6507x_pmic_set_bits() 156 dev_err(tps->mfd->dev, "Write for reg 0x%x failed\n", reg); in tps6507x_pmic_set_bits() [all …]
|
D | tps51632-regulator.c | 96 struct tps51632_chip *tps = rdev_get_drvdata(rdev); in tps51632_dcdc_set_ramp_delay() local 102 ret = regmap_write(tps->regmap, TPS51632_SLEW_REGS, BIT(bit)); in tps51632_dcdc_set_ramp_delay() 104 dev_err(tps->dev, "SLEW reg write failed, err %d\n", ret); in tps51632_dcdc_set_ramp_delay() 116 static int tps51632_init_dcdc(struct tps51632_chip *tps, in tps51632_init_dcdc() argument 128 ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_BASE_REG, vsel); in tps51632_init_dcdc() 130 dev_err(tps->dev, "BASE reg write failed, err %d\n", ret); in tps51632_init_dcdc() 145 ret = regmap_read(tps->regmap, TPS51632_VMAX_REG, &vmax); in tps51632_init_dcdc() 147 dev_err(tps->dev, "VMAX read failed, err %d\n", ret); in tps51632_init_dcdc() 152 ret = regmap_write(tps->regmap, TPS51632_VMAX_REG, in tps51632_init_dcdc() 155 dev_err(tps->dev, in tps51632_init_dcdc() [all …]
|
D | tps65023-regulator.c | 151 struct tps_pmic *tps = rdev_get_drvdata(dev); in tps65023_dcdc_get_voltage_sel() local 157 if (dcdc != tps->core_regulator) in tps65023_dcdc_get_voltage_sel() 166 struct tps_pmic *tps = rdev_get_drvdata(dev); in tps65023_dcdc_set_voltage_sel() local 169 if (dcdc != tps->core_regulator) in tps65023_dcdc_set_voltage_sel() 210 struct tps_pmic *tps; in tps_65023_probe() local 225 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps_65023_probe() 226 if (!tps) in tps_65023_probe() 229 tps->regmap = devm_regmap_init_i2c(client, &tps65023_regmap_config); in tps_65023_probe() 230 if (IS_ERR(tps->regmap)) { in tps_65023_probe() 231 error = PTR_ERR(tps->regmap); in tps_65023_probe() [all …]
|
D | tps65217-regulator.c | 147 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_enable() local 154 return tps65217_set_bits(tps, TPS65217_REG_ENABLE, in tps65217_pmic_enable() 161 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_disable() local 168 return tps65217_clear_bits(tps, TPS65217_REG_ENABLE, in tps65217_pmic_disable() 176 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_set_voltage_sel() local 180 ret = tps65217_set_bits(tps, dev->desc->vsel_reg, dev->desc->vsel_mask, in tps65217_pmic_set_voltage_sel() 186 ret = tps65217_set_bits(tps, TPS65217_REG_DEFSLEW, in tps65217_pmic_set_voltage_sel() 199 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_map_voltage() local 210 if (min_uV < tps->info[rid]->min_uV) in tps65217_pmic_map_voltage() 211 min_uV = tps->info[rid]->min_uV; in tps65217_pmic_map_voltage() [all …]
|
D | max8973-regulator.c | 120 static bool find_voltage_set_register(struct max8973_chip *tps, in find_voltage_set_register() argument 125 int new_vout_reg = tps->lru_index[MAX8973_MAX_VOUT_REG - 1]; in find_voltage_set_register() 129 if (tps->curr_vout_val[tps->lru_index[i]] == req_vsel) { in find_voltage_set_register() 130 new_vout_reg = tps->lru_index[i]; in find_voltage_set_register() 139 tps->lru_index[i] = tps->lru_index[i - 1]; in find_voltage_set_register() 141 tps->lru_index[0] = new_vout_reg; in find_voltage_set_register()
|
/drivers/mfd/ |
D | tps65010.c | 197 struct tps65010 *tps = s->private; in dbg_show() local 203 switch (tps->model) { in dbg_show() 213 mutex_lock(&tps->lock); in dbg_show() 219 seq_printf(s, "%scharging\n\n", tps->charging ? "" : "(not) "); in dbg_show() 225 value = i2c_smbus_read_byte_data(tps->client, TPS_CHGCONFIG); in dbg_show() 226 dbg_chgconf(tps->por, buf, sizeof buf, value); in dbg_show() 229 value = i2c_smbus_read_byte_data(tps->client, TPS_CHGSTATUS); in dbg_show() 232 value = i2c_smbus_read_byte_data(tps->client, TPS_MASK1); in dbg_show() 237 value = i2c_smbus_read_byte_data(tps->client, TPS_REGSTATUS); in dbg_show() 240 value = i2c_smbus_read_byte_data(tps->client, TPS_MASK2); in dbg_show() [all …]
|
D | tps65217.c | 49 int tps65217_reg_read(struct tps65217 *tps, unsigned int reg, in tps65217_reg_read() argument 52 return regmap_read(tps->regmap, reg, val); in tps65217_reg_read() 64 int tps65217_reg_write(struct tps65217 *tps, unsigned int reg, in tps65217_reg_write() argument 72 return regmap_write(tps->regmap, reg, val); in tps65217_reg_write() 75 ret = regmap_write(tps->regmap, TPS65217_REG_PASSWORD, in tps65217_reg_write() 80 return regmap_write(tps->regmap, reg, val); in tps65217_reg_write() 83 ret = regmap_write(tps->regmap, TPS65217_REG_PASSWORD, in tps65217_reg_write() 87 ret = regmap_write(tps->regmap, reg, val); in tps65217_reg_write() 90 ret = regmap_write(tps->regmap, TPS65217_REG_PASSWORD, in tps65217_reg_write() 94 return regmap_write(tps->regmap, reg, val); in tps65217_reg_write() [all …]
|
/drivers/media/usb/dvb-usb/ |
D | cinergyT2-fe.c | 45 uint16_t tps = 0; in compute_tps() local 49 tps |= (1 << 7); in compute_tps() 52 tps |= (2 << 7); in compute_tps() 55 tps |= (3 << 7); in compute_tps() 58 tps |= (4 << 7); in compute_tps() 68 tps |= (1 << 4); in compute_tps() 71 tps |= (2 << 4); in compute_tps() 74 tps |= (3 << 4); in compute_tps() 77 tps |= (4 << 4); in compute_tps() 87 tps |= (1 << 13); in compute_tps() [all …]
|
D | cinergyT2.h | 71 uint16_t tps; member 87 __le16 tps; member
|
/drivers/media/dvb-frontends/ |
D | mt352.c | 176 unsigned int tps = 0; in mt352_set_parameters() local 180 tps |= (1 << 7); in mt352_set_parameters() 183 tps |= (2 << 7); in mt352_set_parameters() 186 tps |= (3 << 7); in mt352_set_parameters() 189 tps |= (4 << 7); in mt352_set_parameters() 200 tps |= (1 << 4); in mt352_set_parameters() 203 tps |= (2 << 4); in mt352_set_parameters() 206 tps |= (3 << 4); in mt352_set_parameters() 209 tps |= (4 << 4); in mt352_set_parameters() 227 tps |= (1 << 13); in mt352_set_parameters() [all …]
|
D | zl10353.c | 188 u16 tps = 0; in zl10353_set_parameters() local 239 tps |= (1 << 7); in zl10353_set_parameters() 242 tps |= (2 << 7); in zl10353_set_parameters() 245 tps |= (3 << 7); in zl10353_set_parameters() 248 tps |= (4 << 7); in zl10353_set_parameters() 259 tps |= (1 << 4); in zl10353_set_parameters() 262 tps |= (2 << 4); in zl10353_set_parameters() 265 tps |= (3 << 4); in zl10353_set_parameters() 268 tps |= (4 << 4); in zl10353_set_parameters() 286 tps |= (1 << 13); in zl10353_set_parameters() [all …]
|
D | dib3000mc.c | 639 u16 tps = dib3000mc_read_word(state,458); in dib3000mc_get_frontend() local 645 switch ((tps >> 8) & 0x1) { in dib3000mc_get_frontend() 650 switch (tps & 0x3) { in dib3000mc_get_frontend() 657 switch ((tps >> 13) & 0x3) { in dib3000mc_get_frontend() 668 switch ((tps >> 5) & 0x7) { in dib3000mc_get_frontend() 678 switch ((tps >> 2) & 0x7) { in dib3000mc_get_frontend()
|
D | dib7000m.c | 1161 u16 tps = dib7000m_read_word(state,480); in dib7000m_get_frontend() local 1167 switch ((tps >> 8) & 0x3) { in dib7000m_get_frontend() 1173 switch (tps & 0x3) { in dib7000m_get_frontend() 1180 switch ((tps >> 14) & 0x3) { in dib7000m_get_frontend() 1191 switch ((tps >> 5) & 0x7) { in dib7000m_get_frontend() 1201 switch ((tps >> 2) & 0x7) { in dib7000m_get_frontend()
|
D | dibx000_common.h | 212 u16 tps[9]; member
|
D | dib7000p.c | 1406 u16 tps = dib7000p_read_word(state, 463); in dib7000p_get_frontend() local 1412 switch ((tps >> 8) & 0x3) { in dib7000p_get_frontend() 1422 switch (tps & 0x3) { in dib7000p_get_frontend() 1437 switch ((tps >> 14) & 0x3) { in dib7000p_get_frontend() 1454 switch ((tps >> 5) & 0x7) { in dib7000p_get_frontend() 1474 switch ((tps >> 2) & 0x7) { in dib7000p_get_frontend()
|
/drivers/rtc/ |
D | rtc-tps65910.c | 39 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_alarm_irq_enable() local 45 return regmap_write(tps->regmap, TPS65910_RTC_INTERRUPTS, val); in tps65910_rtc_alarm_irq_enable() 60 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_read_time() local 64 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL, in tps65910_rtc_read_time() 71 ret = regmap_bulk_read(tps->regmap, TPS65910_SECONDS, rtc_data, in tps65910_rtc_read_time() 91 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_time() local 102 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL, in tps65910_rtc_set_time() 110 ret = regmap_bulk_write(tps->regmap, TPS65910_SECONDS, rtc_data, in tps65910_rtc_set_time() 118 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL, in tps65910_rtc_set_time() 133 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_read_alarm() local [all …]
|
/drivers/video/backlight/ |
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() 91 rc = tps65217_reg_write(tps65217_bl->tps, in tps65217_bl_update_status() 135 rc = tps65217_clear_bits(tps65217_bl->tps, in tps65217_bl_hw_init() 152 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1, in tps65217_bl_hw_init() 173 rc = tps65217_set_bits(tps65217_bl->tps, in tps65217_bl_hw_init() 192 struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); in tps65217_bl_parse_dt() local 193 struct device_node *node = of_node_get(tps->dev->of_node); in tps65217_bl_parse_dt() 280 struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); in tps65217_bl_probe() local [all …]
|
/drivers/staging/media/as102/ |
D | as10x_cmd.c | 272 ptps->modulation = prsp->body.get_tps.rsp.tps.modulation; in as10x_cmd_get_tps() 273 ptps->hierarchy = prsp->body.get_tps.rsp.tps.hierarchy; in as10x_cmd_get_tps() 274 ptps->interleaving_mode = prsp->body.get_tps.rsp.tps.interleaving_mode; in as10x_cmd_get_tps() 275 ptps->code_rate_HP = prsp->body.get_tps.rsp.tps.code_rate_HP; in as10x_cmd_get_tps() 276 ptps->code_rate_LP = prsp->body.get_tps.rsp.tps.code_rate_LP; in as10x_cmd_get_tps() 277 ptps->guard_interval = prsp->body.get_tps.rsp.tps.guard_interval; in as10x_cmd_get_tps() 278 ptps->transmission_mode = prsp->body.get_tps.rsp.tps.transmission_mode; in as10x_cmd_get_tps() 279 ptps->DVBH_mask_HP = prsp->body.get_tps.rsp.tps.DVBH_mask_HP; in as10x_cmd_get_tps() 280 ptps->DVBH_mask_LP = prsp->body.get_tps.rsp.tps.DVBH_mask_LP; in as10x_cmd_get_tps() 281 ptps->cell_ID = le16_to_cpu(prsp->body.get_tps.rsp.tps.cell_ID); in as10x_cmd_get_tps()
|
D | as102_fe.c | 64 struct as10x_tps tps = { 0 }; in as102_fe_get_frontend() local 76 ret = as10x_cmd_get_tps(&dev->bus_adap, &tps); in as102_fe_get_frontend() 79 as10x_fe_copy_tps_parameters(p, &tps); in as102_fe_get_frontend()
|
D | as10x_cmd.h | 174 struct as10x_tps tps; member
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | tp.h | 67 void t1_tp_get_mib_statistics(adapter_t *adap, struct tp_mib_statistics *tps);
|
/drivers/gpu/drm/nouveau/core/engine/graph/ |
D | nv50.c | 447 int tps = 0; in nv50_priv_tp_trap() local 461 tps++; in nv50_priv_tp_trap() 538 if (!tps && display) in nv50_priv_tp_trap()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | t3_hw.c | 2706 unsigned int tps = core_clk >> tre; in tp_set_timers() local 2722 #define SECONDS * tps in tp_set_timers() 2725 t3_write_reg(adap, A_TP_RXT_MIN, tps / (1000 / TP_RTO_MIN)); in tp_set_timers() 2902 void t3_tp_get_mib_stats(struct adapter *adap, struct tp_mib_stats *tps) in t3_tp_get_mib_stats() argument 2904 t3_read_indirect(adap, A_TP_MIB_INDEX, A_TP_MIB_RDATA, (u32 *) tps, in t3_tp_get_mib_stats() 2905 sizeof(*tps) / sizeof(u32), 0); in t3_tp_get_mib_stats() 3004 unsigned int v, tps, cpt, bpt, delta, mindelta = ~0; in t3_config_sched() local 3011 tps = clk / cpt; in t3_config_sched() 3012 bpt = (kbps + tps / 2) / tps; in t3_config_sched() 3014 v = bpt * tps; in t3_config_sched()
|
D | common.h | 726 void t3_tp_get_mib_stats(struct adapter *adap, struct tp_mib_stats *tps);
|