Lines Matching defs:msg
117 struct i2c_msg *msg)
120 int addr = i2c_8bit_addr_from_msg(msg);
123 msg->addr, msg->flags & I2C_M_RD ? 'R' : 'W', addr);
187 struct i2c_msg *msg = NULL;
210 msg = &msgs[curmsg];
212 addr = (0x7f & msg->addr) ;
214 if (msg->flags & I2C_M_RD)
216 curmsg, msg->len, addr, (addr << 1) | 1);
219 curmsg, msg->len, addr, addr << 1,
220 msg->len == 0 ? "" : ", ");
221 for (i = 0; i < msg->len; i++)
222 printk("%#04x%s", msg->buf[i], i == msg->len - 1 ? "" : ", ");
234 msg = &msgs[curmsg];
243 completed = pca_address(adap, msg);
248 if (numbytes < msg->len) {
250 msg->buf[numbytes]);
268 completed = pca_rx_ack(adap, msg->len > 1);
272 if (numbytes < msg->len) {
273 pca_rx_byte(adap, &msg->buf[numbytes], 1);
276 numbytes < msg->len - 1);
312 if (numbytes == msg->len - 1) {
313 pca_rx_byte(adap, &msg->buf[numbytes], 0);
322 numbytes, msg->len);