Lines Matching refs:mod_no
414 static struct regmap *twl_get_regmap(u8 mod_no) in twl_get_regmap() argument
423 if (unlikely(mod_no >= twl_get_last_module())) { in twl_get_regmap()
424 pr_err("%s: invalid module number %d\n", DRIVER_NAME, mod_no); in twl_get_regmap()
428 sid = twl_priv->twl_map[mod_no].sid; in twl_get_regmap()
443 int twl_i2c_write(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes) in twl_i2c_write() argument
445 struct regmap *regmap = twl_get_regmap(mod_no); in twl_i2c_write()
451 ret = regmap_bulk_write(regmap, twl_priv->twl_map[mod_no].base + reg, in twl_i2c_write()
456 DRIVER_NAME, mod_no, reg, num_bytes); in twl_i2c_write()
471 int twl_i2c_read(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes) in twl_i2c_read() argument
473 struct regmap *regmap = twl_get_regmap(mod_no); in twl_i2c_read()
479 ret = regmap_bulk_read(regmap, twl_priv->twl_map[mod_no].base + reg, in twl_i2c_read()
484 DRIVER_NAME, mod_no, reg, num_bytes); in twl_i2c_read()
498 int twl_set_regcache_bypass(u8 mod_no, bool enable) in twl_set_regcache_bypass() argument
500 struct regmap *regmap = twl_get_regmap(mod_no); in twl_set_regcache_bypass()