Lines Matching refs:timeout
27 unsigned int timeout, unsigned int max_attempts) in ps2_do_sendbyte() argument
48 msecs_to_jiffies(timeout)); in ps2_do_sendbyte()
87 int ps2_sendbyte(struct ps2dev *ps2dev, u8 byte, unsigned int timeout) in ps2_sendbyte() argument
93 retval = ps2_do_sendbyte(ps2dev, byte, timeout, 1); in ps2_sendbyte()
123 void ps2_drain(struct ps2dev *ps2dev, size_t maxbytes, unsigned int timeout) in ps2_drain() argument
139 msecs_to_jiffies(timeout)); in ps2_drain()
172 unsigned int command, unsigned int timeout) in ps2_adjust_timeout() argument
183 if (timeout > msecs_to_jiffies(100)) in ps2_adjust_timeout()
184 timeout = msecs_to_jiffies(100); in ps2_adjust_timeout()
198 timeout = 0; in ps2_adjust_timeout()
209 timeout = 0; in ps2_adjust_timeout()
217 return timeout; in ps2_adjust_timeout()
229 unsigned int timeout; in __ps2_command() local
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()
286 timeout = wait_event_timeout(ps2dev->wait, in __ps2_command()
287 !(ps2dev->flags & PS2_FLAG_CMD1), timeout); in __ps2_command()
291 timeout = ps2_adjust_timeout(ps2dev, command, timeout); in __ps2_command()
293 !(ps2dev->flags & PS2_FLAG_CMD), timeout); in __ps2_command()