Lines Matching defs:state
67 * A message is 32 bytes plus a state byte for the channel (MSG_IDLE, MSG_NEW,
69 * buffer, set the state to MSG_NEW and signal the IOP by setting the IRQ flag
70 * in the IOP control to 1. The IOP will move the state to MSG_RCVD when it
73 * reply back out of the send channel buffer and reset the channel state back
77 * are reversed. That is, the IOP puts message in the channel with a state of
78 * MSG_NEW, and the host receives the message and move its state to MSG_RCVD
81 * channel state to MSG_IDLE.
86 * channels have gone to the MSG_COMPLETE state and it will raise INT1 when one
87 * or more messages on the receive channels have gone to the MSG_NEW state.
92 * The handler for a message is called when the message state goes to
98 * from the IOP. The message state will be in MSG_RCVD while the handler runs;
100 * finished; this function moves the message state to MSG_COMPLETE and signals
340 * into the buffer, setting the channel state to MSG_COMPLETE and
391 * has gone into the IOP_MSG_COMPLETE state.
422 * gone into the IOP_MSG_NEW state.
560 int i,state;
567 /* INT0 indicates state change on an outgoing message channel */
571 state = iop_readb(iop, IOP_ADDR_SEND_STATE + i);
572 if (state == IOP_MSG_COMPLETE)
574 else if (state != IOP_MSG_IDLE)
575 iop_pr_debug("chan %d send state %02X\n",
576 i, state);
584 state = iop_readb(iop, IOP_ADDR_RECV_STATE + i);
585 if (state == IOP_MSG_NEW)
587 else if (state != IOP_MSG_IDLE)
588 iop_pr_debug("chan %d recv state %02X\n",
589 i, state);