Lines Matching full:command

165  * ps2_adjust_timeout() is called after receiving 1st byte of command
166 * response and tries to reduce remaining timeout to speed up command
171 unsigned int command, unsigned int timeout) in ps2_adjust_timeout() argument
173 switch (command) { in ps2_adjust_timeout()
177 * reset command, reset is thus done, so we can in ps2_adjust_timeout()
189 * the GET ID command as it were a mouse, with in ps2_adjust_timeout()
190 * a single byte. Fail the command so atkbd will in ps2_adjust_timeout()
220 * ps2_command() sends a command and its parameters to the mouse,
226 int __ps2_command(struct ps2dev *ps2dev, u8 *param, unsigned int command) in __ps2_command() argument
229 unsigned int send = (command >> 12) & 0xf; in __ps2_command()
230 unsigned int receive = (command >> 8) & 0xf; in __ps2_command()
249 ps2dev->flags = command == PS2_CMD_GETID ? PS2_FLAG_WAITID : 0; in __ps2_command()
255 /* Signal that we are sending the command byte */ in __ps2_command()
260 * ACKing the reset command, and so it can take a long in __ps2_command()
263 timeout = command == PS2_CMD_RESET_BAT ? 1000 : 200; in __ps2_command()
265 rc = ps2_do_sendbyte(ps2dev, command & 0xff, timeout, 2); in __ps2_command()
269 /* Now we are sending command parameters, if any */ in __ps2_command()
281 * The reset command takes a long time to execute. in __ps2_command()
283 timeout = msecs_to_jiffies(command == PS2_CMD_RESET_BAT ? 4000 : 500); in __ps2_command()
290 timeout = ps2_adjust_timeout(ps2dev, command, timeout); in __ps2_command()
302 (command != PS2_CMD_RESET_BAT || ps2dev->cmdcnt != 1)) { in __ps2_command()
315 command & 0xff, send, send_param, in __ps2_command()
327 int ps2_command(struct ps2dev *ps2dev, u8 *param, unsigned int command) in ps2_command() argument
332 rc = __ps2_command(ps2dev, param, command); in ps2_command()
340 * ps2_sliced_command() sends an extended PS/2 command to the mouse
342 * or Synaptics touchpads. The command is encoded as:
344 * is the command.
347 int ps2_sliced_command(struct ps2dev *ps2dev, u8 command) in ps2_sliced_command() argument
359 u8 d = (command >> i) & 3; in ps2_sliced_command()
366 dev_dbg(&ps2dev->serio->dev, "%02x - %d\n", command, retval); in ps2_sliced_command()
387 * to properly process ACK/NAK of a command from a PS/2 device.
411 * Workaround for mice which don't ACK the Get ID command. in ps2_handle_ack()
425 * waiting for an ACK to the initial (first) command byte: in ps2_handle_ack()
429 * for mice not acknowledging the Get ID command only triggers in ps2_handle_ack()
456 * to properly store device's response to a command and notify process
457 * waiting for completion of the command.