Lines Matching refs:read_buf
241 u8 read_buf[4] = {0, 0, 0, 0}; in judge_chip_type() local
245 gsl_ts_read(client, 0xfc, read_buf, sizeof(read_buf)); in judge_chip_type()
247 if (read_buf[2] != 0x36 && read_buf[2] != 0x88) { in judge_chip_type()
249 gsl_ts_read(client, 0xfc, read_buf, sizeof(read_buf)); in judge_chip_type()
252 if (read_buf[2] == 0x36) { in judge_chip_type()
260 print_info("chip_type=%x, reg=%x\n", chip_type, read_buf[2]); in judge_chip_type()
309 u8 read_buf = 0; in test_i2c() local
313 ret = gsl_ts_read(client, 0xf0, &read_buf, sizeof(read_buf)); in test_i2c()
321 ret = gsl_ts_read(client, 0xf0, &read_buf, sizeof(read_buf)); in test_i2c()
394 u8 read_buf[4] = {0}; in check_mem_data() local
397 gsl_ts_read(client, 0xb0, read_buf, sizeof(read_buf)); in check_mem_data()
399 if (read_buf[3] != 0x5a || read_buf[2] != 0x5a || read_buf[1] != 0x5a || read_buf[0] != 0x5a) in check_mem_data()