Lines Matching defs:state

20  * Each end uses its tx_channel.state to indicate its synchronization state.
26 * initially valid state, but cannot be asynchronously reset, and must
27 * maintain a valid state at all times.
29 * The transmitting end can enter the established state from the sync or
30 * ack state when it observes the receiving endpoint in the ack or
31 * established state, indicating that has cleared the counters in our
37 * If an endpoint is observed in the sync state, the remote endpoint is
46 * state, it can clear the w_count and r_count and transition to the ack
47 * state. If the remote endpoint observes us in the ack state, it can
48 * return to the established state once it has cleared its counters.
64 uint32_t state;
162 * tx_channel->state is set locally, so it is not synchronized with
163 * state from the remote peer. The remote peer cannot reset its
166 * asynchronous transition of rx_channel->state to ivc_state_ack is not
169 if (ivc->tx_channel->state != ivc_state_established) {
188 if (ivc->tx_channel->state != ivc_state_established) {
417 ivc->tx_channel->state = ivc_state_sync;
444 /* Copy the receiver's state out of shared memory. */
445 peer_state = ivc->rx_channel->state;
456 * state and won't make progress until we change our state,
466 * Ensure that counters appear cleared before new state can be
472 * Move to ACK state. We have just cleared our counters, so it
475 ivc->tx_channel->state = ivc_state_ack;
478 * Notify remote end to observe state transition.
482 } else if ((ivc->tx_channel->state == (uint32_t)ivc_state_sync) &&
492 * state and won't make progress until we change our state,
502 * Ensure that counters appear cleared before new state can be
508 * Move to ESTABLISHED state. We know that the remote end has
512 ivc->tx_channel->state = ivc_state_established;
515 * Notify remote end to observe state transition.
519 } else if (ivc->tx_channel->state == (uint32_t)ivc_state_ack) {
522 * the ACK or ESTABLISHED state. Next, order observation of
523 * peer state before storing to tx_channel.
528 * Move to ESTABLISHED state. We know that we have previously
533 ivc->tx_channel->state = ivc_state_established;
536 * Notify remote end to observe state transition.
544 * the remote end to catch up with our current state. Refer
549 return ((ivc->tx_channel->state == (uint32_t)ivc_state_established) ? 0 : -EAGAIN);