Lines Matching refs:timeout
26 unsigned int timeout, unsigned int max_attempts)
47 msecs_to_jiffies(timeout));
86 int ps2_sendbyte(struct ps2dev *ps2dev, u8 byte, unsigned int timeout)
92 retval = ps2_do_sendbyte(ps2dev, byte, timeout, 1);
122 void ps2_drain(struct ps2dev *ps2dev, size_t maxbytes, unsigned int timeout)
138 msecs_to_jiffies(timeout));
166 * response and tries to reduce remaining timeout to speed up command
171 unsigned int command, unsigned int timeout)
178 * shorten the timeout.
182 if (timeout > msecs_to_jiffies(100))
183 timeout = msecs_to_jiffies(100);
197 timeout = 0;
208 timeout = 0;
216 return timeout;
228 unsigned int timeout;
263 timeout = command == PS2_CMD_RESET_BAT ? 1000 : 200;
265 rc = ps2_do_sendbyte(ps2dev, command & 0xff, timeout, 2);
283 timeout = msecs_to_jiffies(command == PS2_CMD_RESET_BAT ? 4000 : 500);
285 timeout = wait_event_timeout(ps2dev->wait,
286 !(ps2dev->flags & PS2_FLAG_CMD1), timeout);
290 timeout = ps2_adjust_timeout(ps2dev, command, timeout);
292 !(ps2dev->flags & PS2_FLAG_CMD), timeout);