Lines Matching refs:s
79 ax25_cb *s; in ax25_kill_by_device() local
87 ax25_for_each(s, &ax25_list) { in ax25_kill_by_device()
88 if (s->ax25_dev == ax25_dev) { in ax25_kill_by_device()
89 sk = s->sk; in ax25_kill_by_device()
92 ax25_disconnect(s, ENETUNREACH); in ax25_kill_by_device()
93 s->ax25_dev = NULL; in ax25_kill_by_device()
100 ax25_disconnect(s, ENETUNREACH); in ax25_kill_by_device()
101 s->ax25_dev = NULL; in ax25_kill_by_device()
171 ax25_cb *s; in ax25_find_listener() local
174 ax25_for_each(s, &ax25_list) { in ax25_find_listener()
175 if ((s->iamdigi && !digi) || (!s->iamdigi && digi)) in ax25_find_listener()
177 if (s->sk && !ax25cmp(&s->source_addr, addr) && in ax25_find_listener()
178 s->sk->sk_type == type && s->sk->sk_state == TCP_LISTEN) { in ax25_find_listener()
180 if (s->ax25_dev == NULL || s->ax25_dev->dev == dev) { in ax25_find_listener()
181 sock_hold(s->sk); in ax25_find_listener()
183 return s->sk; in ax25_find_listener()
199 ax25_cb *s; in ax25_get_socket() local
202 ax25_for_each(s, &ax25_list) { in ax25_get_socket()
203 if (s->sk && !ax25cmp(&s->source_addr, my_addr) && in ax25_get_socket()
204 !ax25cmp(&s->dest_addr, dest_addr) && in ax25_get_socket()
205 s->sk->sk_type == type) { in ax25_get_socket()
206 sk = s->sk; in ax25_get_socket()
224 ax25_cb *s; in ax25_find_cb() local
227 ax25_for_each(s, &ax25_list) { in ax25_find_cb()
228 if (s->sk && s->sk->sk_type != SOCK_SEQPACKET) in ax25_find_cb()
230 if (s->ax25_dev == NULL) in ax25_find_cb()
232 …if (ax25cmp(&s->source_addr, src_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->ax25_d… in ax25_find_cb()
234 if (s->digipeat == NULL) in ax25_find_cb()
236 if (ax25digicmp(s->digipeat, digi) != 0) in ax25_find_cb()
239 if (s->digipeat != NULL && s->digipeat->ndigi != 0) in ax25_find_cb()
242 ax25_cb_hold(s); in ax25_find_cb()
245 return s; in ax25_find_cb()
257 ax25_cb *s; in ax25_send_to_raw() local
261 ax25_for_each(s, &ax25_list) { in ax25_send_to_raw()
262 if (s->sk != NULL && ax25cmp(&s->source_addr, addr) == 0 && in ax25_send_to_raw()
263 s->sk->sk_type == SOCK_RAW && in ax25_send_to_raw()
264 s->sk->sk_protocol == proto && in ax25_send_to_raw()
265 s->ax25_dev->dev == skb->dev && in ax25_send_to_raw()
266 atomic_read(&s->sk->sk_rmem_alloc) <= s->sk->sk_rcvbuf) { in ax25_send_to_raw()
269 if (sock_queue_rcv_skb(s->sk, copy) != 0) in ax25_send_to_raw()