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