Lines Matching defs:msgs
252 static int owl_i2c_xfer_common(struct i2c_adapter *adap, struct i2c_msg *msgs,
314 i2c_cmd |= OWL_I2C_CMD_AS(msgs[0].len + 1) |
318 addr = i2c_8bit_addr_from_msg(&msgs[0]);
322 for (idx = 0; idx < msgs[0].len; idx++)
323 writel(msgs[0].buf[idx],
326 msg = &msgs[1];
330 msg = &msgs[0];
410 static int owl_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
413 return owl_i2c_xfer_common(adap, msgs, num, false);
417 struct i2c_msg *msgs, int num)
419 return owl_i2c_xfer_common(adap, msgs, num, true);