/linux-3.4.99/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() 103 if (tps->curr_vset_vsel[tps->lru_index[i]] == req_vsel) { in find_voltage_set_register() 104 new_vset_reg = tps->lru_index[i]; in find_voltage_set_register() 113 tps->lru_index[i] = tps->lru_index[i - 1]; in find_voltage_set_register() 115 tps->lru_index[0] = new_vset_reg; in find_voltage_set_register() 122 struct tps62360_chip *tps = rdev_get_drvdata(dev); in tps62360_dcdc_get_voltage() local 127 ret = regmap_read(tps->regmap, REG_VSET0 + tps->curr_vset_id, &data); in tps62360_dcdc_get_voltage() 129 dev_err(tps->dev, "%s: Error in reading register %d\n", in tps62360_dcdc_get_voltage() 130 __func__, REG_VSET0 + tps->curr_vset_id); in tps62360_dcdc_get_voltage() [all …]
|
D | tps6507x-regulator.c | 149 static inline int tps6507x_pmic_read(struct tps6507x_pmic *tps, u8 reg) in tps6507x_pmic_read() argument 154 err = tps->mfd->read_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_read() 162 static inline int tps6507x_pmic_write(struct tps6507x_pmic *tps, u8 reg, u8 val) in tps6507x_pmic_write() argument 164 return tps->mfd->write_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_write() 167 static int tps6507x_pmic_set_bits(struct tps6507x_pmic *tps, u8 reg, u8 mask) in tps6507x_pmic_set_bits() argument 171 mutex_lock(&tps->io_lock); in tps6507x_pmic_set_bits() 173 data = tps6507x_pmic_read(tps, reg); in tps6507x_pmic_set_bits() 175 dev_err(tps->mfd->dev, "Read from reg 0x%x failed\n", reg); in tps6507x_pmic_set_bits() 181 err = tps6507x_pmic_write(tps, reg, data); in tps6507x_pmic_set_bits() 183 dev_err(tps->mfd->dev, "Write for reg 0x%x failed\n", reg); in tps6507x_pmic_set_bits() [all …]
|
D | tps65023-regulator.c | 157 struct tps_pmic *tps = rdev_get_drvdata(dev); in tps65023_dcdc_is_enabled() local 166 ret = regmap_read(tps->regmap, TPS65023_REG_REG_CTRL, &data); in tps65023_dcdc_is_enabled() 176 struct tps_pmic *tps = rdev_get_drvdata(dev); in tps65023_ldo_is_enabled() local 185 ret = regmap_read(tps->regmap, TPS65023_REG_REG_CTRL, &data); in tps65023_ldo_is_enabled() 195 struct tps_pmic *tps = rdev_get_drvdata(dev); in tps65023_dcdc_enable() local 203 return regmap_update_bits(tps->regmap, TPS65023_REG_REG_CTRL, 1 << shift, 1 << shift); in tps65023_dcdc_enable() 208 struct tps_pmic *tps = rdev_get_drvdata(dev); in tps65023_dcdc_disable() local 216 return regmap_update_bits(tps->regmap, TPS65023_REG_REG_CTRL, 1 << shift, 0); in tps65023_dcdc_disable() 221 struct tps_pmic *tps = rdev_get_drvdata(dev); in tps65023_ldo_enable() local 229 return regmap_update_bits(tps->regmap, TPS65023_REG_REG_CTRL, 1 << shift, 1 << shift); in tps65023_ldo_enable() [all …]
|
D | tps65217-regulator.c | 157 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_is_enabled() local 163 ret = tps65217_reg_read(tps, TPS65217_REG_ENABLE, &data); in tps65217_pmic_is_enabled() 167 return (data & tps->info[rid]->enable_mask) ? 1 : 0; in tps65217_pmic_is_enabled() 172 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_enable() local 179 return tps65217_set_bits(tps, TPS65217_REG_ENABLE, in tps65217_pmic_enable() 180 tps->info[rid]->enable_mask, in tps65217_pmic_enable() 181 tps->info[rid]->enable_mask, in tps65217_pmic_enable() 187 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_disable() local 194 return tps65217_clear_bits(tps, TPS65217_REG_ENABLE, in tps65217_pmic_disable() 195 tps->info[rid]->enable_mask, TPS65217_PROTECT_L1); in tps65217_pmic_disable() [all …]
|
/linux-3.4.99/drivers/mfd/ |
D | tps65217.c | 38 int tps65217_reg_read(struct tps65217 *tps, unsigned int reg, in tps65217_reg_read() argument 41 return regmap_read(tps->regmap, reg, val); in tps65217_reg_read() 53 int tps65217_reg_write(struct tps65217 *tps, unsigned int reg, in tps65217_reg_write() argument 61 return regmap_write(tps->regmap, reg, val); in tps65217_reg_write() 64 ret = regmap_write(tps->regmap, TPS65217_REG_PASSWORD, in tps65217_reg_write() 69 return regmap_write(tps->regmap, reg, val); in tps65217_reg_write() 72 ret = regmap_write(tps->regmap, TPS65217_REG_PASSWORD, in tps65217_reg_write() 76 ret = regmap_write(tps->regmap, reg, val); in tps65217_reg_write() 79 ret = regmap_write(tps->regmap, TPS65217_REG_PASSWORD, in tps65217_reg_write() 83 return regmap_write(tps->regmap, reg, val); in tps65217_reg_write() [all …]
|
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 | tps65090.c | 94 struct tps65090 *tps = dev_get_drvdata(dev); in tps65090_write() local 95 return regmap_write(tps->rmap, reg, val); in tps65090_write() 101 struct tps65090 *tps = dev_get_drvdata(dev); in tps65090_read() local 104 ret = regmap_read(tps->rmap, reg, &temp_val); in tps65090_read() 113 struct tps65090 *tps = dev_get_drvdata(dev); in tps65090_set_bits() local 114 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), ~0u); in tps65090_set_bits() 120 struct tps65090 *tps = dev_get_drvdata(dev); in tps65090_clr_bits() local 121 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), 0u); in tps65090_clr_bits()
|
/linux-3.4.99/tools/perf/util/ |
D | trace-event-info.c | 217 static bool name_in_tp_list(char *sys, struct tracepoint_path *tps) in name_in_tp_list() argument 219 while (tps) { in name_in_tp_list() 220 if (!strcmp(sys, tps->name)) in name_in_tp_list() 222 tps = tps->next; in name_in_tp_list() 228 static void copy_event_system(const char *sys, struct tracepoint_path *tps) in copy_event_system() argument 245 !name_in_tp_list(dent->d_name, tps)) in copy_event_system() 263 !name_in_tp_list(dent->d_name, tps)) in copy_event_system() 277 static void read_ftrace_files(struct tracepoint_path *tps) in read_ftrace_files() argument 283 copy_event_system(path, tps); in read_ftrace_files() 288 static bool system_in_tp_list(char *sys, struct tracepoint_path *tps) in system_in_tp_list() argument [all …]
|
/linux-3.4.99/drivers/media/dvb/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
|
/linux-3.4.99/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 | 211 u16 tps[9]; member
|
D | dib7000p.c | 1391 u16 tps = dib7000p_read_word(state, 463); in dib7000p_get_frontend() local 1397 switch ((tps >> 8) & 0x3) { in dib7000p_get_frontend() 1407 switch (tps & 0x3) { in dib7000p_get_frontend() 1422 switch ((tps >> 14) & 0x3) { in dib7000p_get_frontend() 1439 switch ((tps >> 5) & 0x7) { in dib7000p_get_frontend() 1459 switch ((tps >> 2) & 0x7) { in dib7000p_get_frontend()
|
/linux-3.4.99/drivers/staging/media/as102/ |
D | as10x_cmd.c | 282 ptps->modulation = prsp->body.get_tps.rsp.tps.modulation; in as10x_cmd_get_tps() 283 ptps->hierarchy = prsp->body.get_tps.rsp.tps.hierarchy; in as10x_cmd_get_tps() 284 ptps->interleaving_mode = prsp->body.get_tps.rsp.tps.interleaving_mode; in as10x_cmd_get_tps() 285 ptps->code_rate_HP = prsp->body.get_tps.rsp.tps.code_rate_HP; in as10x_cmd_get_tps() 286 ptps->code_rate_LP = prsp->body.get_tps.rsp.tps.code_rate_LP; in as10x_cmd_get_tps() 287 ptps->guard_interval = prsp->body.get_tps.rsp.tps.guard_interval; in as10x_cmd_get_tps() 288 ptps->transmission_mode = prsp->body.get_tps.rsp.tps.transmission_mode; in as10x_cmd_get_tps() 289 ptps->DVBH_mask_HP = prsp->body.get_tps.rsp.tps.DVBH_mask_HP; in as10x_cmd_get_tps() 290 ptps->DVBH_mask_LP = prsp->body.get_tps.rsp.tps.DVBH_mask_LP; in as10x_cmd_get_tps() 291 ptps->cell_ID = le16_to_cpu(prsp->body.get_tps.rsp.tps.cell_ID); in as10x_cmd_get_tps()
|
D | as102_fe.c | 66 struct as10x_tps tps = { 0 }; in as102_fe_get_frontend() local 78 ret = as10x_cmd_get_tps(&dev->bus_adap, &tps); in as102_fe_get_frontend() 81 as10x_fe_copy_tps_parameters(p, &tps); in as102_fe_get_frontend()
|
D | as10x_cmd.h | 174 struct as10x_tps tps; member
|
/linux-3.4.99/include/linux/mfd/ |
D | tps65217.h | 274 int tps65217_reg_read(struct tps65217 *tps, unsigned int reg, 276 int tps65217_reg_write(struct tps65217 *tps, unsigned int reg, 278 int tps65217_set_bits(struct tps65217 *tps, unsigned int reg, 280 int tps65217_clear_bits(struct tps65217 *tps, unsigned int reg,
|
/linux-3.4.99/drivers/net/ethernet/chelsio/cxgb/ |
D | tp.h | 67 void t1_tp_get_mib_statistics(adapter_t *adap, struct tp_mib_statistics *tps);
|
/linux-3.4.99/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 | 727 void t3_tp_get_mib_stats(struct adapter *adap, struct tp_mib_stats *tps);
|
/linux-3.4.99/drivers/gpu/drm/nouveau/ |
D | nv50_graph.c | 594 int tps = 0; in nv50_pgraph_tp_trap() local 608 tps++; in nv50_pgraph_tp_trap() 685 if (!tps && display) in nv50_pgraph_tp_trap()
|