Lines Matching refs:command
172 unsigned int command, unsigned int timeout) in ps2_adjust_timeout() argument
174 switch (command) { in ps2_adjust_timeout()
227 int __ps2_command(struct ps2dev *ps2dev, u8 *param, unsigned int command) in __ps2_command() argument
230 unsigned int send = (command >> 12) & 0xf; in __ps2_command()
231 unsigned int receive = (command >> 8) & 0xf; in __ps2_command()
250 ps2dev->flags = command == PS2_CMD_GETID ? PS2_FLAG_WAITID : 0; in __ps2_command()
264 timeout = command == PS2_CMD_RESET_BAT ? 1000 : 200; in __ps2_command()
266 rc = ps2_do_sendbyte(ps2dev, command & 0xff, timeout, 2); in __ps2_command()
284 timeout = msecs_to_jiffies(command == PS2_CMD_RESET_BAT ? 4000 : 500); in __ps2_command()
291 timeout = ps2_adjust_timeout(ps2dev, command, timeout); in __ps2_command()
305 (command != PS2_CMD_RESET_BAT || ps2dev->cmdcnt != 1)) { in __ps2_command()
318 command & 0xff, send, send_param, in __ps2_command()
330 int ps2_command(struct ps2dev *ps2dev, u8 *param, unsigned int command) in ps2_command() argument
335 rc = __ps2_command(ps2dev, param, command); in ps2_command()
350 int ps2_sliced_command(struct ps2dev *ps2dev, u8 command) in ps2_sliced_command() argument
362 u8 d = (command >> i) & 3; in ps2_sliced_command()
369 dev_dbg(&ps2dev->serio->dev, "%02x - %d\n", command, retval); in ps2_sliced_command()