Lines Matching refs:state

32 static int llc_find_offset(int state, int ev_type);
50 * llc_conn_state_process - sends event to connection state machine
54 * Sends an event to connection state machine. After processing event
55 * (executing it's actions and changing state), upper layer will be
69 * Send event to state machine
105 sk->sk_socket->state = SS_UNCONNECTED;
131 if (!llc_data_accept_state(llc->state))
140 sk->sk_socket->state = SS_UNCONNECTED;
143 sk->sk_socket->state = SS_CONNECTED;
152 sk->sk_socket->state = SS_UNCONNECTED;
348 * llc_conn_service - finds transition and changes state of connection
353 * executes related actions and finally changes state of connection.
362 if (llc->state > NBR_CONN_STATES)
369 llc->state = trans->next_state;
370 if (!llc_data_accept_state(llc->state))
394 &llc_conn_state_table[llc->state - 1];
396 /* search thru events for this state until
400 llc_find_offset(llc->state - 1, ev->type);
405 * state flags; if all qualifications are met (i.e.,
416 * the associated actions & change the state
605 * llc_data_accept_state - designates if in this state data can be sent.
606 * @state: state of connection.
610 u8 llc_data_accept_state(u8 state)
612 return state != LLC_CONN_STATE_NORMAL && state != LLC_CONN_STATE_BUSY &&
613 state != LLC_CONN_STATE_REJ;
618 * @state: state table.
624 static u16 __init llc_find_next_offset(struct llc_conn_state *state, u16 offset)
629 for (next_trans = state->transitions + offset;
638 * Fills offset table of connection state transition table
644 int state, ev_type, next_offset;
646 for (state = 0; state < NBR_CONN_STATES; state++) {
647 curr_state = &llc_conn_state_table[state];
650 llc_offset_table[state][ev_type] = next_offset;
659 * @state: state of connection
665 static int llc_find_offset(int state, int ev_type)
673 rc = llc_offset_table[state][0]; break;
675 rc = llc_offset_table[state][4]; break;
677 rc = llc_offset_table[state][1]; break;
682 rc = llc_offset_table[state][3]; break;
732 * llc_conn_rcv - sends received pdus to the connection state machine
736 * Sends received pdus to the connection state machine.
786 * method because of the way the PROCOM state machine works:
787 * it needs to set several state variables (see, for instance,
789 * the originator of the new connection, and this state has to be
803 * another trick required to cope with how the PROCOM state
852 if (likely(llc->state > 1)) /* not closed */
858 if (likely(llc->state > 1)) /* not closed */
883 llc->state = LLC_CONN_STATE_ADM;
963 llc->state = LLC_CONN_OUT_OF_SVC;
993 * Resets a connection to the out of service state. Stops its timers