Home
last modified time | relevance | path

Searched refs:sk (Results 1 – 25 of 1015) sorted by relevance

12345678910>>...41

/openbmc/linux/include/net/
H A Dsock.h82 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ argument
87 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG() argument
529 void (*sk_state_change)(struct sock *sk);
530 void (*sk_data_ready)(struct sock *sk);
531 void (*sk_write_space)(struct sock *sk);
532 void (*sk_error_report)(struct sock *sk);
533 int (*sk_backlog_rcv)(struct sock *sk,
536 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk,
540 void (*sk_destruct)(struct sock *sk);
581 static inline bool sk_user_data_is_nocopy(const struct sock *sk) in sk_user_data_is_nocopy() argument
[all …]
H A Dllc_c_ev.h128 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 Dllc_c_ac.h97 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 Dtcp.h55 void tcp_time_wait(struct sock *sk, int state, int timeo);
264 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure() argument
266 if (mem_cgroup_sockets_enabled && sk->sk_memcg && in tcp_under_memory_pressure()
267 mem_cgroup_under_socket_pressure(sk->sk_memcg)) in tcp_under_memory_pressure()
289 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory() argument
291 if (sk->sk_wmem_queued > SOCK_MIN_SNDBUF && in tcp_out_of_memory()
292 sk_memory_allocated(sk) > sk_prot_mem_limits(sk, 2)) in tcp_out_of_memory()
297 static inline void tcp_wmem_free_skb(struct sock *sk, struct sk_buff *skb) in tcp_wmem_free_skb() argument
299 sk_wmem_queued_add(sk, -skb->truesize); in tcp_wmem_free_skb()
301 sk_mem_uncharge(sk, skb->truesize); in tcp_wmem_free_skb()
[all …]
/openbmc/linux/net/bluetooth/
H A Diso.c30 struct sock *sk; member
42 static void iso_sock_close(struct sock *sk);
43 static void iso_sock_kill(struct sock *sk);
46 #define iso_pi(sk) ((struct iso_pinfo *)sk) argument
80 static bool iso_match_sid(struct sock *sk, void *data);
81 static bool iso_match_sync_handle(struct sock *sk, void *data);
82 static void iso_sock_disconn(struct sock *sk);
84 typedef bool (*iso_sock_match_t)(struct sock *sk, void *data);
95 if (!conn || !bt_sock_linked(&iso_sk_list, conn->sk)) in iso_sock_hold()
107 struct sock *sk; iso_sock_timeout() local
125 iso_sock_set_timer(struct sock * sk,long timeout) iso_sock_set_timer() argument
135 iso_sock_clear_timer(struct sock * sk) iso_sock_clear_timer() argument
172 iso_chan_del(struct sock * sk,int err) iso_chan_del() argument
205 iso_match_conn_sync_handle(struct sock * sk,void * data) iso_match_conn_sync_handle() argument
218 struct sock *sk; iso_conn_del() local
265 __iso_chan_add(struct iso_conn * conn,struct sock * sk,struct sock * parent) __iso_chan_add() argument
287 iso_chan_add(struct iso_conn * conn,struct sock * sk,struct sock * parent) iso_chan_add() argument
307 iso_connect_bis(struct sock * sk) iso_connect_bis() argument
398 iso_connect_cis(struct sock * sk) iso_connect_cis() argument
488 iso_sock_get_qos(struct sock * sk) iso_sock_get_qos() argument
496 iso_send_frame(struct sock * sk,struct sk_buff * skb) iso_send_frame() argument
526 struct sock *sk; iso_recv_frame() local
550 struct sock *sk; __iso_get_sock_listen_by_addr() local
569 struct sock *sk; __iso_get_sock_listen_by_sid() local
598 struct sock *sk = NULL, *sk1 = NULL; iso_get_sock_listen() local
641 struct sock *sk = NULL; iso_get_sock_big() local
677 iso_sock_destruct(struct sock * sk) iso_sock_destruct() argument
687 struct sock *sk; iso_sock_cleanup_listen() local
713 iso_sock_kill(struct sock * sk) iso_sock_kill() argument
727 iso_sock_disconn(struct sock * sk) iso_sock_disconn() argument
759 __iso_sock_close(struct sock * sk) __iso_sock_close() argument
796 iso_sock_close(struct sock * sk) iso_sock_close() argument
805 iso_sock_init(struct sock * sk,struct sock * parent) iso_sock_init() argument
854 struct sock *sk; iso_sock_alloc() local
875 struct sock *sk; iso_sock_create() local
898 struct sock *sk = sock->sk; iso_sock_bind_bc() local
930 struct sock *sk = sock->sk; iso_sock_bind() local
978 struct sock *sk = sock->sk; iso_sock_connect() local
1023 iso_listen_bis(struct sock * sk) iso_listen_bis() argument
1062 iso_listen_cis(struct sock * sk) iso_listen_cis() argument
1080 struct sock *sk = sock->sk; iso_sock_listen() local
1119 struct sock *sk = sock->sk, *ch; iso_sock_accept() local
1178 struct sock *sk = sock->sk; iso_sock_getname() local
1198 struct sock *sk = sock->sk; iso_sock_sendmsg() local
1282 iso_conn_big_sync(struct sock * sk) iso_conn_big_sync() argument
1308 struct sock *sk = sock->sk; iso_sock_recvmsg() local
1432 struct sock *sk = sock->sk; iso_sock_setsockopt() local
1518 struct sock *sk = sock->sk; iso_sock_getsockopt() local
1586 struct sock *sk = sock->sk; iso_sock_shutdown() local
1631 struct sock *sk = sock->sk; iso_sock_release() local
1653 iso_sock_ready(struct sock * sk) iso_sock_ready() argument
1672 iso_match_big(struct sock * sk,void * data) iso_match_big() argument
1679 iso_match_pa_sync_flag(struct sock * sk,void * data) iso_match_pa_sync_flag() argument
1687 struct sock *sk = conn->sk; iso_conn_ready() local
1806 iso_match_sid(struct sock * sk,void * data) iso_match_sid() argument
1813 iso_match_sync_handle(struct sock * sk,void * data) iso_match_sync_handle() argument
1820 iso_match_sync_handle_pa_report(struct sock * sk,void * data) iso_match_sync_handle_pa_report() argument
1834 struct sock *sk; iso_connect_ind() local
2125 struct sock *sk; iso_debugfs_show() local
[all...]
H A Dsco.c49 struct sock *sk; member
59 static void sco_sock_close(struct sock *sk);
60 static void sco_sock_kill(struct sock *sk);
63 #define sco_pi(sk) ((struct sco_pinfo *) sk) argument
81 if (!conn || !bt_sock_linked(&sco_sk_list, conn->sk)) in sco_sock_hold()
84 sock_hold(conn->sk); in sco_sock_hold()
86 return conn->sk; in sco_sock_hold()
93 struct sock *sk; in sco_sock_timeout() local
100 sk in sco_sock_timeout()
115 sco_sock_set_timer(struct sock * sk,long timeout) sco_sock_set_timer() argument
125 sco_sock_clear_timer(struct sock * sk) sco_sock_clear_timer() argument
168 sco_chan_del(struct sock * sk,int err) sco_chan_del() argument
196 struct sock *sk; sco_conn_del() local
223 __sco_chan_add(struct sco_conn * conn,struct sock * sk,struct sock * parent) __sco_chan_add() argument
235 sco_chan_add(struct sco_conn * conn,struct sock * sk,struct sock * parent) sco_chan_add() argument
250 sco_connect(struct sock * sk) sco_connect() argument
320 sco_send_frame(struct sock * sk,struct sk_buff * skb) sco_send_frame() argument
338 struct sock *sk; sco_recv_frame() local
362 struct sock *sk; __sco_get_sock_listen_by_addr() local
380 struct sock *sk = NULL, *sk1 = NULL; sco_get_sock_listen() local
402 sco_sock_destruct(struct sock * sk) sco_sock_destruct() argument
412 struct sock *sk; sco_sock_cleanup_listen() local
429 sco_sock_kill(struct sock * sk) sco_sock_kill() argument
442 __sco_sock_close(struct sock * sk) __sco_sock_close() argument
478 sco_sock_close(struct sock * sk) sco_sock_close() argument
486 sco_sock_init(struct sock * sk,struct sock * parent) sco_sock_init() argument
506 struct sock *sk; sco_sock_alloc() local
528 struct sock *sk; sco_sock_create() local
551 struct sock *sk = sock->sk; sco_sock_bind() local
584 struct sock *sk = sock->sk; sco_sock_connect() local
619 struct sock *sk = sock->sk; sco_sock_listen() local
661 struct sock *sk = sock->sk, *ch; sco_sock_accept() local
716 struct sock *sk = sock->sk; sco_sock_getname() local
733 struct sock *sk = sock->sk; sco_sock_sendmsg() local
816 struct sock *sk = sock->sk; sco_sock_recvmsg() local
838 struct sock *sk = sock->sk; sco_sock_setsockopt() local
974 struct sock *sk = sock->sk; sco_sock_getsockopt_old() local
1036 struct sock *sk = sock->sk; sco_sock_getsockopt() local
1217 struct sock *sk = sock->sk; sco_sock_shutdown() local
1247 struct sock *sk = sock->sk; sco_sock_release() local
1272 struct sock *sk = conn->sk; sco_conn_ready() local
1331 struct sock *sk; sco_connect_ind() local
1409 struct sock *sk; sco_debugfs_show() local
[all...]
H A Daf_bluetooth.c71 void bt_sock_reclassify_lock(struct sock *sk, int proto) in bt_sock_reclassify_lock() argument
73 BUG_ON(!sk); in bt_sock_reclassify_lock()
74 BUG_ON(!sock_allow_reclassification(sk)); in bt_sock_reclassify_lock()
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() local
148 sk = sk_alloc(net, PF_BLUETOOTH, prio, prot, kern); in bt_sock_alloc()
149 if (!sk) in bt_sock_alloc()
152 sock_init_data(sock, sk); in bt_sock_alloc()
153 INIT_LIST_HEAD(&bt_sk(sk)->accept_q); in bt_sock_alloc()
[all …]
/openbmc/linux/net/core/
H A Dsock.c154 static void sock_def_write_space_wfree(struct sock *sk);
155 static void sock_def_write_space(struct sock *sk);
167 bool sk_ns_capable(const struct sock *sk, in sk_ns_capable() argument
170 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable()
184 bool sk_capable(const struct sock *sk, int cap) in sk_capable() argument
186 return sk_ns_capable(sk, &init_user_ns, cap); in sk_capable()
199 bool sk_net_capable(const struct sock *sk, int cap) in sk_net_capable() argument
201 return sk_ns_capable(sk, sock_net(sk)->user_ns, cap); in sk_net_capable()
305 void sk_set_memalloc(struct sock *sk) in sk_set_memalloc() argument
307 sock_set_flag(sk, SOCK_MEMALLOC); in sk_set_memalloc()
[all …]
/openbmc/linux/net/bluetooth/rfcomm/
H A Dsock.c43 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->sk_rcvbuf) in rfcomm_sk_data_ready()
66 struct sock *sk = d->owner, *parent; in rfcomm_sk_state_change() local
68 if (!sk) in rfcomm_sk_state_change()
[all …]
/openbmc/linux/net/netrom/
H A Dnr_timer.c35 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 …]
/openbmc/linux/net/ipv4/
H A Dtcp_timer.c26 static u32 tcp_clamp_rto_to_user_timeout(const struct sock *sk) in tcp_clamp_rto_to_user_timeout() argument
28 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_rto_to_user_timeout()
32 start_ts = tcp_sk(sk)->retrans_stamp; in tcp_clamp_rto_to_user_timeout()
36 elapsed = tcp_time_stamp(tcp_sk(sk)) - start_ts; in tcp_clamp_rto_to_user_timeout()
44 u32 tcp_clamp_probe0_to_user_timeout(const struct sock *sk, u32 when) in tcp_clamp_probe0_to_user_timeout() argument
46 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_probe0_to_user_timeout()
70 static void tcp_write_err(struct sock *sk) in tcp_write_err() argument
72 tcp_done_with_error(sk, READ_ONCE(sk->sk_err_soft) ? : ETIMEDOUT); in tcp_write_err()
73 __NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPABORTONTIMEOUT); in tcp_write_err()
100 static int tcp_out_of_resources(struct sock *sk, bool do_reset) in tcp_out_of_resources() argument
[all …]
H A Dinet_hashtables.c47 static u32 sk_ehashfn(const struct sock *sk) in sk_ehashfn() argument
50 if (sk->sk_family == AF_INET6 && in sk_ehashfn()
51 !ipv6_addr_v4mapped(&sk->sk_v6_daddr)) in sk_ehashfn()
52 return inet6_ehashfn(sock_net(sk), in sk_ehashfn()
53 &sk->sk_v6_rcv_saddr, sk->sk_num, in sk_ehashfn()
54 &sk->sk_v6_daddr, sk->sk_dport); in sk_ehashfn()
56 return inet_ehashfn(sock_net(sk), in sk_ehashfn()
57 sk->sk_rcv_saddr, sk->sk_num, in sk_ehashfn()
58 sk->sk_daddr, sk->sk_dport); in sk_ehashfn()
107 const struct sock *sk) in inet_bind2_bucket_init() argument
[all …]
/openbmc/linux/net/smc/
H A Dsmc_close.c41 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 …]
/openbmc/linux/net/rose/
H A Drose_timer.c32 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 Drose_in.c37 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 …]
/openbmc/linux/net/caif/
H A Dcaif_socket.c48 struct sock sk; /* must be first member */ member
87 static void caif_read_lock(struct sock *sk) in caif_read_lock() argument
90 cf_sk = container_of(sk, struct caifsock, sk); in caif_read_lock()
94 static void caif_read_unlock(struct sock *sk) in caif_read_unlock() argument
97 cf_sk = container_of(sk, struct caifsock, sk); in caif_read_unlock()
104 return cf_sk->sk.sk_rcvbuf / 4; in sk_rcvbuf_lowwater()
107 static void caif_flow_ctrl(struct sock *sk, int mode) in caif_flow_ctrl() argument
110 cf_sk = container_of(sk, struct caifsock, sk); in caif_flow_ctrl()
119 static void caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in caif_queue_rcv_skb() argument
123 struct sk_buff_head *list = &sk->sk_receive_queue; in caif_queue_rcv_skb()
[all …]
/openbmc/linux/net/dccp/
H A Dinput.c22 static void dccp_enqueue_skb(struct sock *sk, struct sk_buff *skb) in dccp_enqueue_skb() argument
25 __skb_queue_tail(&sk->sk_receive_queue, skb); in dccp_enqueue_skb()
26 skb_set_owner_r(skb, sk); in dccp_enqueue_skb()
27 sk->sk_data_ready(sk); in dccp_enqueue_skb()
30 static void dccp_fin(struct sock *sk, struct sk_buff *skb) in dccp_fin() argument
38 sk->sk_shutdown = SHUTDOWN_MASK; in dccp_fin()
39 sock_set_flag(sk, SOCK_DONE); in dccp_fin()
40 dccp_enqueue_skb(sk, skb); in dccp_fin()
43 static int dccp_rcv_close(struct sock *sk, struct sk_buff *skb) in dccp_rcv_close() argument
47 switch (sk->sk_state) { in dccp_rcv_close()
[all …]
H A Dproto.c78 void dccp_set_state(struct sock *sk, const int state) in dccp_set_state() argument
80 const int oldstate = sk->sk_state; in dccp_set_state()
82 dccp_pr_debug("%s(%p) %s --> %s\n", dccp_role(sk), sk, in dccp_set_state()
92 dccp_feat_list_purge(&dccp_sk(sk)->dccps_featneg); in dccp_set_state()
100 sk->sk_prot->unhash(sk); in dccp_set_state()
101 if (inet_csk(sk)->icsk_bind_hash != NULL && in dccp_set_state()
102 !(sk->sk_userlocks & SOCK_BINDPORT_LOCK)) in dccp_set_state()
103 inet_put_port(sk); in dccp_set_state()
113 inet_sk_set_state(sk, state); in dccp_set_state()
118 static void dccp_finish_passive_close(struct sock *sk) in dccp_finish_passive_close() argument
[all …]
H A Dtimer.c20 static void dccp_write_err(struct sock *sk) in dccp_write_err() argument
22 sk->sk_err = READ_ONCE(sk->sk_err_soft) ? : ETIMEDOUT; in dccp_write_err()
23 sk_error_report(sk); in dccp_write_err()
25 dccp_send_reset(sk, DCCP_RESET_CODE_ABORTED); in dccp_write_err()
26 dccp_done(sk); in dccp_write_err()
31 static int dccp_write_timeout(struct sock *sk) in dccp_write_timeout() argument
33 const struct inet_connection_sock *icsk = inet_csk(sk); in dccp_write_timeout()
36 if (sk->sk_state == DCCP_REQUESTING || sk->sk_state == DCCP_PARTOPEN) { in dccp_write_timeout()
38 dst_negative_advice(sk); in dccp_write_timeout()
63 dst_negative_advice(sk); in dccp_write_timeout()
[all …]
/openbmc/linux/net/iucv/
H A Daf_iucv.c56 #define __iucv_sock_wait(sk, condition, timeo, ret) \ argument
61 prepare_to_wait(sk_sleep(sk), &__wait, TASK_INTERRUPTIBLE); \
71 release_sock(sk); \
73 lock_sock(sk); \
74 ret = sock_error(sk); \
78 finish_wait(sk_sleep(sk), &__wait); \
81 #define iucv_sock_wait(sk, condition, timeo) \ argument
85 __iucv_sock_wait(sk, condition, timeo, __ret); \
91 static void iucv_sock_kill(struct sock *sk);
92 static void iucv_sock_close(struct sock *sk);
[all …]
/openbmc/linux/net/x25/
H A Dx25_timer.c27 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 del_timer(&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 …]
H A Dx25_in.c32 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 …]
/openbmc/linux/net/phonet/
H A Dsocket.c30 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 …]
/openbmc/linux/net/nfc/
H A Drawsock.c23 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 Dllcp_sock.c17 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 …]

12345678910>>...41