Lines Matching refs:msgs
84 struct i2c_msg *msgs,
91 struct i2c_msg *msg = &msgs[i];
128 struct i2c_msg *msgs,
136 if (msgs[i].flags & I2C_M_RD)
137 len += msgs[i].len;
143 if (msgs[i].flags & I2C_M_RD) {
144 memcpy(msgs[i].buf, buf + pos, msgs[i].len);
145 pos += msgs[i].len;
152 static int tegra_bpmp_i2c_msg_len_check(struct i2c_msg *msgs, unsigned int num)
158 if (!(msgs[i].flags & I2C_M_RD))
159 tx_len += SERIALI2C_HDR_SIZE + msgs[i].len;
165 if ((msgs[i].flags & I2C_M_RD))
166 rx_len += msgs[i].len;
226 struct i2c_msg *msgs, int num,
234 err = tegra_bpmp_i2c_msg_len_check(msgs, num);
243 tegra_bpmp_serialize_i2c_msg(i2c, &request, msgs, num);
250 err = tegra_bpmp_i2c_deserialize(i2c, &response, msgs, num);
260 struct i2c_msg *msgs, int num)
262 return tegra_bpmp_i2c_xfer_common(adapter, msgs, num, false);
266 struct i2c_msg *msgs, int num)
268 return tegra_bpmp_i2c_xfer_common(adapter, msgs, num, true);