Lines Matching refs:resp_len

362 	pip->resp_len = NULL;  in cyapa_pip_cmd_state_initialize()
568 u8 *resp_data, int *resp_len, in cyapa_do_i2c_pip_cmd_polling() argument
584 length = resp_len ? *resp_len : 0; in cyapa_do_i2c_pip_cmd_polling()
585 if (resp_data && resp_len && length != 0 && func) { in cyapa_do_i2c_pip_cmd_polling()
589 *resp_len = length; in cyapa_do_i2c_pip_cmd_polling()
591 resp_data, resp_len, func); in cyapa_do_i2c_pip_cmd_polling()
592 if (error || *resp_len == 0) in cyapa_do_i2c_pip_cmd_polling()
597 if ((error || *resp_len == 0) || tries <= 0) in cyapa_do_i2c_pip_cmd_polling()
608 u8 *resp_data, int *resp_len, in cyapa_i2c_pip_cmd_irq_sync() argument
626 pip->resp_len = resp_len; in cyapa_i2c_pip_cmd_irq_sync()
644 resp_len && *resp_len != 0 && func) { in cyapa_i2c_pip_cmd_irq_sync()
651 resp_data, resp_len, func); in cyapa_i2c_pip_cmd_irq_sync()
652 if (error || *resp_len == 0) in cyapa_i2c_pip_cmd_irq_sync()
658 resp_data, resp_len, timeout, func); in cyapa_i2c_pip_cmd_irq_sync()
663 pip->resp_len = NULL; in cyapa_i2c_pip_cmd_irq_sync()
689 int resp_len; in cyapa_sort_tsg_pip_app_resp_data() local
696 resp_len = get_unaligned_le16(&data[PIP_RESP_LENGTH_OFFSET]); in cyapa_sort_tsg_pip_app_resp_data()
698 resp_len == PIP_UNSUPPORTED_CMD_RESP_LENGTH && in cyapa_sort_tsg_pip_app_resp_data()
731 int resp_len; in cyapa_sort_gen5_hid_descriptor_data() local
738 resp_len = get_unaligned_le16(&buf[PIP_RESP_LENGTH_OFFSET]); in cyapa_sort_gen5_hid_descriptor_data()
740 if (resp_len == PIP_HID_DESCRIPTOR_SIZE) { in cyapa_sort_gen5_hid_descriptor_data()
1058 int resp_len; in cyapa_pip_bl_initiate() local
1103 resp_len = sizeof(resp_data); in cyapa_pip_bl_initiate()
1106 resp_data, &resp_len, 12000, in cyapa_pip_bl_initiate()
1108 if (error || resp_len != PIP_BL_INITIATE_RESP_LEN || in cyapa_pip_bl_initiate()
1144 int resp_len; in cyapa_pip_bl_exit() local
1147 resp_len = sizeof(resp_data); in cyapa_pip_bl_exit()
1150 resp_data, &resp_len, in cyapa_pip_bl_exit()
1155 if (resp_len == PIP_BL_FAIL_EXIT_RESP_LEN || in cyapa_pip_bl_exit()
1170 int resp_len; in cyapa_pip_bl_enter() local
1190 resp_len = sizeof(resp_data); in cyapa_pip_bl_enter()
1191 memset(resp_data, 0, resp_len); in cyapa_pip_bl_enter()
1194 resp_data, &resp_len, in cyapa_pip_bl_enter()
1330 int resp_len; in cyapa_pip_write_fw_block() local
1369 resp_len = sizeof(resp_data); in cyapa_pip_write_fw_block()
1371 resp_data, &resp_len, in cyapa_pip_write_fw_block()
1373 if (error || resp_len != PIP_BL_BLOCK_WRITE_RESP_LEN || in cyapa_pip_write_fw_block()
1415 int resp_len; in cyapa_gen5_change_power_state() local
1419 resp_len = sizeof(resp_data); in cyapa_gen5_change_power_state()
1421 resp_data, &resp_len, in cyapa_gen5_change_power_state()
1438 int resp_len; in cyapa_gen5_set_interval_time() local
1475 resp_len = sizeof(resp_data); in cyapa_gen5_set_interval_time()
1477 resp_data, &resp_len, in cyapa_gen5_set_interval_time()
1495 int resp_len; in cyapa_gen5_get_interval_time() local
1529 resp_len = sizeof(resp_data); in cyapa_gen5_get_interval_time()
1531 resp_data, &resp_len, in cyapa_gen5_get_interval_time()
1550 int resp_len; in cyapa_gen5_disable_pip_report() local
1563 resp_len = sizeof(resp_data); in cyapa_gen5_disable_pip_report()
1565 resp_data, &resp_len, in cyapa_gen5_disable_pip_report()
1581 int resp_len; in cyapa_pip_set_proximity() local
1584 resp_len = sizeof(resp_data); in cyapa_pip_set_proximity()
1586 resp_data, &resp_len, in cyapa_pip_set_proximity()
1601 int resp_len; in cyapa_pip_deep_sleep() local
1605 resp_len = sizeof(resp_data); in cyapa_pip_deep_sleep()
1607 resp_data, &resp_len, in cyapa_pip_deep_sleep()
1745 int resp_len; in cyapa_pip_resume_scanning() local
1751 resp_len = sizeof(resp_data); in cyapa_pip_resume_scanning()
1754 resp_data, &resp_len, in cyapa_pip_resume_scanning()
1769 int resp_len; in cyapa_pip_suspend_scanning() local
1775 resp_len = sizeof(resp_data); in cyapa_pip_suspend_scanning()
1778 resp_data, &resp_len, in cyapa_pip_suspend_scanning()
1795 int resp_len; in cyapa_pip_calibrate_pwcs() local
1808 resp_len = sizeof(resp_data); in cyapa_pip_calibrate_pwcs()
1811 resp_data, &resp_len, in cyapa_pip_calibrate_pwcs()
1940 int resp_len; in cyapa_gen5_read_idac_data() local
2022 resp_len = GEN5_RESP_DATA_STRUCTURE_OFFSET + read_len; in cyapa_gen5_read_idac_data()
2025 resp_data, &resp_len, in cyapa_gen5_read_idac_data()
2028 if (error || resp_len < GEN5_RESP_DATA_STRUCTURE_OFFSET || in cyapa_gen5_read_idac_data()
2183 int resp_len; in cyapa_gen5_execute_panel_scan() local
2192 resp_len = sizeof(resp_data); in cyapa_gen5_execute_panel_scan()
2195 resp_data, &resp_len, in cyapa_gen5_execute_panel_scan()
2197 if (error || resp_len != sizeof(resp_data) || in cyapa_gen5_execute_panel_scan()
2215 int resp_len; in cyapa_gen5_read_panel_scan_raw_data() local
2252 resp_len = GEN5_RESP_DATA_STRUCTURE_OFFSET + read_len; in cyapa_gen5_read_panel_scan_raw_data()
2255 resp_data, &resp_len, in cyapa_gen5_read_panel_scan_raw_data()
2257 if (error || resp_len < GEN5_RESP_DATA_STRUCTURE_OFFSET || in cyapa_gen5_read_panel_scan_raw_data()
2450 int resp_len; in cyapa_gen5_bl_query_data() local
2453 resp_len = sizeof(resp_data); in cyapa_gen5_bl_query_data()
2456 resp_data, &resp_len, in cyapa_gen5_bl_query_data()
2458 if (error || resp_len < PIP_BL_APP_INFO_RESP_LENGTH || in cyapa_gen5_bl_query_data()
2481 int resp_len; in cyapa_gen5_get_query_data() local
2485 resp_len = sizeof(resp_data); in cyapa_gen5_get_query_data()
2488 resp_data, &resp_len, in cyapa_gen5_get_query_data()
2490 if (error || resp_len < sizeof(resp_data)) in cyapa_gen5_get_query_data()
2646 if (pip->resp_len) in cyapa_pip_irq_cmd_handler()
2647 length = *pip->resp_len; in cyapa_pip_irq_cmd_handler()
2652 if (pip->resp_len && length != 0) { in cyapa_pip_irq_cmd_handler()
2653 *pip->resp_len = length; in cyapa_pip_irq_cmd_handler()
2660 if (pip->resp_data && pip->resp_len) { in cyapa_pip_irq_cmd_handler()
2661 *pip->resp_len = (*pip->resp_len < length) ? in cyapa_pip_irq_cmd_handler()
2662 *pip->resp_len : length; in cyapa_pip_irq_cmd_handler()
2664 *pip->resp_len); in cyapa_pip_irq_cmd_handler()