• Home
  • Raw
  • Download

Lines Matching refs:msgs

956 					struct i2c_msg msgs[], int num)  in go7007_usb_i2c_master_xfer()  argument
973 if (i + 1 < num && msgs[i].addr == msgs[i + 1].addr && in go7007_usb_i2c_master_xfer()
974 !(msgs[i].flags & I2C_M_RD) && in go7007_usb_i2c_master_xfer()
975 (msgs[i + 1].flags & I2C_M_RD)) { in go7007_usb_i2c_master_xfer()
978 msgs[i].len, msgs[i + 1].len, msgs[i].addr); in go7007_usb_i2c_master_xfer()
981 buf[1] = msgs[i].len + 1; in go7007_usb_i2c_master_xfer()
982 buf[2] = msgs[i].addr << 1; in go7007_usb_i2c_master_xfer()
983 memcpy(&buf[3], msgs[i].buf, msgs[i].len); in go7007_usb_i2c_master_xfer()
984 buf_len = msgs[i].len + 3; in go7007_usb_i2c_master_xfer()
985 buf[buf_len++] = msgs[++i].len; in go7007_usb_i2c_master_xfer()
986 } else if (msgs[i].flags & I2C_M_RD) { in go7007_usb_i2c_master_xfer()
989 msgs[i].len, msgs[i].addr); in go7007_usb_i2c_master_xfer()
993 buf[2] = msgs[i].addr << 1; in go7007_usb_i2c_master_xfer()
994 buf[3] = msgs[i].len; in go7007_usb_i2c_master_xfer()
999 msgs[i].len, msgs[i].addr); in go7007_usb_i2c_master_xfer()
1002 buf[1] = msgs[i].len + 1; in go7007_usb_i2c_master_xfer()
1003 buf[2] = msgs[i].addr << 1; in go7007_usb_i2c_master_xfer()
1004 memcpy(&buf[3], msgs[i].buf, msgs[i].len); in go7007_usb_i2c_master_xfer()
1005 buf_len = msgs[i].len + 3; in go7007_usb_i2c_master_xfer()
1011 if (msgs[i].flags & I2C_M_RD) { in go7007_usb_i2c_master_xfer()
1012 memset(buf, 0, msgs[i].len + 1); in go7007_usb_i2c_master_xfer()
1014 msgs[i].len + 1, 1) < 0) in go7007_usb_i2c_master_xfer()
1016 memcpy(msgs[i].buf, buf + 1, msgs[i].len); in go7007_usb_i2c_master_xfer()