Lines Matching refs:pmsg
343 struct i2c_msg *pmsg; in diolan_usb_xfer() local
352 pmsg = &msgs[i]; in diolan_usb_xfer()
359 i2c_8bit_addr_from_msg(pmsg)); in diolan_usb_xfer()
362 if (pmsg->flags & I2C_M_RD) { in diolan_usb_xfer()
363 for (j = 0; j < pmsg->len; j++) { in diolan_usb_xfer()
365 bool ack = j < pmsg->len - 1; in diolan_usb_xfer()
371 if (j == 0 && (pmsg->flags & I2C_M_RECV_LEN)) in diolan_usb_xfer()
380 if (j == 0 && (pmsg->flags & I2C_M_RECV_LEN)) { in diolan_usb_xfer()
386 pmsg->len += byte; in diolan_usb_xfer()
388 pmsg->buf[j] = byte; in diolan_usb_xfer()
391 for (j = 0; j < pmsg->len; j++) { in diolan_usb_xfer()
393 pmsg->buf[j]); in diolan_usb_xfer()