Searched refs:tps (Results 1 - 25 of 31) sorted by relevance

12

/drivers/regulator/
H A Dtps62360-regulator.c62 /* tps 62360 chip information */
95 static bool find_voltage_set_register(struct tps62360_chip *tps, argument
100 int new_vset_reg = tps->lru_index[3];
104 if (tps->curr_vset_vsel[tps->lru_index[i]] == req_vsel) {
105 new_vset_reg = tps->lru_index[i];
114 tps->lru_index[i] = tps->lru_index[i - 1];
116 tps->lru_index[0] = new_vset_reg;
123 struct tps62360_chip *tps local
141 struct tps62360_chip *tps = rdev_get_drvdata(dev); local
177 struct tps62360_chip *tps = rdev_get_drvdata(rdev); local
222 struct tps62360_chip *tps = rdev_get_drvdata(rdev); local
246 tps62360_init_dcdc(struct tps62360_chip *tps, struct tps62360_regulator_platform_data *pdata) argument
346 struct tps62360_chip *tps; local
488 struct tps62360_chip *tps = i2c_get_clientdata(client); local
[all...]
H A Dtps6507x-regulator.c122 static inline int tps6507x_pmic_read(struct tps6507x_pmic *tps, u8 reg) argument
127 err = tps->mfd->read_dev(tps->mfd, reg, 1, &val);
135 static inline int tps6507x_pmic_write(struct tps6507x_pmic *tps, u8 reg, u8 val) argument
137 return tps->mfd->write_dev(tps->mfd, reg, 1, &val);
140 static int tps6507x_pmic_set_bits(struct tps6507x_pmic *tps, u8 reg, u8 mask) argument
144 mutex_lock(&tps->io_lock);
146 data = tps6507x_pmic_read(tps, reg);
148 dev_err(tps
163 tps6507x_pmic_clear_bits(struct tps6507x_pmic *tps, u8 reg, u8 mask) argument
186 tps6507x_pmic_reg_read(struct tps6507x_pmic *tps, u8 reg) argument
200 tps6507x_pmic_reg_write(struct tps6507x_pmic *tps, u8 reg, u8 val) argument
216 struct tps6507x_pmic *tps = rdev_get_drvdata(dev); local
234 struct tps6507x_pmic *tps = rdev_get_drvdata(dev); local
247 struct tps6507x_pmic *tps = rdev_get_drvdata(dev); local
261 struct tps6507x_pmic *tps = rdev_get_drvdata(dev); local
307 struct tps6507x_pmic *tps = rdev_get_drvdata(dev); local
431 struct tps6507x_pmic *tps; local
[all...]
H A Dtps51632-regulator.c96 struct tps51632_chip *tps = rdev_get_drvdata(rdev); local
102 ret = regmap_write(tps->regmap, TPS51632_SLEW_REGS, BIT(bit));
104 dev_err(tps->dev, "SLEW reg write failed, err %d\n", ret);
116 static int tps51632_init_dcdc(struct tps51632_chip *tps, argument
128 ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_BASE_REG, vsel);
130 dev_err(tps->dev, "BASE reg write failed, err %d\n", ret);
145 ret = regmap_read(tps->regmap, TPS51632_VMAX_REG, &vmax);
147 dev_err(tps->dev, "VMAX read failed, err %d\n", ret);
152 ret = regmap_write(tps->regmap, TPS51632_VMAX_REG,
155 dev_err(tps
262 struct tps51632_chip *tps; local
[all...]
H A Dtps65023-regulator.c151 struct tps_pmic *tps = rdev_get_drvdata(dev); local
157 if (dcdc != tps->core_regulator)
166 struct tps_pmic *tps = rdev_get_drvdata(dev); local
169 if (dcdc != tps->core_regulator)
210 struct tps_pmic *tps; local
222 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL);
223 if (!tps)
226 tps->regmap = devm_regmap_init_i2c(client, &tps65023_regmap_config);
227 if (IS_ERR(tps
[all...]
H A Dtps65217-regulator.c73 struct tps65217 *tps = rdev_get_drvdata(dev); local
80 return tps65217_set_bits(tps, TPS65217_REG_ENABLE,
87 struct tps65217 *tps = rdev_get_drvdata(dev); local
94 return tps65217_clear_bits(tps, TPS65217_REG_ENABLE,
102 struct tps65217 *tps = rdev_get_drvdata(dev); local
106 ret = tps65217_set_bits(tps, dev->desc->vsel_reg, dev->desc->vsel_mask,
112 ret = tps65217_set_bits(tps, TPS65217_REG_DEFSLEW,
180 struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); local
181 struct tps65217_board *pdata = dev_get_platdata(tps->dev);
186 if (tps65217_chip_id(tps) !
[all...]
H A Dtps65218-regulator.c107 struct tps65218 *tps = rdev_get_drvdata(dev); local
111 ret = tps65218_set_bits(tps, dev->desc->vsel_reg, dev->desc->vsel_mask,
118 ret = tps65218_set_bits(tps, TPS65218_REG_CONTRL_SLEW_RATE,
130 struct tps65218 *tps = rdev_get_drvdata(dev); local
137 return tps65218_set_bits(tps, dev->desc->enable_reg,
144 struct tps65218 *tps = rdev_get_drvdata(dev); local
151 return tps65218_clear_bits(tps, dev->desc->enable_reg,
220 struct tps65218 *tps = dev_get_drvdata(pdev->dev.parent); local
236 platform_set_drvdata(pdev, tps);
238 tps
[all...]
H A Dmax8973-regulator.c122 static bool find_voltage_set_register(struct max8973_chip *tps, argument
127 int new_vout_reg = tps->lru_index[MAX8973_MAX_VOUT_REG - 1];
131 if (tps->curr_vout_val[tps->lru_index[i]] == req_vsel) {
132 new_vout_reg = tps->lru_index[i];
141 tps->lru_index[i] = tps->lru_index[i - 1];
143 tps->lru_index[0] = new_vout_reg;
/drivers/mfd/
H A Dtps65217.c45 * @tps: Device to read from.
49 int tps65217_reg_read(struct tps65217 *tps, unsigned int reg, argument
52 return regmap_read(tps->regmap, reg, val);
64 int tps65217_reg_write(struct tps65217 *tps, unsigned int reg, argument
72 return regmap_write(tps->regmap, reg, val);
75 ret = regmap_write(tps->regmap, TPS65217_REG_PASSWORD,
80 return regmap_write(tps->regmap, reg, val);
83 ret = regmap_write(tps->regmap, TPS65217_REG_PASSWORD,
87 ret = regmap_write(tps->regmap, reg, val);
90 ret = regmap_write(tps
110 tps65217_update_bits(struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int val, unsigned int level) argument
132 tps65217_set_bits(struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int val, unsigned int level) argument
139 tps65217_clear_bits(struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int level) argument
161 struct tps65217 *tps; local
233 struct tps65217 *tps = i2c_get_clientdata(client); local
[all...]
H A Dtps65218.c39 * @tps: Device to read from.
43 int tps65218_reg_read(struct tps65218 *tps, unsigned int reg, argument
46 return regmap_read(tps->regmap, reg, val);
58 int tps65218_reg_write(struct tps65218 *tps, unsigned int reg, argument
66 return regmap_write(tps->regmap, reg, val);
69 ret = regmap_write(tps->regmap, TPS65218_REG_PASSWORD,
74 return regmap_write(tps->regmap, reg, val);
90 static int tps65218_update_bits(struct tps65218 *tps, unsigned int reg, argument
96 ret = tps65218_reg_read(tps, reg, &data);
98 dev_err(tps
114 tps65218_set_bits(struct tps65218 *tps, unsigned int reg, unsigned int mask, unsigned int val, unsigned int level) argument
121 tps65218_clear_bits(struct tps65218 *tps, unsigned int reg, unsigned int mask, unsigned int level) argument
206 struct tps65218 *tps; local
255 struct tps65218 *tps = i2c_get_clientdata(client); local
[all...]
H A Dtps65010.c197 struct tps65010 *tps = s->private; local
203 switch (tps->model) {
213 mutex_lock(&tps->lock);
219 seq_printf(s, "%scharging\n\n", tps->charging ? "" : "(not) ");
225 value = i2c_smbus_read_byte_data(tps->client, TPS_CHGCONFIG);
226 dbg_chgconf(tps->por, buf, sizeof buf, value);
229 value = i2c_smbus_read_byte_data(tps->client, TPS_CHGSTATUS);
232 value = i2c_smbus_read_byte_data(tps->client, TPS_MASK1);
237 value = i2c_smbus_read_byte_data(tps->client, TPS_REGSTATUS);
240 value = i2c_smbus_read_byte_data(tps
320 tps65010_interrupt(struct tps65010 *tps) argument
412 struct tps65010 *tps; local
448 struct tps65010 *tps = _tps; local
478 struct tps65010 *tps; local
495 struct tps65010 *tps; local
520 struct tps65010 *tps = i2c_get_clientdata(client); local
540 struct tps65010 *tps; local
[all...]
/drivers/media/usb/dvb-usb/
H A DcinergyT2-fe.c45 uint16_t tps = 0; local
49 tps |= (1 << 7);
52 tps |= (2 << 7);
55 tps |= (3 << 7);
58 tps |= (4 << 7);
63 /* tps |= (0 << 7) */;
68 tps |= (1 << 4);
71 tps |= (2 << 4);
74 tps |= (3 << 4);
77 tps |
[all...]
H A DcinergyT2.h71 uint16_t tps; member in struct:dvbt_get_status_msg
87 __le16 tps; member in struct:dvbt_set_parameters_msg
/drivers/media/dvb-frontends/
H A Das102_fe.h20 int (*get_tps)(void *priv, struct as10x_tps *tps);
H A Dmt352.c176 unsigned int tps = 0; local
180 tps |= (1 << 7);
183 tps |= (2 << 7);
186 tps |= (3 << 7);
189 tps |= (4 << 7);
200 tps |= (1 << 4);
203 tps |= (2 << 4);
206 tps |= (3 << 4);
209 tps |= (4 << 4);
227 tps |
318 u16 tps; local
[all...]
H A Dzl10353.c188 u16 tps = 0; local
239 tps |= (1 << 7);
242 tps |= (2 << 7);
245 tps |= (3 << 7);
248 tps |= (4 << 7);
259 tps |= (1 << 4);
262 tps |= (2 << 4);
265 tps |= (3 << 4);
268 tps |= (4 << 4);
286 tps |
379 u16 tps; local
[all...]
H A Das102_fe.c198 struct as10x_tps tps = { 0 }; local
201 ret = state->ops->get_tps(state->priv, &tps);
206 switch (tps.modulation) {
219 switch (tps.hierarchy) {
235 switch (tps.code_rate_HP) {
254 switch (tps.code_rate_LP) {
273 switch (tps.guard_interval) {
289 switch (tps.transmission_mode) {
H A Ddib3000mc.c639 u16 tps = dib3000mc_read_word(state,458); local
645 switch ((tps >> 8) & 0x1) {
650 switch (tps & 0x3) {
657 switch ((tps >> 13) & 0x3) {
665 /* (tps >> 12) & 0x1 == hrch is used, (tps >> 9) & 0x7 == alpha */
668 switch ((tps >> 5) & 0x7) {
678 switch ((tps >> 2) & 0x7) {
H A Ddib7000m.c1158 u16 tps = dib7000m_read_word(state,480); local
1164 switch ((tps >> 8) & 0x3) {
1170 switch (tps & 0x3) {
1177 switch ((tps >> 14) & 0x3) {
1185 /* (tps >> 13) & 0x1 == hrch is used, (tps >> 10) & 0x7 == alpha */
1188 switch ((tps >> 5) & 0x7) {
1198 switch ((tps >> 2) & 0x7) {
H A Ddibx000_common.h212 u16 tps[9]; member in struct:dvb_frontend_parametersContext
/drivers/rtc/
H A Drtc-tps65910.c38 struct tps65910 *tps = dev_get_drvdata(dev->parent); local
44 return regmap_write(tps->regmap, TPS65910_RTC_INTERRUPTS, val);
59 struct tps65910 *tps = dev_get_drvdata(dev->parent); local
63 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL,
70 ret = regmap_bulk_read(tps->regmap, TPS65910_SECONDS, rtc_data,
90 struct tps65910 *tps = dev_get_drvdata(dev->parent); local
101 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL,
109 ret = regmap_bulk_write(tps->regmap, TPS65910_SECONDS, rtc_data,
117 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL,
132 struct tps65910 *tps local
162 struct tps65910 *tps = dev_get_drvdata(dev->parent); local
194 struct tps65910 *tps = dev_get_drvdata(dev->parent); local
[all...]
/drivers/video/backlight/
H A Dtps65217_bl.c29 struct tps65217 *tps; member in struct:tps65217_bl
39 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1,
59 rc = tps65217_clear_bits(tps65217_bl->tps,
91 rc = tps65217_reg_write(tps65217_bl->tps,
129 rc = tps65217_clear_bits(tps65217_bl->tps,
146 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1,
167 rc = tps65217_set_bits(tps65217_bl->tps,
186 struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); local
187 struct device_node *node = of_node_get(tps->dev->of_node);
273 struct tps65217 *tps local
[all...]
/drivers/media/usb/as102/
H A Das10x_cmd.c253 ptps->modulation = prsp->body.get_tps.rsp.tps.modulation;
254 ptps->hierarchy = prsp->body.get_tps.rsp.tps.hierarchy;
255 ptps->interleaving_mode = prsp->body.get_tps.rsp.tps.interleaving_mode;
256 ptps->code_rate_HP = prsp->body.get_tps.rsp.tps.code_rate_HP;
257 ptps->code_rate_LP = prsp->body.get_tps.rsp.tps.code_rate_LP;
258 ptps->guard_interval = prsp->body.get_tps.rsp.tps.guard_interval;
259 ptps->transmission_mode = prsp->body.get_tps.rsp.tps.transmission_mode;
260 ptps->DVBH_mask_HP = prsp->body.get_tps.rsp.tps.DVBH_mask_HP;
261 ptps->DVBH_mask_LP = prsp->body.get_tps.rsp.tps.DVBH_mask_LP;
262 ptps->cell_ID = le16_to_cpu((__force __le16)prsp->body.get_tps.rsp.tps
[all...]
H A Das102_drv.c200 static int as102_get_tps(void *priv, struct as10x_tps *tps) argument
209 ret = as10x_cmd_get_tps(bus_adap, tps);
H A Das10x_cmd.h167 /* tps details */
168 struct as10x_tps tps; member in struct:as10x_get_tps::__anon2338
/drivers/net/ethernet/chelsio/cxgb/
H A Dtp.h67 void t1_tp_get_mib_statistics(adapter_t *adap, struct tp_mib_statistics *tps);

Completed in 324 milliseconds

12