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()
228 !(ps2dev->flags & PS2_FLAG_CMD1), timeout); in __ps2_command()
230 if (ps2dev->cmdcnt && !(ps2dev->flags & PS2_FLAG_CMD1)) { in __ps2_command()
234 !(ps2dev->flags & PS2_FLAG_CMD), timeout); in __ps2_command()
248 ps2dev->flags = 0; in __ps2_command()
293 ps2dev->flags |= PS2_FLAG_NAK; in ps2_handle_ack()
298 if (ps2dev->flags & PS2_FLAG_NAK) { in ps2_handle_ack()
299 ps2dev->flags &= ~PS2_FLAG_NAK; in ps2_handle_ack()
311 if (ps2dev->flags & PS2_FLAG_WAITID) { in ps2_handle_ack()
322 ps2dev->flags &= ~PS2_FLAG_NAK; in ps2_handle_ack()
324 ps2dev->flags |= PS2_FLAG_CMD | PS2_FLAG_CMD1; in ps2_handle_ack()
327 ps2dev->flags &= ~PS2_FLAG_ACK; in ps2_handle_ack()
348 if (ps2dev->flags & PS2_FLAG_CMD1) { in ps2_handle_response()
349 ps2dev->flags &= ~PS2_FLAG_CMD1; in ps2_handle_response()
355 ps2dev->flags &= ~PS2_FLAG_CMD; in ps2_handle_response()
365 if (ps2dev->flags & PS2_FLAG_ACK) in ps2_cmd_aborted()
368 if (ps2dev->flags & (PS2_FLAG_ACK | PS2_FLAG_CMD)) in ps2_cmd_aborted()
372 ps2dev->flags &= PS2_FLAG_NAK; in ps2_cmd_aborted()