Home
last modified time | relevance | path

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

1234

/linux-6.6.21/drivers/usb/typec/tipd/
Dcore.c124 tps6598x_block_read(struct tps6598x *tps, u8 reg, void *val, size_t len) in tps6598x_block_read() argument
132 if (!tps->i2c_protocol) in tps6598x_block_read()
133 return regmap_raw_read(tps->regmap, reg, val, len); in tps6598x_block_read()
135 ret = regmap_raw_read(tps->regmap, reg, data, len + 1); in tps6598x_block_read()
146 static int tps6598x_block_write(struct tps6598x *tps, u8 reg, in tps6598x_block_write() argument
154 if (!tps->i2c_protocol) in tps6598x_block_write()
155 return regmap_raw_write(tps->regmap, reg, val, len); in tps6598x_block_write()
160 return regmap_raw_write(tps->regmap, reg, data, len + 1); in tps6598x_block_write()
163 static inline int tps6598x_read8(struct tps6598x *tps, u8 reg, u8 *val) in tps6598x_read8() argument
165 return tps6598x_block_read(tps, reg, val, sizeof(u8)); in tps6598x_read8()
[all …]
/linux-6.6.21/drivers/regulator/
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 …]
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 …]
Dtps51632-regulator.c83 struct tps51632_chip *tps = rdev_get_drvdata(rdev); in tps51632_dcdc_set_ramp_delay() local
92 ret = regmap_write(tps->regmap, TPS51632_SLEW_REGS, BIT(bit)); in tps51632_dcdc_set_ramp_delay()
94 dev_err(tps->dev, "SLEW reg write failed, err %d\n", ret); in tps51632_dcdc_set_ramp_delay()
106 static int tps51632_init_dcdc(struct tps51632_chip *tps, in tps51632_init_dcdc() argument
118 ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_BASE_REG, vsel); in tps51632_init_dcdc()
120 dev_err(tps->dev, "BASE reg write failed, err %d\n", ret); in tps51632_init_dcdc()
135 ret = regmap_read(tps->regmap, TPS51632_VMAX_REG, &vmax); in tps51632_init_dcdc()
137 dev_err(tps->dev, "VMAX read failed, err %d\n", ret); in tps51632_init_dcdc()
142 ret = regmap_write(tps->regmap, TPS51632_VMAX_REG, in tps51632_init_dcdc()
145 dev_err(tps->dev, in tps51632_init_dcdc()
[all …]
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 …]
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 …]
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 …]
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 …]
/linux-6.6.21/drivers/mfd/
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 …]
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 …]
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 …]
Dtps65086.c66 struct tps65086 *tps; in tps65086_probe() local
70 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65086_probe()
71 if (!tps) in tps65086_probe()
74 i2c_set_clientdata(client, tps); in tps65086_probe()
75 tps->dev = &client->dev; in tps65086_probe()
76 tps->irq = client->irq; in tps65086_probe()
78 tps->regmap = devm_regmap_init_i2c(client, &tps65086_regmap_config); in tps65086_probe()
79 if (IS_ERR(tps->regmap)) { in tps65086_probe()
80 dev_err(tps->dev, "Failed to initialize register map\n"); in tps65086_probe()
81 return PTR_ERR(tps->regmap); in tps65086_probe()
[all …]
Dtps65219.c14 static int tps65219_warm_reset(struct tps65219 *tps) in tps65219_warm_reset() argument
16 return regmap_update_bits(tps->regmap, TPS65219_REG_MFP_CTRL, in tps65219_warm_reset()
21 static int tps65219_cold_reset(struct tps65219 *tps) in tps65219_cold_reset() argument
23 return regmap_update_bits(tps->regmap, TPS65219_REG_MFP_CTRL, in tps65219_cold_reset()
28 static int tps65219_soft_shutdown(struct tps65219 *tps) in tps65219_soft_shutdown() argument
30 return regmap_update_bits(tps->regmap, TPS65219_REG_MFP_CTRL, in tps65219_soft_shutdown()
41 static int tps65219_restart(struct tps65219 *tps, unsigned long reboot_mode) in tps65219_restart() argument
44 tps65219_warm_reset(tps); in tps65219_restart()
46 tps65219_cold_reset(tps); in tps65219_restart()
230 struct tps65219 *tps; in tps65219_probe() local
[all …]
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 …]
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 …]
Dtps6594-spi.c29 struct tps6594 *tps = spi_get_drvdata(spi); in tps6594_spi_reg_read() local
37 if (tps->use_crc) in tps6594_spi_reg_read()
44 if (tps->use_crc && buf[3] != crc8(tps6594_spi_crc_table, buf, 3, CRC8_INIT_VALUE)) in tps6594_spi_reg_read()
55 struct tps6594 *tps = spi_get_drvdata(spi); in tps6594_spi_reg_write() local
63 if (tps->use_crc) in tps6594_spi_reg_write()
91 struct tps6594 *tps; in tps6594_spi_probe() local
94 tps = devm_kzalloc(dev, sizeof(*tps), GFP_KERNEL); in tps6594_spi_probe()
95 if (!tps) in tps6594_spi_probe()
98 spi_set_drvdata(spi, tps); in tps6594_spi_probe()
100 tps->dev = dev; in tps6594_spi_probe()
[all …]
Dtps6594-core.c289 struct tps6594 *tps = irq_drv_data; in tps6594_handle_post_irq() local
302 if (tps->use_crc) in tps6594_handle_post_irq()
303 ret = regmap_write_bits(tps->regmap, TPS6594_REG_INT_COMM_ERR, in tps6594_handle_post_irq()
329 static int tps6594_check_crc_mode(struct tps6594 *tps, bool primary_pmic) in tps6594_check_crc_mode() argument
337 tps->use_crc = true; in tps6594_check_crc_mode()
338 ret = regmap_test_bits(tps->regmap, TPS6594_REG_SERIAL_IF_CONFIG, in tps6594_check_crc_mode()
343 dev_info(tps->dev, "CRC feature enabled on %s PMIC", in tps6594_check_crc_mode()
351 static int tps6594_set_crc_feature(struct tps6594 *tps) in tps6594_set_crc_feature() argument
355 ret = tps6594_check_crc_mode(tps, true); in tps6594_set_crc_feature()
361 tps->use_crc = false; in tps6594_set_crc_feature()
[all …]
Dtps6594-i2c.c107 struct tps6594 *tps = i2c_get_clientdata(client); in tps6594_i2c_read() local
116 if (tps->use_crc) { in tps6594_i2c_read()
145 struct tps6594 *tps = i2c_get_clientdata(client); in tps6594_i2c_write() local
154 if (tps->use_crc) { in tps6594_i2c_write()
206 struct tps6594 *tps; in tps6594_i2c_probe() local
209 tps = devm_kzalloc(dev, sizeof(*tps), GFP_KERNEL); in tps6594_i2c_probe()
210 if (!tps) in tps6594_i2c_probe()
213 i2c_set_clientdata(client, tps); in tps6594_i2c_probe()
215 tps->dev = dev; in tps6594_i2c_probe()
216 tps->reg = client->addr; in tps6594_i2c_probe()
[all …]
Dtps65912-core.c89 int tps65912_device_init(struct tps65912 *tps) in tps65912_device_init() argument
93 ret = regmap_add_irq_chip(tps->regmap, tps->irq, IRQF_ONESHOT, 0, in tps65912_device_init()
94 &tps65912_irq_chip, &tps->irq_data); in tps65912_device_init()
98 ret = mfd_add_devices(tps->dev, PLATFORM_DEVID_AUTO, tps65912_cells, in tps65912_device_init()
100 regmap_irq_get_domain(tps->irq_data)); in tps65912_device_init()
102 regmap_del_irq_chip(tps->irq, tps->irq_data); in tps65912_device_init()
110 void tps65912_device_exit(struct tps65912 *tps) in tps65912_device_exit() argument
112 regmap_del_irq_chip(tps->irq, tps->irq_data); in tps65912_device_exit()
/linux-6.6.21/drivers/media/usb/dvb-usb/
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-6.6.21/tools/perf/util/
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-6.6.21/drivers/media/dvb-frontends/
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 …]
/linux-6.6.21/drivers/gpio/
Dgpio-tps65219.c23 struct tps65219 *tps; member
34 ret = regmap_read(gpio->tps->regmap, TPS65219_REG_MFP_1_CONFIG, &val); in tps65219_gpio_get_direction()
44 struct device *dev = gpio->tps->dev; in tps65219_gpio_get()
52 ret = regmap_read(gpio->tps->regmap, TPS65219_REG_MFP_CTRL, &val); in tps65219_gpio_get()
73 struct device *dev = gpio->tps->dev; in tps65219_gpio_set()
81 if (regmap_update_bits(gpio->tps->regmap, TPS65219_REG_GENERAL_CONFIG, mask, v)) in tps65219_gpio_set()
89 struct device *dev = gpio->tps->dev; in tps65219_gpio_change_direction()
100 int ret = regmap_update_bits(gpio->tps->regmap, TPS65219_REG_MFP_1_CONFIG, in tps65219_gpio_change_direction()
120 struct device *dev = gpio->tps->dev; in tps65219_gpio_direction_input()
160 struct tps65219 *tps = dev_get_drvdata(pdev->dev.parent); in tps65219_gpio_probe() local
[all …]
/linux-6.6.21/drivers/misc/
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-6.6.21/drivers/rtc/
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 …]

1234