Searched refs:mod_no (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/drivers/mfd/ |
D | twl-core.c | 411 static struct regmap *twl_get_regmap(u8 mod_no) in twl_get_regmap() argument 420 if (unlikely(mod_no >= twl_get_last_module())) { in twl_get_regmap() 421 pr_err("%s: invalid module number %d\n", DRIVER_NAME, mod_no); in twl_get_regmap() 425 sid = twl_priv->twl_map[mod_no].sid; in twl_get_regmap() 440 int twl_i2c_write(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes) in twl_i2c_write() argument 442 struct regmap *regmap = twl_get_regmap(mod_no); in twl_i2c_write() 448 ret = regmap_bulk_write(regmap, twl_priv->twl_map[mod_no].base + reg, in twl_i2c_write() 453 DRIVER_NAME, mod_no, reg, num_bytes); in twl_i2c_write() 468 int twl_i2c_read(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes) in twl_i2c_read() argument 470 struct regmap *regmap = twl_get_regmap(mod_no); in twl_i2c_read() [all …]
|
/Linux-v5.4/include/linux/mfd/ |
D | twl.h | 164 int twl_set_regcache_bypass(u8 mod_no, bool enable); 169 int twl_i2c_write(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes); 170 int twl_i2c_read(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes); 175 static inline int twl_i2c_write_u8(u8 mod_no, u8 val, u8 reg) { in twl_i2c_write_u8() argument 176 return twl_i2c_write(mod_no, &val, reg, 1); in twl_i2c_write_u8() 179 static inline int twl_i2c_read_u8(u8 mod_no, u8 *val, u8 reg) { in twl_i2c_read_u8() argument 180 return twl_i2c_read(mod_no, val, reg, 1); in twl_i2c_read_u8() 183 static inline int twl_i2c_write_u16(u8 mod_no, u16 val, u8 reg) { in twl_i2c_write_u16() argument 185 return twl_i2c_write(mod_no, (u8*) &val, reg, 2); in twl_i2c_write_u16() 188 static inline int twl_i2c_read_u16(u8 mod_no, u16 *val, u8 reg) { in twl_i2c_read_u16() argument [all …]
|
/Linux-v5.4/drivers/power/supply/ |
D | twl4030_charger.c | 157 static int twl4030_clear_set(u8 mod_no, u8 clear, u8 set, u8 reg) in twl4030_clear_set() argument 162 ret = twl_i2c_read_u8(mod_no, &val, reg); in twl4030_clear_set() 169 return twl_i2c_write_u8(mod_no, val, reg); in twl4030_clear_set()
|