Lines Matching +full:use +full:- +full:case

1 // SPDX-License-Identifier: GPL-2.0-or-later
41 case ROSE_CALL_ACCEPTED: in rose_state1_machine()
44 rose->condition = 0x00; in rose_state1_machine()
45 rose->vs = 0; in rose_state1_machine()
46 rose->va = 0; in rose_state1_machine()
47 rose->vr = 0; in rose_state1_machine()
48 rose->vl = 0; in rose_state1_machine()
49 rose->state = ROSE_STATE_3; in rose_state1_machine()
50 sk->sk_state = TCP_ESTABLISHED; in rose_state1_machine()
52 sk->sk_state_change(sk); in rose_state1_machine()
55 case ROSE_CLEAR_REQUEST: in rose_state1_machine()
57 rose_disconnect(sk, ECONNREFUSED, skb->data[3], skb->data[4]); in rose_state1_machine()
58 rose->neighbour->use--; in rose_state1_machine()
78 case ROSE_CLEAR_REQUEST: in rose_state2_machine()
80 rose_disconnect(sk, 0, skb->data[3], skb->data[4]); in rose_state2_machine()
81 rose->neighbour->use--; in rose_state2_machine()
84 case ROSE_CLEAR_CONFIRMATION: in rose_state2_machine()
85 rose_disconnect(sk, 0, -1, -1); in rose_state2_machine()
86 rose->neighbour->use--; in rose_state2_machine()
107 case ROSE_RESET_REQUEST: in rose_state3_machine()
111 rose->condition = 0x00; in rose_state3_machine()
112 rose->vs = 0; in rose_state3_machine()
113 rose->vr = 0; in rose_state3_machine()
114 rose->va = 0; in rose_state3_machine()
115 rose->vl = 0; in rose_state3_machine()
119 case ROSE_CLEAR_REQUEST: in rose_state3_machine()
121 rose_disconnect(sk, 0, skb->data[3], skb->data[4]); in rose_state3_machine()
122 rose->neighbour->use--; in rose_state3_machine()
125 case ROSE_RR: in rose_state3_machine()
126 case ROSE_RNR: in rose_state3_machine()
129 rose->condition = 0x00; in rose_state3_machine()
130 rose->vs = 0; in rose_state3_machine()
131 rose->vr = 0; in rose_state3_machine()
132 rose->va = 0; in rose_state3_machine()
133 rose->vl = 0; in rose_state3_machine()
134 rose->state = ROSE_STATE_4; in rose_state3_machine()
140 rose->condition |= ROSE_COND_PEER_RX_BUSY; in rose_state3_machine()
142 rose->condition &= ~ROSE_COND_PEER_RX_BUSY; in rose_state3_machine()
147 case ROSE_DATA: /* XXX */ in rose_state3_machine()
148 rose->condition &= ~ROSE_COND_PEER_RX_BUSY; in rose_state3_machine()
151 rose->condition = 0x00; in rose_state3_machine()
152 rose->vs = 0; in rose_state3_machine()
153 rose->vr = 0; in rose_state3_machine()
154 rose->va = 0; in rose_state3_machine()
155 rose->vl = 0; in rose_state3_machine()
156 rose->state = ROSE_STATE_4; in rose_state3_machine()
162 if (ns == rose->vr) { in rose_state3_machine()
166 rose->vr = (rose->vr + 1) % ROSE_MODULUS; in rose_state3_machine()
171 rose->condition = 0x00; in rose_state3_machine()
172 rose->vs = 0; in rose_state3_machine()
173 rose->vr = 0; in rose_state3_machine()
174 rose->va = 0; in rose_state3_machine()
175 rose->vl = 0; in rose_state3_machine()
176 rose->state = ROSE_STATE_4; in rose_state3_machine()
181 if (atomic_read(&sk->sk_rmem_alloc) > in rose_state3_machine()
182 (sk->sk_rcvbuf >> 1)) in rose_state3_machine()
183 rose->condition |= ROSE_COND_OWN_RX_BUSY; in rose_state3_machine()
189 if (((rose->vl + sysctl_rose_window_size) % ROSE_MODULUS) == rose->vr) { in rose_state3_machine()
190 rose->condition &= ~ROSE_COND_ACK_PENDING; in rose_state3_machine()
194 rose->condition |= ROSE_COND_ACK_PENDING; in rose_state3_machine()
217 case ROSE_RESET_REQUEST: in rose_state4_machine()
220 case ROSE_RESET_CONFIRMATION: in rose_state4_machine()
223 rose->condition = 0x00; in rose_state4_machine()
224 rose->va = 0; in rose_state4_machine()
225 rose->vr = 0; in rose_state4_machine()
226 rose->vs = 0; in rose_state4_machine()
227 rose->vl = 0; in rose_state4_machine()
228 rose->state = ROSE_STATE_3; in rose_state4_machine()
232 case ROSE_CLEAR_REQUEST: in rose_state4_machine()
234 rose_disconnect(sk, 0, skb->data[3], skb->data[4]); in rose_state4_machine()
235 rose->neighbour->use--; in rose_state4_machine()
254 rose_disconnect(sk, 0, skb->data[3], skb->data[4]); in rose_state5_machine()
255 rose_sk(sk)->neighbour->use--; in rose_state5_machine()
267 if (rose->state == ROSE_STATE_0) in rose_process_rx_frame()
272 switch (rose->state) { in rose_process_rx_frame()
273 case ROSE_STATE_1: in rose_process_rx_frame()
276 case ROSE_STATE_2: in rose_process_rx_frame()
279 case ROSE_STATE_3: in rose_process_rx_frame()
282 case ROSE_STATE_4: in rose_process_rx_frame()
285 case ROSE_STATE_5: in rose_process_rx_frame()