Lines Matching full:wbuf
129 struct usbio_i2c_rw *wbuf = i2c->rwbuf; in usbio_i2c_write() local
137 wbuf->busid = i2c->adev->id; in usbio_i2c_write()
138 wbuf->config = cpu_to_le16(msg->addr); in usbio_i2c_write()
141 wbuf->size = cpu_to_le16(txchunk); in usbio_i2c_write()
143 wbuf->size = cpu_to_le16(msg->len); in usbio_i2c_write()
145 memcpy(wbuf->data, &msg->buf[len], txchunk); in usbio_i2c_write()
150 wbuf, sizeof(*wbuf) + txchunk, in usbio_i2c_write()
151 wbuf, sizeof(*wbuf)); in usbio_i2c_write()
162 wbuf->busid = i2c->adev->id; in usbio_i2c_write()
163 wbuf->config = cpu_to_le16(msg->addr); in usbio_i2c_write()
164 wbuf->size = cpu_to_le16(msg->len); in usbio_i2c_write()
165 memcpy(wbuf->data, msg->buf, msg->len); in usbio_i2c_write()
168 wbuf, sizeof(*wbuf) + msg->len, wbuf, sizeof(*wbuf)); in usbio_i2c_write()
169 if (ret != sizeof(*wbuf) || le16_to_cpu(wbuf->size) != msg->len) in usbio_i2c_write()