Lines Matching refs:msgs

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