• Home
  • Raw
  • Download

Lines Matching refs:resp_data

361 	pip->resp_data = NULL;  in cyapa_pip_cmd_state_initialize()
567 u8 *resp_data, int *resp_len, in cyapa_do_i2c_pip_cmd_polling() argument
584 if (resp_data && resp_len && length != 0 && func) { in cyapa_do_i2c_pip_cmd_polling()
590 resp_data, resp_len, func); in cyapa_do_i2c_pip_cmd_polling()
607 u8 *resp_data, int *resp_len, in cyapa_i2c_pip_cmd_irq_sync() argument
624 pip->resp_data = resp_data; in cyapa_i2c_pip_cmd_irq_sync()
642 if (error == -ETIMEDOUT && resp_data && in cyapa_i2c_pip_cmd_irq_sync()
650 resp_data, resp_len, func); in cyapa_i2c_pip_cmd_irq_sync()
657 resp_data, resp_len, timeout, func); in cyapa_i2c_pip_cmd_irq_sync()
661 pip->resp_data = NULL; in cyapa_i2c_pip_cmd_irq_sync()
769 u8 resp_data[PIP_HID_DESCRIPTOR_SIZE]; in gen5_idle_state_parse() local
782 memset(resp_data, 0, sizeof(resp_data)); in gen5_idle_state_parse()
783 ret = cyapa_i2c_pip_read(cyapa, resp_data, 3); in gen5_idle_state_parse()
787 length = get_unaligned_le16(&resp_data[PIP_RESP_LENGTH_OFFSET]); in gen5_idle_state_parse()
800 resp_data, &length, in gen5_idle_state_parse()
808 &resp_data[PIP_RESP_LENGTH_OFFSET]); in gen5_idle_state_parse()
809 max_output_len = get_unaligned_le16(&resp_data[16]); in gen5_idle_state_parse()
812 (resp_data[PIP_RESP_REPORT_ID_OFFSET] == in gen5_idle_state_parse()
819 (resp_data[PIP_RESP_REPORT_ID_OFFSET] == in gen5_idle_state_parse()
836 u8 resp_data[32]; in gen5_hid_description_header_parse() local
847 ret = cyapa_i2c_pip_read(cyapa, resp_data, in gen5_hid_description_header_parse()
851 length = get_unaligned_le16(&resp_data[PIP_RESP_LENGTH_OFFSET]); in gen5_hid_description_header_parse()
852 max_output_len = get_unaligned_le16(&resp_data[16]); in gen5_hid_description_header_parse()
871 resp_data[2] == PIP_HID_BL_REPORT_ID && in gen5_hid_description_header_parse()
877 (resp_data[PIP_RESP_REPORT_ID_OFFSET] == in gen5_hid_description_header_parse()
1056 u8 resp_data[11]; in cyapa_pip_bl_initiate() local
1102 resp_len = sizeof(resp_data); in cyapa_pip_bl_initiate()
1105 resp_data, &resp_len, 12000, in cyapa_pip_bl_initiate()
1108 resp_data[2] != PIP_BL_RESP_REPORT_ID || in cyapa_pip_bl_initiate()
1109 !PIP_CMD_COMPLETE_SUCCESS(resp_data)) in cyapa_pip_bl_initiate()
1142 u8 resp_data[11]; in cyapa_pip_bl_exit() local
1146 resp_len = sizeof(resp_data); in cyapa_pip_bl_exit()
1149 resp_data, &resp_len, in cyapa_pip_bl_exit()
1155 resp_data[PIP_RESP_REPORT_ID_OFFSET] == in cyapa_pip_bl_exit()
1159 if (resp_data[0] == 0x00 && resp_data[1] == 0x00) in cyapa_pip_bl_exit()
1168 u8 resp_data[2]; in cyapa_pip_bl_enter() local
1189 resp_len = sizeof(resp_data); in cyapa_pip_bl_enter()
1190 memset(resp_data, 0, resp_len); in cyapa_pip_bl_enter()
1193 resp_data, &resp_len, in cyapa_pip_bl_enter()
1196 if (error || resp_data[0] != 0x00 || resp_data[1] != 0x00) in cyapa_pip_bl_enter()
1328 u8 resp_data[11]; in cyapa_pip_write_fw_block() local
1368 resp_len = sizeof(resp_data); in cyapa_pip_write_fw_block()
1370 resp_data, &resp_len, in cyapa_pip_write_fw_block()
1373 resp_data[2] != PIP_BL_RESP_REPORT_ID || in cyapa_pip_write_fw_block()
1374 !PIP_CMD_COMPLETE_SUCCESS(resp_data)) in cyapa_pip_write_fw_block()
1413 u8 resp_data[6]; in cyapa_gen5_change_power_state() local
1418 resp_len = sizeof(resp_data); in cyapa_gen5_change_power_state()
1420 resp_data, &resp_len, in cyapa_gen5_change_power_state()
1422 if (error || !VALID_CMD_RESP_HEADER(resp_data, 0x08) || in cyapa_gen5_change_power_state()
1423 !PIP_CMD_COMPLETE_SUCCESS(resp_data)) in cyapa_gen5_change_power_state()
1436 u8 resp_data[7]; in cyapa_gen5_set_interval_time() local
1474 resp_len = sizeof(resp_data); in cyapa_gen5_set_interval_time()
1476 resp_data, &resp_len, in cyapa_gen5_set_interval_time()
1478 if (error || resp_data[5] != parameter_id || in cyapa_gen5_set_interval_time()
1479 resp_data[6] != parameter_size || in cyapa_gen5_set_interval_time()
1480 !VALID_CMD_RESP_HEADER(resp_data, GEN5_CMD_SET_PARAMETER)) in cyapa_gen5_set_interval_time()
1493 u8 resp_data[11]; in cyapa_gen5_get_interval_time() local
1528 resp_len = sizeof(resp_data); in cyapa_gen5_get_interval_time()
1530 resp_data, &resp_len, in cyapa_gen5_get_interval_time()
1532 if (error || resp_data[5] != parameter_id || resp_data[6] == 0 || in cyapa_gen5_get_interval_time()
1533 !VALID_CMD_RESP_HEADER(resp_data, GEN5_CMD_GET_PARAMETER)) in cyapa_gen5_get_interval_time()
1539 *interval_time = get_unaligned_le16(&resp_data[7]) & mask; in cyapa_gen5_get_interval_time()
1548 u8 resp_data[7]; in cyapa_gen5_disable_pip_report() local
1562 resp_len = sizeof(resp_data); in cyapa_gen5_disable_pip_report()
1564 resp_data, &resp_len, in cyapa_gen5_disable_pip_report()
1566 if (error || resp_data[5] != GEN5_PARAMETER_DISABLE_PIP_REPORT || in cyapa_gen5_disable_pip_report()
1567 !VALID_CMD_RESP_HEADER(resp_data, GEN5_CMD_SET_PARAMETER) || in cyapa_gen5_disable_pip_report()
1568 resp_data[6] != 0x01) in cyapa_gen5_disable_pip_report()
1579 u8 resp_data[6]; in cyapa_pip_set_proximity() local
1583 resp_len = sizeof(resp_data); in cyapa_pip_set_proximity()
1585 resp_data, &resp_len, in cyapa_pip_set_proximity()
1587 if (error || !VALID_CMD_RESP_HEADER(resp_data, PIP_SET_PROXIMITY) || in cyapa_pip_set_proximity()
1588 !PIP_CMD_COMPLETE_SUCCESS(resp_data)) { in cyapa_pip_set_proximity()
1599 u8 resp_data[5]; in cyapa_pip_deep_sleep() local
1604 resp_len = sizeof(resp_data); in cyapa_pip_deep_sleep()
1606 resp_data, &resp_len, in cyapa_pip_deep_sleep()
1608 if (error || ((resp_data[3] & PIP_DEEP_SLEEP_STATE_MASK) != state)) in cyapa_pip_deep_sleep()
1743 u8 resp_data[6]; in cyapa_pip_resume_scanning() local
1750 resp_len = sizeof(resp_data); in cyapa_pip_resume_scanning()
1753 resp_data, &resp_len, in cyapa_pip_resume_scanning()
1755 if (error || !VALID_CMD_RESP_HEADER(resp_data, 0x04)) in cyapa_pip_resume_scanning()
1767 u8 resp_data[6]; in cyapa_pip_suspend_scanning() local
1774 resp_len = sizeof(resp_data); in cyapa_pip_suspend_scanning()
1777 resp_data, &resp_len, in cyapa_pip_suspend_scanning()
1779 if (error || !VALID_CMD_RESP_HEADER(resp_data, 0x03)) in cyapa_pip_suspend_scanning()
1793 u8 resp_data[6]; in cyapa_pip_calibrate_pwcs() local
1807 resp_len = sizeof(resp_data); in cyapa_pip_calibrate_pwcs()
1810 resp_data, &resp_len, in cyapa_pip_calibrate_pwcs()
1812 if (error || !VALID_CMD_RESP_HEADER(resp_data, PIP_CMD_CALIBRATE) || in cyapa_pip_calibrate_pwcs()
1813 !PIP_CMD_COMPLETE_SUCCESS(resp_data)) in cyapa_pip_calibrate_pwcs()
1938 u8 resp_data[256]; in cyapa_gen5_read_idac_data() local
2024 resp_data, &resp_len, in cyapa_gen5_read_idac_data()
2028 !VALID_CMD_RESP_HEADER(resp_data, cmd_code) || in cyapa_gen5_read_idac_data()
2029 !PIP_CMD_COMPLETE_SUCCESS(resp_data) || in cyapa_gen5_read_idac_data()
2030 resp_data[6] != idac_data_type) in cyapa_gen5_read_idac_data()
2032 read_len = get_unaligned_le16(&resp_data[7]); in cyapa_gen5_read_idac_data()
2036 *data_size = (resp_data[9] & GEN5_PWC_DATA_ELEMENT_SIZE_MASK); in cyapa_gen5_read_idac_data()
2044 resp_data[9], in cyapa_gen5_read_idac_data()
2045 &resp_data[GEN5_RESP_DATA_STRUCTURE_OFFSET], in cyapa_gen5_read_idac_data()
2049 resp_data[9], in cyapa_gen5_read_idac_data()
2050 &resp_data[GEN5_RESP_DATA_STRUCTURE_OFFSET + in cyapa_gen5_read_idac_data()
2060 value = cyapa_parse_structure_data(resp_data[9], in cyapa_gen5_read_idac_data()
2061 &resp_data[i], *data_size); in cyapa_gen5_read_idac_data()
2181 u8 resp_data[6]; in cyapa_gen5_execute_panel_scan() local
2191 resp_len = sizeof(resp_data); in cyapa_gen5_execute_panel_scan()
2194 resp_data, &resp_len, in cyapa_gen5_execute_panel_scan()
2196 if (error || resp_len != sizeof(resp_data) || in cyapa_gen5_execute_panel_scan()
2197 !VALID_CMD_RESP_HEADER(resp_data, in cyapa_gen5_execute_panel_scan()
2199 !PIP_CMD_COMPLETE_SUCCESS(resp_data)) in cyapa_gen5_execute_panel_scan()
2213 u8 resp_data[256]; /* Max bytes can transfer one time. */ in cyapa_gen5_read_panel_scan_raw_data() local
2254 resp_data, &resp_len, in cyapa_gen5_read_panel_scan_raw_data()
2257 !VALID_CMD_RESP_HEADER(resp_data, cmd_code) || in cyapa_gen5_read_panel_scan_raw_data()
2258 !PIP_CMD_COMPLETE_SUCCESS(resp_data) || in cyapa_gen5_read_panel_scan_raw_data()
2259 resp_data[6] != raw_data_type) in cyapa_gen5_read_panel_scan_raw_data()
2262 read_elements = get_unaligned_le16(&resp_data[7]); in cyapa_gen5_read_panel_scan_raw_data()
2266 data_size = (resp_data[9] & GEN5_PWC_DATA_ELEMENT_SIZE_MASK); in cyapa_gen5_read_panel_scan_raw_data()
2273 value = cyapa_parse_structure_data(resp_data[9], in cyapa_gen5_read_panel_scan_raw_data()
2274 &resp_data[i], data_size); in cyapa_gen5_read_panel_scan_raw_data()
2290 read_elements = (sizeof(resp_data) - in cyapa_gen5_read_panel_scan_raw_data()
2448 u8 resp_data[PIP_BL_APP_INFO_RESP_LENGTH]; in cyapa_gen5_bl_query_data() local
2452 resp_len = sizeof(resp_data); in cyapa_gen5_bl_query_data()
2455 resp_data, &resp_len, in cyapa_gen5_bl_query_data()
2458 !PIP_CMD_COMPLETE_SUCCESS(resp_data)) in cyapa_gen5_bl_query_data()
2461 memcpy(&cyapa->product_id[0], &resp_data[8], 5); in cyapa_gen5_bl_query_data()
2463 memcpy(&cyapa->product_id[6], &resp_data[13], 6); in cyapa_gen5_bl_query_data()
2465 memcpy(&cyapa->product_id[13], &resp_data[19], 2); in cyapa_gen5_bl_query_data()
2468 cyapa->fw_maj_ver = resp_data[22]; in cyapa_gen5_bl_query_data()
2469 cyapa->fw_min_ver = resp_data[23]; in cyapa_gen5_bl_query_data()
2471 cyapa->platform_ver = (resp_data[26] >> PIP_BL_PLATFORM_VER_SHIFT) & in cyapa_gen5_bl_query_data()
2479 u8 resp_data[PIP_READ_SYS_INFO_RESP_LENGTH]; in cyapa_gen5_get_query_data() local
2484 resp_len = sizeof(resp_data); in cyapa_gen5_get_query_data()
2487 resp_data, &resp_len, in cyapa_gen5_get_query_data()
2489 if (error || resp_len < sizeof(resp_data)) in cyapa_gen5_get_query_data()
2492 product_family = get_unaligned_le16(&resp_data[7]); in cyapa_gen5_get_query_data()
2497 cyapa->platform_ver = (resp_data[49] >> PIP_BL_PLATFORM_VER_SHIFT) & in cyapa_gen5_get_query_data()
2501 cyapa->fw_maj_ver = resp_data[15]; in cyapa_gen5_get_query_data()
2502 cyapa->fw_min_ver = resp_data[16]; in cyapa_gen5_get_query_data()
2504 cyapa->fw_maj_ver = resp_data[9]; in cyapa_gen5_get_query_data()
2505 cyapa->fw_min_ver = resp_data[10]; in cyapa_gen5_get_query_data()
2508 cyapa->electrodes_x = resp_data[52]; in cyapa_gen5_get_query_data()
2509 cyapa->electrodes_y = resp_data[53]; in cyapa_gen5_get_query_data()
2511 cyapa->physical_size_x = get_unaligned_le16(&resp_data[54]) / 100; in cyapa_gen5_get_query_data()
2512 cyapa->physical_size_y = get_unaligned_le16(&resp_data[56]) / 100; in cyapa_gen5_get_query_data()
2514 cyapa->max_abs_x = get_unaligned_le16(&resp_data[58]); in cyapa_gen5_get_query_data()
2515 cyapa->max_abs_y = get_unaligned_le16(&resp_data[60]); in cyapa_gen5_get_query_data()
2517 cyapa->max_z = get_unaligned_le16(&resp_data[62]); in cyapa_gen5_get_query_data()
2519 cyapa->x_origin = resp_data[64] & 0x01; in cyapa_gen5_get_query_data()
2520 cyapa->y_origin = resp_data[65] & 0x01; in cyapa_gen5_get_query_data()
2522 cyapa->btn_capability = (resp_data[70] << 3) & CAPABILITY_BTN_MASK; in cyapa_gen5_get_query_data()
2524 memcpy(&cyapa->product_id[0], &resp_data[33], 5); in cyapa_gen5_get_query_data()
2526 memcpy(&cyapa->product_id[6], &resp_data[38], 6); in cyapa_gen5_get_query_data()
2528 memcpy(&cyapa->product_id[13], &resp_data[44], 2); in cyapa_gen5_get_query_data()
2648 pip->resp_data, in cyapa_pip_irq_cmd_handler()
2659 if (pip->resp_data && pip->resp_len) { in cyapa_pip_irq_cmd_handler()
2662 memcpy(pip->resp_data, pip->irq_cmd_buf, in cyapa_pip_irq_cmd_handler()