Lines Matching refs:response_buf
203 u8 response_buf[CY_MAX_INPUT]; member
464 size = get_unaligned_le16(&ts->response_buf[0]); in cyttsp5_validate_cmd_response()
468 report_id = ts->response_buf[HID_OUTPUT_RESPONSE_REPORT_OFFSET]; in cyttsp5_validate_cmd_response()
472 if (ts->response_buf[4] != HID_OUTPUT_BL_SOP) { in cyttsp5_validate_cmd_response()
477 if (ts->response_buf[size - 1] != HID_OUTPUT_BL_EOP) { in cyttsp5_validate_cmd_response()
482 crc = crc_itu_t(0xFFFF, &ts->response_buf[4], size - 7); in cyttsp5_validate_cmd_response()
483 if (get_unaligned_le16(&ts->response_buf[size - 3]) != crc) { in cyttsp5_validate_cmd_response()
490 status = ts->response_buf[5]; in cyttsp5_validate_cmd_response()
499 command_code = ts->response_buf[HID_OUTPUT_RESPONSE_CMD_OFFSET] in cyttsp5_validate_cmd_response()
516 unsigned int btns = ts->response_buf[HID_SYSINFO_BTN_OFFSET] & in cyttsp5_si_get_btn_data()
527 &ts->response_buf[HID_SYSINFO_SENSING_OFFSET]; in cyttsp5_get_sysinfo_regs()
599 if (ts->response_buf[2] != HID_RESPONSE_REPORT_ID || in cyttsp5_power_control()
600 (ts->response_buf[3] & 0x03) != state || in cyttsp5_power_control()
601 (ts->response_buf[4] & 0x0f) != HID_CMD_SET_POWER) { in cyttsp5_power_control()
670 memcpy(desc, ts->response_buf, sizeof(*desc)); in cyttsp5_get_hid_descriptor()
724 memcpy(ts->response_buf, ts->input_buf, size); in cyttsp5_handle_irq()
729 memcpy(ts->response_buf, ts->input_buf, size); in cyttsp5_handle_irq()