Lines Matching refs:cmd
60 static int cypress_ps2_ext_cmd(struct psmouse *psmouse, unsigned short cmd, in cypress_ps2_ext_cmd() argument
75 rc = cypress_ps2_sendbyte(psmouse, cmd & 0xff); in cypress_ps2_ext_cmd()
99 unsigned char cmd, in cypress_ps2_read_cmd_status() argument
113 pktsize = (cmd == CYTP_CMD_READ_TP_METRICS) ? 8 : 3; in cypress_ps2_read_cmd_status()
127 cmd, pktsize, param); in cypress_ps2_read_cmd_status()
139 unsigned char cmd, unsigned char *param) in cypress_verify_cmd_state() argument
146 if (cmd == CYTP_CMD_READ_CYPRESS_ID || in cypress_verify_cmd_state()
147 cmd == CYTP_CMD_STANDARD_MODE || in cypress_verify_cmd_state()
148 cmd == CYTP_CMD_READ_TP_METRICS) in cypress_verify_cmd_state()
169 static int cypress_send_ext_cmd(struct psmouse *psmouse, unsigned char cmd, in cypress_send_ext_cmd() argument
176 cmd, DECODE_CMD_AA(cmd), DECODE_CMD_BB(cmd), in cypress_send_ext_cmd()
177 DECODE_CMD_CC(cmd), DECODE_CMD_DD(cmd)); in cypress_send_ext_cmd()
181 PSMOUSE_CMD_SETRES, DECODE_CMD_DD(cmd)); in cypress_send_ext_cmd()
183 PSMOUSE_CMD_SETRES, DECODE_CMD_CC(cmd)); in cypress_send_ext_cmd()
185 PSMOUSE_CMD_SETRES, DECODE_CMD_BB(cmd)); in cypress_send_ext_cmd()
187 PSMOUSE_CMD_SETRES, DECODE_CMD_AA(cmd)); in cypress_send_ext_cmd()
189 rc = cypress_ps2_read_cmd_status(psmouse, cmd, param); in cypress_send_ext_cmd()
193 if (cypress_verify_cmd_state(psmouse, cmd, param)) in cypress_send_ext_cmd()