/net/x25/ |
H A D | x25_timer.c | 32 void x25_init_timers(struct sock *sk) argument 34 struct x25_sock *x25 = x25_sk(sk); 36 setup_timer(&x25->timer, x25_timer_expiry, (unsigned long)sk); 39 sk->sk_timer.data = (unsigned long)sk; 40 sk->sk_timer.function = &x25_heartbeat_expiry; 43 void x25_start_heartbeat(struct sock *sk) argument 45 mod_timer(&sk->sk_timer, jiffies + 5 * HZ); 48 void x25_stop_heartbeat(struct sock *sk) argument 50 del_timer(&sk 53 x25_start_t2timer(struct sock *sk) argument 60 x25_start_t21timer(struct sock *sk) argument 67 x25_start_t22timer(struct sock *sk) argument 74 x25_start_t23timer(struct sock *sk) argument 81 x25_stop_timer(struct sock *sk) argument 86 x25_display_timer(struct sock *sk) argument 98 struct sock *sk = (struct sock *)param; local 137 x25_do_timer_expiry(struct sock * sk) argument 165 struct sock *sk = (struct sock *)param; local [all...] |
H A D | x25_in.c | 35 static int x25_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) argument 38 struct x25_sock *x25 = x25_sk(sk); 43 skb_set_owner_r(skb, sk); 77 skb_set_owner_r(skbn, sk); 78 skb_queue_tail(&sk->sk_receive_queue, skbn); 79 if (!sock_flag(sk, SOCK_DEAD)) 80 sk->sk_data_ready(sk, skbn->len); 90 static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 94 struct x25_sock *x25 = x25_sk(sk); 169 x25_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 202 x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, int q, int d, int m) argument 338 x25_state4_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 379 x25_process_rx_frame(struct sock *sk, struct sk_buff *skb) argument 409 x25_backlog_rcv(struct sock *sk, struct sk_buff *skb) argument [all...] |
/net/ipv4/ |
H A D | tcp_timer.c | 35 static void tcp_write_err(struct sock *sk) argument 37 sk->sk_err = sk->sk_err_soft ? : ETIMEDOUT; 38 sk->sk_error_report(sk); 40 tcp_done(sk); 41 NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPABORTONTIMEOUT); 55 static int tcp_out_of_resources(struct sock *sk, int do_reset) argument 57 struct tcp_sock *tp = tcp_sk(sk); 66 if (sk 86 tcp_orphan_retries(struct sock *sk, int alive) argument 102 tcp_mtu_probing(struct inet_connection_sock *icsk, struct sock *sk) argument 127 retransmits_timed_out(struct sock *sk, unsigned int boundary, unsigned int timeout, bool syn_set) argument 156 tcp_write_timeout(struct sock *sk) argument 197 tcp_delack_timer_handler(struct sock *sk) argument 246 struct sock *sk = (struct sock *)data; local 262 tcp_probe_timer(struct sock *sk) argument 311 tcp_fastopen_synack_timer(struct sock *sk) argument 340 tcp_retransmit_timer(struct sock *sk) argument 478 tcp_write_timer_handler(struct sock *sk) argument 516 struct sock *sk = (struct sock *)data; local 534 tcp_synack_timer(struct sock *sk) argument 540 tcp_syn_ack_timeout(struct sock *sk, struct request_sock *req) argument 546 tcp_set_keepalive(struct sock *sk, int val) argument 560 struct sock *sk = (struct sock *) data; local 643 tcp_init_xmit_timers(struct sock *sk) argument [all...] |
H A D | datagram.c | 23 int ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) argument 25 struct inet_sock *inet = inet_sk(sk); 40 sk_dst_reset(sk); 42 lock_sock(sk); 44 oif = sk->sk_bound_dev_if; 54 RT_CONN_FLAGS(sk), oif, 55 sk->sk_protocol, 56 inet->inet_sport, usin->sin_port, sk, true); 60 IP_INC_STATS_BH(sock_net(sk), IPSTATS_MIB_OUTNOROUTES); 64 if ((rt->rt_flags & RTCF_BROADCAST) && !sock_flag(sk, SOCK_BROADCAS 89 ip4_datagram_release_cb(struct sock *sk) argument [all...] |
/net/netrom/ |
H A D | nr_timer.c | 38 void nr_init_timers(struct sock *sk) argument 40 struct nr_sock *nr = nr_sk(sk); 42 setup_timer(&nr->t1timer, nr_t1timer_expiry, (unsigned long)sk); 43 setup_timer(&nr->t2timer, nr_t2timer_expiry, (unsigned long)sk); 44 setup_timer(&nr->t4timer, nr_t4timer_expiry, (unsigned long)sk); 45 setup_timer(&nr->idletimer, nr_idletimer_expiry, (unsigned long)sk); 48 sk->sk_timer.data = (unsigned long)sk; 49 sk->sk_timer.function = &nr_heartbeat_expiry; 52 void nr_start_t1timer(struct sock *sk) argument 59 nr_start_t2timer(struct sock *sk) argument 66 nr_start_t4timer(struct sock *sk) argument 73 nr_start_idletimer(struct sock *sk) argument 81 nr_start_heartbeat(struct sock *sk) argument 86 nr_stop_t1timer(struct sock *sk) argument 91 nr_stop_t2timer(struct sock *sk) argument 96 nr_stop_t4timer(struct sock *sk) argument 101 nr_stop_idletimer(struct sock *sk) argument 106 nr_stop_heartbeat(struct sock *sk) argument 111 nr_t1timer_running(struct sock *sk) argument 118 struct sock *sk = (struct sock *)param; local 157 struct sock *sk = (struct sock *)param; local 170 struct sock *sk = (struct sock *)param; local 179 struct sock *sk = (struct sock *)param; local 207 struct sock *sk = (struct sock *)param; local [all...] |
H A D | nr_in.c | 32 static int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) argument 35 struct nr_sock *nr = nr_sk(sk); 39 nr_start_idletimer(sk); 66 return sock_queue_rcv_skb(sk, skbn); 74 static int nr_state1_machine(struct sock *sk, struct sk_buff *skb, argument 79 struct nr_sock *nr = nr_sk(sk); 81 nr_stop_t1timer(sk); 82 nr_start_idletimer(sk); 92 sk->sk_state = TCP_ESTABLISHED; 93 if (!sock_flag(sk, SOCK_DEA 118 nr_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 149 nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 280 nr_process_rx_frame(struct sock *sk, struct sk_buff *skb) argument [all...] |
/net/decnet/ |
H A D | dn_timer.c | 14 * Steve Whitehouse : Added checks for sk->sock_readers 37 void dn_start_slow_timer(struct sock *sk) argument 39 setup_timer(&sk->sk_timer, dn_slow_timer, (unsigned long)sk); 40 sk_reset_timer(sk, &sk->sk_timer, jiffies + SLOW_INTERVAL); 43 void dn_stop_slow_timer(struct sock *sk) argument 45 sk_stop_timer(sk, &sk->sk_timer); 50 struct sock *sk local [all...] |
/net/dccp/ |
H A D | qpolicy.c | 18 static void qpolicy_simple_push(struct sock *sk, struct sk_buff *skb) argument 20 skb_queue_tail(&sk->sk_write_queue, skb); 23 static bool qpolicy_simple_full(struct sock *sk) argument 25 return dccp_sk(sk)->dccps_tx_qlen && 26 sk->sk_write_queue.qlen >= dccp_sk(sk)->dccps_tx_qlen; 29 static struct sk_buff *qpolicy_simple_top(struct sock *sk) argument 31 return skb_peek(&sk->sk_write_queue); 39 static struct sk_buff *qpolicy_prio_best_skb(struct sock *sk) argument 43 skb_queue_walk(&sk 49 qpolicy_prio_worst_skb(struct sock *sk) argument 59 qpolicy_prio_full(struct sock *sk) argument 96 dccp_qpolicy_push(struct sock *sk, struct sk_buff *skb) argument 101 dccp_qpolicy_full(struct sock *sk) argument 106 dccp_qpolicy_drop(struct sock *sk, struct sk_buff *skb) argument 114 dccp_qpolicy_top(struct sock *sk) argument 119 dccp_qpolicy_pop(struct sock *sk) argument 131 dccp_qpolicy_param_ok(struct sock *sk, __be32 param) argument [all...] |
H A D | timer.c | 24 static void dccp_write_err(struct sock *sk) argument 26 sk->sk_err = sk->sk_err_soft ? : ETIMEDOUT; 27 sk->sk_error_report(sk); 29 dccp_send_reset(sk, DCCP_RESET_CODE_ABORTED); 30 dccp_done(sk); 35 static int dccp_write_timeout(struct sock *sk) argument 37 const struct inet_connection_sock *icsk = inet_csk(sk); 40 if (sk 87 dccp_retransmit_timer(struct sock *sk) argument 130 struct sock *sk = (struct sock *)data; local 167 dccp_response_timer(struct sock *sk) argument 175 struct sock *sk = (struct sock *)data; local 197 struct sock *sk = (struct sock *)data; local 247 struct sock *sk = (struct sock *)data; local 263 dccp_init_xmit_timers(struct sock *sk) argument [all...] |
H A D | input.c | 26 static void dccp_enqueue_skb(struct sock *sk, struct sk_buff *skb) argument 29 __skb_queue_tail(&sk->sk_receive_queue, skb); 30 skb_set_owner_r(skb, sk); 31 sk->sk_data_ready(sk, 0); 34 static void dccp_fin(struct sock *sk, struct sk_buff *skb) argument 42 sk->sk_shutdown = SHUTDOWN_MASK; 43 sock_set_flag(sk, SOCK_DONE); 44 dccp_enqueue_skb(sk, skb); 47 static int dccp_rcv_close(struct sock *sk, struc argument 93 dccp_rcv_closereq(struct sock *sk, struct sk_buff *skb) argument 149 dccp_rcv_reset(struct sock *sk, struct sk_buff *skb) argument 163 dccp_handle_ackvec_processing(struct sock *sk, struct sk_buff *skb) argument 174 dccp_deliver_input_to_ccids(struct sock *sk, struct sk_buff *skb) argument 189 dccp_check_seqno(struct sock *sk, struct sk_buff *skb) argument 287 __dccp_rcv_established(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument 368 dccp_rcv_established(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument 388 dccp_rcv_request_sent_state_process(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument 521 dccp_rcv_respond_partopen_state_process(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument 574 dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb, struct dccp_hdr *dh, unsigned int len) argument 717 dccp_sample_rtt(struct sock *sk, long delta) argument [all...] |
H A D | proto.c | 77 void dccp_set_state(struct sock *sk, const int state) argument 79 const int oldstate = sk->sk_state; 81 dccp_pr_debug("%s(%p) %s --> %s\n", dccp_role(sk), sk, 91 dccp_feat_list_purge(&dccp_sk(sk)->dccps_featneg); 99 sk->sk_prot->unhash(sk); 100 if (inet_csk(sk)->icsk_bind_hash != NULL && 101 !(sk->sk_userlocks & SOCK_BINDPORT_LOCK)) 102 inet_put_port(sk); 117 dccp_finish_passive_close(struct sock *sk) argument 135 dccp_done(struct sock *sk) argument 173 dccp_init_sock(struct sock *sk, const __u8 ctl_sock_initialized) argument 200 dccp_destroy_sock(struct sock *sk) argument 234 dccp_listen_start(struct sock *sk, int backlog) argument 251 dccp_disconnect(struct sock *sk, int flags) argument 313 struct sock *sk = sock->sk; local 360 dccp_ioctl(struct sock *sk, int cmd, unsigned long arg) argument 396 dccp_setsockopt_service(struct sock *sk, const __be32 service, char __user *optval, unsigned int optlen) argument 431 dccp_setsockopt_cscov(struct sock *sk, int cscov, bool rx) argument 467 dccp_setsockopt_ccid(struct sock *sk, int type, char __user *optval, unsigned int optlen) argument 492 do_dccp_setsockopt(struct sock *sk, int level, int optname, char __user *optval, unsigned int optlen) argument 558 dccp_setsockopt(struct sock *sk, int level, int optname, char __user *optval, unsigned int optlen) argument 571 compat_dccp_setsockopt(struct sock *sk, int level, int optname, char __user *optval, unsigned int optlen) argument 583 dccp_getsockopt_service(struct sock *sk, int len, __be32 __user *optval, int __user *optlen) argument 611 do_dccp_getsockopt(struct sock *sk, int level, int optname, char __user *optval, int __user *optlen) argument 679 dccp_getsockopt(struct sock *sk, int level, int optname, char __user *optval, int __user *optlen) argument 692 compat_dccp_getsockopt(struct sock *sk, int level, int optname, char __user *optval, int __user *optlen) argument 745 dccp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len) argument 810 dccp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int nonblock, int flags, int *addr_len) argument 920 struct sock *sk = sock->sk; local 956 dccp_terminate_connection(struct sock *sk) argument 983 dccp_close(struct sock *sk, long timeout) argument 1078 dccp_shutdown(struct sock *sk, int how) argument [all...] |
/net/core/ |
H A D | stream.c | 24 * @sk: socket 28 void sk_stream_write_space(struct sock *sk) argument 30 struct socket *sock = sk->sk_socket; 33 if (sk_stream_wspace(sk) >= sk_stream_min_wspace(sk) && sock) { 37 wq = rcu_dereference(sk->sk_wq); 41 if (wq && wq->fasync_list && !(sk->sk_shutdown & SEND_SHUTDOWN)) 50 * @sk: sock to wait on 55 int sk_stream_wait_connect(struct sock *sk, long *timeo_p) argument 62 int err = sock_error(sk); 89 sk_stream_closing(struct sock *sk) argument 95 sk_stream_wait_close(struct sock *sk, long timeout) argument 117 sk_stream_wait_memory(struct sock *sk, long *timeo_p) argument 176 sk_stream_error(struct sock *sk, int flags, int err) argument 186 sk_stream_kill_queues(struct sock *sk) argument [all...] |
H A D | sock.c | 51 * Anonymous : inet_create tidied up (sk->reuse setting) 52 * Alan Cox : inet sockets don't set sk->type! 281 * @sk: socket to set it on 287 void sk_set_memalloc(struct sock *sk) argument 289 sock_set_flag(sk, SOCK_MEMALLOC); 290 sk->sk_allocation |= __GFP_MEMALLOC; 295 void sk_clear_memalloc(struct sock *sk) argument 297 sock_reset_flag(sk, SOCK_MEMALLOC); 298 sk->sk_allocation &= ~__GFP_MEMALLOC; 310 if (WARN_ON(sk 315 __sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) argument 375 sock_disable_timestamp(struct sock *sk, unsigned long flags) argument 385 sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) argument 433 sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested) argument 475 sk_reset_txq(struct sock *sk) argument 481 __sk_dst_check(struct sock *sk, u32 cookie) argument 496 sk_dst_check(struct sock *sk, u32 cookie) argument 510 sock_setbindtodevice(struct sock *sk, char __user *optval, int optlen) argument 568 sock_getbindtodevice(struct sock *sk, char __user *optval, int __user *optlen, int len) argument 608 sock_valbool_flag(struct sock *sk, int bit, int valbool) argument 624 struct sock *sk = sock->sk; local 928 struct sock *sk = sock->sk; local 1177 sock_lock_init(struct sock *sk) argument 1207 sk_prot_clear_portaddr_nulls(struct sock *sk, int size) argument 1228 struct sock *sk; local 1268 sk_prot_free(struct proto *prot, struct sock *sk) argument 1285 sock_update_classid(struct sock *sk) argument 1297 sock_update_netprioidx(struct sock *sk) argument 1317 struct sock *sk; local 1339 __sk_free(struct sock *sk) argument 1366 sk_free(struct sock *sk) argument 1385 sk_release_kernel(struct sock *sk) argument 1398 sk_update_clone(const struct sock *sk, struct sock *newsk) argument 1411 sk_clone_lock(const struct sock *sk, const gfp_t priority) argument 1507 sk_setup_caps(struct sock *sk, struct dst_entry *dst) argument 1536 struct sock *sk = skb->sk; local 1562 struct sock *sk = skb->sk; local 1572 struct sock *sk = skb->sk; local 1583 sock_i_uid(struct sock *sk) argument 1594 sock_i_ino(struct sock *sk) argument 1608 sock_wmalloc(struct sock *sk, unsigned long size, int force, gfp_t priority) argument 1625 sock_rmalloc(struct sock *sk, unsigned long size, int force, gfp_t priority) argument 1641 sock_kmalloc(struct sock *sk, int size, gfp_t priority) argument 1662 sock_kfree_s(struct sock *sk, void *mem, int size) argument 1672 sock_wait_for_wmem(struct sock *sk, long timeo) argument 1701 sock_alloc_send_pskb(struct sock *sk, unsigned long header_len, unsigned long data_len, int noblock, int *errcode) argument 1786 sock_alloc_send_skb(struct sock *sk, unsigned long size, int noblock, int *errcode) argument 1796 sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag) argument 1858 bh_unlock_sock(sk); variable 1879 bh_lock_sock(sk); variable 1899 sk_wait_data(struct sock *sk, long *timeo) argument 1923 __sk_mem_schedule(struct sock *sk, int size, int kind) argument 2005 __sk_mem_reclaim(struct sock *sk) argument 2134 sock_def_wakeup(struct sock *sk) argument 2145 sock_def_error_report(struct sock *sk) argument 2157 sock_def_readable(struct sock *sk, int len) argument 2170 sock_def_write_space(struct sock *sk) argument 2193 sock_def_destruct(struct sock *sk) argument 2198 sk_send_sigurg(struct sock *sk) argument 2206 sk_reset_timer(struct sock *sk, struct timer_list* timer, unsigned long expires) argument 2214 sk_stop_timer(struct sock *sk, struct timer_list* timer) argument 2221 sock_init_data(struct socket *sock, struct sock *sk) argument 2284 lock_sock_nested(struct sock *sk, int subclass) argument 2300 release_sock(struct sock *sk) argument 2331 lock_sock_fast(struct sock *sk) argument 2354 sock_get_timestamp(struct sock *sk, struct timeval __user *userstamp) argument 2370 sock_get_timestampns(struct sock *sk, struct timespec __user *userstamp) argument 2386 sock_enable_timestamp(struct sock *sk, int flag) argument 2412 struct sock *sk = sock->sk; local 2422 struct sock *sk = sock->sk; local 2435 struct sock *sk = sock->sk; local 2453 struct sock *sk = sock->sk; local 2463 struct sock *sk = sock->sk; local 2473 sk_common_release(struct sock *sk) argument [all...] |
/net/bluetooth/ |
H A D | sco.c | 43 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent); 44 static void sco_chan_del(struct sock *sk, int err); 46 static void sco_sock_close(struct sock *sk); 47 static void sco_sock_kill(struct sock *sk); 52 struct sock *sk = (struct sock *) arg; local 54 BT_DBG("sock %p state %d", sk, sk->sk_state); 56 bh_lock_sock(sk); 57 sk->sk_err = ETIMEDOUT; 58 sk 65 sco_sock_set_timer(struct sock *sk, long timeout) argument 71 sco_sock_clear_timer(struct sock *sk) argument 110 struct sock *sk = NULL; local 120 struct sock *sk; local 142 sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) argument 157 sco_connect(struct sock *sk) argument 217 sco_send_frame(struct sock *sk, struct msghdr *msg, int len) argument 245 struct sock *sk = sco_chan_get(conn); local 265 struct sock *sk; local 283 struct sock *sk = NULL, *sk1 = NULL; local 305 sco_sock_destruct(struct sock *sk) argument 315 struct sock *sk; local 332 sco_sock_kill(struct sock *sk) argument 345 __sco_sock_close(struct sock *sk) argument 378 sco_sock_close(struct sock *sk) argument 387 sco_sock_init(struct sock *sk, struct sock *parent) argument 406 struct sock *sk; local 432 struct sock *sk; local 454 struct sock *sk = sock->sk; local 490 struct sock *sk = sock->sk; local 533 struct sock *sk = sock->sk; local 574 struct sock *sk = sock->sk, *ch; local 630 struct sock *sk = sock->sk; local 649 struct sock *sk = sock->sk; local 711 struct sock *sk = sock->sk; local 733 struct sock *sk = sock->sk; local 771 struct sock *sk = sock->sk; local 827 struct sock *sk = sock->sk; local 865 struct sock *sk = sock->sk; local 889 struct sock *sk = sock->sk; local 910 __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) argument 923 sco_chan_del(struct sock *sk, int err) argument 951 struct sock *sk = conn->sk; local 1005 struct sock *sk; local 1071 struct sock *sk; local [all...] |
/net/nfc/ |
H A D | rawsock.c | 32 static void rawsock_write_queue_purge(struct sock *sk) argument 34 pr_debug("sk=%p\n", sk); 36 spin_lock_bh(&sk->sk_write_queue.lock); 37 __skb_queue_purge(&sk->sk_write_queue); 38 nfc_rawsock(sk)->tx_work_scheduled = false; 39 spin_unlock_bh(&sk->sk_write_queue.lock); 42 static void rawsock_report_error(struct sock *sk, int err) argument 44 pr_debug("sk=%p err=%d\n", sk, er 55 struct sock *sk = sock->sk; local 71 struct sock *sk = sock->sk; local 134 struct sock *sk = (struct sock *) context; local 168 struct sock *sk = to_rawsock_sk(work); local 195 struct sock *sk = sock->sk; local 233 struct sock *sk = sock->sk; local 279 rawsock_destruct(struct sock *sk) argument 300 struct sock *sk; local [all...] |
H A D | llcp_sock.c | 30 static int sock_wait_state(struct sock *sk, int state, unsigned long timeo) argument 35 pr_debug("sk %p", sk); 37 add_wait_queue(sk_sleep(sk), &wait); 40 while (sk->sk_state != state) { 51 release_sock(sk); 53 lock_sock(sk); 56 err = sock_error(sk); 62 remove_wait_queue(sk_sleep(sk), &wait); 74 struct sock *sk local 148 struct sock *sk = sock->sk; local 201 struct sock *sk = sock->sk; local 229 struct sock *sk = sock->sk; local 303 struct sock *sk = sock->sk; local 376 nfc_llcp_accept_unlink(struct sock *sk) argument 389 nfc_llcp_accept_enqueue(struct sock *parent, struct sock *sk) argument 407 struct sock *sk; local 448 struct sock *sk = sock->sk, *new_sk; local 501 struct sock *sk = sock->sk; local 530 struct sock *sk; local 548 struct sock *sk = sock->sk; local 586 struct sock *sk = sock->sk; local 644 struct sock *sk = sock->sk; local 750 struct sock *sk = sock->sk; local 794 struct sock *sk = sock->sk; local 922 llcp_sock_destruct(struct sock *sk) argument 943 struct sock *sk; local 994 struct sock *sk; local [all...] |
/net/bluetooth/rfcomm/ |
H A D | sock.c | 42 static void rfcomm_sock_close(struct sock *sk); 43 static void rfcomm_sock_kill(struct sock *sk); 51 struct sock *sk = d->owner; local 52 if (!sk) 55 atomic_add(skb->len, &sk->sk_rmem_alloc); 56 skb_queue_tail(&sk->sk_receive_queue, skb); 57 sk->sk_data_ready(sk, skb->len); 59 if (atomic_read(&sk->sk_rmem_alloc) >= sk 65 struct sock *sk = d->owner, *parent; local 109 struct sock *sk = NULL; local 125 struct sock *sk = NULL, *sk1 = NULL; local 149 rfcomm_sock_destruct(struct sock *sk) argument 171 struct sock *sk; local 188 rfcomm_sock_kill(struct sock *sk) argument 201 __rfcomm_sock_close(struct sock *sk) argument 227 rfcomm_sock_close(struct sock *sk) argument 234 rfcomm_sock_init(struct sock *sk, struct sock *parent) argument 269 struct sock *sk; local 310 struct sock *sk; local 332 struct sock *sk = sock->sk; local 373 struct sock *sk = sock->sk; local 414 struct sock *sk = sock->sk; local 464 struct sock *sk = sock->sk, *nsk; local 525 struct sock *sk = sock->sk; local 544 struct sock *sk = sock->sk; local 605 struct sock *sk = sock->sk; local 630 struct sock *sk = sock->sk; local 666 struct sock *sk = sock->sk; local 734 struct sock *sk = sock->sk; local 800 struct sock *sk = sock->sk; local 878 struct sock *sk = sock->sk; local 900 struct sock *sk = sock->sk; local 921 struct sock *sk, *parent; local 971 struct sock *sk; local [all...] |
/net/rose/ |
H A D | rose_timer.c | 35 void rose_start_heartbeat(struct sock *sk) argument 37 del_timer(&sk->sk_timer); 39 sk->sk_timer.data = (unsigned long)sk; 40 sk->sk_timer.function = &rose_heartbeat_expiry; 41 sk->sk_timer.expires = jiffies + 5 * HZ; 43 add_timer(&sk->sk_timer); 46 void rose_start_t1timer(struct sock *sk) argument 48 struct rose_sock *rose = rose_sk(sk); 52 rose->timer.data = (unsigned long)sk; 59 rose_start_t2timer(struct sock *sk) argument 72 rose_start_t3timer(struct sock *sk) argument 85 rose_start_hbtimer(struct sock *sk) argument 98 rose_start_idletimer(struct sock *sk) argument 113 rose_stop_heartbeat(struct sock *sk) argument 118 rose_stop_timer(struct sock *sk) argument 123 rose_stop_idletimer(struct sock *sk) argument 130 struct sock *sk = (struct sock *)param; local 168 struct sock *sk = (struct sock *)param; local 197 struct sock *sk = (struct sock *)param; local [all...] |
H A D | rose_in.c | 39 static int rose_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 41 struct rose_sock *rose = rose_sk(sk); 45 rose_stop_timer(sk); 46 rose_start_idletimer(sk); 53 sk->sk_state = TCP_ESTABLISHED; 54 if (!sock_flag(sk, SOCK_DEAD)) 55 sk->sk_state_change(sk); 59 rose_write_internal(sk, ROSE_CLEAR_CONFIRMATION); 60 rose_disconnect(sk, ECONNREFUSE 76 rose_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 104 rose_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, int q, int d, int m) argument 214 rose_state4_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 251 rose_state5_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 263 rose_process_rx_frame(struct sock *sk, struct sk_buff *skb) argument [all...] |
/net/netfilter/ |
H A D | nf_tproxy_core.c | 25 struct sock *sk = skb->sk; local 27 skb->sk = NULL; 30 if (sk) 31 sock_put(sk); 34 /* consumes sk */ 36 nf_tproxy_assign_sock(struct sk_buff *skb, struct sock *sk) argument 39 * skb->sk->X checks would have to test sk->sk_state first */ 40 if (sk [all...] |
/net/caif/ |
H A D | caif_socket.c | 47 struct sock sk; /* must be first member */ member in struct:caifsock 92 static void caif_read_lock(struct sock *sk) argument 95 cf_sk = container_of(sk, struct caifsock, sk); 99 static void caif_read_unlock(struct sock *sk) argument 102 cf_sk = container_of(sk, struct caifsock, sk); 109 return cf_sk->sk.sk_rcvbuf / 4; 112 static void caif_flow_ctrl(struct sock *sk, int mode) argument 115 cf_sk = container_of(sk, struc 124 caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) argument 259 caif_check_flow_release(struct sock *sk) argument 280 struct sock *sk = sock->sk; local 316 caif_stream_data_wait(struct sock *sk, long timeo) argument 358 struct sock *sk = sock->sk; local 477 struct sock *sk = &cf_sk->sk; local 531 struct sock *sk = sock->sk; local 606 struct sock *sk = sock->sk; local 685 struct sock *sk = sock->sk; local 757 struct sock *sk = sock->sk; local 906 struct sock *sk = sock->sk; local 947 struct sock *sk = sock->sk; local 1020 caif_sock_destructor(struct sock *sk) argument 1037 struct sock *sk = NULL; local [all...] |
/net/vmw_vsock/ |
H A D | vmci_transport_notify.h | 48 void (*socket_init) (struct sock *sk); 50 int (*poll_in) (struct sock *sk, size_t target, 52 int (*poll_out) (struct sock *sk, size_t target, 54 void (*handle_notify_pkt) (struct sock *sk, 59 int (*recv_init) (struct sock *sk, size_t target, 61 int (*recv_pre_block) (struct sock *sk, size_t target, 63 int (*recv_pre_dequeue) (struct sock *sk, size_t target, 65 int (*recv_post_dequeue) (struct sock *sk, size_t target, 68 int (*send_init) (struct sock *sk, 70 int (*send_pre_block) (struct sock *sk, [all...] |
/net/rds/ |
H A D | tcp_listen.c | 55 ret = sock_create_lite(sock->sk->sk_family, sock->sk->sk_type, 56 sock->sk->sk_protocol, &new_sock); 68 inet = inet_sk(new_sock->sk); 111 void rds_tcp_listen_data_ready(struct sock *sk, int bytes) argument 113 void (*ready)(struct sock *sk, int bytes); 115 rdsdebug("listen data ready sk %p\n", sk); 117 read_lock(&sk->sk_callback_lock); 118 ready = sk 179 struct sock *sk; local [all...] |
/net/ipv6/ |
H A D | inet6_hashtables.c | 26 int __inet6_hash(struct sock *sk, struct inet_timewait_sock *tw) argument 28 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; 31 WARN_ON(!sk_unhashed(sk)); 33 if (sk->sk_state == TCP_LISTEN) { 36 ilb = &hashinfo->listening_hash[inet_sk_listen_hashfn(sk)]; 38 __sk_nulls_add_node_rcu(sk, &ilb->head); 45 sk->sk_hash = hash = inet6_sk_ehashfn(sk); 49 __sk_nulls_add_node_rcu(sk, list); 51 WARN_ON(sk 76 struct sock *sk; local 134 compute_score(struct sock *sk, struct net *net, const unsigned short hnum, const struct in6_addr *daddr, const int dif) argument 165 struct sock *sk; local 222 struct sock *sk; local 233 __inet6_check_established(struct inet_timewait_death_row *death_row, struct sock *sk, const __u16 lport, struct inet_timewait_sock **twp) argument 312 inet6_sk_port_offset(const struct sock *sk) argument 321 inet6_hash_connect(struct inet_timewait_death_row *death_row, struct sock *sk) argument [all...] |
/net/llc/ |
H A D | af_llc.c | 41 static int llc_ui_wait_for_conn(struct sock *sk, long timeout); 42 static int llc_ui_wait_for_disc(struct sock *sk, long timeout); 43 static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout); 88 * @sk: Socket which contains a valid llc socket type. 95 static inline u8 llc_ui_header_len(struct sock *sk, struct sockaddr_llc *addr) argument 101 else if (sk->sk_type == SOCK_STREAM) 108 * @sk: Connection the socket is using. 115 static int llc_ui_send_data(struct sock* sk, struct sk_buff *skb, int noblock) argument 117 struct llc_sock* llc = llc_sk(sk); 123 long timeout = sock_sndtimeo(sk, nobloc 132 llc_ui_sk_init(struct socket *sock, struct sock *sk) argument 160 struct sock *sk; local 188 struct sock *sk = sock->sk; local 253 struct sock *sk = sock->sk; local 306 struct sock *sk = sock->sk; local 399 struct sock *sk = sock->sk; local 435 struct sock *sk = sock->sk; local 507 struct sock *sk = sock->sk; local 533 llc_ui_wait_for_disc(struct sock *sk, long timeout) argument 554 llc_ui_wait_for_conn(struct sock *sk, long timeout) argument 569 llc_ui_wait_for_busy_core(struct sock *sk, long timeout) argument 595 llc_wait_data(struct sock *sk, long timeo) argument 647 struct sock *sk = sock->sk, *newsk; local 713 struct sock *sk = sock->sk; local 886 struct sock *sk = sock->sk; local 972 struct sock *sk = sock->sk; local 1036 struct sock *sk = sock->sk; local 1118 struct sock *sk = sock->sk; local [all...] |