Lines Matching +full:use +full:- +full:case
1 // SPDX-License-Identifier: GPL-2.0-or-later
42 case ROSE_CALL_ACCEPTED: in rose_state1_machine()
45 rose->condition = 0x00; in rose_state1_machine()
46 rose->vs = 0; in rose_state1_machine()
47 rose->va = 0; in rose_state1_machine()
48 rose->vr = 0; in rose_state1_machine()
49 rose->vl = 0; in rose_state1_machine()
50 rose->state = ROSE_STATE_3; in rose_state1_machine()
51 sk->sk_state = TCP_ESTABLISHED; in rose_state1_machine()
53 sk->sk_state_change(sk); in rose_state1_machine()
56 case ROSE_CLEAR_REQUEST: in rose_state1_machine()
58 rose_disconnect(sk, ECONNREFUSED, skb->data[3], skb->data[4]); in rose_state1_machine()
59 rose->neighbour->use--; in rose_state1_machine()
79 case ROSE_CLEAR_REQUEST: in rose_state2_machine()
81 rose_disconnect(sk, 0, skb->data[3], skb->data[4]); in rose_state2_machine()
82 rose->neighbour->use--; in rose_state2_machine()
85 case ROSE_CLEAR_CONFIRMATION: in rose_state2_machine()
86 rose_disconnect(sk, 0, -1, -1); in rose_state2_machine()
87 rose->neighbour->use--; in rose_state2_machine()
108 case ROSE_RESET_REQUEST: in rose_state3_machine()
112 rose->condition = 0x00; in rose_state3_machine()
113 rose->vs = 0; in rose_state3_machine()
114 rose->vr = 0; in rose_state3_machine()
115 rose->va = 0; in rose_state3_machine()
116 rose->vl = 0; in rose_state3_machine()
120 case ROSE_CLEAR_REQUEST: in rose_state3_machine()
122 rose_disconnect(sk, 0, skb->data[3], skb->data[4]); in rose_state3_machine()
123 rose->neighbour->use--; in rose_state3_machine()
126 case ROSE_RR: in rose_state3_machine()
127 case ROSE_RNR: in rose_state3_machine()
130 rose->condition = 0x00; in rose_state3_machine()
131 rose->vs = 0; in rose_state3_machine()
132 rose->vr = 0; in rose_state3_machine()
133 rose->va = 0; in rose_state3_machine()
134 rose->vl = 0; in rose_state3_machine()
135 rose->state = ROSE_STATE_4; in rose_state3_machine()
141 rose->condition |= ROSE_COND_PEER_RX_BUSY; in rose_state3_machine()
143 rose->condition &= ~ROSE_COND_PEER_RX_BUSY; in rose_state3_machine()
148 case ROSE_DATA: /* XXX */ in rose_state3_machine()
149 rose->condition &= ~ROSE_COND_PEER_RX_BUSY; in rose_state3_machine()
152 rose->condition = 0x00; in rose_state3_machine()
153 rose->vs = 0; in rose_state3_machine()
154 rose->vr = 0; in rose_state3_machine()
155 rose->va = 0; in rose_state3_machine()
156 rose->vl = 0; in rose_state3_machine()
157 rose->state = ROSE_STATE_4; in rose_state3_machine()
163 if (ns == rose->vr) { in rose_state3_machine()
167 rose->vr = (rose->vr + 1) % ROSE_MODULUS; in rose_state3_machine()
172 rose->condition = 0x00; in rose_state3_machine()
173 rose->vs = 0; in rose_state3_machine()
174 rose->vr = 0; in rose_state3_machine()
175 rose->va = 0; in rose_state3_machine()
176 rose->vl = 0; in rose_state3_machine()
177 rose->state = ROSE_STATE_4; in rose_state3_machine()
182 if (atomic_read(&sk->sk_rmem_alloc) > in rose_state3_machine()
183 (sk->sk_rcvbuf >> 1)) in rose_state3_machine()
184 rose->condition |= ROSE_COND_OWN_RX_BUSY; in rose_state3_machine()
190 if (((rose->vl + sysctl_rose_window_size) % ROSE_MODULUS) == rose->vr) { in rose_state3_machine()
191 rose->condition &= ~ROSE_COND_ACK_PENDING; in rose_state3_machine()
195 rose->condition |= ROSE_COND_ACK_PENDING; in rose_state3_machine()
218 case ROSE_RESET_REQUEST: in rose_state4_machine()
221 case ROSE_RESET_CONFIRMATION: in rose_state4_machine()
224 rose->condition = 0x00; in rose_state4_machine()
225 rose->va = 0; in rose_state4_machine()
226 rose->vr = 0; in rose_state4_machine()
227 rose->vs = 0; in rose_state4_machine()
228 rose->vl = 0; in rose_state4_machine()
229 rose->state = ROSE_STATE_3; in rose_state4_machine()
233 case ROSE_CLEAR_REQUEST: in rose_state4_machine()
235 rose_disconnect(sk, 0, skb->data[3], skb->data[4]); in rose_state4_machine()
236 rose->neighbour->use--; in rose_state4_machine()
255 rose_disconnect(sk, 0, skb->data[3], skb->data[4]); in rose_state5_machine()
256 rose_sk(sk)->neighbour->use--; in rose_state5_machine()
268 if (rose->state == ROSE_STATE_0) in rose_process_rx_frame()
273 switch (rose->state) { in rose_process_rx_frame()
274 case ROSE_STATE_1: in rose_process_rx_frame()
277 case ROSE_STATE_2: in rose_process_rx_frame()
280 case ROSE_STATE_3: in rose_process_rx_frame()
283 case ROSE_STATE_4: in rose_process_rx_frame()
286 case ROSE_STATE_5: in rose_process_rx_frame()