| /linux/include/net/ |
| H A D | sock.h | 447 void (*sk_data_ready)(struct sock *sk); 511 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk, 574 void (*sk_state_change)(struct sock *sk); 575 void (*sk_write_space)(struct sock *sk); 576 void (*sk_error_report)(struct sock *sk); 577 int (*sk_backlog_rcv)(struct sock *sk, 579 void (*sk_destruct)(struct sock *sk); 630 static inline bool sk_user_data_is_nocopy(const struct sock *sk) in sk_user_data_is_nocopy() argument 632 return ((uintptr_t)sk->sk_user_data & SK_USER_DATA_NOCOPY); in sk_user_data_is_nocopy() 635 #define __sk_user_data(sk) ((*((void __rcu **)&(sk)->sk_user_data))) argument [all …]
|
| H A D | llc_c_ev.h | 128 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb); 129 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb); 131 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb); 132 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb); 133 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb); 134 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb); 135 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb); 136 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb); 137 int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb); 138 int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb); [all …]
|
| H A D | llc_c_ac.h | 97 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb); 99 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb); 100 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb); 101 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb); 102 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb); 103 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb); 104 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb); 105 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb); 106 int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk, 108 int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk, [all …]
|
| H A D | tcp.h | 69 void tcp_time_wait(struct sock *sk, int state, int timeo); 300 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure() argument 302 if (mem_cgroup_sk_enabled(sk) && in tcp_under_memory_pressure() 303 mem_cgroup_sk_under_memory_pressure(sk)) in tcp_under_memory_pressure() 306 if (sk->sk_bypass_prot_mem) in tcp_under_memory_pressure() 328 static inline void tcp_wmem_free_skb(struct sock *sk, struct sk_buff *skb) in tcp_wmem_free_skb() argument 330 sk_wmem_queued_add(sk, -skb->truesize); in tcp_wmem_free_skb() 332 sk_mem_uncharge(sk, skb->truesize); in tcp_wmem_free_skb() 334 sk_mem_uncharge(sk, SKB_TRUESIZE(skb_end_offset(skb))); in tcp_wmem_free_skb() 338 void sk_forced_mem_schedule(struct sock *sk, int size); [all …]
|
| /linux/net/bluetooth/ |
| H A D | iso.c | 31 struct sock *sk; member 44 static void iso_sock_close(struct sock *sk); 45 static void iso_sock_kill(struct sock *sk); 48 #define iso_pi(sk) ((struct iso_pinfo *)sk) argument 82 static bool iso_match_sid(struct sock *sk, void *data); 83 static bool iso_match_sid_past(struct sock *sk, void *data); 84 static bool iso_match_sync_handle(struct sock *sk, void *data); 85 static bool iso_match_sync_handle_pa_report(struct sock *sk, void *data); 86 static void iso_sock_disconn(struct sock *sk); 88 typedef bool (*iso_sock_match_t)(struct sock *sk, void *data); [all …]
|
| H A D | sco.c | 49 struct sock *sk; member 60 static void sco_sock_close(struct sock *sk); 61 static void sco_sock_kill(struct sock *sk); 64 #define sco_pi(sk) ((struct sco_pinfo *) sk) argument 86 if (conn->sk) in sco_conn_free() 87 sco_pi(conn->sk)->conn = NULL; in sco_conn_free() 133 if (!conn || !bt_sock_linked(&sco_sk_list, conn->sk)) in sco_sock_hold() 136 sock_hold(conn->sk); in sco_sock_hold() 138 return conn->sk; in sco_sock_hold() 145 struct sock *sk; sco_sock_timeout() local 173 sco_sock_set_timer(struct sock * sk,long timeout) sco_sock_set_timer() argument 183 sco_sock_clear_timer(struct sock * sk) sco_sock_clear_timer() argument 231 sco_chan_del(struct sock * sk,int err) sco_chan_del() argument 257 struct sock *sk; sco_conn_del() local 283 __sco_chan_add(struct sco_conn * conn,struct sock * sk,struct sock * parent) __sco_chan_add() argument 295 sco_chan_add(struct sco_conn * conn,struct sock * sk,struct sock * parent) sco_chan_add() argument 310 sco_connect(struct sock * sk) sco_connect() argument 381 sco_send_frame(struct sock * sk,struct sk_buff * skb,const struct sockcm_cookie * sockc) sco_send_frame() argument 401 struct sock *sk; sco_recv_frame() local 425 struct sock *sk; __sco_get_sock_listen_by_addr() local 443 struct sock *sk = NULL, *sk1 = NULL; sco_get_sock_listen() local 465 sco_sock_destruct(struct sock * sk) sco_sock_destruct() argument 477 struct sock *sk; sco_sock_cleanup_listen() local 494 sco_sock_kill(struct sock * sk) sco_sock_kill() argument 514 __sco_sock_close(struct sock * sk) __sco_sock_close() argument 539 sco_sock_close(struct sock * sk) sco_sock_close() argument 547 sco_sock_init(struct sock * sk,struct sock * parent) sco_sock_init() argument 567 struct sock *sk; sco_sock_alloc() local 589 struct sock *sk; sco_sock_create() local 612 struct sock *sk = sock->sk; sco_sock_bind() local 645 struct sock *sk = sock->sk; sco_sock_connect() local 680 struct sock *sk = sock->sk; sco_sock_listen() local 722 struct sock *sk = sock->sk, *ch; sco_sock_accept() local 777 struct sock *sk = sock->sk; sco_sock_getname() local 794 struct sock *sk = sock->sk; sco_sock_sendmsg() local 886 struct sock *sk = sock->sk; sco_sock_recvmsg() local 912 struct sock *sk = sock->sk; sco_sock_setsockopt() local 1049 struct sock *sk = sock->sk; sco_sock_getsockopt_old() local 1111 struct sock *sk = sock->sk; sco_sock_getsockopt() local 1292 struct sock *sk = sock->sk; sco_sock_shutdown() local 1322 struct sock *sk = sock->sk; sco_sock_release() local 1347 struct sock *sk = conn->sk; sco_conn_ready() local 1407 struct sock *sk; sco_connect_ind() local 1504 struct sock *sk; sco_debugfs_show() local [all...] |
| H A D | af_bluetooth.c | 74 void bt_sock_reclassify_lock(struct sock *sk, int proto) in bt_sock_reclassify_lock() argument 76 BUG_ON(!sk); in bt_sock_reclassify_lock() 77 BUG_ON(!sock_allow_reclassification(sk)); in bt_sock_reclassify_lock() 79 sock_lock_init_class_and_name(sk, in bt_sock_reclassify_lock() 137 bt_sock_reclassify_lock(sock->sk, proto); in bt_sock_create() 149 struct sock *sk; in bt_sock_alloc() local 151 sk = sk_alloc(net, PF_BLUETOOTH, prio, prot, kern); in bt_sock_alloc() 152 if (!sk) in bt_sock_alloc() 155 sock_init_data(sock, sk); in bt_sock_alloc() 156 INIT_LIST_HEAD(&bt_sk(sk)->accept_q); in bt_sock_alloc() [all …]
|
| /linux/net/bluetooth/rfcomm/ |
| H A D | sock.c | 43 static void rfcomm_sock_close(struct sock *sk); 44 static void rfcomm_sock_kill(struct sock *sk); 52 struct sock *sk = d->owner; in rfcomm_sk_data_ready() local 53 if (!sk) in rfcomm_sk_data_ready() 56 atomic_add(skb->len, &sk->sk_rmem_alloc); in rfcomm_sk_data_ready() 57 skb_queue_tail(&sk->sk_receive_queue, skb); in rfcomm_sk_data_ready() 58 sk->sk_data_ready(sk); in rfcomm_sk_data_ready() 60 if (atomic_read(&sk->sk_rmem_alloc) >= sk in rfcomm_sk_data_ready() 66 struct sock *sk = d->owner, *parent; rfcomm_sk_state_change() local 108 struct sock *sk = NULL; __rfcomm_get_listen_sock_by_addr() local 129 struct sock *sk = NULL, *sk1 = NULL; rfcomm_get_sock_by_channel() local 153 rfcomm_sock_destruct(struct sock * sk) rfcomm_sock_destruct() argument 175 struct sock *sk; rfcomm_sock_cleanup_listen() local 192 rfcomm_sock_kill(struct sock * sk) rfcomm_sock_kill() argument 205 __rfcomm_sock_close(struct sock * sk) __rfcomm_sock_close() argument 232 rfcomm_sock_close(struct sock * sk) rfcomm_sock_close() argument 239 rfcomm_sock_init(struct sock * sk,struct sock * parent) rfcomm_sock_init() argument 275 struct sock *sk; rfcomm_sock_alloc() local 308 struct sock *sk; rfcomm_sock_create() local 330 struct sock *sk = sock->sk; rfcomm_sock_bind() local 377 struct sock *sk = sock->sk; rfcomm_sock_connect() local 424 struct sock *sk = sock->sk; rfcomm_sock_listen() local 475 struct sock *sk = sock->sk, *nsk; rfcomm_sock_accept() local 535 struct sock *sk = sock->sk; rfcomm_sock_getname() local 557 struct sock *sk = sock->sk; rfcomm_sock_sendmsg() local 597 struct sock *sk = sock->sk; rfcomm_sock_recvmsg() local 622 struct sock *sk = sock->sk; rfcomm_sock_setsockopt_old() local 663 struct sock *sk = sock->sk; rfcomm_sock_setsockopt() local 727 struct sock *sk = sock->sk; rfcomm_sock_getsockopt_old() local 803 struct sock *sk = sock->sk; rfcomm_sock_getsockopt() local 887 struct sock *sk = sock->sk; rfcomm_sock_shutdown() local 913 struct sock *sk = sock->sk; rfcomm_sock_release() local 934 struct sock *sk, *parent; rfcomm_connect_ind() local 984 struct sock *sk; rfcomm_sock_debugfs_show() local [all...] |
| /linux/net/netrom/ |
| H A D | nr_timer.c | 35 void nr_init_timers(struct sock *sk) in nr_init_timers() argument 37 struct nr_sock *nr = nr_sk(sk); in nr_init_timers() 45 sk->sk_timer.function = nr_heartbeat_expiry; in nr_init_timers() 48 void nr_start_t1timer(struct sock *sk) in nr_start_t1timer() argument 50 struct nr_sock *nr = nr_sk(sk); in nr_start_t1timer() 52 sk_reset_timer(sk, &nr->t1timer, jiffies + nr->t1); in nr_start_t1timer() 55 void nr_start_t2timer(struct sock *sk) in nr_start_t2timer() argument 57 struct nr_sock *nr = nr_sk(sk); in nr_start_t2timer() 59 sk_reset_timer(sk, &nr->t2timer, jiffies + nr->t2); in nr_start_t2timer() 62 void nr_start_t4timer(struct sock *sk) in nr_start_t4timer() argument [all …]
|
| /linux/net/core/ |
| H A D | sock.c | 51 * Anonymous : inet_create tidied up (sk->reuse setting) 52 * Alan Cox : inet sockets don't set sk->type! 158 static void sock_def_write_space_wfree(struct sock *sk, int wmem_alloc); 159 static void sock_def_write_space(struct sock *sk); 163 * @sk: Socket to use a capability on or through 171 bool sk_ns_capable(const struct sock *sk, in sk_ns_capable() argument 174 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable() 181 * @sk: Socket to use a capability on or through 188 bool sk_capable(const struct sock *sk, int cap) in sk_capable() argument 190 return sk_ns_capable(sk, in sk_capable() 203 sk_net_capable(const struct sock * sk,int cap) sk_net_capable() argument 302 sk_set_memalloc(struct sock * sk) sk_set_memalloc() argument 310 sk_clear_memalloc(struct sock * sk) sk_clear_memalloc() argument 327 __sk_backlog_rcv(struct sock * sk,struct sk_buff * skb) __sk_backlog_rcv() argument 346 sk_error_report(struct sock * sk) sk_error_report() argument 459 sk_set_prio_allowed(const struct sock * sk,int val) sk_set_prio_allowed() argument 466 sock_needs_netstamp(const struct sock * sk) sock_needs_netstamp() argument 477 sock_disable_timestamp(struct sock * sk,unsigned long flags) sock_disable_timestamp() argument 488 __sock_queue_rcv_skb(struct sock * sk,struct sk_buff * skb) __sock_queue_rcv_skb() argument 523 sock_queue_rcv_skb_reason(struct sock * sk,struct sk_buff * skb,enum skb_drop_reason * reason) sock_queue_rcv_skb_reason() argument 552 __sk_receive_skb(struct sock * sk,struct sk_buff * skb,const int nested,unsigned int trim_cap,bool refcounted) __sk_receive_skb() argument 607 __sk_dst_check(struct sock * sk,u32 cookie) __sk_dst_check() argument 625 sk_dst_check(struct sock * sk,u32 cookie) sk_dst_check() argument 641 sock_bindtoindex_locked(struct sock * sk,int ifindex) sock_bindtoindex_locked() argument 671 sock_bindtoindex(struct sock * sk,int ifindex,bool lock_sk) sock_bindtoindex() argument 685 sock_setbindtodevice(struct sock * sk,sockptr_t optval,int optlen) sock_setbindtodevice() argument 733 sock_getbindtodevice(struct sock * sk,sockptr_t optval,sockptr_t optlen,int len) sock_getbindtodevice() argument 774 sk_mc_loop(const struct sock * sk) sk_mc_loop() argument 794 sock_set_reuseaddr(struct sock * sk) sock_set_reuseaddr() argument 802 sock_set_reuseport(struct sock * sk) sock_set_reuseport() argument 810 sock_no_linger(struct sock * sk) sock_no_linger() argument 819 sock_set_priority(struct sock * sk,u32 priority) sock_set_priority() argument 825 sock_set_sndtimeo(struct sock * sk,s64 secs) sock_set_sndtimeo() argument 834 __sock_set_timestamps(struct sock * sk,bool val,bool new,bool ns) __sock_set_timestamps() argument 844 sock_set_timestamp(struct sock * sk,int optname,bool valbool) sock_set_timestamp() argument 862 sock_timestamping_bind_phc(struct sock * sk,int phc_index) sock_timestamping_bind_phc() argument 899 sock_set_timestamping(struct sock * sk,int optname,struct so_timestamping timestamping) sock_set_timestamping() argument 951 bpf_skops_tx_timestamping(struct sock * sk,struct sk_buff * skb,int op) bpf_skops_tx_timestamping() argument 964 sock_set_keepalive(struct sock * sk) sock_set_keepalive() argument 974 __sock_set_rcvbuf(struct sock * sk,int val) __sock_set_rcvbuf() argument 995 sock_set_rcvbuf(struct sock * sk,int val) sock_set_rcvbuf() argument 1003 __sock_set_mark(struct sock * sk,u32 val) __sock_set_mark() argument 1011 sock_set_mark(struct sock * sk,u32 val) sock_set_mark() argument 1019 sock_release_reserved_memory(struct sock * sk,int bytes) sock_release_reserved_memory() argument 1029 sock_reserve_memory(struct sock * sk,int bytes) sock_reserve_memory() argument 1079 sock_devmem_dontneed(struct sock * sk,sockptr_t optval,unsigned int optlen) sock_devmem_dontneed() argument 1137 sockopt_lock_sock(struct sock * sk) sockopt_lock_sock() argument 1150 sockopt_release_sock(struct sock * sk) sockopt_release_sock() argument 1187 sk_setsockopt(struct sock * sk,int level,int optname,sockptr_t optval,unsigned int optlen) sk_setsockopt() argument 1680 sk_get_peer_cred(struct sock * sk) sk_get_peer_cred() argument 1719 sk_getsockopt(struct sock * sk,int level,int optname,sockptr_t optval,sockptr_t optlen) sk_getsockopt() argument 2172 sock_lock_init(struct sock * sk) sock_lock_init() argument 2228 struct sock *sk; sk_prot_alloc() local 2261 sk_prot_free(struct proto * prot,struct sock * sk) sk_prot_free() argument 2293 struct sock *sk; sk_alloc() local 2334 struct sock *sk = container_of(head, struct sock, sk_rcu); __sk_destruct() local 2376 sk_net_refcnt_upgrade(struct sock * sk) sk_net_refcnt_upgrade() argument 2389 sk_destruct(struct sock * sk) sk_destruct() argument 2404 __sk_free(struct sock * sk) __sk_free() argument 2415 sk_free(struct sock * sk) sk_free() argument 2427 sk_init_common(struct sock * sk) sk_init_common() argument 2460 sk_clone_lock(const struct sock * sk,const gfp_t priority) sk_clone_lock() argument 2590 sk_dst_gso_max_size(struct sock * sk,const struct net_device * dev) sk_dst_gso_max_size() argument 2608 sk_setup_caps(struct sock * sk,struct dst_entry * dst) sk_setup_caps() argument 2652 struct sock *sk = skb->sk; sock_wfree() local 2690 struct sock *sk = skb->sk; __sock_wfree() local 2696 skb_set_owner_w(struct sk_buff * skb,struct sock * sk) skb_set_owner_w() argument 2750 struct sock *sk = skb->sk; sock_rfree() local 2774 struct sock *sk = skb->sk; sock_pfree() local 2793 sock_wmalloc(struct sock * sk,unsigned long size,int force,gfp_t priority) sock_wmalloc() argument 2811 struct sock *sk = skb->sk; sock_ofree() local 2816 sock_omalloc(struct sock * sk,unsigned long size,gfp_t priority) sock_omalloc() argument 2839 sock_kmalloc(struct sock * sk,int size,gfp_t priority) sock_kmalloc() argument 2863 sock_kmemdup(struct sock * sk,const void * src,int size,gfp_t priority) sock_kmemdup() argument 2879 __sock_kfree_s(struct sock * sk,void * mem,int size,const bool nullify) __sock_kfree_s() argument 2891 sock_kfree_s(struct sock * sk,void * mem,int size) sock_kfree_s() argument 2897 sock_kzfree_s(struct sock * sk,void * mem,int size) sock_kzfree_s() argument 2906 sock_wait_for_wmem(struct sock * sk,long timeo) sock_wait_for_wmem() argument 2935 sock_alloc_send_pskb(struct sock * sk,unsigned long header_len,unsigned long data_len,int noblock,int * errcode,int max_page_order) sock_alloc_send_pskb() argument 2979 __sock_cmsg_send(struct sock * sk,struct cmsghdr * cmsg,struct sockcm_cookie * sockc) __sock_cmsg_send() argument 3048 sock_cmsg_send(struct sock * sk,struct msghdr * msg,struct sockcm_cookie * sockc) sock_cmsg_send() argument 3067 sk_enter_memory_pressure(struct sock * sk) sk_enter_memory_pressure() argument 3075 sk_leave_memory_pressure(struct sock * sk) sk_leave_memory_pressure() argument 3134 sk_page_frag_refill(struct sock * sk,struct page_frag * pfrag) sk_page_frag_refill() argument 3145 __lock_sock(struct sock * sk) __lock_sock() argument 3163 __release_sock(struct sock * sk) __release_sock() argument 3200 __sk_flush_backlog(struct sock * sk) __sk_flush_backlog() argument 3224 sk_wait_data(struct sock * sk,long * timeo,const struct sk_buff * skb) sk_wait_data() argument 3253 __sk_mem_raise_allocated(struct sock * sk,int size,int amt,int kind) __sk_mem_raise_allocated() argument 3365 __sk_mem_schedule(struct sock * sk,int size,int kind) __sk_mem_schedule() argument 3384 __sk_mem_reduce_allocated(struct sock * sk,int amount) __sk_mem_reduce_allocated() argument 3401 __sk_mem_reclaim(struct sock * sk,int amount) __sk_mem_reclaim() argument 3409 sk_set_peek_off(struct sock * sk,int val) sk_set_peek_off() argument 3480 sock_no_sendmsg_locked(struct sock * sk,struct msghdr * m,size_t len) sock_no_sendmsg_locked() argument 3519 sock_def_wakeup(struct sock * sk) sock_def_wakeup() argument 3530 sock_def_error_report(struct sock * sk) sock_def_error_report() argument 3542 sock_def_readable(struct sock * sk) sock_def_readable() argument 3557 sock_def_write_space(struct sock * sk) sock_def_write_space() argument 3583 sock_def_write_space_wfree(struct sock * sk) sock_def_write_space_wfree() argument 3602 sock_def_destruct(struct sock * sk) sock_def_destruct() argument 3606 sk_send_sigurg(struct sock * sk) sk_send_sigurg() argument 3614 sk_reset_timer(struct sock * sk,struct timer_list * timer,unsigned long expires) sk_reset_timer() argument 3622 sk_stop_timer(struct sock * sk,struct timer_list * timer) sk_stop_timer() argument 3629 sk_stop_timer_sync(struct sock * sk,struct timer_list * timer) sk_stop_timer_sync() argument 3636 sock_init_data_uid(struct socket * sock,struct sock * sk,kuid_t uid) sock_init_data_uid() argument 3707 sock_init_data(struct socket * sock,struct sock * sk) sock_init_data() argument 3717 lock_sock_nested(struct sock * sk,int subclass) lock_sock_nested() argument 3731 release_sock(struct sock * sk) release_sock() argument 3748 __lock_sock_fast(struct sock * sk) __lock_sock_fast() argument 3783 struct sock *sk = sock->sk; sock_gettstamp() local 3819 sock_enable_timestamp(struct sock * sk,enum sock_flags flag) sock_enable_timestamp() argument 3836 sock_recv_errqueue(struct sock * sk,struct msghdr * msg,int len,int level,int type) sock_recv_errqueue() argument 3882 struct sock *sk = sock->sk; sock_common_getsockopt() local 3892 struct sock *sk = sock->sk; sock_common_recvmsg() local 3909 struct sock *sk = sock->sk; sock_common_setsockopt() local 3916 sk_common_release(struct sock * sk) sk_common_release() argument 3951 sk_get_meminfo(const struct sock * sk,u32 * mem) sk_get_meminfo() argument 4342 struct sock *sk = p; sk_busy_loop_end() local 4356 sock_bind_add(struct sock * sk,struct sockaddr * addr,int addr_len) sock_bind_add() argument 4365 sock_ioctl_inout(struct sock * sk,unsigned int cmd,void __user * arg,void * karg,size_t size) sock_ioctl_inout() argument 4388 sock_ioctl_out(struct sock * sk,unsigned int cmd,void __user * arg) sock_ioctl_out() argument 4404 sk_ioctl(struct sock * sk,unsigned int cmd,void __user * arg) sk_ioctl() argument [all...] |
| /linux/net/smc/ |
| H A D | smc_close.c | 41 struct sock *sk; in smc_close_cleanup_listen() local 44 while ((sk = smc_accept_dequeue(parent, NULL))) in smc_close_cleanup_listen() 45 smc_close_non_accepted(sk); in smc_close_cleanup_listen() 52 struct sock *sk = &smc->sk; in smc_close_stream_wait() local 64 add_wait_queue(sk_sleep(sk), &wait); in smc_close_stream_wait() 68 rc = sk_wait_event(sk, &timeout, in smc_close_stream_wait() 70 READ_ONCE(sk->sk_err) == ECONNABORTED || in smc_close_stream_wait() 71 READ_ONCE(sk->sk_err) == ECONNRESET || in smc_close_stream_wait() 77 remove_wait_queue(sk_sleep(sk), &wait); in smc_close_stream_wait() 85 smc->sk.sk_state_change(&smc->sk); in smc_close_wake_tx_prepared() [all …]
|
| /linux/net/rose/ |
| H A D | rose_timer.c | 32 void rose_start_heartbeat(struct sock *sk) in rose_start_heartbeat() argument 34 sk_stop_timer(sk, &sk->sk_timer); in rose_start_heartbeat() 36 sk->sk_timer.function = rose_heartbeat_expiry; in rose_start_heartbeat() 37 sk->sk_timer.expires = jiffies + 5 * HZ; in rose_start_heartbeat() 39 sk_reset_timer(sk, &sk->sk_timer, sk->sk_timer.expires); in rose_start_heartbeat() 42 void rose_start_t1timer(struct sock *sk) in rose_start_t1timer() argument 44 struct rose_sock *rose = rose_sk(sk); in rose_start_t1timer() 46 sk_stop_timer(sk, &rose->timer); in rose_start_t1timer() 51 sk_reset_timer(sk, &rose->timer, rose->timer.expires); in rose_start_t1timer() 54 void rose_start_t2timer(struct sock *sk) in rose_start_t2timer() argument [all …]
|
| H A D | rose_in.c | 37 static int rose_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) in rose_state1_machine() argument 39 struct rose_sock *rose = rose_sk(sk); in rose_state1_machine() 43 rose_stop_timer(sk); in rose_state1_machine() 44 rose_start_idletimer(sk); in rose_state1_machine() 51 sk->sk_state = TCP_ESTABLISHED; in rose_state1_machine() 52 if (!sock_flag(sk, SOCK_DEAD)) in rose_state1_machine() 53 sk->sk_state_change(sk); in rose_state1_machine() 57 rose_write_internal(sk, ROSE_CLEAR_CONFIRMATION); in rose_state1_machine() 58 rose_disconnect(sk, ECONNREFUSED, skb->data[3], skb->data[4]); in rose_state1_machine() 74 static int rose_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype) in rose_state2_machine() argument [all …]
|
| /linux/tools/testing/selftests/net/tcp_ao/ |
| H A D | setsockopt-closed.c | 12 static void make_listen(int sk) in make_listen() argument 17 if (bind(sk, (struct sockaddr *)&addr, sizeof(addr)) < 0) in make_listen() 19 if (listen(sk, 1)) in make_listen() 23 static void test_vefify_ao_info(int sk, struct tcp_ao_info_opt *info, in test_vefify_ao_info() argument 29 if (getsockopt(sk, IPPROTO_TCP, TCP_AO_INFO, &tmp, &len)) in test_vefify_ao_info() 58 static void __setsockopt_checked(int sk, int optname, bool get, in __setsockopt_checked() argument 71 ret = getsockopt(sk, IPPROTO_TCP, optname, optval, len); in __setsockopt_checked() 73 ret = setsockopt(sk, IPPROTO_TCP, optname, optval, *len); in __setsockopt_checked() 80 close(sk); in __setsockopt_checked() 90 test_verify_socket_key(sk, optval); in __setsockopt_checked() [all …]
|
| /linux/net/caif/ |
| H A D | caif_socket.c | 49 struct sock sk; /* must be first member */ member 88 static void caif_read_lock(struct sock *sk) in caif_read_lock() argument 91 cf_sk = container_of(sk, struct caifsock, sk); in caif_read_lock() 95 static void caif_read_unlock(struct sock *sk) in caif_read_unlock() argument 98 cf_sk = container_of(sk, struct caifsock, sk); in caif_read_unlock() 105 return cf_sk->sk.sk_rcvbuf / 4; in sk_rcvbuf_lowwater() 108 static void caif_flow_ctrl(struct sock *sk, int mode) in caif_flow_ctrl() argument 111 cf_sk = container_of(sk, struc in caif_flow_ctrl() 120 caif_queue_rcv_skb(struct sock * sk,struct sk_buff * skb) caif_queue_rcv_skb() argument 250 caif_check_flow_release(struct sock * sk) caif_check_flow_release() argument 271 struct sock *sk = sock->sk; caif_seqpkt_recvmsg() local 305 caif_stream_data_wait(struct sock * sk,long timeo) caif_stream_data_wait() argument 346 struct sock *sk = sock->sk; caif_stream_recvmsg() local 463 struct sock *sk = &cf_sk->sk; caif_wait_for_flow_on() local 517 struct sock *sk = sock->sk; caif_seqpkt_sendmsg() local 589 struct sock *sk = sock->sk; caif_stream_sendmsg() local 668 struct sock *sk = sock->sk; setsockopt() local 740 struct sock *sk = sock->sk; caif_connect() local 893 struct sock *sk = sock->sk; caif_release() local 933 struct sock *sk = sock->sk; caif_poll() local 1002 caif_sock_destructor(struct sock * sk) caif_sock_destructor() argument 1020 struct sock *sk = NULL; caif_create() local [all...] |
| /linux/net/dccp/ |
| H A D | input.c | |
| H A D | proto.c | |
| H A D | timer.c | |
| /linux/net/nfc/ |
| H A D | rawsock.c | 23 static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_link() argument 26 sk_add_node(sk, &l->head); in nfc_sock_link() 30 static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_unlink() argument 33 sk_del_node_init(sk); in nfc_sock_unlink() 37 static void rawsock_write_queue_purge(struct sock *sk) in rawsock_write_queue_purge() argument 39 pr_debug("sk=%p\n", sk); in rawsock_write_queue_purge() 41 spin_lock_bh(&sk->sk_write_queue.lock); in rawsock_write_queue_purge() 42 __skb_queue_purge(&sk->sk_write_queue); in rawsock_write_queue_purge() 43 nfc_rawsock(sk) in rawsock_write_queue_purge() 47 rawsock_report_error(struct sock * sk,int err) rawsock_report_error() argument 60 struct sock *sk = sock->sk; rawsock_release() local 79 struct sock *sk = sock->sk; rawsock_connect() local 142 struct sock *sk = (struct sock *) context; rawsock_data_exchange_complete() local 179 struct sock *sk = to_rawsock_sk(work); rawsock_tx_work() local 207 struct sock *sk = sock->sk; rawsock_sendmsg() local 244 struct sock *sk = sock->sk; rawsock_recvmsg() local 304 rawsock_destruct(struct sock * sk) rawsock_destruct() argument 326 struct sock *sk; rawsock_create() local 363 struct sock *sk; nfc_send_to_raw_sock() local [all...] |
| H A D | llcp_sock.c | 17 static int sock_wait_state(struct sock *sk, int state, unsigned long timeo) in sock_wait_state() argument 22 pr_debug("sk %p", sk); in sock_wait_state() 24 add_wait_queue(sk_sleep(sk), &wait); in sock_wait_state() 27 while (sk->sk_state != state) { in sock_wait_state() 38 release_sock(sk); in sock_wait_state() 40 lock_sock(sk); in sock_wait_state() 43 err = sock_error(sk); in sock_wait_state() 49 remove_wait_queue(sk_sleep(sk), &wait); in sock_wait_state() 61 struct sock *sk in llcp_sock_bind() local 152 struct sock *sk = sock->sk; llcp_raw_sock_bind() local 206 struct sock *sk = sock->sk; llcp_sock_listen() local 234 struct sock *sk = sock->sk; nfc_llcp_setsockopt() local 308 struct sock *sk = sock->sk; nfc_llcp_getsockopt() local 381 nfc_llcp_accept_unlink(struct sock * sk) nfc_llcp_accept_unlink() argument 394 nfc_llcp_accept_enqueue(struct sock * parent,struct sock * sk) nfc_llcp_accept_enqueue() argument 412 struct sock *sk; nfc_llcp_accept_dequeue() local 453 struct sock *sk = sock->sk, *new_sk; llcp_sock_accept() local 506 struct sock *sk = sock->sk; llcp_sock_getname() local 540 struct sock *sk; llcp_accept_poll() local 558 struct sock *sk = sock->sk; llcp_sock_poll() local 596 struct sock *sk = sock->sk; llcp_sock_release() local 654 struct sock *sk = sock->sk; llcp_sock_connect() local 778 struct sock *sk = sock->sk; llcp_sock_sendmsg() local 831 struct sock *sk = sock->sk; llcp_sock_recvmsg() local 955 llcp_sock_destruct(struct sock * sk) llcp_sock_destruct() argument 976 struct sock *sk; nfc_llcp_sock_alloc() local 1027 struct sock *sk; llcp_sock_create() local [all...] |
| /linux/net/x25/ |
| H A D | x25_in.c | 32 static int x25_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) in x25_queue_rx_frame() argument 35 struct x25_sock *x25 = x25_sk(sk); in x25_queue_rx_frame() 40 skb_set_owner_r(skb, sk); in x25_queue_rx_frame() 74 skb_set_owner_r(skbn, sk); in x25_queue_rx_frame() 75 skb_queue_tail(&sk->sk_receive_queue, skbn); in x25_queue_rx_frame() 76 if (!sock_flag(sk, SOCK_DEAD)) in x25_queue_rx_frame() 77 sk->sk_data_ready(sk); in x25_queue_rx_frame() 87 static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) in x25_state1_machine() argument 91 struct x25_sock *x25 = x25_sk(sk); in x25_state1_machine() 96 x25_stop_timer(sk); in x25_state1_machine() [all …]
|
| H A D | x25_timer.c | 27 void x25_init_timers(struct sock *sk) in x25_init_timers() argument 29 struct x25_sock *x25 = x25_sk(sk); in x25_init_timers() 34 sk->sk_timer.function = x25_heartbeat_expiry; in x25_init_timers() 37 void x25_start_heartbeat(struct sock *sk) in x25_start_heartbeat() argument 39 mod_timer(&sk->sk_timer, jiffies + 5 * HZ); in x25_start_heartbeat() 42 void x25_stop_heartbeat(struct sock *sk) in x25_stop_heartbeat() argument 44 timer_delete(&sk->sk_timer); in x25_stop_heartbeat() 47 void x25_start_t2timer(struct sock *sk) in x25_start_t2timer() argument 49 struct x25_sock *x25 = x25_sk(sk); in x25_start_t2timer() 54 void x25_start_t21timer(struct sock *sk) in x25_start_t21timer() argument [all …]
|
| /linux/sound/usb/usx2y/ |
| H A D | usb_stream.c | 13 static unsigned int usb_stream_next_packet_size(struct usb_stream_kernel *sk) in usb_stream_next_packet_size() argument 15 struct usb_stream *s = sk->s; in usb_stream_next_packet_size() 17 sk->out_phase_peeked = (sk->out_phase & 0xffff) + sk->freqn; in usb_stream_next_packet_size() 18 return (sk->out_phase_peeked >> 16) * s->cfg.frame_size; in usb_stream_next_packet_size() 21 static void playback_prep_freqn(struct usb_stream_kernel *sk, struct urb *urb) in playback_prep_freqn() argument 23 struct usb_stream *s = sk->s; in playback_prep_freqn() 26 for (pack = 0; pack < sk->n_o_ps; pack++) { in playback_prep_freqn() 27 int l = usb_stream_next_packet_size(sk); in playback_prep_freqn() 32 sk->out_phase = sk->out_phase_peeked; in playback_prep_freqn() 44 static int init_pipe_urbs(struct usb_stream_kernel *sk, in init_pipe_urbs() argument [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | tcp_ca_kfunc.c | 7 extern void bbr_init(struct sock *sk) __ksym; 8 extern void bbr_main(struct sock *sk, u32 ack, int flag, const struct rate_sample *rs) __ksym; 9 extern u32 bbr_sndbuf_expand(struct sock *sk) __ksym; 10 extern u32 bbr_undo_cwnd(struct sock *sk) __ksym; 11 extern void bbr_cwnd_event(struct sock *sk, enum tcp_ca_event event) __ksym; 12 extern u32 bbr_ssthresh(struct sock *sk) __ksym; 13 extern u32 bbr_min_tso_segs(struct sock *sk) __ksym; 14 extern void bbr_set_state(struct sock *sk, u8 new_state) __ksym; 16 extern void dctcp_init(struct sock *sk) __ksym; 17 extern void dctcp_update_alpha(struct sock *sk, u32 flags) __ksym; [all …]
|
| /linux/net/ipv4/ |
| H A D | tcp_bbr.c | 204 static void bbr_check_probe_rtt_done(struct sock *sk); 207 static bool bbr_full_bw_reached(const struct sock *sk) in bbr_full_bw_reached() argument 209 const struct bbr *bbr = inet_csk_ca(sk); in bbr_full_bw_reached() 215 static u32 bbr_max_bw(const struct sock *sk) in bbr_max_bw() argument 217 struct bbr *bbr = inet_csk_ca(sk); in bbr_max_bw() 223 static u32 bbr_bw(const struct sock *sk) in bbr_bw() argument 225 struct bbr *bbr = inet_csk_ca(sk); in bbr_bw() 227 return bbr->lt_use_bw ? bbr->lt_bw : bbr_max_bw(sk); in bbr_bw() 233 static u16 bbr_extra_acked(const struct sock *sk) in bbr_extra_acked() argument 235 struct bbr *bbr = inet_csk_ca(sk); in bbr_extra_acked() [all …]
|