Lines Matching refs:msgs
541 struct i2c_msg msgs[2];
550 msgs[0].addr = client->addr;
551 msgs[0].flags = 0;
552 msgs[0].len = sizeof(addr_buf);
553 msgs[0].buf = addr_buf;
554 msgs[1].addr = client->addr;
555 msgs[1].flags = I2C_M_RD;
556 msgs[1].len = len;
557 msgs[1].buf = &data_buf[4 - len];
559 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs));
560 if (ret != ARRAY_SIZE(msgs))