Lines Matching refs:tx_buf
222 u8 tx_buf[] = { 0x22, 0x00, 0x10, 0x0E, 0x23, 0x00 };
225 tx_buf[2] |= desc_idx & 0xF;
227 error = wdt87xx_i2c_xfer(client, tx_buf, sizeof(tx_buf),
248 u8 tx_buf[] = { 0x22, 0x00, 0x13, 0x0E, str_idx, 0x23, 0x00 };
256 error = wdt87xx_i2c_xfer(client, tx_buf, sizeof(tx_buf),
280 u8 tx_buf[8];
290 tx_buf[tx_len++] = 0x22;
291 tx_buf[tx_len++] = 0x00;
293 tx_buf[tx_len++] = 0x30;
294 tx_buf[tx_len++] = 0x02;
295 tx_buf[tx_len++] = buf[CMD_REPORT_ID_OFFSET];
297 tx_buf[tx_len++] = 0x30 | buf[CMD_REPORT_ID_OFFSET];
298 tx_buf[tx_len++] = 0x02;
300 tx_buf[tx_len++] = 0x23;
301 tx_buf[tx_len++] = 0x00;
303 error = wdt87xx_i2c_xfer(client, tx_buf, tx_len, rx_buf, rx_len);
320 u8 tx_buf[PKT_WRITE_SIZE];
325 tx_buf[tx_len++] = 0x22;
326 tx_buf[tx_len++] = 0x00;
328 tx_buf[tx_len++] = 0x30;
329 tx_buf[tx_len++] = 0x03;
330 tx_buf[tx_len++] = buf[CMD_REPORT_ID_OFFSET];
332 tx_buf[tx_len++] = 0x30 | buf[CMD_REPORT_ID_OFFSET];
333 tx_buf[tx_len++] = 0x03;
335 tx_buf[tx_len++] = 0x23;
336 tx_buf[tx_len++] = 0x00;
337 tx_buf[tx_len++] = (buf_size & 0xFF);
338 tx_buf[tx_len++] = ((buf_size & 0xFF00) >> 8);
340 if (tx_len + buf_size > sizeof(tx_buf))
343 memcpy(&tx_buf[tx_len], buf, buf_size);
346 error = i2c_master_send(client, tx_buf, tx_len);