Home
last modified time | relevance | path

Searched refs:tps (Results 1 – 24 of 24) sorted by relevance

/linux-3.4.99/drivers/regulator/
Dtps62360-regulator.c95 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 …]
Dtps6507x-regulator.c149 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 …]
Dtps65023-regulator.c157 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 …]
Dtps65217-regulator.c157 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/
Dtps65217.c38 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 …]
Dtps65010.c197 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 …]
Dtps65090.c94 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/
Dtrace-event-info.c217 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/
DcinergyT2-fe.c45 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 …]
DcinergyT2.h71 uint16_t tps; member
87 __le16 tps; member
/linux-3.4.99/drivers/media/dvb/frontends/
Dmt352.c176 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 …]
Dzl10353.c188 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 …]
Ddib3000mc.c639 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()
Ddib7000m.c1161 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()
Ddibx000_common.h211 u16 tps[9]; member
Ddib7000p.c1391 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/
Das10x_cmd.c282 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()
Das102_fe.c66 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()
Das10x_cmd.h174 struct as10x_tps tps; member
/linux-3.4.99/include/linux/mfd/
Dtps65217.h274 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/
Dtp.h67 void t1_tp_get_mib_statistics(adapter_t *adap, struct tp_mib_statistics *tps);
/linux-3.4.99/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c2706 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()
Dcommon.h727 void t3_tp_get_mib_stats(struct adapter *adap, struct tp_mib_stats *tps);
/linux-3.4.99/drivers/gpu/drm/nouveau/
Dnv50_graph.c594 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()