Lines Matching refs:opr_buf
1263 u8 opr_buf[3] = {0x41, 0x80}; in gtp_wakeup_sleep() local
1271 opr_buf[2] = 0x0C; in gtp_wakeup_sleep()
1272 ret = gtp_i2c_write(ts->client, opr_buf, 3); in gtp_wakeup_sleep()
1278 opr_buf[2] = 0x00; in gtp_wakeup_sleep()
1279 ret = gtp_i2c_read(ts->client, opr_buf, 3); in gtp_wakeup_sleep()
1285 if (0x0C != opr_buf[2]) in gtp_wakeup_sleep()
1369 u8 opr_buf[6] = {0}; in gtp_get_info() local
1377 opr_buf[0] = (u8)((GTP_REG_CONFIG_DATA+1) >> 8); in gtp_get_info()
1378 opr_buf[1] = (u8)((GTP_REG_CONFIG_DATA+1) & 0xFF); in gtp_get_info()
1380 ret = gtp_i2c_read(ts->client, opr_buf, 6); in gtp_get_info()
1386 ts->abs_x_max = (opr_buf[3] << 8) + opr_buf[2]; in gtp_get_info()
1387 ts->abs_y_max = (opr_buf[5] << 8) + opr_buf[4]; in gtp_get_info()
1389 opr_buf[0] = (u8)((GTP_REG_CONFIG_DATA+6) >> 8); in gtp_get_info()
1390 opr_buf[1] = (u8)((GTP_REG_CONFIG_DATA+6) & 0xFF); in gtp_get_info()
1392 ret = gtp_i2c_read(ts->client, opr_buf, 3); in gtp_get_info()
1397 ts->int_trigger_type = opr_buf[2] & 0x03; in gtp_get_info()
1421 u8 opr_buf[16] = {0}; in gtp_init_panel() local
1489 ret = gtp_i2c_read_dbl_check(ts->client, 0x41E4, opr_buf, 1); in gtp_init_panel()
1492 if (opr_buf[0] != 0xBE) in gtp_init_panel()
1548 ret = gtp_i2c_read_dbl_check(ts->client, GTP_REG_CONFIG_DATA, &opr_buf[0], 1); in gtp_init_panel()
1553 … send_cfg_buf[sensor_id][0], send_cfg_buf[sensor_id][0], opr_buf[0], opr_buf[0]); in gtp_init_panel()
1555 if (opr_buf[0] < 90) in gtp_init_panel()
1564 GTP_INFO("Ic fixed config with config version(%d, 0x%02X)", opr_buf[0], opr_buf[0]); in gtp_init_panel()
2142 u8 opr_buf[4]; in gtp_fw_startup() local
2146 opr_buf[0] = 0xAA; in gtp_fw_startup()
2147 ret = i2c_write_bytes(client, 0x8041, opr_buf, 1); in gtp_fw_startup()
2154 opr_buf[0] = 0x00; in gtp_fw_startup()
2155 ret = i2c_write_bytes(client, 0x4180, opr_buf, 1); in gtp_fw_startup()
2164 ret = i2c_read_bytes(client, 0x8041, opr_buf, 1); in gtp_fw_startup()
2169 if(0xAA == opr_buf[0]) in gtp_fw_startup()
2177 opr_buf[0] = 0xAA; in gtp_fw_startup()
2178 i2c_write_bytes(client, 0x8041, opr_buf, 1); in gtp_fw_startup()
2567 u8 opr_buf[10] = {0x00}; in gtp_get_chip_type() local
2572 ret = gtp_i2c_read_dbl_check(ts->client, GTP_REG_CHIP_TYPE, opr_buf, 10); in gtp_get_chip_type()
2581 if (!memcmp(opr_buf, "GOODIX_GT9", 10)) in gtp_get_chip_type()