Lines Matching refs:flags
41 ps2dev->flags |= PS2_FLAG_ACK; in ps2_sendbyte()
46 !(ps2dev->flags & PS2_FLAG_ACK), in ps2_sendbyte()
50 ps2dev->flags &= ~PS2_FLAG_ACK; in ps2_sendbyte()
90 ps2dev->flags = PS2_FLAG_CMD; in ps2_drain()
95 !(ps2dev->flags & PS2_FLAG_CMD), in ps2_drain()
152 ps2dev->flags = 0; in ps2_adjust_timeout()
163 ps2dev->flags = ps2dev->cmdcnt = 0; in ps2_adjust_timeout()
202 ps2dev->flags = command == PS2_CMD_GETID ? PS2_FLAG_WAITID : 0; in __ps2_command()
233 !(ps2dev->flags & PS2_FLAG_CMD1), timeout); in __ps2_command()
235 if (ps2dev->cmdcnt && !(ps2dev->flags & PS2_FLAG_CMD1)) { in __ps2_command()
239 !(ps2dev->flags & PS2_FLAG_CMD), timeout); in __ps2_command()
254 ps2dev->flags = 0; in __ps2_command()
299 ps2dev->flags |= PS2_FLAG_NAK; in ps2_handle_ack()
304 if (ps2dev->flags & PS2_FLAG_NAK) { in ps2_handle_ack()
305 ps2dev->flags &= ~PS2_FLAG_NAK; in ps2_handle_ack()
317 if (ps2dev->flags & PS2_FLAG_WAITID) { in ps2_handle_ack()
328 ps2dev->flags &= ~PS2_FLAG_NAK; in ps2_handle_ack()
330 ps2dev->flags |= PS2_FLAG_CMD | PS2_FLAG_CMD1; in ps2_handle_ack()
333 ps2dev->flags &= ~PS2_FLAG_ACK; in ps2_handle_ack()
354 if (ps2dev->flags & PS2_FLAG_CMD1) { in ps2_handle_response()
355 ps2dev->flags &= ~PS2_FLAG_CMD1; in ps2_handle_response()
361 ps2dev->flags &= ~PS2_FLAG_CMD; in ps2_handle_response()
371 if (ps2dev->flags & PS2_FLAG_ACK) in ps2_cmd_aborted()
374 if (ps2dev->flags & (PS2_FLAG_ACK | PS2_FLAG_CMD)) in ps2_cmd_aborted()
378 ps2dev->flags &= PS2_FLAG_NAK; in ps2_cmd_aborted()