Lines Matching refs:state

13  * Each end uses its tx_channel.state to indicate its synchronization state.
19 * initially valid state, but cannot be asynchronously reset, and must
20 * maintain a valid state at all times.
22 * The transmitting end can enter the established state from the sync or
23 * ack state when it observes the receiving endpoint in the ack or
24 * established state, indicating that has cleared the counters in our
30 * If an endpoint is observed in the sync state, the remote endpoint is
39 * state, it can clear the w_count and r_count and transition to the ack
40 * state. If the remote endpoint observes us in the ack state, it can
41 * return to the established state once it has cleared its counters.
58 u32 state;
171 * tx.channel->state is set locally, so it is not synchronized with
172 * state from the remote peer. The remote peer cannot reset its
175 * asynchronous transition of rx.channel->state to
178 if (ivc->tx.channel->tx.state != TEGRA_IVC_STATE_ESTABLISHED)
203 if (ivc->tx.channel->tx.state != TEGRA_IVC_STATE_ESTABLISHED)
390 ivc->tx.channel->tx.state = TEGRA_IVC_STATE_SYNC;
419 enum tegra_ivc_state state;
421 /* Copy the receiver's state out of shared memory. */
423 state = READ_ONCE(ivc->rx.channel->tx.state);
425 if (state == TEGRA_IVC_STATE_SYNC) {
436 * state and won't make progress until we change our state,
446 * Ensure that counters appear cleared before new state can be
452 * Move to ACK state. We have just cleared our counters, so it
455 ivc->tx.channel->tx.state = TEGRA_IVC_STATE_ACK;
459 * Notify remote end to observe state transition.
463 } else if (ivc->tx.channel->tx.state == TEGRA_IVC_STATE_SYNC &&
464 state == TEGRA_IVC_STATE_ACK) {
475 * state and won't make progress until we change our state,
485 * Ensure that counters appear cleared before new state can be
491 * Move to ESTABLISHED state. We know that the remote end has
495 ivc->tx.channel->tx.state = TEGRA_IVC_STATE_ESTABLISHED;
499 * Notify remote end to observe state transition.
503 } else if (ivc->tx.channel->tx.state == TEGRA_IVC_STATE_ACK) {
508 * the ACK or ESTABLISHED state. Next, order observation of
509 * peer state before storing to tx.channel.
514 * Move to ESTABLISHED state. We know that we have previously
519 ivc->tx.channel->tx.state = TEGRA_IVC_STATE_ESTABLISHED;
523 * Notify remote end to observe state transition.
531 * the remote end to catch up with our current state. Refer
536 if (ivc->tx.channel->tx.state != TEGRA_IVC_STATE_ESTABLISHED)