Lines Matching defs:tx_buf
25 * @tx_buf: Buffer used for transmitting data to the sensor over i2c.
38 u8 *tx_buf;
90 if (!rmi_i2c->tx_buf || rmi_i2c->tx_buf_size < tx_size) {
91 if (rmi_i2c->tx_buf)
92 devm_kfree(&client->dev, rmi_i2c->tx_buf);
94 rmi_i2c->tx_buf = devm_kzalloc(&client->dev,
97 if (!rmi_i2c->tx_buf) {
104 rmi_i2c->tx_buf[0] = addr & 0xff;
105 memcpy(rmi_i2c->tx_buf + 1, buf, len);
113 retval = i2c_master_send(client, rmi_i2c->tx_buf, tx_size);