Home
last modified time | relevance | path

Searched refs:hid_cmd (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/input/touchscreen/cyttsp5/
H A Dcyttsp5_core.c437 struct cyttsp5_hid_cmd *hid_cmd) in cyttsp5_hid_exec_cmd_() argument
446 + (hid_cmd->report_id >= 0XF ? 1 : 0) /* Report ID */ in cyttsp5_hid_exec_cmd_()
447 + (hid_cmd->has_data_register ? 2 : 0) /* Data register */ in cyttsp5_hid_exec_cmd_()
448 + hid_cmd->write_length; /* Data length */ in cyttsp5_hid_exec_cmd_()
460 SET_CMD_REPORT_TYPE(cmd[cmd_offset], hid_cmd->report_type); in cyttsp5_hid_exec_cmd_()
462 if (hid_cmd->report_id >= 0XF) in cyttsp5_hid_exec_cmd_()
465 SET_CMD_REPORT_ID(cmd[cmd_offset], hid_cmd->report_id); in cyttsp5_hid_exec_cmd_()
468 SET_CMD_OPCODE(cmd[cmd_offset], hid_cmd->opcode); in cyttsp5_hid_exec_cmd_()
471 if (hid_cmd->report_id >= 0XF) { in cyttsp5_hid_exec_cmd_()
472 cmd[cmd_offset] = hid_cmd->report_id; in cyttsp5_hid_exec_cmd_()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/elan/
H A Delan_ts.c2141 …uint8_t hid_cmd[HID_CMD_LEN] = {0x04, 0x00, 0x23, 0x00, 0x03, 0x00, 0x04, CMD_W_PKT, 0x50, 0x00, 0… in elan_ts_set_power_state() local
2145 hid_cmd[8] |= (state << 3); in elan_ts_set_power_state()
2146 err = ts->ops->send(hid_cmd, sizeof(hid_cmd)); in elan_ts_set_power_state()
2147 if (err != sizeof(hid_cmd)) { in elan_ts_set_power_state()