• Home
  • Raw
  • Download

Lines Matching refs:resp_len

356 	pip->resp_len = NULL;  in cyapa_pip_cmd_state_initialize()
521 u8 *resp_data, int *resp_len, in cyapa_do_i2c_pip_cmd_polling() argument
537 length = resp_len ? *resp_len : 0; in cyapa_do_i2c_pip_cmd_polling()
538 if (resp_data && resp_len && length != 0 && func) { in cyapa_do_i2c_pip_cmd_polling()
542 *resp_len = length; in cyapa_do_i2c_pip_cmd_polling()
544 resp_data, resp_len, func); in cyapa_do_i2c_pip_cmd_polling()
545 if (error || *resp_len == 0) in cyapa_do_i2c_pip_cmd_polling()
550 if ((error || *resp_len == 0) || tries <= 0) in cyapa_do_i2c_pip_cmd_polling()
561 u8 *resp_data, int *resp_len, in cyapa_i2c_pip_cmd_irq_sync() argument
579 pip->resp_len = resp_len; in cyapa_i2c_pip_cmd_irq_sync()
597 resp_len && *resp_len != 0 && func) { in cyapa_i2c_pip_cmd_irq_sync()
604 resp_data, resp_len, func); in cyapa_i2c_pip_cmd_irq_sync()
605 if (error || *resp_len == 0) in cyapa_i2c_pip_cmd_irq_sync()
611 resp_data, resp_len, timeout, func); in cyapa_i2c_pip_cmd_irq_sync()
616 pip->resp_len = NULL; in cyapa_i2c_pip_cmd_irq_sync()
642 int resp_len; in cyapa_sort_tsg_pip_app_resp_data() local
649 resp_len = get_unaligned_le16(&data[PIP_RESP_LENGTH_OFFSET]); in cyapa_sort_tsg_pip_app_resp_data()
651 resp_len == PIP_UNSUPPORTED_CMD_RESP_LENGTH && in cyapa_sort_tsg_pip_app_resp_data()
684 int resp_len; in cyapa_sort_gen5_hid_descriptor_data() local
691 resp_len = get_unaligned_le16(&buf[PIP_RESP_LENGTH_OFFSET]); in cyapa_sort_gen5_hid_descriptor_data()
693 if (resp_len == PIP_HID_DESCRIPTOR_SIZE) { in cyapa_sort_gen5_hid_descriptor_data()
1011 int resp_len; in cyapa_pip_bl_initiate() local
1056 resp_len = sizeof(resp_data); in cyapa_pip_bl_initiate()
1059 resp_data, &resp_len, 12000, in cyapa_pip_bl_initiate()
1061 if (error || resp_len != PIP_BL_INITIATE_RESP_LEN || in cyapa_pip_bl_initiate()
1097 int resp_len; in cyapa_pip_bl_exit() local
1100 resp_len = sizeof(resp_data); in cyapa_pip_bl_exit()
1103 resp_data, &resp_len, in cyapa_pip_bl_exit()
1108 if (resp_len == PIP_BL_FAIL_EXIT_RESP_LEN || in cyapa_pip_bl_exit()
1123 int resp_len; in cyapa_pip_bl_enter() local
1143 resp_len = sizeof(resp_data); in cyapa_pip_bl_enter()
1144 memset(resp_data, 0, resp_len); in cyapa_pip_bl_enter()
1147 resp_data, &resp_len, in cyapa_pip_bl_enter()
1283 int resp_len; in cyapa_pip_write_fw_block() local
1322 resp_len = sizeof(resp_data); in cyapa_pip_write_fw_block()
1324 resp_data, &resp_len, in cyapa_pip_write_fw_block()
1326 if (error || resp_len != PIP_BL_BLOCK_WRITE_RESP_LEN || in cyapa_pip_write_fw_block()
1368 int resp_len; in cyapa_gen5_change_power_state() local
1372 resp_len = sizeof(resp_data); in cyapa_gen5_change_power_state()
1374 resp_data, &resp_len, in cyapa_gen5_change_power_state()
1391 int resp_len; in cyapa_gen5_set_interval_time() local
1428 resp_len = sizeof(resp_data); in cyapa_gen5_set_interval_time()
1430 resp_data, &resp_len, in cyapa_gen5_set_interval_time()
1448 int resp_len; in cyapa_gen5_get_interval_time() local
1482 resp_len = sizeof(resp_data); in cyapa_gen5_get_interval_time()
1484 resp_data, &resp_len, in cyapa_gen5_get_interval_time()
1503 int resp_len; in cyapa_gen5_disable_pip_report() local
1516 resp_len = sizeof(resp_data); in cyapa_gen5_disable_pip_report()
1518 resp_data, &resp_len, in cyapa_gen5_disable_pip_report()
1534 int resp_len; in cyapa_pip_set_proximity() local
1537 resp_len = sizeof(resp_data); in cyapa_pip_set_proximity()
1539 resp_data, &resp_len, in cyapa_pip_set_proximity()
1554 int resp_len; in cyapa_pip_deep_sleep() local
1558 resp_len = sizeof(resp_data); in cyapa_pip_deep_sleep()
1560 resp_data, &resp_len, in cyapa_pip_deep_sleep()
1694 int resp_len; in cyapa_pip_resume_scanning() local
1700 resp_len = sizeof(resp_data); in cyapa_pip_resume_scanning()
1703 resp_data, &resp_len, in cyapa_pip_resume_scanning()
1718 int resp_len; in cyapa_pip_suspend_scanning() local
1724 resp_len = sizeof(resp_data); in cyapa_pip_suspend_scanning()
1727 resp_data, &resp_len, in cyapa_pip_suspend_scanning()
1744 int resp_len; in cyapa_pip_calibrate_pwcs() local
1757 resp_len = sizeof(resp_data); in cyapa_pip_calibrate_pwcs()
1760 resp_data, &resp_len, in cyapa_pip_calibrate_pwcs()
1889 int resp_len; in cyapa_gen5_read_idac_data() local
1971 resp_len = GEN5_RESP_DATA_STRUCTURE_OFFSET + read_len; in cyapa_gen5_read_idac_data()
1974 resp_data, &resp_len, in cyapa_gen5_read_idac_data()
1977 if (error || resp_len < GEN5_RESP_DATA_STRUCTURE_OFFSET || in cyapa_gen5_read_idac_data()
2132 int resp_len; in cyapa_gen5_execute_panel_scan() local
2141 resp_len = sizeof(resp_data); in cyapa_gen5_execute_panel_scan()
2144 resp_data, &resp_len, in cyapa_gen5_execute_panel_scan()
2146 if (error || resp_len != sizeof(resp_data) || in cyapa_gen5_execute_panel_scan()
2164 int resp_len; in cyapa_gen5_read_panel_scan_raw_data() local
2201 resp_len = GEN5_RESP_DATA_STRUCTURE_OFFSET + read_len; in cyapa_gen5_read_panel_scan_raw_data()
2204 resp_data, &resp_len, in cyapa_gen5_read_panel_scan_raw_data()
2206 if (error || resp_len < GEN5_RESP_DATA_STRUCTURE_OFFSET || in cyapa_gen5_read_panel_scan_raw_data()
2399 int resp_len; in cyapa_gen5_bl_query_data() local
2402 resp_len = sizeof(resp_data); in cyapa_gen5_bl_query_data()
2405 resp_data, &resp_len, in cyapa_gen5_bl_query_data()
2407 if (error || resp_len < PIP_BL_APP_INFO_RESP_LENGTH || in cyapa_gen5_bl_query_data()
2430 int resp_len; in cyapa_gen5_get_query_data() local
2434 resp_len = sizeof(resp_data); in cyapa_gen5_get_query_data()
2437 resp_data, &resp_len, in cyapa_gen5_get_query_data()
2439 if (error || resp_len < sizeof(resp_data)) in cyapa_gen5_get_query_data()
2594 if (pip->resp_len) in cyapa_pip_irq_cmd_handler()
2595 length = *pip->resp_len; in cyapa_pip_irq_cmd_handler()
2600 if (pip->resp_len && length != 0) { in cyapa_pip_irq_cmd_handler()
2601 *pip->resp_len = length; in cyapa_pip_irq_cmd_handler()
2608 if (pip->resp_data && pip->resp_len) { in cyapa_pip_irq_cmd_handler()
2609 *pip->resp_len = (*pip->resp_len < length) ? in cyapa_pip_irq_cmd_handler()
2610 *pip->resp_len : length; in cyapa_pip_irq_cmd_handler()
2612 *pip->resp_len); in cyapa_pip_irq_cmd_handler()