Lines Matching refs:command
128 static int ps2_adjust_timeout(struct ps2dev *ps2dev, int command, int timeout) in ps2_adjust_timeout() argument
130 switch (command) { in ps2_adjust_timeout()
183 int __ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command) in __ps2_command() argument
186 int send = (command >> 12) & 0xf; in __ps2_command()
187 int receive = (command >> 8) & 0xf; in __ps2_command()
202 ps2dev->flags = command == PS2_CMD_GETID ? PS2_FLAG_WAITID : 0; in __ps2_command()
214 if (ps2_sendbyte(ps2dev, command & 0xff, in __ps2_command()
215 command == PS2_CMD_RESET_BAT ? 1000 : 200)) { in __ps2_command()
230 timeout = msecs_to_jiffies(command == PS2_CMD_RESET_BAT ? 4000 : 500); in __ps2_command()
237 timeout = ps2_adjust_timeout(ps2dev, command, timeout); in __ps2_command()
248 if (ps2dev->cmdcnt && (command != PS2_CMD_RESET_BAT || ps2dev->cmdcnt != 1)) in __ps2_command()
261 int ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command) in ps2_command() argument
266 rc = __ps2_command(ps2dev, param, command); in ps2_command()