Lines Matching refs:pmsg
345 struct i2c_msg *pmsg; in diolan_usb_xfer() local
354 pmsg = &msgs[i]; in diolan_usb_xfer()
361 i2c_8bit_addr_from_msg(pmsg)); in diolan_usb_xfer()
364 if (pmsg->flags & I2C_M_RD) { in diolan_usb_xfer()
365 for (j = 0; j < pmsg->len; j++) { in diolan_usb_xfer()
367 bool ack = j < pmsg->len - 1; in diolan_usb_xfer()
373 if (j == 0 && (pmsg->flags & I2C_M_RECV_LEN)) in diolan_usb_xfer()
382 if (j == 0 && (pmsg->flags & I2C_M_RECV_LEN)) { in diolan_usb_xfer()
388 pmsg->len += byte; in diolan_usb_xfer()
390 pmsg->buf[j] = byte; in diolan_usb_xfer()
393 for (j = 0; j < pmsg->len; j++) { in diolan_usb_xfer()
395 pmsg->buf[j]); in diolan_usb_xfer()