| /linux/include/net/ |
| H A D | sock.h | 268 * @sk_napi_id: id of the last napi context to receive data for sk 453 void (*sk_data_ready)(struct sock *sk); 517 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk, 580 void (*sk_state_change)(struct sock *sk); 581 void (*sk_write_space)(struct sock *sk); 582 void (*sk_error_report)(struct sock *sk); 583 int (*sk_backlog_rcv)(struct sock *sk, 585 void (*sk_destruct)(struct sock *sk); 627 * when sk_user_data's sk is added to the bpf's reuseport_array. 641 * @sk 643 sk_user_data_is_nocopy(const struct sock * sk) sk_user_data_is_nocopy() argument 648 __sk_user_data(sk) global() argument 661 __locked_read_sk_user_data_with_flags(const struct sock * sk,uintptr_t flags) __locked_read_sk_user_data_with_flags() argument 684 __rcu_dereference_sk_user_data_with_flags(const struct sock * sk,uintptr_t flags) __rcu_dereference_sk_user_data_with_flags() argument 696 rcu_dereference_sk_user_data(sk) global() argument 698 __rcu_assign_sk_user_data_with_flags(sk,ptr,flags) global() argument 707 rcu_assign_sk_user_data(sk,ptr) global() argument 711 sock_net(const struct sock * sk) sock_net() argument 717 sock_net_set(struct sock * sk,struct net * net) sock_net_set() argument 735 sk_peek_offset(const struct sock * sk,int flags) sk_peek_offset() argument 744 sk_peek_offset_bwd(struct sock * sk,int val) sk_peek_offset_bwd() argument 754 sk_peek_offset_fwd(struct sock * sk,int val) sk_peek_offset_fwd() argument 787 sk_next(const struct sock * sk) sk_next() argument 792 sk_nulls_next(const struct sock * sk) sk_nulls_next() argument 800 sk_unhashed(const struct sock * sk) sk_unhashed() argument 805 sk_hashed(const struct sock * sk) sk_hashed() argument 815 __sk_del_node(struct sock * sk) __sk_del_node() argument 821 __sk_del_node_init(struct sock * sk) __sk_del_node_init() argument 837 sock_hold(struct sock * sk) sock_hold() argument 845 __sock_put(struct sock * sk) __sock_put() argument 850 sk_del_node_init(struct sock * sk) sk_del_node_init() argument 859 sk_del_node_init_rcu(sk) global() argument 861 __sk_nulls_del_node_init_rcu(struct sock * sk) __sk_nulls_del_node_init_rcu() argument 870 sk_nulls_del_node_init_rcu(struct sock * sk) sk_nulls_del_node_init_rcu() argument 893 __sk_add_node(struct sock * sk,struct hlist_head * list) __sk_add_node() argument 898 sk_add_node(struct sock * sk,struct hlist_head * list) sk_add_node() argument 904 sk_add_node_rcu(struct sock * sk,struct hlist_head * list) sk_add_node_rcu() argument 914 sk_add_node_tail_rcu(struct sock * sk,struct hlist_head * list) sk_add_node_tail_rcu() argument 920 __sk_nulls_add_node_rcu(struct sock * sk,struct hlist_nulls_head * list) __sk_nulls_add_node_rcu() argument 925 __sk_nulls_add_node_tail_rcu(struct sock * sk,struct hlist_nulls_head * list) __sk_nulls_add_node_tail_rcu() argument 930 sk_nulls_add_node_rcu(struct sock * sk,struct hlist_nulls_head * list) sk_nulls_add_node_rcu() argument 936 __sk_del_bind_node(struct sock * sk) __sk_del_bind_node() argument 941 sk_add_bind_node(struct sock * sk,struct hlist_head * list) sk_add_bind_node() argument 981 sk_user_ns(const struct sock * sk) sk_user_ns() argument 1040 sock_set_flag(struct sock * sk,enum sock_flags flag) sock_set_flag() argument 1045 sock_reset_flag(struct sock * sk,enum sock_flags flag) sock_reset_flag() argument 1050 sock_valbool_flag(struct sock * sk,enum sock_flags bit,int valbool) sock_valbool_flag() argument 1059 sock_flag(const struct sock * sk,enum sock_flags flag) sock_flag() argument 1083 sk_gfp_mask(const struct sock * sk,gfp_t gfp_mask) sk_gfp_mask() argument 1088 sk_acceptq_removed(struct sock * sk) sk_acceptq_removed() argument 1093 sk_acceptq_added(struct sock * sk) sk_acceptq_added() argument 1102 sk_acceptq_is_full(const struct sock * sk) sk_acceptq_is_full() argument 1110 sk_stream_min_wspace(const struct sock * sk) sk_stream_min_wspace() argument 1115 sk_stream_wspace(const struct sock * sk) sk_stream_wspace() argument 1120 sk_wmem_queued_add(struct sock * sk,int val) sk_wmem_queued_add() argument 1125 sk_forward_alloc_add(struct sock * sk,int val) sk_forward_alloc_add() argument 1134 __sk_add_backlog(struct sock * sk,struct sk_buff * skb) __sk_add_backlog() argument 1153 sk_rcvqueues_full(const struct sock * sk,unsigned int limit) sk_rcvqueues_full() argument 1161 sk_add_backlog(struct sock * sk,struct sk_buff * skb,unsigned int limit) sk_add_backlog() argument 1185 sk_backlog_rcv(struct sock * sk,struct sk_buff * skb) sk_backlog_rcv() argument 1196 sk_incoming_cpu_update(struct sock * sk) sk_incoming_cpu_update() argument 1205 sock_rps_save_rxhash(struct sock * sk,const struct sk_buff * skb) sock_rps_save_rxhash() argument 1217 sock_rps_reset_rxhash(struct sock * sk) sock_rps_reset_rxhash() argument 1250 sk_flush_backlog(struct sock * sk) sk_flush_backlog() argument 1273 sk_prot_clear_nulls(struct sock * sk,int size) sk_prot_clear_nulls() argument 1413 __sk_stream_memory_free(const struct sock * sk,int wake) __sk_stream_memory_free() argument 1423 sk_stream_memory_free(const struct sock * sk) sk_stream_memory_free() argument 1428 __sk_stream_is_writeable(const struct sock * sk,int wake) __sk_stream_is_writeable() argument 1434 sk_stream_is_writeable(const struct sock * sk) sk_stream_is_writeable() argument 1439 sk_under_cgroup_hierarchy(struct sock * sk,struct cgroup * ancestor) sk_under_cgroup_hierarchy() argument 1452 sk_sockets_allocated_dec(struct sock * sk) sk_sockets_allocated_dec() argument 1458 sk_sockets_allocated_inc(struct sock * sk) sk_sockets_allocated_inc() argument 1465 sk_sockets_allocated_read_positive(struct sock * sk) sk_sockets_allocated_read_positive() argument 1511 __sk_prot_rehash(struct sock * sk) __sk_prot_rehash() argument 1561 sk_prot_mem_limits(const struct sock * sk,int index) sk_prot_mem_limits() argument 1571 sk_has_account(struct sock * sk) sk_has_account() argument 1577 sk_wmem_schedule(struct sock * sk,int size) sk_wmem_schedule() argument 1588 __sk_rmem_schedule(struct sock * sk,int size,bool pfmemalloc) __sk_rmem_schedule() argument 1600 sk_rmem_schedule(struct sock * sk,const struct sk_buff * skb,int size) sk_rmem_schedule() argument 1605 sk_unused_reserved_mem(const struct sock * sk) sk_unused_reserved_mem() argument 1618 sk_mem_reclaim(struct sock * sk) sk_mem_reclaim() argument 1631 sk_mem_reclaim_final(struct sock * sk) sk_mem_reclaim_final() argument 1637 sk_mem_charge(struct sock * sk,int size) sk_mem_charge() argument 1644 sk_mem_uncharge(struct sock * sk,int size) sk_mem_uncharge() argument 1655 sk_owner_set(struct sock * sk,struct module * owner) sk_owner_set() argument 1661 sk_owner_clear(struct sock * sk) sk_owner_clear() argument 1666 sk_owner_put(struct sock * sk) sk_owner_put() argument 1671 sk_owner_set(struct sock * sk,struct module * owner) sk_owner_set() argument 1675 sk_owner_clear(struct sock * sk) sk_owner_clear() argument 1679 sk_owner_put(struct sock * sk) sk_owner_put() argument 1690 sock_lock_init_class_and_name(sk,sname,skey,name,key) global() argument 1703 lockdep_sock_is_held(const struct sock * sk) lockdep_sock_is_held() argument 1711 lock_sock(struct sock * sk) lock_sock() argument 1741 lock_sock_fast(struct sock * sk) lock_sock_fast() argument 1750 lock_sock_fast_nested(struct sock * sk) lock_sock_fast_nested() argument 1765 unlock_sock_fast(struct sock * sk,bool slow) unlock_sock_fast() argument 1796 sock_owned_by_me(const struct sock * sk) sock_owned_by_me() argument 1803 sock_not_owned_by_me(const struct sock * sk) sock_not_owned_by_me() argument 1810 sock_owned_by_user(const struct sock * sk) sock_owned_by_user() argument 1816 sock_owned_by_user_nocheck(const struct sock * sk) sock_owned_by_user_nocheck() argument 1821 sock_release_ownership(struct sock * sk) sock_release_ownership() argument 1833 struct sock *sk = (struct sock *)csk; sock_allow_reclassification() local 1846 sk_clone_lock(const struct sock * sk,const gfp_t priority) sk_clone_lock() argument 1864 skb_set_owner_edemux(struct sk_buff * skb,struct sock * sk) skb_set_owner_edemux() argument 1893 sock_alloc_send_skb(struct sock * sk,unsigned long size,int noblock,int * errcode) sock_alloc_send_skb() argument 1907 sock_replace_proto(struct sock * sk,struct proto * proto) sock_replace_proto() argument 1924 sockcm_init(struct sockcm_cookie * sockc,const struct sock * sk) sockcm_init() argument 2007 sock_put(struct sock * sk) sock_put() argument 2019 sk_receive_skb(struct sock * sk,struct sk_buff * skb,const int nested) sk_receive_skb() argument 2025 sk_tx_queue_set(struct sock * sk,int tx_queue) sk_tx_queue_set() argument 2046 sk_tx_queue_clear(struct sock * sk) sk_tx_queue_clear() argument 2056 __sk_rx_queue_set(struct sock * sk,const struct sk_buff * skb,bool force_set) __sk_rx_queue_set() argument 2071 sk_rx_queue_set(struct sock * sk,const struct sk_buff * skb) sk_rx_queue_set() argument 2076 sk_rx_queue_update(struct sock * sk,const struct sk_buff * skb) sk_rx_queue_update() argument 2081 sk_rx_queue_clear(struct sock * sk) sk_rx_queue_clear() argument 2088 sk_rx_queue_get(const struct sock * sk) sk_rx_queue_get() argument 2102 sk_set_socket(struct sock * sk,struct socket * sock) sk_set_socket() argument 2114 sk_sleep(struct sock * sk) sk_sleep() argument 2126 sock_orphan(struct sock * sk) sock_orphan() argument 2135 sock_graft(struct sock * sk,struct socket * parent) sock_graft() argument 2146 sock_i_ino(const struct sock * sk) sock_i_ino() argument 2152 sk_uid(const struct sock * sk) sk_uid() argument 2158 sock_net_uid(const struct net * net,const struct sock * sk) sock_net_uid() argument 2170 sk_set_txhash(struct sock * sk) sk_set_txhash() argument 2176 sk_rethink_txhash(struct sock * sk) sk_rethink_txhash() argument 2186 __sk_dst_get(const struct sock * sk) __sk_dst_get() argument 2193 sk_dst_get(const struct sock * sk) sk_dst_get() argument 2205 __dst_negative_advice(struct sock * sk) __dst_negative_advice() argument 2213 dst_negative_advice(struct sock * sk) dst_negative_advice() argument 2220 __sk_dst_set(struct sock * sk,struct dst_entry * dst) __sk_dst_set() argument 2233 sk_dst_set(struct sock * sk,struct dst_entry * dst) sk_dst_set() argument 2244 __sk_dst_reset(struct sock * sk) __sk_dst_reset() argument 2250 sk_dst_reset(struct sock * sk) sk_dst_reset() argument 2259 sk_dst_confirm(struct sock * sk) sk_dst_confirm() argument 2268 struct sock *sk = skb->sk; sock_confirm_neigh() local 2278 sk_can_gso(const struct sock * sk) sk_can_gso() argument 2285 sk_gso_disable(struct sock * sk) sk_gso_disable() argument 2291 skb_do_copy_data_nocache(struct sock * sk,struct sk_buff * skb,struct iov_iter * from,char * to,int copy,int offset) skb_do_copy_data_nocache() argument 2309 skb_add_data_nocache(struct sock * sk,struct sk_buff * skb,struct iov_iter * from,int copy) skb_add_data_nocache() argument 2322 skb_copy_to_page_nocache(struct sock * sk,struct iov_iter * from,struct sk_buff * skb,struct page * page,int off,int copy) skb_copy_to_page_nocache() argument 2347 sk_wmem_alloc_get(const struct sock * sk) sk_wmem_alloc_get() argument 2358 sk_rmem_alloc_get(const struct sock * sk) sk_rmem_alloc_get() argument 2369 sk_has_allocations(const struct sock * sk) sk_has_allocations() argument 2429 skb_set_hash_from_sk(struct sk_buff * skb,struct sock * sk) skb_set_hash_from_sk() argument 2450 skb_set_owner_r(struct sk_buff * skb,struct sock * sk) skb_set_owner_r() argument 2459 skb_set_owner_sk_safe(struct sk_buff * skb,struct sock * sk) skb_set_owner_sk_safe() argument 2470 skb_clone_and_charge_r(struct sk_buff * skb,struct sock * sk) skb_clone_and_charge_r() argument 2508 sock_queue_rcv_skb(struct sock * sk,struct sk_buff * skb) sock_queue_rcv_skb() argument 2531 sock_error(struct sock * sk) sock_error() argument 2547 sock_wspace(struct sock * sk) sock_wspace() argument 2563 sk_set_bit(int nr,struct sock * sk) sk_set_bit() argument 2572 sk_clear_bit(int nr,struct sock * sk) sk_clear_bit() argument 2581 sk_wake_async(const struct sock * sk,int how,int band) sk_wake_async() argument 2590 sk_wake_async_rcu(const struct sock * sk,int how,int band) sk_wake_async_rcu() argument 2606 sk_stream_moderate_sndbuf(struct sock * sk) sk_stream_moderate_sndbuf() argument 2635 sk_page_frag(struct sock * sk) sk_page_frag() argument 2645 __sock_writeable(const struct sock * sk,int wmem_alloc) __sock_writeable() argument 2652 sock_writeable(const struct sock * sk) sock_writeable() argument 2668 mem_cgroup_from_sk(const struct sock * sk) mem_cgroup_from_sk() argument 2673 mem_cgroup_sk_enabled(const struct sock * sk) mem_cgroup_sk_enabled() argument 2678 mem_cgroup_sk_under_memory_pressure(const struct sock * sk) mem_cgroup_sk_under_memory_pressure() argument 2699 mem_cgroup_from_sk(const struct sock * sk) mem_cgroup_from_sk() argument 2704 mem_cgroup_sk_enabled(const struct sock * sk) mem_cgroup_sk_enabled() argument 2709 mem_cgroup_sk_under_memory_pressure(const struct sock * sk) mem_cgroup_sk_under_memory_pressure() argument 2715 sock_rcvtimeo(const struct sock * sk,bool noblock) sock_rcvtimeo() argument 2720 sock_sndtimeo(const struct sock * sk,bool noblock) sock_sndtimeo() argument 2725 sock_rcvlowat(const struct sock * sk,int waitall,int len) sock_rcvlowat() argument 2757 sk_drops_add(struct sock * sk,int segs) sk_drops_add() argument 2767 sk_drops_inc(struct sock * sk) sk_drops_inc() argument 2772 sk_drops_read(const struct sock * sk) sk_drops_read() argument 2783 sk_drops_reset(struct sock * sk) sk_drops_reset() argument 2793 sock_skb_set_dropcount(const struct sock * sk,struct sk_buff * skb) sock_skb_set_dropcount() argument 2799 sk_drops_skbadd(struct sock * sk,const struct sk_buff * skb) sk_drops_skbadd() argument 2806 sock_read_timestamp(struct sock * sk) sock_read_timestamp() argument 2823 sock_write_timestamp(struct sock * sk,ktime_t kt) sock_write_timestamp() argument 2844 sock_recv_timestamp(struct msghdr * msg,struct sock * sk,struct sk_buff * skb) sock_recv_timestamp() argument 2872 sock_recv_cmsgs(struct msghdr * msg,struct sock * sk,struct sk_buff * skb) sock_recv_cmsgs() argument 2902 _sock_tx_timestamp(struct sock * sk,const struct sockcm_cookie * sockc,__u8 * tx_flags,__u32 * tskey) _sock_tx_timestamp() argument 2920 sock_tx_timestamp(struct sock * sk,const struct sockcm_cookie * sockc,__u8 * tx_flags) sock_tx_timestamp() argument 2934 sk_is_inet(const struct sock * sk) sk_is_inet() argument 2941 sk_is_tcp(const struct sock * sk) sk_is_tcp() argument 2948 sk_is_udp(const struct sock * sk) sk_is_udp() argument 2955 sk_is_unix(const struct sock * sk) sk_is_unix() argument 2960 sk_is_stream_unix(const struct sock * sk) sk_is_stream_unix() argument 2965 sk_is_vsock(const struct sock * sk) sk_is_vsock() argument 2970 sk_may_scm_recv(const struct sock * sk) sk_may_scm_recv() argument 2985 sk_eat_skb(struct sock * sk,struct sk_buff * skb) sk_eat_skb() argument 3004 sk_fullsock(const struct sock * sk) sk_fullsock() argument 3010 sk_is_refcounted(struct sock * sk) sk_is_refcounted() argument 3017 sk_requests_wifi_status(struct sock * sk) sk_requests_wifi_status() argument 3025 sk_listener(const struct sock * sk) sk_listener() argument 3034 sk_listener_or_tw(const struct sock * sk) sk_listener_or_tw() argument 3070 sk_get_wmem0(const struct sock * sk,const struct proto * proto) sk_get_wmem0() argument 3079 sk_get_rmem0(const struct sock * sk,const struct proto * proto) sk_get_rmem0() argument 3092 sk_pacing_shift_update(struct sock * sk,int val) sk_pacing_shift_update() argument 3104 sk_dev_equal_l3scope(struct sock * sk,int dif) sk_dev_equal_l3scope() argument 3129 bpf_skops_tx_timestamping(struct sock * sk,struct sk_buff * skb,int op) bpf_skops_tx_timestamping() argument 3151 sk_is_readable(struct sock * sk) sk_is_readable() argument [all...] |
| H A D | llc_c_ev.h | 122 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb); 123 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb); in llc_conn_ev() 125 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb); in llc_conn_ev() 126 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb); in llc_conn_ev() 127 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb); 128 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb); 129 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb); 130 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb); 131 int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb); 132 int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struc 218 llc_conn_space(struct sock * sk,struct sk_buff * skb) llc_conn_space() argument [all...] |
| H A D | llc_c_ac.h | 91 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb); 93 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb); 94 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb); 95 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb); 96 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb); 97 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb); 98 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb); 99 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb); 100 int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk, 102 int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk, [all...] |
| /linux/net/bluetooth/ |
| H A D | iso.c | 32 struct sock *sk; 45 static void iso_sock_close(struct sock *sk); 46 static void iso_sock_kill(struct sock *sk); 49 #define iso_pi(sk) ((struct iso_pinfo *)sk) 83 static bool iso_match_sid(struct sock *sk, void *data); 84 static bool iso_match_sid_past(struct sock *sk, void *data); 85 static bool iso_match_sync_handle(struct sock *sk, void *data); 86 static bool iso_match_sync_handle_pa_report(struct sock *sk, void *data); 87 static void iso_sock_disconn(struct sock *sk); 31 struct sock *sk; global() member 48 iso_pi(sk) global() argument 157 struct sock *sk; iso_sock_timeout() local 180 iso_sock_set_timer(struct sock * sk,long timeout) iso_sock_set_timer() argument 190 iso_sock_clear_timer(struct sock * sk) iso_sock_clear_timer() argument 233 iso_chan_del(struct sock * sk,int err) iso_chan_del() argument 267 struct sock *sk; iso_conn_del() local 293 __iso_chan_add(struct iso_conn * conn,struct sock * sk,struct sock * parent) __iso_chan_add() argument 315 iso_chan_add(struct iso_conn * conn,struct sock * sk,struct sock * parent) iso_chan_add() argument 335 iso_connect_bis(struct sock * sk) iso_connect_bis() argument 436 iso_connect_cis(struct sock * sk) iso_connect_cis() argument 538 iso_sock_get_qos(struct sock * sk) iso_sock_get_qos() argument 546 iso_send_frame(struct sock * sk,struct sk_buff * skb,const struct sockcm_cookie * sockc) iso_send_frame() argument 579 struct sock *sk; iso_recv_frame() local 607 struct sock *sk; __iso_get_sock_listen_by_addr() local 626 struct sock *sk; __iso_get_sock_listen_by_sid() local 656 struct sock *sk = NULL, *sk1 = NULL; iso_get_sock() local 716 struct sock *sk = NULL; iso_get_sock_big() local 752 iso_sock_destruct(struct sock * sk) iso_sock_destruct() argument 765 struct sock *sk; iso_sock_cleanup_listen() local 790 iso_sock_kill(struct sock * sk) iso_sock_kill() argument 811 iso_sock_disconn(struct sock * sk) iso_sock_disconn() argument 843 __iso_sock_close(struct sock * sk) __iso_sock_close() argument 880 iso_sock_close(struct sock * sk) iso_sock_close() argument 889 iso_sock_init(struct sock * sk,struct sock * parent) iso_sock_init() argument 938 struct sock *sk; iso_sock_alloc() local 960 struct sock *sk; iso_sock_create() local 983 struct sock *sk = sock->sk; iso_sock_bind_bc() local 1022 iso_sock_rebind_bis(struct sock * sk,struct sockaddr_iso * sa,int addr_len) iso_sock_rebind_bis() argument 1064 iso_sock_rebind_bc(struct sock * sk,struct sockaddr_iso * sa,int addr_len) iso_sock_rebind_bc() argument 1126 struct sock *sk = sock->sk; iso_sock_bind() local 1183 struct sock *sk = sock->sk; iso_sock_connect() local 1228 iso_listen_bis(struct sock * sk) iso_listen_bis() argument 1298 iso_listen_cis(struct sock * sk) iso_listen_cis() argument 1316 struct sock *sk = sock->sk; iso_sock_listen() local 1363 struct sock *sk = sock->sk, *ch; iso_sock_accept() local 1463 struct sock *sk = sock->sk; iso_sock_getname() local 1495 struct sock *sk = sock->sk; iso_sock_sendmsg() local 1588 iso_conn_big_sync(struct sock * sk) iso_conn_big_sync() argument 1632 struct sock *sk = sock->sk; iso_sock_recvmsg() local 1788 struct sock *sk = sock->sk; iso_sock_setsockopt() local 1887 struct sock *sk = sock->sk; iso_sock_getsockopt() local 1957 struct sock *sk = sock->sk; iso_sock_shutdown() local 2002 struct sock *sk = sock->sk; iso_sock_release() local 2024 iso_sock_ready(struct sock * sk) iso_sock_ready() argument 2038 iso_match_big(struct sock * sk,void * data) iso_match_big() argument 2045 iso_match_big_hcon(struct sock * sk,void * data) iso_match_big_hcon() argument 2052 iso_match_pa_sync_flag(struct sock * sk,void * data) iso_match_pa_sync_flag() argument 2057 iso_match_dst(struct sock * sk,void * data) iso_match_dst() argument 2065 struct sock *sk = conn->sk; iso_conn_ready() local 2225 iso_match_sid(struct sock * sk,void * data) iso_match_sid() argument 2235 iso_match_sid_past(struct sock * sk,void * data) iso_match_sid_past() argument 2245 iso_match_sync_handle(struct sock * sk,void * data) iso_match_sync_handle() argument 2252 iso_match_sync_handle_pa_report(struct sock * sk,void * data) iso_match_sync_handle_pa_report() argument 2267 struct sock *sk; iso_connect_ind() local 2673 struct sock *sk; iso_debugfs_show() local [all...] |
| H A D | sco.c | 47 struct sock *sk; 58 static void sco_sock_close(struct sock *sk); 59 static void sco_sock_kill(struct sock *sk); 62 #define sco_pi(sk) ((struct sco_pinfo *) sk) 84 if (conn->sk) in sco_conn_free() 85 sco_pi(conn->sk)->conn = NULL; in sco_conn_free() 131 if (!conn || !bt_sock_linked(&sco_sk_list, conn->sk)) in sco_sock_hold() 134 sock_hold(conn->sk); in sco_sock_hold() 136 return conn->sk; in sco_sock_hold() 49 struct sock *sk; global() member 64 sco_pi(sk) global() argument 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 402 sco_send_frame(struct sock * sk,struct sk_buff * skb,const struct sockcm_cookie * sockc) sco_send_frame() argument 422 struct sock *sk; sco_recv_frame() local 450 struct sock *sk; __sco_get_sock_listen_by_addr() local 468 struct sock *sk = NULL, *sk1 = NULL; sco_get_sock_listen() local 494 sco_sock_destruct(struct sock * sk) sco_sock_destruct() argument 507 struct sock *sk; sco_sock_cleanup_listen() local 526 sco_sock_kill(struct sock * sk) sco_sock_kill() argument 548 __sco_sock_close(struct sock * sk) __sco_sock_close() argument 573 sco_sock_close(struct sock * sk) sco_sock_close() argument 581 sco_sock_init(struct sock * sk,struct sock * parent) sco_sock_init() argument 601 struct sock *sk; sco_sock_alloc() local 623 struct sock *sk; sco_sock_create() local 646 struct sock *sk = sock->sk; sco_sock_bind() local 679 struct sock *sk = sock->sk; sco_sock_connect() local 719 struct sock *sk = sock->sk; sco_sock_listen() local 761 struct sock *sk = sock->sk, *ch; sco_sock_accept() local 821 struct sock *sk = sock->sk; sco_sock_getname() local 838 struct sock *sk = sock->sk; sco_sock_sendmsg() local 930 struct sock *sk = sock->sk; sco_sock_recvmsg() local 956 struct sock *sk = sock->sk; sco_sock_setsockopt() local 1094 struct sock *sk = sock->sk; sco_sock_getsockopt_old() local 1156 struct sock *sk = sock->sk; sco_sock_getsockopt() local 1337 struct sock *sk = sock->sk; sco_sock_shutdown() local 1367 struct sock *sk = sock->sk; sco_sock_release() local 1391 struct sock *parent, *sk; sco_conn_ready() local 1464 struct sock *sk; sco_connect_ind() local 1561 struct sock *sk; sco_debugfs_show() local [all...] |
| H A D | af_bluetooth.c | 71 void bt_sock_reclassify_lock(struct sock *sk, int proto) 73 BUG_ON(!sk); 74 BUG_ON(!sock_allow_reclassification(sk)); in bt_sock_reclassify_lock() argument 76 sock_lock_init_class_and_name(sk, in bt_sock_reclassify_lock() 134 bt_sock_reclassify_lock(sock->sk, proto); in bt_sock_create() 146 struct sock *sk; in bt_sock_alloc() 148 sk = sk_alloc(net, PF_BLUETOOTH, prio, prot, kern); in bt_sock_alloc() 149 if (!sk) in bt_sock_alloc() local 152 sock_init_data(sock, sk); in bt_sock_alloc() 153 INIT_LIST_HEAD(&bt_sk(sk) in bt_sock_alloc() 176 bt_sock_link(struct bt_sock_list * l,struct sock * sk) bt_sock_link() argument 184 bt_sock_unlink(struct bt_sock_list * l,struct sock * sk) bt_sock_unlink() argument 194 struct sock *sk; bt_sock_linked() local 214 bt_accept_enqueue(struct sock * parent,struct sock * sk,bool bh) bt_accept_enqueue() argument 259 bt_accept_unlink(struct sock * sk) bt_accept_unlink() argument 274 bt_accept_get(struct sock * parent,struct sock * sk) bt_accept_get() argument 305 struct sock *sk, *next; bt_accept_dequeue() local 369 struct sock *sk = sock->sk; bt_sock_recvmsg() local 428 bt_sock_data_wait(struct sock * sk,long timeo) bt_sock_data_wait() argument 460 struct sock *sk = sock->sk; bt_sock_stream_recvmsg() local 566 struct sock *sk; bt_accept_poll() local 591 struct sock *sk = sock->sk; bt_sock_poll() local 629 bt_ethtool_get_ts_info(struct sock * sk,unsigned int index,void __user * useraddr) bt_ethtool_get_ts_info() argument 656 bt_ethtool(struct sock * sk,const struct ifreq * ifr,void __user * useraddr) bt_ethtool() argument 680 struct sock *sk = sock->sk; bt_dev_ioctl() local 711 struct sock *sk = sock->sk; bt_sock_ioctl() local 755 bt_sock_wait_state(struct sock * sk,int state,unsigned long timeo) bt_sock_wait_state() argument 791 bt_sock_wait_ready(struct sock * sk,unsigned int msg_flags) bt_sock_wait_ready() argument 869 struct sock *sk = sk_entry(v); bt_seq_show() local [all...] |
| H A D | l2cap_sock.c | 44 static void l2cap_sock_init(struct sock *sk, struct sock *parent); 83 struct sock *sk = sock->sk; in l2cap_sock_bind() 84 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_bind() 88 BT_DBG("sk %p", sk); in l2cap_sock_bind() 111 lock_sock(sk); in l2cap_sock_bind() 113 if (sk->sk_state != BT_OPEN) { in l2cap_sock_bind() 172 sk->sk_state = BT_BOUND; in l2cap_sock_bind() 175 release_sock(sk); in l2cap_sock_bind() 85 struct sock *sk = sock->sk; l2cap_sock_bind() local 184 struct sock *sk = sock->sk; l2cap_sock_connect() local 274 struct sock *sk = sock->sk; l2cap_sock_listen() local 333 struct sock *sk = sock->sk, *nsk; l2cap_sock_accept() local 394 struct sock *sk = sock->sk; l2cap_sock_getname() local 443 struct sock *sk = sock->sk; l2cap_sock_getsockopt_old() local 563 struct sock *sk = sock->sk; l2cap_sock_getsockopt() local 733 struct sock *sk = sock->sk; l2cap_sock_setsockopt_old() local 887 struct sock *sk = sock->sk; l2cap_sock_setsockopt() local 1137 struct sock *sk = sock->sk; l2cap_sock_sendmsg() local 1177 struct sock *sk = chan->data; l2cap_publish_rx_avail() local 1206 struct sock *sk = sock->sk; l2cap_sock_recvmsg() local 1280 l2cap_sock_kill(struct sock * sk) l2cap_sock_kill() argument 1298 __l2cap_wait_ack(struct sock * sk,struct l2cap_chan * chan) __l2cap_wait_ack() argument 1345 struct sock *sk = sock->sk; l2cap_sock_shutdown() local 1446 struct sock *sk = sock->sk; l2cap_sock_release() local 1478 struct sock *sk; l2cap_sock_cleanup_listen() local 1538 struct sock *sk, *parent = chan->data; l2cap_sock_new_connection_cb() local 1572 struct sock *sk; l2cap_sock_recv_cb() local 1635 struct sock *sk = chan->data; l2cap_sock_close_cb() local 1645 struct sock *sk = chan->data; l2cap_sock_teardown_cb() local 1700 struct sock *sk = chan->data; l2cap_sock_state_change_cb() local 1715 struct sock *sk = chan->data; l2cap_sock_alloc_skb_cb() local 1743 struct sock *sk = chan->data; l2cap_sock_ready_cb() local 1766 struct sock *parent, *sk = chan->data; l2cap_sock_defer_cb() local 1779 struct sock *sk = chan->data; l2cap_sock_resume_cb() local 1795 struct sock *sk = chan->data; l2cap_sock_set_shutdown_cb() local 1804 struct sock *sk = chan->data; l2cap_sock_get_sndtimeo_cb() local 1814 struct sock *sk = chan->data; l2cap_sock_get_peer_pid_cb() local 1821 struct sock *sk = chan->data; l2cap_sock_suspend_cb() local 1829 struct sock *sk = chan->data; l2cap_sock_filter() local 1858 l2cap_sock_destruct(struct sock * sk) l2cap_sock_destruct() argument 1893 l2cap_sock_init(struct sock * sk,struct sock * parent) l2cap_sock_init() argument 1970 struct sock *sk; l2cap_sock_alloc() local 2000 struct sock *sk; l2cap_sock_create() local [all...] |
| /linux/net/bluetooth/rfcomm/ |
| H A D | sock.c | 41 static void rfcomm_sock_close(struct sock *sk); 42 static void rfcomm_sock_kill(struct sock *sk); 50 struct sock *sk = d->owner; in rfcomm_sk_data_ready() 51 if (!sk) in rfcomm_sk_data_ready() 54 atomic_add(skb->len, &sk->sk_rmem_alloc); in rfcomm_sk_data_ready() 55 skb_queue_tail(&sk->sk_receive_queue, skb); in rfcomm_sk_data_ready() 56 sk->sk_data_ready(sk); in rfcomm_sk_data_ready() 58 if (atomic_read(&sk->sk_rmem_alloc) >= sk in rfcomm_sk_data_ready() 52 struct sock *sk = d->owner; rfcomm_sk_data_ready() local 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 163 rfcomm_sock_destruct(struct sock * sk) rfcomm_sock_destruct() argument 185 struct sock *sk; rfcomm_sock_cleanup_listen() local 204 rfcomm_sock_kill(struct sock * sk) rfcomm_sock_kill() argument 217 __rfcomm_sock_close(struct sock * sk) __rfcomm_sock_close() argument 244 rfcomm_sock_close(struct sock * sk) rfcomm_sock_close() argument 251 rfcomm_sock_init(struct sock * sk,struct sock * parent) rfcomm_sock_init() argument 287 struct sock *sk; rfcomm_sock_alloc() local 320 struct sock *sk; rfcomm_sock_create() local 342 struct sock *sk = sock->sk; rfcomm_sock_bind() local 390 struct sock *sk = sock->sk; rfcomm_sock_connect() local 437 struct sock *sk = sock->sk; rfcomm_sock_listen() local 488 struct sock *sk = sock->sk, *nsk; rfcomm_sock_accept() local 553 struct sock *sk = sock->sk; rfcomm_sock_getname() local 575 struct sock *sk = sock->sk; rfcomm_sock_sendmsg() local 615 struct sock *sk = sock->sk; rfcomm_sock_recvmsg() local 640 struct sock *sk = sock->sk; rfcomm_sock_setsockopt_old() local 681 struct sock *sk = sock->sk; rfcomm_sock_setsockopt() local 745 struct sock *sk = sock->sk; rfcomm_sock_getsockopt_old() local 821 struct sock *sk = sock->sk; rfcomm_sock_getsockopt() local 905 struct sock *sk = sock->sk; rfcomm_sock_shutdown() local 931 struct sock *sk = sock->sk; rfcomm_sock_release() local 952 struct sock *sk, *parent; rfcomm_connect_ind() local 1010 struct sock *sk; rfcomm_sock_debugfs_show() local [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 524 sock_queue_rcv_skb_reason(struct sock * sk,struct sk_buff * skb) sock_queue_rcv_skb_reason() argument 544 __sk_receive_skb(struct sock * sk,struct sk_buff * skb,const int nested,unsigned int trim_cap,bool refcounted) __sk_receive_skb() argument 600 __sk_dst_check(struct sock * sk,u32 cookie) __sk_dst_check() argument 618 sk_dst_check(struct sock * sk,u32 cookie) sk_dst_check() argument 634 sock_bindtoindex_locked(struct sock * sk,int ifindex) sock_bindtoindex_locked() argument 664 sock_bindtoindex(struct sock * sk,int ifindex,bool lock_sk) sock_bindtoindex() argument 678 sock_setbindtodevice(struct sock * sk,sockptr_t optval,int optlen) sock_setbindtodevice() argument 726 sock_getbindtodevice(struct sock * sk,sockptr_t optval,sockptr_t optlen,int len) sock_getbindtodevice() argument 767 sk_mc_loop(const struct sock * sk) sk_mc_loop() argument 787 sock_set_reuseaddr(struct sock * sk) sock_set_reuseaddr() argument 795 sock_set_reuseport(struct sock * sk) sock_set_reuseport() argument 803 sock_no_linger(struct sock * sk) sock_no_linger() argument 812 sock_set_priority(struct sock * sk,u32 priority) sock_set_priority() argument 818 sock_set_sndtimeo(struct sock * sk,s64 secs) sock_set_sndtimeo() argument 827 __sock_set_timestamps(struct sock * sk,bool val,bool new,bool ns) __sock_set_timestamps() argument 837 sock_set_timestamp(struct sock * sk,int optname,bool valbool) sock_set_timestamp() argument 855 sock_timestamping_bind_phc(struct sock * sk,int phc_index) sock_timestamping_bind_phc() argument 892 sock_set_timestamping(struct sock * sk,int optname,struct so_timestamping timestamping) sock_set_timestamping() argument 944 bpf_skops_tx_timestamping(struct sock * sk,struct sk_buff * skb,int op) bpf_skops_tx_timestamping() argument 957 sock_set_keepalive(struct sock * sk) sock_set_keepalive() argument 967 __sock_set_rcvbuf(struct sock * sk,int val) __sock_set_rcvbuf() argument 997 sock_set_rcvbuf(struct sock * sk,int val) sock_set_rcvbuf() argument 1005 __sock_set_mark(struct sock * sk,u32 val) __sock_set_mark() argument 1013 sock_set_mark(struct sock * sk,u32 val) sock_set_mark() argument 1021 sock_release_reserved_memory(struct sock * sk,int bytes) sock_release_reserved_memory() argument 1031 sock_reserve_memory(struct sock * sk,int bytes) sock_reserve_memory() argument 1087 sock_devmem_dontneed(struct sock * sk,sockptr_t optval,unsigned int optlen) sock_devmem_dontneed() argument 1145 sockopt_lock_sock(struct sock * sk) sockopt_lock_sock() argument 1158 sockopt_release_sock(struct sock * sk) sockopt_release_sock() argument 1195 sk_setsockopt(struct sock * sk,int level,int optname,sockptr_t optval,unsigned int optlen) sk_setsockopt() argument 1688 sk_get_peer_cred(struct sock * sk) sk_get_peer_cred() argument 1727 sk_getsockopt(struct sock * sk,int level,int optname,sockptr_t optval,sockptr_t optlen) sk_getsockopt() argument 2180 sock_lock_init(struct sock * sk) sock_lock_init() argument 2236 struct sock *sk; sk_prot_alloc() local 2269 sk_prot_free(struct proto * prot,struct sock * sk) sk_prot_free() argument 2301 struct sock *sk; sk_alloc() local 2347 struct sock *sk = container_of(head, struct sock, sk_rcu); __sk_destruct() local 2389 sk_net_refcnt_upgrade(struct sock * sk) sk_net_refcnt_upgrade() argument 2402 sk_destruct(struct sock * sk) sk_destruct() argument 2417 __sk_free(struct sock * sk) __sk_free() argument 2428 sk_free(struct sock * sk) sk_free() argument 2440 sk_init_common(struct sock * sk) sk_init_common() argument 2475 sk_clone(const struct sock * sk,const gfp_t priority,bool lock) sk_clone() argument 2611 sk_dst_gso_max_size(struct sock * sk,const struct net_device * dev) sk_dst_gso_max_size() argument 2629 sk_setup_caps(struct sock * sk,struct dst_entry * dst) sk_setup_caps() argument 2674 struct sock *sk = skb->sk; sock_wfree() local 2717 struct sock *sk = skb->sk; __sock_wfree() local 2723 skb_set_owner_w(struct sk_buff * skb,struct sock * sk) skb_set_owner_w() argument 2787 struct sock *sk = skb->sk; sock_rfree() local 2811 struct sock *sk = skb->sk; sock_pfree() local 2830 sock_wmalloc(struct sock * sk,unsigned long size,int force,gfp_t priority) sock_wmalloc() argument 2848 struct sock *sk = skb->sk; sock_ofree() local 2853 sock_omalloc(struct sock * sk,unsigned long size,gfp_t priority) sock_omalloc() argument 2876 sock_kmalloc(struct sock * sk,int size,gfp_t priority) sock_kmalloc() argument 2900 sock_kmemdup(struct sock * sk,const void * src,int size,gfp_t priority) sock_kmemdup() argument 2916 __sock_kfree_s(struct sock * sk,void * mem,int size,const bool nullify) __sock_kfree_s() argument 2928 sock_kfree_s(struct sock * sk,void * mem,int size) sock_kfree_s() argument 2934 sock_kzfree_s(struct sock * sk,void * mem,int size) sock_kzfree_s() argument 2943 sock_wait_for_wmem(struct sock * sk,long timeo) sock_wait_for_wmem() argument 2972 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 3016 __sock_cmsg_send(struct sock * sk,struct cmsghdr * cmsg,struct sockcm_cookie * sockc) __sock_cmsg_send() argument 3085 sock_cmsg_send(struct sock * sk,struct msghdr * msg,struct sockcm_cookie * sockc) sock_cmsg_send() argument 3104 sk_enter_memory_pressure(struct sock * sk) sk_enter_memory_pressure() argument 3112 sk_leave_memory_pressure(struct sock * sk) sk_leave_memory_pressure() argument 3171 sk_page_frag_refill(struct sock * sk,struct page_frag * pfrag) sk_page_frag_refill() argument 3185 __lock_sock(struct sock * sk) __lock_sock() argument 3203 __release_sock(struct sock * sk) __release_sock() argument 3240 __sk_flush_backlog(struct sock * sk) __sk_flush_backlog() argument 3264 sk_wait_data(struct sock * sk,long * timeo,const struct sk_buff * skb) sk_wait_data() argument 3293 __sk_mem_raise_allocated(struct sock * sk,int size,int amt,int kind) __sk_mem_raise_allocated() argument 3411 __sk_mem_schedule(struct sock * sk,int size,int kind) __sk_mem_schedule() argument 3430 __sk_mem_reduce_allocated(struct sock * sk,int amount) __sk_mem_reduce_allocated() argument 3450 __sk_mem_reclaim(struct sock * sk,int amount) __sk_mem_reclaim() argument 3458 __sk_charge(struct sock * sk,gfp_t gfp) __sk_charge() argument 3476 sk_set_peek_off(struct sock * sk,int val) sk_set_peek_off() argument 3547 sock_no_sendmsg_locked(struct sock * sk,struct msghdr * m,size_t len) sock_no_sendmsg_locked() argument 3586 sock_def_wakeup(struct sock * sk) sock_def_wakeup() argument 3597 sock_def_error_report(struct sock * sk) sock_def_error_report() argument 3609 sock_def_readable(struct sock * sk) sock_def_readable() argument 3624 sock_def_write_space(struct sock * sk) sock_def_write_space() argument 3650 sock_def_write_space_wfree(struct sock * sk,int wmem_alloc) sock_def_write_space_wfree() argument 3669 sock_def_destruct(struct sock * sk) sock_def_destruct() argument 3673 sk_send_sigurg(struct sock * sk) sk_send_sigurg() argument 3681 sk_reset_timer(struct sock * sk,struct timer_list * timer,unsigned long expires) sk_reset_timer() argument 3689 sk_stop_timer(struct sock * sk,struct timer_list * timer) sk_stop_timer() argument 3696 sk_stop_timer_sync(struct sock * sk,struct timer_list * timer) sk_stop_timer_sync() argument 3703 sock_init_data_uid(struct socket * sock,struct sock * sk,kuid_t uid) sock_init_data_uid() argument 3774 sock_init_data(struct socket * sock,struct sock * sk) sock_init_data() argument 3784 lock_sock_nested(struct sock * sk,int subclass) lock_sock_nested() argument 3814 release_sock(struct sock * sk) release_sock() argument 3833 __lock_sock_fast(struct sock * sk) __lock_sock_fast() argument 3868 struct sock *sk = sock->sk; sock_gettstamp() local 3904 sock_enable_timestamp(struct sock * sk,enum sock_flags flag) sock_enable_timestamp() argument 3921 sock_recv_errqueue(struct sock * sk,struct msghdr * msg,int len,int level,int type) sock_recv_errqueue() argument 3968 struct sock *sk = sock->sk; sock_common_getsockopt() local 3978 struct sock *sk = sock->sk; sock_common_recvmsg() local 3990 struct sock *sk = sock->sk; sock_common_setsockopt() local 3997 sk_common_release(struct sock * sk) sk_common_release() argument 4032 sk_get_meminfo(const struct sock * sk,u32 * mem) sk_get_meminfo() argument 4427 struct sock *sk = p; sk_busy_loop_end() local 4441 sock_bind_add(struct sock * sk,struct sockaddr_unsized * addr,int addr_len) sock_bind_add() argument 4450 sock_ioctl_inout(struct sock * sk,unsigned int cmd,void __user * arg,void * karg,size_t size) sock_ioctl_inout() argument 4473 sock_ioctl_out(struct sock * sk,unsigned int cmd,void __user * arg) sock_ioctl_out() argument 4489 sk_ioctl(struct sock * sk,unsigned int cmd,void __user * arg) sk_ioctl() argument [all...] |
| /linux/net/ipv4/ |
| H A D | tcp_timer.c | 28 static u32 tcp_clamp_rto_to_user_timeout(const struct sock *sk) in tcp_clamp_rto_to_user_timeout() argument 30 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_rto_to_user_timeout() 31 const struct tcp_sock *tp = tcp_sk(sk); in tcp_clamp_rto_to_user_timeout() 50 u32 tcp_clamp_probe0_to_user_timeout(const struct sock *sk, u32 when) in tcp_clamp_probe0_to_user_timeout() argument 52 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_probe0_to_user_timeout() 72 * @sk: The socket the error has appeared on. 77 static void tcp_write_err(struct sock *sk) in tcp_write_err() argument 79 tcp_done_with_error(sk, READ_ONCE(sk->sk_err_soft) ? : ETIMEDOUT); in tcp_write_err() 80 __NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPABORTONTIMEOU in tcp_write_err() 107 tcp_out_of_resources(struct sock * sk,bool do_reset) tcp_out_of_resources() argument 150 tcp_orphan_retries(struct sock * sk,bool alive) tcp_orphan_retries() argument 166 tcp_mtu_probing(struct inet_connection_sock * icsk,struct sock * sk) tcp_mtu_probing() argument 188 tcp_model_timeout(struct sock * sk,unsigned int boundary,unsigned int rto_base) tcp_model_timeout() argument 215 retransmits_timed_out(struct sock * sk,unsigned int boundary,unsigned int timeout) retransmits_timed_out() argument 243 tcp_write_timeout(struct sock * sk) tcp_write_timeout() argument 309 tcp_delack_timer_handler(struct sock * sk) tcp_delack_timer_handler() argument 365 struct sock *sk = &icsk->icsk_inet.sk; tcp_delack_timer() local 389 tcp_probe_timer(struct sock * sk) tcp_probe_timer() argument 440 tcp_update_rto_stats(struct sock * sk) tcp_update_rto_stats() argument 457 tcp_fastopen_synack_timer(struct sock * sk,struct request_sock * req) tcp_fastopen_synack_timer() argument 494 tcp_rtx_probe0_timed_out(const struct sock * sk,const struct sk_buff * skb,u32 rtx_delta) tcp_rtx_probe0_timed_out() argument 535 tcp_retransmit_timer(struct sock * sk) tcp_retransmit_timer() argument 695 tcp_write_timer_handler(struct sock * sk) tcp_write_timer_handler() argument 732 struct sock *sk = timer_container_of(sk, t, tcp_retransmit_timer); tcp_write_timer() local 758 tcp_reset_keepalive_timer(struct sock * sk,unsigned long len) tcp_reset_keepalive_timer() argument 763 tcp_delete_keepalive_timer(struct sock * sk) tcp_delete_keepalive_timer() argument 768 tcp_set_keepalive(struct sock * sk,int val) tcp_set_keepalive() argument 783 struct sock *sk = &icsk->icsk_inet.sk; tcp_keepalive_timer() local 871 struct sock *sk = (struct sock *)tp; tcp_compressed_ack_kick() local 896 tcp_init_xmit_timers(struct sock * sk) tcp_init_xmit_timers() argument [all...] |
| H A D | inet_hashtables.c | 52 static u32 sk_ehashfn(const struct sock *sk) in sk_ehashfn() argument 55 if (sk->sk_family == AF_INET6 && in sk_ehashfn() 56 !ipv6_addr_v4mapped(&sk->sk_v6_daddr)) in sk_ehashfn() 57 return inet6_ehashfn(sock_net(sk), in sk_ehashfn() 58 &sk->sk_v6_rcv_saddr, sk->sk_num, in sk_ehashfn() 59 &sk->sk_v6_daddr, sk->sk_dport); in sk_ehashfn() 61 return inet_ehashfn(sock_net(sk), in sk_ehashfn() 62 sk in sk_ehashfn() 66 sk_is_connect_bind(const struct sock * sk) sk_is_connect_bind() argument 132 inet_bind2_bucket_init(struct inet_bind2_bucket * tb2,struct net * net,struct inet_bind_hashbucket * head,struct inet_bind_bucket * tb,const struct sock * sk) inet_bind2_bucket_init() argument 160 inet_bind2_bucket_create(struct kmem_cache * cachep,struct net * net,struct inet_bind_hashbucket * head,struct inet_bind_bucket * tb,const struct sock * sk) inet_bind2_bucket_create() argument 173 const struct sock *sk; inet_bind2_bucket_destroy() local 193 inet_bind2_bucket_addr_match(const struct inet_bind2_bucket * tb2,const struct sock * sk) inet_bind2_bucket_addr_match() argument 205 inet_bind_hash(struct sock * sk,struct inet_bind_bucket * tb,struct inet_bind2_bucket * tb2,unsigned short port) inet_bind_hash() argument 217 __inet_put_port(struct sock * sk) __inet_put_port() argument 249 inet_put_port(struct sock * sk) inet_put_port() argument 257 __inet_inherit_port(const struct sock * sk,struct sock * child) __inet_inherit_port() argument 337 inet_lhash2_bucket_sk(struct inet_hashinfo * h,struct sock * sk) inet_lhash2_bucket_sk() argument 354 compute_score(struct sock * sk,const struct net * net,const unsigned short hnum,const __be32 daddr,const int dif,const int sdif) compute_score() argument 392 inet_lookup_reuseport(const struct net * net,struct sock * sk,struct sk_buff * skb,int doff,__be32 saddr,__be16 sport,__be32 daddr,unsigned short hnum,inet_ehashfn_t * ehashfn) inet_lookup_reuseport() argument 425 struct sock *sk, *result = NULL; inet_lhash2_lookup() local 452 struct sock *sk, *reuse_sk; inet_lookup_run_sk_lookup() local 512 sock_gen_put(struct sock * sk) sock_gen_put() argument 543 struct sock *sk; __inet_lookup_established() local 581 __inet_check_established(struct inet_timewait_death_row * death_row,struct sock * sk,__u16 lport,struct inet_timewait_sock ** twp,bool rcu_lookup,u32 hash) __inet_check_established() argument 658 inet_sk_port_offset(const struct sock * sk) inet_sk_port_offset() argument 670 inet_ehash_lookup_by_sk(struct sock * sk,struct hlist_nulls_head * list) inet_ehash_lookup_by_sk() argument 710 inet_ehash_insert(struct sock * sk,struct sock * osk,bool * found_dup_sk) inet_ehash_insert() argument 747 inet_ehash_nolisten(struct sock * sk,struct sock * osk,bool * found_dup_sk) inet_ehash_nolisten() argument 762 inet_reuseport_add_sock(struct sock * sk,struct inet_listen_hashbucket * ilb) inet_reuseport_add_sock() argument 785 inet_hash(struct sock * sk) inet_hash() argument 829 inet_unhash(struct sock * sk) inet_unhash() argument 863 inet_bind2_bucket_match(const struct inet_bind2_bucket * tb,const struct net * net,unsigned short port,int l3mdev,const struct sock * sk) inet_bind2_bucket_match() argument 873 inet_bind2_bucket_match_addr_any(const struct inet_bind2_bucket * tb,const struct net * net,unsigned short port,int l3mdev,const struct sock * sk) inet_bind2_bucket_match_addr_any() argument 896 inet_bind2_bucket_find(const struct inet_bind_hashbucket * head,const struct net * net,unsigned short port,int l3mdev,const struct sock * sk) inet_bind2_bucket_find() argument 908 inet_bhash2_addr_any_hashbucket(const struct sock * sk,const struct net * net,int port) inet_bhash2_addr_any_hashbucket() argument 923 inet_update_saddr(struct sock * sk,void * saddr,int family) inet_update_saddr() argument 936 __inet_bhash2_update_saddr(struct sock * sk,void * saddr,int family,bool reset) __inet_bhash2_update_saddr() argument 1018 inet_bhash2_update_saddr(struct sock * sk,void * saddr,int family) inet_bhash2_update_saddr() argument 1023 inet_bhash2_reset_saddr(struct sock * sk) inet_bhash2_reset_saddr() argument 1043 __inet_hash_connect(struct inet_timewait_death_row * death_row,struct sock * sk,u64 port_offset,u32 hash_port0,int (* check_established)(struct inet_timewait_death_row *,struct sock *,__u16,struct inet_timewait_sock **,bool rcu_lookup,u32 hash)) __inet_hash_connect() argument 1260 inet_hash_connect(struct inet_timewait_death_row * death_row,struct sock * sk) inet_hash_connect() 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/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/dccp/ |
| H A D | input.c | |
| H A D | proto.c | |
| H A D | timer.c | |
| /linux/net/iucv/ |
| H A D | af_iucv.c | 57 #define __iucv_sock_wait(sk, condition, timeo, ret) \ 62 prepare_to_wait(sk_sleep(sk), &__wait, TASK_INTERRUPTIBLE); \ 72 release_sock(sk); \ 74 lock_sock(sk); \ 75 ret = sock_error(sk); \ 79 finish_wait(sk_sleep(sk), &__wait); \ 82 #define iucv_sock_wait(sk, condition, timeo) \ 86 __iucv_sock_wait(sk, condition, timeo, __ret); \ 92 static void iucv_sock_kill(struct sock *sk); 93 static void iucv_sock_close(struct sock *sk); 56 __iucv_sock_wait(sk,condition,timeo,ret) global() argument 81 iucv_sock_wait(sk,condition,timeo) global() argument 152 iucv_sock_in_state(struct sock * sk,int state,int state2) iucv_sock_in_state() argument 165 iucv_below_msglim(struct sock * sk) iucv_below_msglim() argument 181 iucv_sock_wake_msglim(struct sock * sk) iucv_sock_wake_msglim() argument 269 struct sock *sk; __iucv_get_sock_by_name() local 278 iucv_sock_destruct(struct sock * sk) iucv_sock_destruct() argument 297 struct sock *sk; iucv_sock_cleanup_listen() local 308 iucv_sock_link(struct iucv_sock_list * l,struct sock * sk) iucv_sock_link() argument 315 iucv_sock_unlink(struct iucv_sock_list * l,struct sock * sk) iucv_sock_unlink() argument 323 iucv_sock_kill(struct sock * sk) iucv_sock_kill() argument 334 iucv_sever_path(struct sock * sk,int with_user_data) iucv_sever_path() argument 354 iucv_send_ctrl(struct sock * sk,u8 flags) iucv_send_ctrl() argument 380 iucv_sock_close(struct sock * sk) iucv_sock_close() argument 443 iucv_sock_init(struct sock * sk,struct sock * parent) iucv_sock_init() argument 453 struct sock *sk; iucv_sock_alloc() local 495 iucv_accept_enqueue(struct sock * parent,struct sock * sk) iucv_accept_enqueue() argument 508 iucv_accept_unlink(struct sock * sk) iucv_accept_unlink() argument 525 struct sock *sk; iucv_accept_dequeue() local 572 struct sock *sk = sock->sk; iucv_sock_bind() local 650 iucv_sock_autobind(struct sock * sk) iucv_sock_autobind() argument 675 struct sock *sk = sock->sk; afiucv_path_connect() local 722 struct sock *sk = sock->sk; iucv_sock_connect() local 777 struct sock *sk = sock->sk; iucv_sock_listen() local 804 struct sock *sk = sock->sk, *nsk; iucv_sock_accept() local 858 struct sock *sk = sock->sk; iucv_sock_getname() local 904 struct sock *sk = sock->sk; iucv_sock_sendmsg() local 1143 iucv_process_message(struct sock * sk,struct sk_buff * skb,struct iucv_path * path,struct iucv_message * msg) iucv_process_message() argument 1204 iucv_process_message_q(struct sock * sk) iucv_process_message_q() argument 1225 struct sock *sk = sock->sk; iucv_sock_recvmsg() local 1352 struct sock *sk; iucv_accept_poll() local 1367 struct sock *sk = sock->sk; iucv_sock_poll() local 1405 struct sock *sk = sock->sk; iucv_sock_shutdown() local 1473 struct sock *sk = sock->sk; iucv_sock_release() local 1490 struct sock *sk = sock->sk; iucv_sock_setsockopt() local 1540 struct sock *sk = sock->sk; iucv_sock_getsockopt() local 1601 struct sock *sk, *nsk; iucv_callback_connreq() local 1694 struct sock *sk = path->private; iucv_callback_connack() local 1702 struct sock *sk = path->private; iucv_callback_rx() local 1747 struct sock *sk = path->private; iucv_callback_txdone() local 1791 struct sock *sk = path->private; iucv_callback_connrej() local 1809 struct sock *sk = path->private; iucv_callback_shutdown() local 1852 afiucv_hs_callback_syn(struct sock * sk,struct sk_buff * skb) afiucv_hs_callback_syn() argument 1917 afiucv_hs_callback_synack(struct sock * sk,struct sk_buff * skb) afiucv_hs_callback_synack() argument 1938 afiucv_hs_callback_synfin(struct sock * sk,struct sk_buff * skb) afiucv_hs_callback_synfin() argument 1958 afiucv_hs_callback_fin(struct sock * sk,struct sk_buff * skb) afiucv_hs_callback_fin() argument 1981 afiucv_hs_callback_win(struct sock * sk,struct sk_buff * skb) afiucv_hs_callback_win() argument 1999 afiucv_hs_callback_rx(struct sock * sk,struct sk_buff * skb) afiucv_hs_callback_rx() argument 2048 struct sock *sk; afiucv_hs_rcv() local 2150 afiucv_hs_callback_txnotify(struct sock * sk,enum iucv_tx_notify n) afiucv_hs_callback_txnotify() argument 2193 struct sock *sk; afiucv_netdev_event() local 2245 struct sock *sk; iucv_sock_create() local [all...] |
| /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)->tx_work_scheduled = false; in rawsock_write_queue_purge() 44 spin_unlock_bh(&sk->sk_write_queue.lock); in rawsock_write_queue_purge() [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 = sock->sk; in llcp_sock_bind() local 62 struct nfc_llcp_sock *llcp_sock = nfc_llcp_sock(sk); in llcp_sock_bind() [all …]
|
| /linux/net/phonet/ |
| H A D | socket.c | 30 struct sock *sk = sock->sk; in pn_socket_release() local 32 if (sk) { in pn_socket_release() 33 sock->sk = NULL; in pn_socket_release() 34 sk->sk_prot->close(sk, 0); in pn_socket_release() 132 int pn_sock_hash(struct sock *sk) in pn_sock_hash() argument 134 struct hlist_head *hlist = pn_hash_list(pn_sk(sk)->sobject); in pn_sock_hash() 137 sk_add_node_rcu(sk, hlist); in pn_sock_hash() 144 void pn_sock_unhash(struct sock *sk) in pn_sock_unhash() argument 147 sk_del_node_init_rcu(sk); in pn_sock_unhash() 149 pn_sock_unbind_all_res(sk); in pn_sock_unhash() [all …]
|
| H A D | pep.c | 69 static struct sk_buff *pep_alloc_skb(struct sock *sk, const void *payload, in pep_alloc_skb() argument 75 skb_set_owner_w(skb, sk); in pep_alloc_skb() 85 static int pep_reply(struct sock *sk, struct sk_buff *oskb, u8 code, in pep_reply() argument 93 skb = pep_alloc_skb(sk, data, len, priority); in pep_reply() 104 return pn_skb_send(sk, skb, &peer); in pep_reply() 107 static int pep_indicate(struct sock *sk, u8 id, u8 code, in pep_indicate() argument 110 struct pep_sock *pn = pep_sk(sk); in pep_indicate() 114 skb = pep_alloc_skb(sk, data, len, priority); in pep_indicate() 123 return pn_skb_send(sk, skb, NULL); in pep_indicate() 128 static int pipe_handler_request(struct sock *sk, u8 id, u8 code, in pipe_handler_request() argument [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() 44 skb_set_owner_r(skb, sk); in x25_queue_rx_frame() 77 skb_set_owner_r(skbn, sk); in x25_queue_rx_frame() 78 skb_queue_tail(&sk->sk_receive_queue, skbn); in x25_queue_rx_frame() 79 if (!sock_flag(sk, SOCK_DEAD)) in x25_queue_rx_frame() 80 sk->sk_data_ready(sk); in x25_queue_rx_frame() 90 static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) in x25_state1_machine() argument 94 struct x25_sock *x25 = x25_sk(sk); in x25_state1_machine() 99 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/net/mptcp/ |
| H A D | protocol.c | 31 static unsigned int mptcp_inq_hint(const struct sock *sk); 50 static void __mptcp_destroy_sock(struct sock *sk); 51 static void mptcp_check_send_data_fin(struct sock *sk); 64 static const struct proto_ops *mptcp_fallback_tcp_ops(const struct sock *sk) in mptcp_fallback_tcp_ops() argument 66 unsigned short family = READ_ONCE(sk->sk_family); in mptcp_fallback_tcp_ops() 106 struct sock *sk = (struct sock *)msk; in __mptcp_socket_create() local 110 err = mptcp_subflow_create_socket(sk, sk->sk_family, &ssock); in __mptcp_socket_create() 114 msk->scaling_ratio = tcp_sk(ssock->sk)->scaling_ratio; in __mptcp_socket_create() 115 WRITE_ONCE(msk->first, ssock->sk); in __mptcp_socket_create() 116 subflow = mptcp_subflow_ctx(ssock->sk); in __mptcp_socket_create() [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 …]
|