Lines Matching refs:msgs
86 struct i2c_msg msgs[2] = {
106 msgs[0].buf[0] = cmd;
107 msgs[0].buf[1] = w_len;
108 memcpy(&msgs[0].buf[2], data_w, w_len);
110 ret = i2c_transfer(client->adapter, msgs, 2);
121 addr = i2c_8bit_addr_from_msg(&msgs[0]);
123 crc = crc8(pmbus_crc_table, msgs[0].buf, msgs[0].len, crc);
125 addr = i2c_8bit_addr_from_msg(&msgs[1]);
127 crc = crc8(pmbus_crc_table, msgs[1].buf, msgs[1].buf[0] + 1, crc);
129 if (crc != msgs[1].buf[msgs[1].buf[0] + 1]) {
135 memcpy(data_r, &msgs[1].buf[1], msgs[1].buf[0]);
137 ret = msgs[1].buf[0];