Lines Matching refs:state
71 * A message is 32 bytes plus a state byte for the channel (MSG_IDLE, MSG_NEW,
73 * buffer, set the state to MSG_NEW and signal the IOP by setting the IRQ flag
74 * in the IOP control to 1. The IOP will move the state to MSG_RCVD when it
77 * reply back out of the send channel buffer and reset the channel state back
81 * are reversed. That is, the IOP puts message in the channel with a state of
82 * MSG_NEW, and the host receives the message and move its state to MSG_RCVD
85 * channel state to MSG_IDLE.
90 * channels have gone to the MSG_COMPLETE state and it will raise INT1 when one
91 * or more messages on the receive channels have gone to the MSG_NEW state.
96 * The handler for a message is called when the message state goes to
102 * from the IOP. The message state will be in MSG_RCVD while the handler runs;
104 * finished; this function moves the message state to MSG_COMPLETE and signals
322 * into the buffer, setting the channel state to MSG_COMPLETE and
373 * has gone into the IOP_MSG_COMPLETE state.
404 * gone into the IOP_MSG_NEW state.
542 int i,state;
549 /* INT0 indicates state change on an outgoing message channel */
553 state = iop_readb(iop, IOP_ADDR_SEND_STATE + i);
554 if (state == IOP_MSG_COMPLETE)
556 else if (state != IOP_MSG_IDLE)
557 iop_pr_debug("chan %d send state %02X\n",
558 i, state);
566 state = iop_readb(iop, IOP_ADDR_RECV_STATE + i);
567 if (state == IOP_MSG_NEW)
569 else if (state != IOP_MSG_IDLE)
570 iop_pr_debug("chan %d recv state %02X\n",
571 i, state);