Lines Matching defs:msgs
102 struct i2c_msg *msgs,
110 struct i2c_msg *msg = &msgs[i];
151 struct i2c_msg *msgs,
159 if (msgs[i].flags & I2C_M_RD)
160 len += msgs[i].len;
166 if (msgs[i].flags & I2C_M_RD) {
167 memcpy(msgs[i].buf, buf + pos, msgs[i].len);
168 pos += msgs[i].len;
175 static int tegra_bpmp_i2c_msg_len_check(struct i2c_msg *msgs, unsigned int num)
181 if (!(msgs[i].flags & I2C_M_RD))
182 tx_len += SERIALI2C_HDR_SIZE + msgs[i].len;
188 if ((msgs[i].flags & I2C_M_RD))
189 rx_len += msgs[i].len;
224 struct i2c_msg *msgs, int num,
232 err = tegra_bpmp_i2c_msg_len_check(msgs, num);
241 err = tegra_bpmp_serialize_i2c_msg(i2c, &request, msgs, num);
253 err = tegra_bpmp_i2c_deserialize(i2c, &response, msgs, num);
263 struct i2c_msg *msgs, int num)
265 return tegra_bpmp_i2c_xfer_common(adapter, msgs, num, false);
269 struct i2c_msg *msgs, int num)
271 return tegra_bpmp_i2c_xfer_common(adapter, msgs, num, true);