Home
last modified time | relevance | path

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

1234

/linux/drivers/usb/typec/tipd/
H A Dcore.c115 int (*register_port)(struct tps6598x *tps, struct fwnode_handle *node);
118 int (*apply_patch)(struct tps6598x *tps);
119 int (*init)(struct tps6598x *tps);
120 int (*reset)(struct tps6598x *tps);
162 tps6598x_block_read(struct tps6598x *tps, u8 reg, void *val, size_t len) in tps6598x_block_read() argument
170 if (!tps->i2c_protocol) in tps6598x_block_read()
171 return regmap_raw_read(tps->regmap, reg, val, len); in tps6598x_block_read()
173 ret = regmap_raw_read(tps->regmap, reg, data, len + 1); in tps6598x_block_read()
184 static int tps6598x_block_write(struct tps6598x *tps, u8 reg, in tps6598x_block_write() argument
192 if (!tps->i2c_protocol) in tps6598x_block_write()
[all …]
/linux/drivers/regulator/
H A Dtps62360-regulator.c81 static bool find_voltage_set_register(struct tps62360_chip *tps, in find_voltage_set_register() argument
86 int new_vset_reg = tps->lru_index[3]; in find_voltage_set_register()
90 if (tps->curr_vset_vsel[tps->lru_index[i]] == req_vsel) { in find_voltage_set_register()
91 new_vset_reg = tps->lru_index[i]; in find_voltage_set_register()
100 tps->lru_index[i] = tps->lru_index[i - 1]; in find_voltage_set_register()
102 tps->lru_index[0] = new_vset_reg; in find_voltage_set_register()
109 struct tps62360_chip *tps = rdev_get_drvdata(dev); in tps62360_dcdc_get_voltage_sel() local
114 ret = regmap_read(tps->regmap, REG_VSET0 + tps->curr_vset_id, &data); in tps62360_dcdc_get_voltage_sel()
116 dev_err(tps->dev, "%s(): register %d read failed with err %d\n", in tps62360_dcdc_get_voltage_sel()
117 __func__, REG_VSET0 + tps->curr_vset_id, ret); in tps62360_dcdc_get_voltage_sel()
[all …]
H A Dtps6507x-regulator.c113 static inline int tps6507x_pmic_read(struct tps6507x_pmic *tps, u8 reg) in tps6507x_pmic_read() argument
118 err = tps->mfd->read_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_read()
126 static inline int tps6507x_pmic_write(struct tps6507x_pmic *tps, u8 reg, u8 val) in tps6507x_pmic_write() argument
128 return tps->mfd->write_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_write()
131 static int tps6507x_pmic_set_bits(struct tps6507x_pmic *tps, u8 reg, u8 mask) in tps6507x_pmic_set_bits() argument
135 mutex_lock(&tps->io_lock); in tps6507x_pmic_set_bits()
137 data = tps6507x_pmic_read(tps, reg); in tps6507x_pmic_set_bits()
139 dev_err(tps->mfd->dev, "Read from reg 0x%x failed\n", reg); in tps6507x_pmic_set_bits()
145 err = tps6507x_pmic_write(tps, reg, data); in tps6507x_pmic_set_bits()
147 dev_err(tps->mfd->dev, "Write for reg 0x%x failed\n", reg); in tps6507x_pmic_set_bits()
[all …]
H A Dtps51632-regulator.c82 struct tps51632_chip *tps = rdev_get_drvdata(rdev); in tps51632_dcdc_set_ramp_delay() local
91 ret = regmap_write(tps->regmap, TPS51632_SLEW_REGS, BIT(bit)); in tps51632_dcdc_set_ramp_delay()
93 dev_err(tps->dev, "SLEW reg write failed, err %d\n", ret); in tps51632_dcdc_set_ramp_delay()
105 static int tps51632_init_dcdc(struct tps51632_chip *tps, in tps51632_init_dcdc() argument
117 ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_BASE_REG, vsel); in tps51632_init_dcdc()
119 dev_err(tps->dev, "BASE reg write failed, err %d\n", ret); in tps51632_init_dcdc()
134 ret = regmap_read(tps->regmap, TPS51632_VMAX_REG, &vmax); in tps51632_init_dcdc()
136 dev_err(tps->dev, "VMAX read failed, err %d\n", ret); in tps51632_init_dcdc()
141 ret = regmap_write(tps->regmap, TPS51632_VMAX_REG, in tps51632_init_dcdc()
144 dev_err(tps->dev, in tps51632_init_dcdc()
[all …]
H A Dtps65217-regulator.c66 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_enable() local
73 return tps65217_set_bits(tps, TPS65217_REG_ENABLE, in tps65217_pmic_enable()
80 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_disable() local
87 return tps65217_clear_bits(tps, TPS65217_REG_ENABLE, in tps65217_pmic_disable()
95 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_set_voltage_sel() local
99 ret = tps65217_set_bits(tps, dev->desc->vsel_reg, dev->desc->vsel_mask, in tps65217_pmic_set_voltage_sel()
105 ret = tps65217_set_bits(tps, TPS65217_REG_DEFSLEW, in tps65217_pmic_set_voltage_sel()
116 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_set_suspend_enable() local
122 return tps65217_clear_bits(tps, dev->desc->bypass_reg, in tps65217_pmic_set_suspend_enable()
129 struct tps65217 *tps = rdev_get_drvdata(dev); in tps65217_pmic_set_suspend_disable() local
[all …]
H A Dtps65218-regulator.c70 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_voltage_sel() local
74 ret = tps65218_set_bits(tps, dev->desc->vsel_reg, dev->desc->vsel_mask, in tps65218_pmic_set_voltage_sel()
81 ret = tps65218_set_bits(tps, TPS65218_REG_CONTRL_SLEW_RATE, in tps65218_pmic_set_voltage_sel()
93 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_enable() local
100 return tps65218_set_bits(tps, dev->desc->enable_reg, in tps65218_pmic_enable()
107 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_disable() local
114 return tps65218_clear_bits(tps, dev->desc->enable_reg, in tps65218_pmic_disable()
120 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_suspend_enable() local
126 return tps65218_clear_bits(tps, dev->desc->bypass_reg, in tps65218_pmic_set_suspend_enable()
133 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_suspend_disable() local
[all …]
H A Dtps65132-regulator.c63 struct tps65132_regulator *tps = rdev_get_drvdata(rdev); in tps65132_regulator_enable() local
65 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_enable()
78 dev_err(tps->dev, "Failed to disable active discharge: %d\n", in tps65132_regulator_enable()
89 struct tps65132_regulator *tps = rdev_get_drvdata(rdev); in tps65132_regulator_disable() local
91 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_disable()
110 struct tps65132_regulator *tps = rdev_get_drvdata(rdev); in tps65132_regulator_is_enabled() local
112 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_is_enabled()
135 struct tps65132_regulator *tps = config->driver_data; in tps65132_of_parse_cb() local
136 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[desc->id]; in tps65132_of_parse_cb()
139 rpdata->en_gpiod = devm_fwnode_gpiod_get(tps->dev, of_fwnode_handle(np), in tps65132_of_parse_cb()
[all …]
H A Dtps65023-regulator.c170 struct tps_pmic *tps = rdev_get_drvdata(dev); in tps65023_dcdc_get_voltage_sel() local
176 if (dcdc != tps->driver_data->core_regulator) in tps65023_dcdc_get_voltage_sel()
185 struct tps_pmic *tps = rdev_get_drvdata(dev); in tps65023_dcdc_set_voltage_sel() local
188 if (dcdc != tps->driver_data->core_regulator) in tps65023_dcdc_set_voltage_sel()
265 struct tps_pmic *tps; in tps_65023_probe() local
269 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps_65023_probe()
270 if (!tps) in tps_65023_probe()
273 tps->driver_data = (struct tps_driver_data *)id->driver_data; in tps_65023_probe()
275 tps->regmap = devm_regmap_init_i2c(client, &tps65023_regmap_config); in tps_65023_probe()
276 if (IS_ERR(tps->regmap)) { in tps_65023_probe()
[all …]
H A Dtps6594-regulator.c524 struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent); in tps6594_request_reg_irqs() local
535 irq_data[*irq_idx].dev = tps->dev; in tps6594_request_reg_irqs()
539 error = devm_request_threaded_irq(tps->dev, irq, NULL, in tps6594_request_reg_irqs()
543 dev_err(tps->dev, "tps6594 failed to request %s IRQ %d: %d\n", in tps6594_request_reg_irqs()
554 struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent); in tps6594_regulator_probe() local
582 if (tps->chip_id == TPS65224) { in tps6594_regulator_probe()
605 config.dev = tps->dev; in tps6594_regulator_probe()
606 config.driver_data = tps; in tps6594_regulator_probe()
607 config.regmap = tps->regmap; in tps6594_regulator_probe()
618 np = of_find_node_by_name(tps->dev->of_node, multi_regs[multi].supply_name); in tps6594_regulator_probe()
[all …]
/linux/drivers/mfd/
H A Dtps65217.c38 struct tps65217 *tps = irq_data_get_irq_chip_data(data); in tps65217_irq_lock() local
40 mutex_lock(&tps->irq_lock); in tps65217_irq_lock()
45 struct tps65217 *tps = irq_data_get_irq_chip_data(data); in tps65217_irq_sync_unlock() local
48 ret = tps65217_set_bits(tps, TPS65217_REG_INT, TPS65217_INT_MASK, in tps65217_irq_sync_unlock()
49 tps->irq_mask, TPS65217_PROTECT_NONE); in tps65217_irq_sync_unlock()
51 dev_err(tps->dev, "Failed to sync IRQ masks\n"); in tps65217_irq_sync_unlock()
53 mutex_unlock(&tps->irq_lock); in tps65217_irq_sync_unlock()
58 struct tps65217 *tps = irq_data_get_irq_chip_data(data); in tps65217_irq_enable() local
61 tps->irq_mask &= ~mask; in tps65217_irq_enable()
66 struct tps65217 *tps = irq_data_get_irq_chip_data(data); in tps65217_irq_disable() local
[all …]
H A Dtps65218.c47 int tps65218_reg_write(struct tps65218 *tps, unsigned int reg, in tps65218_reg_write() argument
55 return regmap_write(tps->regmap, reg, val); in tps65218_reg_write()
58 ret = regmap_write(tps->regmap, TPS65218_REG_PASSWORD, in tps65218_reg_write()
63 return regmap_write(tps->regmap, reg, val); in tps65218_reg_write()
79 static int tps65218_update_bits(struct tps65218 *tps, unsigned int reg, in tps65218_update_bits() argument
85 ret = regmap_read(tps->regmap, reg, &data); in tps65218_update_bits()
87 dev_err(tps->dev, "Read from reg 0x%x failed\n", reg); in tps65218_update_bits()
94 mutex_lock(&tps->tps_lock); in tps65218_update_bits()
95 ret = tps65218_reg_write(tps, reg, data, level); in tps65218_update_bits()
97 dev_err(tps->dev, "Write for reg 0x%x failed\n", reg); in tps65218_update_bits()
[all …]
H A Dtps65010.c184 struct tps65010 *tps = s->private; in dbg_show() local
190 switch (tps->model) { in dbg_show()
200 mutex_lock(&tps->lock); in dbg_show()
206 seq_printf(s, "%scharging\n\n", tps->charging ? "" : "(not) "); in dbg_show()
212 value = i2c_smbus_read_byte_data(tps->client, TPS_CHGCONFIG); in dbg_show()
213 dbg_chgconf(tps->por, buf, sizeof buf, value); in dbg_show()
216 value = i2c_smbus_read_byte_data(tps->client, TPS_CHGSTATUS); in dbg_show()
219 value = i2c_smbus_read_byte_data(tps->client, TPS_MASK1); in dbg_show()
224 value = i2c_smbus_read_byte_data(tps->client, TPS_REGSTATUS); in dbg_show()
227 value = i2c_smbus_read_byte_data(tps->client, TPS_MASK2); in dbg_show()
[all …]
H A Dtps65086.c67 struct tps65086 *tps; in tps65086_probe() local
71 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65086_probe()
72 if (!tps) in tps65086_probe()
75 i2c_set_clientdata(client, tps); in tps65086_probe()
76 tps->dev = &client->dev; in tps65086_probe()
77 tps->irq = client->irq; in tps65086_probe()
79 tps->regmap = devm_regmap_init_i2c(client, &tps65086_regmap_config); in tps65086_probe()
80 if (IS_ERR(tps->regmap)) { in tps65086_probe()
81 dev_err(tps->dev, "Failed to initialize register map\n"); in tps65086_probe()
82 return PTR_ERR(tps->regmap); in tps65086_probe()
[all …]
H A Dtps65912-i2c.c26 struct tps65912 *tps; in tps65912_i2c_probe() local
28 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65912_i2c_probe()
29 if (!tps) in tps65912_i2c_probe()
32 i2c_set_clientdata(client, tps); in tps65912_i2c_probe()
33 tps->dev = &client->dev; in tps65912_i2c_probe()
34 tps->irq = client->irq; in tps65912_i2c_probe()
36 tps->regmap = devm_regmap_init_i2c(client, &tps65912_regmap_config); in tps65912_i2c_probe()
37 if (IS_ERR(tps->regmap)) { in tps65912_i2c_probe()
38 dev_err(tps->dev, "Failed to initialize register map\n"); in tps65912_i2c_probe()
39 return PTR_ERR(tps->regmap); in tps65912_i2c_probe()
[all …]
H A Dtps65912-spi.c26 struct tps65912 *tps; in tps65912_spi_probe() local
28 tps = devm_kzalloc(&spi->dev, sizeof(*tps), GFP_KERNEL); in tps65912_spi_probe()
29 if (!tps) in tps65912_spi_probe()
32 spi_set_drvdata(spi, tps); in tps65912_spi_probe()
33 tps->dev = &spi->dev; in tps65912_spi_probe()
34 tps->irq = spi->irq; in tps65912_spi_probe()
36 tps->regmap = devm_regmap_init_spi(spi, &tps65912_regmap_config); in tps65912_spi_probe()
37 if (IS_ERR(tps->regmap)) { in tps65912_spi_probe()
38 dev_err(tps->dev, "Failed to initialize register map\n"); in tps65912_spi_probe()
39 return PTR_ERR(tps->regmap); in tps65912_spi_probe()
[all …]
H A Dtps6594-core.c431 struct tps6594 *tps = irq_drv_data; in tps6594_handle_post_irq() local
445 if (tps->use_crc) { in tps6594_handle_post_irq()
446 if (tps->chip_id == TPS65224) { in tps6594_handle_post_irq()
454 ret = regmap_write_bits(tps->regmap, regmap_reg, mask_val, mask_val); in tps6594_handle_post_irq()
505 static int tps6594_check_crc_mode(struct tps6594 *tps, bool primary_pmic) in tps6594_check_crc_mode() argument
510 if (tps->chip_id == TPS65224) { in tps6594_check_crc_mode()
522 tps->use_crc = true; in tps6594_check_crc_mode()
523 ret = regmap_test_bits(tps->regmap, regmap_reg, mask_val); in tps6594_check_crc_mode()
527 dev_info(tps->dev, "CRC feature enabled on %s PMIC", in tps6594_check_crc_mode()
535 static int tps6594_set_crc_feature(struct tps6594 *tps) in tps6594_set_crc_feature() argument
[all …]
/linux/drivers/rtc/
H A Drtc-tps6594.c53 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_alarm_irq_enable() local
58 return regmap_update_bits(tps->regmap, TPS6594_REG_RTC_INTERRUPTS, in tps6594_rtc_alarm_irq_enable()
63 static int tps6594_rtc_shadow_timestamp(struct device *dev, struct tps6594 *tps) in tps6594_rtc_shadow_timestamp() argument
71 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_shadow_timestamp()
80 return regmap_set_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_shadow_timestamp()
87 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_read_time() local
91 ret = regmap_test_bits(tps->regmap, TPS6594_REG_RTC_STATUS, in tps6594_rtc_read_time()
98 ret = tps6594_rtc_shadow_timestamp(dev, tps); in tps6594_rtc_read_time()
103 ret = regmap_bulk_read(tps->regmap, TPS6594_REG_RTC_SECONDS, rtc_data, in tps6594_rtc_read_time()
122 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_set_time() local
[all …]
H A Drtc-tps65910.c50 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_alarm_irq_enable() local
56 return regmap_write(tps->regmap, TPS65910_RTC_INTERRUPTS, val); in tps65910_rtc_alarm_irq_enable()
71 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_read_time() local
75 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL, in tps65910_rtc_read_time()
82 ret = regmap_bulk_read(tps->regmap, TPS65910_SECONDS, rtc_data, in tps65910_rtc_read_time()
102 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_set_time() local
113 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL, in tps65910_rtc_set_time()
121 ret = regmap_bulk_write(tps->regmap, TPS65910_SECONDS, rtc_data, in tps65910_rtc_set_time()
129 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL, in tps65910_rtc_set_time()
144 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_read_alarm() local
[all …]
/linux/drivers/media/usb/dvb-usb/
H A DcinergyT2-fe.c31 uint16_t tps = 0; in compute_tps() local
35 tps |= (1 << 7); in compute_tps()
38 tps |= (2 << 7); in compute_tps()
41 tps |= (3 << 7); in compute_tps()
44 tps |= (4 << 7); in compute_tps()
54 tps |= (1 << 4); in compute_tps()
57 tps |= (2 << 4); in compute_tps()
60 tps |= (3 << 4); in compute_tps()
63 tps |= (4 << 4); in compute_tps()
73 tps |= (1 << 13); in compute_tps()
[all …]
/linux/tools/perf/util/
H A Dtrace-event-info.c144 static bool name_in_tp_list(char *sys, struct tracepoint_path *tps) in name_in_tp_list() argument
146 while (tps) { in name_in_tp_list()
147 if (!strcmp(sys, tps->name)) in name_in_tp_list()
149 tps = tps->next; in name_in_tp_list()
155 #define for_each_event_tps(dir, dent, tps) \ argument
161 static int copy_event_system(const char *sys, struct tracepoint_path *tps) in copy_event_system() argument
177 for_each_event_tps(dir, dent, tps) { in copy_event_system()
178 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system()
199 for_each_event_tps(dir, dent, tps) { in copy_event_system()
200 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system()
[all …]
/linux/drivers/media/dvb-frontends/
H A Dmt352.c162 unsigned int tps = 0; in mt352_set_parameters() local
166 tps |= (1 << 7); in mt352_set_parameters()
169 tps |= (2 << 7); in mt352_set_parameters()
172 tps |= (3 << 7); in mt352_set_parameters()
175 tps |= (4 << 7); in mt352_set_parameters()
186 tps |= (1 << 4); in mt352_set_parameters()
189 tps |= (2 << 4); in mt352_set_parameters()
192 tps |= (3 << 4); in mt352_set_parameters()
195 tps |= (4 << 4); in mt352_set_parameters()
214 tps |= (1 << 13); in mt352_set_parameters()
[all …]
H A Dzl10353.c172 u16 tps = 0; in zl10353_set_parameters() local
223 tps |= (1 << 7); in zl10353_set_parameters()
226 tps |= (2 << 7); in zl10353_set_parameters()
229 tps |= (3 << 7); in zl10353_set_parameters()
232 tps |= (4 << 7); in zl10353_set_parameters()
243 tps |= (1 << 4); in zl10353_set_parameters()
246 tps |= (2 << 4); in zl10353_set_parameters()
249 tps |= (3 << 4); in zl10353_set_parameters()
252 tps |= (4 << 4); in zl10353_set_parameters()
271 tps |= (1 << 13); in zl10353_set_parameters()
[all …]
/linux/drivers/misc/
H A Dtps6594-esm.c35 struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent); in tps6594_esm_probe() local
48 ret = regmap_read(tps->regmap, TPS6594_REG_DEV_REV, &rev); in tps6594_esm_probe()
68 ret = regmap_set_bits(tps->regmap, TPS6594_REG_ESM_SOC_MODE_CFG, in tps6594_esm_probe()
73 ret = regmap_set_bits(tps->regmap, TPS6594_REG_ESM_SOC_START_REG, in tps6594_esm_probe()
86 struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent); in tps6594_esm_remove() local
90 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_ESM_SOC_START_REG, in tps6594_esm_remove()
97 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_ESM_SOC_MODE_CFG, in tps6594_esm_remove()
109 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_esm_suspend() local
112 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_ESM_SOC_START_REG, in tps6594_esm_suspend()
122 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_esm_resume() local
[all …]
/linux/drivers/gpio/
H A Dgpio-tps65912.c20 struct tps65912 *tps; member
30 ret = regmap_read(gpio->tps->regmap, TPS65912_GPIO1 + offset, &val); in tps65912_gpio_get_direction()
44 return regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, in tps65912_gpio_direction_input()
54 regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, in tps65912_gpio_direction_output()
57 return regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, in tps65912_gpio_direction_output()
66 ret = regmap_read(gpio->tps->regmap, TPS65912_GPIO1 + offset, &val); in tps65912_gpio_get()
81 regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, in tps65912_gpio_set()
100 struct tps65912 *tps = dev_get_drvdata(pdev->dev.parent); in tps65912_gpio_probe() local
107 gpio->tps = dev_get_drvdata(pdev->dev.parent); in tps65912_gpio_probe()
109 gpio->gpio_chip.parent = tps->dev; in tps65912_gpio_probe()
/linux/include/linux/mfd/
H A Dtps65090.h116 struct tps65090 *tps = dev_get_drvdata(dev); in tps65090_write() local
118 return regmap_write(tps->rmap, reg, val); in tps65090_write()
123 struct tps65090 *tps = dev_get_drvdata(dev); in tps65090_read() local
127 ret = regmap_read(tps->rmap, reg, &temp_val); in tps65090_read()
136 struct tps65090 *tps = dev_get_drvdata(dev); in tps65090_set_bits() local
138 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), ~0u); in tps65090_set_bits()
144 struct tps65090 *tps = dev_get_drvdata(dev); in tps65090_clr_bits() local
146 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), 0u); in tps65090_clr_bits()

1234