Lines Matching refs:cmd
538 u8 *cmd, size_t cmd_len, in cyapa_do_i2c_pip_cmd_irq_sync() argument
548 error = cyapa_i2c_pip_write(cyapa, cmd, cmd_len); in cyapa_do_i2c_pip_cmd_irq_sync()
567 u8 *cmd, size_t cmd_len, in cyapa_do_i2c_pip_cmd_polling() argument
578 error = cyapa_i2c_pip_write(cyapa, cmd, cmd_len); in cyapa_do_i2c_pip_cmd_polling()
607 u8 *cmd, int cmd_len, in cyapa_i2c_pip_cmd_irq_sync() argument
616 if (!cmd || !cmd_len) in cyapa_i2c_pip_cmd_irq_sync()
629 cmd[4] == PIP_APP_CMD_REPORT_ID) { in cyapa_i2c_pip_cmd_irq_sync()
631 pip->in_progress_cmd = cmd[6] & 0x7f; in cyapa_i2c_pip_cmd_irq_sync()
633 cmd[4] == PIP_BL_CMD_REPORT_ID) { in cyapa_i2c_pip_cmd_irq_sync()
635 pip->in_progress_cmd = cmd[7]; in cyapa_i2c_pip_cmd_irq_sync()
641 error = cyapa_do_i2c_pip_cmd_irq_sync(cyapa, cmd, cmd_len, in cyapa_i2c_pip_cmd_irq_sync()
657 error = cyapa_do_i2c_pip_cmd_polling(cyapa, cmd, cmd_len, in cyapa_i2c_pip_cmd_irq_sync()
773 u8 cmd[2]; in gen5_idle_state_parse() local
796 cmd[0] = 0x01; in gen5_idle_state_parse()
797 cmd[1] = 0x00; in gen5_idle_state_parse()
800 cmd, PIP_RESP_LENGTH_SIZE, in gen5_idle_state_parse()
1052 u8 cmd[CYAPA_TSG_MAX_CMD_SIZE]; in cyapa_pip_bl_initiate() local
1066 memset(cmd, 0, CYAPA_TSG_MAX_CMD_SIZE); in cyapa_pip_bl_initiate()
1067 bl_cmd_head = (struct pip_bl_cmd_head *)cmd; in cyapa_pip_bl_initiate()
1105 cmd, cmd_len, in cyapa_pip_bl_initiate()
1168 u8 cmd[] = { 0x04, 0x00, 0x05, 0x00, 0x2F, 0x00, 0x01 }; in cyapa_pip_bl_enter() local
1193 cmd, sizeof(cmd), in cyapa_pip_bl_enter()
1321 u8 cmd[CYAPA_TSG_MAX_CMD_SIZE]; in cyapa_pip_write_fw_block() local
1338 memset(cmd, 0, CYAPA_TSG_MAX_CMD_SIZE); in cyapa_pip_write_fw_block()
1339 bl_cmd_head = (struct pip_bl_cmd_head *)cmd; in cyapa_pip_write_fw_block()
1370 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, cmd, cmd_len, in cyapa_pip_write_fw_block()
1413 u8 cmd[8] = { 0x04, 0x00, 0x06, 0x00, 0x2f, 0x00, 0x08, 0x01 }; in cyapa_gen5_change_power_state() local
1418 cmd[7] = power_state; in cyapa_gen5_change_power_state()
1420 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, cmd, sizeof(cmd), in cyapa_gen5_change_power_state()
1435 u8 cmd[CYAPA_TSG_MAX_CMD_SIZE]; in cyapa_gen5_set_interval_time() local
1442 memset(cmd, 0, CYAPA_TSG_MAX_CMD_SIZE); in cyapa_gen5_set_interval_time()
1443 app_cmd_head = (struct pip_app_cmd_head *)cmd; in cyapa_gen5_set_interval_time()
1476 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, cmd, cmd_len, in cyapa_gen5_set_interval_time()
1492 u8 cmd[CYAPA_TSG_MAX_CMD_SIZE]; in cyapa_gen5_get_interval_time() local
1500 memset(cmd, 0, CYAPA_TSG_MAX_CMD_SIZE); in cyapa_gen5_get_interval_time()
1501 app_cmd_head = (struct pip_app_cmd_head *)cmd; in cyapa_gen5_get_interval_time()
1530 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, cmd, cmd_len, in cyapa_gen5_get_interval_time()
1548 u8 cmd[10]; in cyapa_gen5_disable_pip_report() local
1553 memset(cmd, 0, sizeof(cmd)); in cyapa_gen5_disable_pip_report()
1554 app_cmd_head = (struct pip_app_cmd_head *)cmd; in cyapa_gen5_disable_pip_report()
1557 put_unaligned_le16(sizeof(cmd) - 2, &app_cmd_head->length); in cyapa_gen5_disable_pip_report()
1564 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, cmd, sizeof(cmd), in cyapa_gen5_disable_pip_report()
1577 u8 cmd[] = { 0x04, 0x00, 0x06, 0x00, 0x2f, 0x00, PIP_SET_PROXIMITY, in cyapa_pip_set_proximity() local
1585 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, cmd, sizeof(cmd), in cyapa_pip_set_proximity()
1599 u8 cmd[] = { 0x05, 0x00, 0x00, 0x08}; in cyapa_pip_deep_sleep() local
1604 cmd[2] = state & PIP_DEEP_SLEEP_STATE_MASK; in cyapa_pip_deep_sleep()
1606 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, cmd, sizeof(cmd), in cyapa_pip_deep_sleep()
1743 u8 cmd[] = { 0x04, 0x00, 0x05, 0x00, 0x2f, 0x00, 0x04 }; in cyapa_pip_resume_scanning() local
1753 cmd, sizeof(cmd), in cyapa_pip_resume_scanning()
1767 u8 cmd[] = { 0x04, 0x00, 0x05, 0x00, 0x2f, 0x00, 0x03 }; in cyapa_pip_suspend_scanning() local
1777 cmd, sizeof(cmd), in cyapa_pip_suspend_scanning()
1793 u8 cmd[8]; in cyapa_pip_calibrate_pwcs() local
1801 memset(cmd, 0, sizeof(cmd)); in cyapa_pip_calibrate_pwcs()
1802 app_cmd_head = (struct pip_app_cmd_head *)cmd; in cyapa_pip_calibrate_pwcs()
1804 put_unaligned_le16(sizeof(cmd) - 2, &app_cmd_head->length); in cyapa_pip_calibrate_pwcs()
1810 cmd, sizeof(cmd), in cyapa_pip_calibrate_pwcs()
1938 u8 cmd[12]; in cyapa_gen5_read_idac_data() local
2007 memset(cmd, 0, sizeof(cmd)); in cyapa_gen5_read_idac_data()
2008 cmd_head = (struct pip_app_cmd_head *)cmd; in cyapa_gen5_read_idac_data()
2010 put_unaligned_le16(sizeof(cmd) - 2, &cmd_head->length); in cyapa_gen5_read_idac_data()
2024 cmd, sizeof(cmd), in cyapa_gen5_read_idac_data()
2181 u8 cmd[7]; in cyapa_gen5_execute_panel_scan() local
2186 memset(cmd, 0, sizeof(cmd)); in cyapa_gen5_execute_panel_scan()
2187 app_cmd_head = (struct pip_app_cmd_head *)cmd; in cyapa_gen5_execute_panel_scan()
2189 put_unaligned_le16(sizeof(cmd) - 2, &app_cmd_head->length); in cyapa_gen5_execute_panel_scan()
2194 cmd, sizeof(cmd), in cyapa_gen5_execute_panel_scan()
2213 u8 cmd[12]; in cyapa_gen5_read_panel_scan_raw_data() local
2239 app_cmd_head = (struct pip_app_cmd_head *)cmd; in cyapa_gen5_read_panel_scan_raw_data()
2241 put_unaligned_le16(sizeof(cmd) - 2, &app_cmd_head->length); in cyapa_gen5_read_panel_scan_raw_data()
2254 cmd, sizeof(cmd), in cyapa_gen5_read_panel_scan_raw_data()