Lines Matching refs:msgs
2201 struct i2c_msg msgs[2];
2210 msgs[0].addr = client->addr;
2211 msgs[0].flags = 0;
2212 msgs[0].len = sizeof(addr_buf);
2213 msgs[0].buf = addr_buf;
2214 msgs[1].addr = client->addr;
2215 msgs[1].flags = I2C_M_RD;
2216 msgs[1].len = len;
2217 msgs[1].buf = &data_buf[4 - len];
2219 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs));
2220 if (ret != ARRAY_SIZE(msgs))