Lines Matching defs:mod_no
324 * @mod_no: module number
334 int twl_i2c_write(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes)
341 if (unlikely(mod_no > TWL_MODULE_LAST)) {
342 pr_err("%s: invalid module number %d\n", DRIVER_NAME, mod_no);
345 sid = twl_map[mod_no].sid;
363 *value = twl_map[mod_no].base + reg;
383 * @mod_no: module number
390 int twl_i2c_read(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes)
398 if (unlikely(mod_no > TWL_MODULE_LAST)) {
399 pr_err("%s: invalid module number %d\n", DRIVER_NAME, mod_no);
402 sid = twl_map[mod_no].sid;
415 val = twl_map[mod_no].base + reg;
442 * @mod_no: module number
448 int twl_i2c_write_u8(u8 mod_no, u8 value, u8 reg)
455 return twl_i2c_write(mod_no, temp_buffer, reg, 1);
461 * @mod_no: module number
467 int twl_i2c_read_u8(u8 mod_no, u8 *value, u8 reg)
469 return twl_i2c_read(mod_no, value, reg, 1);