Lines Matching refs:wbuf
191 u8 wbuf[4], rbuf[3]; in edt_M06_i2c_read() local
195 wbuf[0] = addr; in edt_M06_i2c_read()
199 wbuf[0] = 0xf5; in edt_M06_i2c_read()
200 wbuf[1] = 0xe; in edt_M06_i2c_read()
201 wbuf[2] = *((u8 *)val_buf); in edt_M06_i2c_read()
209 wbuf[0] = M06_REG_CMD(tsdata->factory_mode); in edt_M06_i2c_read()
210 wbuf[1] = M06_REG_ADDR(tsdata->factory_mode, addr); in edt_M06_i2c_read()
211 wbuf[1] |= tsdata->factory_mode ? 0x80 : 0x40; in edt_M06_i2c_read()
217 xfer[0].buf = wbuf; in edt_M06_i2c_read()
247 wbuf[2] = rbuf[0]; in edt_M06_i2c_read()
248 wbuf[3] = rbuf[1]; in edt_M06_i2c_read()
249 if (!edt_ft5x06_ts_check_crc(tsdata, wbuf, 4)) in edt_M06_i2c_read()
264 u8 wbuf[4]; in edt_M06_i2c_write() local
271 wbuf[0] = M06_REG_CMD(tsdata->factory_mode); in edt_M06_i2c_write()
272 wbuf[1] = M06_REG_ADDR(tsdata->factory_mode, addr); in edt_M06_i2c_write()
273 wbuf[2] = val; in edt_M06_i2c_write()
274 wbuf[3] = wbuf[0] ^ wbuf[1] ^ wbuf[2]; in edt_M06_i2c_write()
279 xfer.buf = wbuf; in edt_M06_i2c_write()