Lines Matching refs:mod_no

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()
476 ret = regmap_bulk_read(regmap, twl_priv->twl_map[mod_no].base + reg, in twl_i2c_read()
481 DRIVER_NAME, mod_no, reg, num_bytes); in twl_i2c_read()
495 int twl_set_regcache_bypass(u8 mod_no, bool enable) in twl_set_regcache_bypass() argument
497 struct regmap *regmap = twl_get_regmap(mod_no); in twl_set_regcache_bypass()
595 add_numbered_child(unsigned mod_no, const char *name, int num, in add_numbered_child() argument
603 if (unlikely(mod_no >= twl_get_last_module())) { in add_numbered_child()
604 pr_err("%s: invalid module number %d\n", DRIVER_NAME, mod_no); in add_numbered_child()
607 sid = twl_priv->twl_map[mod_no].sid; in add_numbered_child()
651 static inline struct device *add_child(unsigned mod_no, const char *name, in add_child() argument
655 return add_numbered_child(mod_no, name, -1, pdata, pdata_len, in add_child()