Lines Matching refs:msgs
658 struct i2c_msg msgs[2];
667 msgs[0].addr = client->addr;
668 msgs[0].flags = 0;
669 msgs[0].len = sizeof(addr_buf);
670 msgs[0].buf = addr_buf;
671 msgs[1].addr = client->addr;
672 msgs[1].flags = I2C_M_RD;
673 msgs[1].len = len;
674 msgs[1].buf = &data_buf[4 - len];
676 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs));
677 if (ret != ARRAY_SIZE(msgs))