Home
last modified time | relevance | path

Searched defs:sk (Results 1 – 200 of 424) sorted by relevance

123

/linux-4.4.14/net/llc/
Dllc_c_ev.c75 static u16 llc_util_nr_inside_tx_window(struct sock *sk, u8 nr) in llc_util_nr_inside_tx_window()
99 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_conn_req()
107 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_data_req()
115 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_disc_req()
123 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_rst_req()
131 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_local_busy_detected()
139 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_local_busy_cleared()
147 int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_rx_bad_pdu()
152 int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_rx_disc_cmd_pbit_set_x()
160 int llc_conn_ev_rx_dm_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_rx_dm_rsp_fbit_set_x()
[all …]
Dllc_c_ac.c45 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_clear_remote_busy()
61 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_conn_ind()
69 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_conn_confirm()
77 static int llc_conn_ac_data_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_data_confirm()
85 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_data_ind()
91 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_disc_ind()
119 int llc_conn_ac_disc_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_disc_confirm()
128 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_rst_ind()
167 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_rst_confirm()
176 int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk, in llc_conn_ac_clear_remote_busy_if_f_eq_1()
[all …]
Dllc_conn.c59 int llc_conn_state_process(struct sock *sk, struct sk_buff *skb) in llc_conn_state_process()
196 void llc_conn_send_pdu(struct sock *sk, struct sk_buff *skb) in llc_conn_send_pdu()
212 void llc_conn_rtn_pdu(struct sock *sk, struct sk_buff *skb) in llc_conn_rtn_pdu()
229 void llc_conn_resend_i_pdu_as_cmd(struct sock *sk, u8 nr, u8 first_p_bit) in llc_conn_resend_i_pdu_as_cmd()
272 void llc_conn_resend_i_pdu_as_rsp(struct sock *sk, u8 nr, u8 first_f_bit) in llc_conn_resend_i_pdu_as_rsp()
312 int llc_conn_remove_acked_pdus(struct sock *sk, u8 nr, u16 *how_many_unacked) in llc_conn_remove_acked_pdus()
346 static void llc_conn_send_pdus(struct sock *sk) in llc_conn_send_pdus()
375 static int llc_conn_service(struct sock *sk, struct sk_buff *skb) in llc_conn_service()
405 static struct llc_conn_state_trans *llc_qualify_conn_ev(struct sock *sk, in llc_qualify_conn_ev()
452 static int llc_exec_conn_trans_actions(struct sock *sk, in llc_exec_conn_trans_actions()
[all …]
Daf_llc.c95 static inline u8 llc_ui_header_len(struct sock *sk, struct sockaddr_llc *addr) in llc_ui_header_len()
115 static int llc_ui_send_data(struct sock* sk, struct sk_buff *skb, int noblock) in llc_ui_send_data()
132 static void llc_ui_sk_init(struct socket *sock, struct sock *sk) in llc_ui_sk_init()
160 struct sock *sk; in llc_ui_create() local
188 struct sock *sk = sock->sk; in llc_ui_release() local
253 struct sock *sk = sock->sk; in llc_ui_autobind() local
306 struct sock *sk = sock->sk; in llc_ui_bind() local
399 struct sock *sk = sock->sk; in llc_ui_shutdown() local
435 struct sock *sk = sock->sk; in llc_ui_connect() local
507 struct sock *sk = sock->sk; in llc_ui_listen() local
[all …]
Dllc_proc.c37 struct sock *sk = NULL; in llc_get_sk_idx() local
70 struct sock *sk = NULL; in laddr_hash_next() local
82 struct sock* sk, *next; in llc_seq_next() local
117 struct sock *sk = v; in llc_seq_stop() local
128 struct sock* sk; in llc_seq_socket_show() local
177 struct sock* sk; in llc_seq_core_show() local
Dllc_sap.c47 struct sk_buff *llc_alloc_frame(struct sock *sk, struct net_device *dev, in llc_alloc_frame()
69 void llc_save_primitive(struct sock *sk, struct sk_buff *skb, u8 prim) in llc_save_primitive()
287 struct sock *sk) in llc_sap_rcv()
299 const struct sock *sk) in llc_dgram_match()
355 const struct sock *sk) in llc_mcast_match()
395 struct sock *sk, *stack[count]; in llc_sap_mcast() local
432 struct sock *sk = llc_lookup_dgram(sap, &laddr); in llc_sap_handler() local
Dllc_if.c42 int llc_build_and_send_pkt(struct sock *sk, struct sk_buff *skb) in llc_build_and_send_pkt()
79 int llc_establish_connection(struct sock *sk, u8 *lmac, u8 *dmac, u8 dsap) in llc_establish_connection()
125 int llc_send_disc(struct sock *sk) in llc_send_disc()
/linux-4.4.14/net/netrom/
Dnr_timer.c38 void nr_init_timers(struct sock *sk) in nr_init_timers()
52 void nr_start_t1timer(struct sock *sk) in nr_start_t1timer()
59 void nr_start_t2timer(struct sock *sk) in nr_start_t2timer()
66 void nr_start_t4timer(struct sock *sk) in nr_start_t4timer()
73 void nr_start_idletimer(struct sock *sk) in nr_start_idletimer()
81 void nr_start_heartbeat(struct sock *sk) in nr_start_heartbeat()
86 void nr_stop_t1timer(struct sock *sk) in nr_stop_t1timer()
91 void nr_stop_t2timer(struct sock *sk) in nr_stop_t2timer()
96 void nr_stop_t4timer(struct sock *sk) in nr_stop_t4timer()
101 void nr_stop_idletimer(struct sock *sk) in nr_stop_idletimer()
[all …]
Dnr_out.c35 void nr_output(struct sock *sk, struct sk_buff *skb) in nr_output()
82 static void nr_send_iframe(struct sock *sk, struct sk_buff *skb) in nr_send_iframe()
100 void nr_send_nak_frame(struct sock *sk) in nr_send_nak_frame()
125 void nr_kick(struct sock *sk) in nr_kick()
188 void nr_transmit_buffer(struct sock *sk, struct sk_buff *skb) in nr_transmit_buffer()
223 void nr_establish_data_link(struct sock *sk) in nr_establish_data_link()
241 void nr_enquiry_response(struct sock *sk) in nr_enquiry_response()
259 void nr_check_iframes_acked(struct sock *sk, unsigned short nr) in nr_check_iframes_acked()
Dnr_subr.c34 void nr_clear_queues(struct sock *sk) in nr_clear_queues()
49 void nr_frames_acked(struct sock *sk, unsigned short nr) in nr_frames_acked()
71 void nr_requeue_frames(struct sock *sk) in nr_requeue_frames()
88 int nr_validate_nr(struct sock *sk, unsigned short nr) in nr_validate_nr()
104 int nr_in_rx_window(struct sock *sk, unsigned short ns) in nr_in_rx_window()
122 void nr_write_internal(struct sock *sk, int frametype) in nr_write_internal()
262 void nr_disconnect(struct sock *sk, int reason) in nr_disconnect()
Daf_netrom.c94 static void nr_remove_socket(struct sock *sk) in nr_remove_socket()
137 static void nr_insert_socket(struct sock *sk) in nr_insert_socket()
218 struct sock *sk; in nr_find_next_circuit() local
246 struct sock *sk=(struct sock *)data; in nr_destroy_timer() local
260 void nr_destroy_socket(struct sock *sk) in nr_destroy_socket()
302 struct sock *sk = sock->sk; in nr_setsockopt() local
354 struct sock *sk = sock->sk; in nr_getsockopt() local
403 struct sock *sk = sock->sk; in nr_listen() local
427 struct sock *sk; in nr_create() local
473 struct sock *sk; in nr_make_new() local
[all …]
Dnr_in.c32 static int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) in nr_queue_rx_frame()
74 static int nr_state1_machine(struct sock *sk, struct sk_buff *skb, in nr_state1_machine()
118 static int nr_state2_machine(struct sock *sk, struct sk_buff *skb, in nr_state2_machine()
149 static int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype) in nr_state3_machine()
280 int nr_process_rx_frame(struct sock *sk, struct sk_buff *skb) in nr_process_rx_frame()
/linux-4.4.14/net/x25/
Dx25_timer.c32 void x25_init_timers(struct sock *sk) in x25_init_timers()
43 void x25_start_heartbeat(struct sock *sk) in x25_start_heartbeat()
48 void x25_stop_heartbeat(struct sock *sk) in x25_stop_heartbeat()
53 void x25_start_t2timer(struct sock *sk) in x25_start_t2timer()
60 void x25_start_t21timer(struct sock *sk) in x25_start_t21timer()
67 void x25_start_t22timer(struct sock *sk) in x25_start_t22timer()
74 void x25_start_t23timer(struct sock *sk) in x25_start_t23timer()
81 void x25_stop_timer(struct sock *sk) in x25_stop_timer()
86 unsigned long x25_display_timer(struct sock *sk) in x25_display_timer()
98 struct sock *sk = (struct sock *)param; in x25_heartbeat_expiry() local
[all …]
Dx25_subr.c39 void x25_clear_queues(struct sock *sk) in x25_clear_queues()
56 void x25_frames_acked(struct sock *sk, unsigned short nr) in x25_frames_acked()
73 void x25_requeue_frames(struct sock *sk) in x25_requeue_frames()
95 int x25_validate_nr(struct sock *sk, unsigned short nr) in x25_validate_nr()
114 void x25_write_internal(struct sock *sk, int frametype) in x25_write_internal()
270 int x25_decode(struct sock *sk, struct sk_buff *skb, int *ns, int *nr, int *q, in x25_decode()
349 void x25_disconnect(struct sock *sk, int reason, unsigned char cause, in x25_disconnect()
377 void x25_check_rbuf(struct sock *sk) in x25_check_rbuf()
Daf_x25.c200 static void x25_remove_socket(struct sock *sk) in x25_remove_socket()
265 static void x25_insert_socket(struct sock *sk) in x25_insert_socket()
353 struct sock *sk; in x25_new_lci() local
389 static void __x25_destroy_socket(struct sock *sk) in __x25_destroy_socket()
425 void x25_destroy_socket_from_timer(struct sock *sk) in x25_destroy_socket_from_timer()
443 struct sock *sk = sock->sk; in x25_setsockopt() local
469 struct sock *sk = sock->sk; in x25_getsockopt() local
497 struct sock *sk = sock->sk; in x25_listen() local
521 struct sock *sk = sk_alloc(net, AF_X25, GFP_ATOMIC, &x25_proto, kern); in x25_alloc_socket() local
540 struct sock *sk; in x25_create() local
[all …]
Dx25_in.c37 static int x25_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) in x25_queue_rx_frame()
92 static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) in x25_state1_machine()
171 static int x25_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype) in x25_state2_machine()
204 static int x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, … in x25_state3_machine()
340 static int x25_state4_machine(struct sock *sk, struct sk_buff *skb, int frametype) in x25_state4_machine()
381 int x25_process_rx_frame(struct sock *sk, struct sk_buff *skb) in x25_process_rx_frame()
411 int x25_backlog_rcv(struct sock *sk, struct sk_buff *skb) in x25_backlog_rcv()
Dx25_out.c52 int x25_output(struct sock *sk, struct sk_buff *skb) in x25_output()
121 static void x25_send_iframe(struct sock *sk, struct sk_buff *skb) in x25_send_iframe()
141 void x25_kick(struct sock *sk) in x25_kick()
218 void x25_enquiry_response(struct sock *sk) in x25_enquiry_response()
/linux-4.4.14/net/rose/
Drose_timer.c35 void rose_start_heartbeat(struct sock *sk) in rose_start_heartbeat()
46 void rose_start_t1timer(struct sock *sk) in rose_start_t1timer()
59 void rose_start_t2timer(struct sock *sk) in rose_start_t2timer()
72 void rose_start_t3timer(struct sock *sk) in rose_start_t3timer()
85 void rose_start_hbtimer(struct sock *sk) in rose_start_hbtimer()
98 void rose_start_idletimer(struct sock *sk) in rose_start_idletimer()
113 void rose_stop_heartbeat(struct sock *sk) in rose_stop_heartbeat()
118 void rose_stop_timer(struct sock *sk) in rose_stop_timer()
123 void rose_stop_idletimer(struct sock *sk) in rose_stop_idletimer()
130 struct sock *sk = (struct sock *)param; in rose_heartbeat_expiry() local
[all …]
Drose_in.c39 static int rose_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) in rose_state1_machine()
76 static int rose_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype) in rose_state2_machine()
104 static int rose_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr,… in rose_state3_machine()
214 static int rose_state4_machine(struct sock *sk, struct sk_buff *skb, int frametype) in rose_state4_machine()
251 static int rose_state5_machine(struct sock *sk, struct sk_buff *skb, int frametype) in rose_state5_machine()
263 int rose_process_rx_frame(struct sock *sk, struct sk_buff *skb) in rose_process_rx_frame()
Daf_rose.c154 static void rose_remove_socket(struct sock *sk) in rose_remove_socket()
233 static void rose_insert_socket(struct sock *sk) in rose_insert_socket()
332 void rose_destroy_socket(struct sock *sk) in rose_destroy_socket()
372 struct sock *sk = sock->sk; in rose_setsockopt() local
432 struct sock *sk = sock->sk; in rose_getsockopt() local
489 struct sock *sk = sock->sk; in rose_listen() local
515 struct sock *sk; in rose_create() local
557 struct sock *sk; in rose_make_new() local
603 struct sock *sk = sock->sk; in rose_release() local
658 struct sock *sk = sock->sk; in rose_bind() local
[all …]
Drose_out.c33 static void rose_send_iframe(struct sock *sk, struct sk_buff *skb) in rose_send_iframe()
48 void rose_kick(struct sock *sk) in rose_kick()
112 void rose_enquiry_response(struct sock *sk) in rose_enquiry_response()
Drose_subr.c35 void rose_clear_queues(struct sock *sk) in rose_clear_queues()
46 void rose_frames_acked(struct sock *sk, unsigned short nr) in rose_frames_acked()
63 void rose_requeue_frames(struct sock *sk) in rose_requeue_frames()
85 int rose_validate_nr(struct sock *sk, unsigned short nr) in rose_validate_nr()
102 void rose_write_internal(struct sock *sk, int frametype) in rose_write_internal()
530 void rose_disconnect(struct sock *sk, int reason, int cause, int diagnostic) in rose_disconnect()
/linux-4.4.14/net/dccp/
Dqpolicy.c18 static void qpolicy_simple_push(struct sock *sk, struct sk_buff *skb) in qpolicy_simple_push()
23 static bool qpolicy_simple_full(struct sock *sk) in qpolicy_simple_full()
29 static struct sk_buff *qpolicy_simple_top(struct sock *sk) in qpolicy_simple_top()
39 static struct sk_buff *qpolicy_prio_best_skb(struct sock *sk) in qpolicy_prio_best_skb()
49 static struct sk_buff *qpolicy_prio_worst_skb(struct sock *sk) in qpolicy_prio_worst_skb()
59 static bool qpolicy_prio_full(struct sock *sk) in qpolicy_prio_full()
96 void dccp_qpolicy_push(struct sock *sk, struct sk_buff *skb) in dccp_qpolicy_push()
101 bool dccp_qpolicy_full(struct sock *sk) in dccp_qpolicy_full()
106 void dccp_qpolicy_drop(struct sock *sk, struct sk_buff *skb) in dccp_qpolicy_drop()
114 struct sk_buff *dccp_qpolicy_top(struct sock *sk) in dccp_qpolicy_top()
[all …]
Doutput.c25 static inline void dccp_event_ack_sent(struct sock *sk) in dccp_event_ack_sent()
31 static struct sk_buff *dccp_skb_entail(struct sock *sk, struct sk_buff *skb) in dccp_skb_entail()
45 static int dccp_transmit_skb(struct sock *sk, struct sk_buff *skb) in dccp_transmit_skb()
162 unsigned int dccp_sync_mss(struct sock *sk, u32 pmtu) in dccp_sync_mss()
198 void dccp_write_space(struct sock *sk) in dccp_write_space()
220 static int dccp_wait_for_ccid(struct sock *sk, unsigned long delay) in dccp_wait_for_ccid()
244 static void dccp_xmit_packet(struct sock *sk) in dccp_xmit_packet()
307 void dccp_flush_write_queue(struct sock *sk, long *time_budget) in dccp_flush_write_queue()
346 void dccp_write_xmit(struct sock *sk) in dccp_write_xmit()
380 int dccp_retransmit_skb(struct sock *sk) in dccp_retransmit_skb()
[all …]
Dinput.c26 static void dccp_enqueue_skb(struct sock *sk, struct sk_buff *skb) in dccp_enqueue_skb()
34 static void dccp_fin(struct sock *sk, struct sk_buff *skb) in dccp_fin()
47 static int dccp_rcv_close(struct sock *sk, struct sk_buff *skb) in dccp_rcv_close()
93 static int dccp_rcv_closereq(struct sock *sk, struct sk_buff *skb) in dccp_rcv_closereq()
149 static void dccp_rcv_reset(struct sock *sk, struct sk_buff *skb) in dccp_rcv_reset()
163 static void dccp_handle_ackvec_processing(struct sock *sk, struct sk_buff *skb) in dccp_handle_ackvec_processing()
174 static void dccp_deliver_input_to_ccids(struct sock *sk, struct sk_buff *skb) in dccp_deliver_input_to_ccids()
189 static int dccp_check_seqno(struct sock *sk, struct sk_buff *skb) in dccp_check_seqno()
287 static int __dccp_rcv_established(struct sock *sk, struct sk_buff *skb, in __dccp_rcv_established()
368 int dccp_rcv_established(struct sock *sk, struct sk_buff *skb, in dccp_rcv_established()
[all …]
Dproto.c77 void dccp_set_state(struct sock *sk, const int state) in dccp_set_state()
117 static void dccp_finish_passive_close(struct sock *sk) in dccp_finish_passive_close()
135 void dccp_done(struct sock *sk) in dccp_done()
173 int dccp_init_sock(struct sock *sk, const __u8 ctl_sock_initialized) in dccp_init_sock()
200 void dccp_destroy_sock(struct sock *sk) in dccp_destroy_sock()
234 static inline int dccp_listen_start(struct sock *sk, int backlog) in dccp_listen_start()
251 int dccp_disconnect(struct sock *sk, int flags) in dccp_disconnect()
313 struct sock *sk = sock->sk; in dccp_poll() local
359 int dccp_ioctl(struct sock *sk, int cmd, unsigned long arg) in dccp_ioctl()
395 static int dccp_setsockopt_service(struct sock *sk, const __be32 service, in dccp_setsockopt_service()
[all …]
Dtimer.c24 static void dccp_write_err(struct sock *sk) in dccp_write_err()
35 static int dccp_write_timeout(struct sock *sk) in dccp_write_timeout()
87 static void dccp_retransmit_timer(struct sock *sk) in dccp_retransmit_timer()
130 struct sock *sk = (struct sock *)data; in dccp_write_timer() local
166 struct sock *sk = (struct sock *)data; in dccp_keepalive_timer() local
175 struct sock *sk = (struct sock *)data; in dccp_delack_timer() local
225 struct sock *sk = (struct sock *)data; in dccp_write_xmitlet() local
241 void dccp_init_xmit_timers(struct sock *sk) in dccp_init_xmit_timers()
Dipv4.c42 int dccp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in dccp_v4_connect()
147 static inline void dccp_do_pmtu_discovery(struct sock *sk, in dccp_do_pmtu_discovery()
190 static void dccp_do_redirect(struct sk_buff *skb, struct sock *sk) in dccp_do_redirect()
198 void dccp_req_err(struct sock *sk, u64 seq) in dccp_req_err()
243 struct sock *sk; in dccp_v4_err() local
365 void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb) in dccp_v4_send_check()
391 struct sock *dccp_v4_request_recv_sock(const struct sock *sk, in dccp_v4_request_recv_sock()
447 static struct dst_entry* dccp_v4_route_skb(struct net *net, struct sock *sk, in dccp_v4_route_skb()
472 static int dccp_v4_send_response(const struct sock *sk, struct request_sock *req) in dccp_v4_send_response()
501 static void dccp_v4_ctl_send_reset(const struct sock *sk, struct sk_buff *rxskb) in dccp_v4_ctl_send_reset()
[all …]
Dipv6.c51 static inline void dccp_v6_send_check(struct sock *sk, struct sk_buff *skb) in dccp_v6_send_check()
76 struct sock *sk; in dccp_v6_err() local
184 static int dccp_v6_send_response(const struct sock *sk, struct request_sock *req) in dccp_v6_send_response()
242 static void dccp_v6_ctl_send_reset(const struct sock *sk, struct sk_buff *rxskb) in dccp_v6_ctl_send_reset()
298 static int dccp_v6_conn_request(struct sock *sk, struct sk_buff *skb) in dccp_v6_conn_request()
385 static struct sock *dccp_v6_request_recv_sock(const struct sock *sk, in dccp_v6_request_recv_sock()
546 static int dccp_v6_do_rcv(struct sock *sk, struct sk_buff *skb) in dccp_v6_do_rcv()
645 struct sock *sk; in dccp_v6_rcv() local
759 static int dccp_v6_connect(struct sock *sk, struct sockaddr *uaddr, in dccp_v6_connect()
959 static int dccp_v6_init_sock(struct sock *sk) in dccp_v6_init_sock()
[all …]
Dccid.h166 static inline int ccid_hc_tx_send_packet(struct ccid *ccid, struct sock *sk, in ccid_hc_tx_send_packet()
174 static inline void ccid_hc_tx_packet_sent(struct ccid *ccid, struct sock *sk, in ccid_hc_tx_packet_sent()
181 static inline void ccid_hc_rx_packet_recv(struct ccid *ccid, struct sock *sk, in ccid_hc_rx_packet_recv()
188 static inline void ccid_hc_tx_packet_recv(struct ccid *ccid, struct sock *sk, in ccid_hc_tx_packet_recv()
202 static inline int ccid_hc_tx_parse_options(struct ccid *ccid, struct sock *sk, in ccid_hc_tx_parse_options()
214 static inline int ccid_hc_rx_parse_options(struct ccid *ccid, struct sock *sk, in ccid_hc_rx_parse_options()
222 static inline int ccid_hc_rx_insert_options(struct ccid *ccid, struct sock *sk, in ccid_hc_rx_insert_options()
230 static inline void ccid_hc_rx_get_info(struct ccid *ccid, struct sock *sk, in ccid_hc_rx_get_info()
237 static inline void ccid_hc_tx_get_info(struct ccid *ccid, struct sock *sk, in ccid_hc_tx_get_info()
244 static inline int ccid_hc_rx_getsockopt(struct ccid *ccid, struct sock *sk, in ccid_hc_rx_getsockopt()
[all …]
Dminisocks.c35 void dccp_time_wait(struct sock *sk, int state, int timeo) in dccp_time_wait()
75 struct sock *dccp_create_openreq_child(const struct sock *sk, in dccp_create_openreq_child()
141 struct sock *dccp_check_req(struct sock *sk, struct sk_buff *skb, in dccp_check_req()
239 void dccp_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb, in dccp_reqsk_send_ack()
Dccid.c63 int ccid_getsockopt_builtin_ccids(struct sock *sk, int len, in ccid_getsockopt_builtin_ccids()
143 struct ccid *ccid_new(const u8 id, struct sock *sk, bool rx) in ccid_new()
176 void ccid_hc_rx_delete(struct ccid *ccid, struct sock *sk) in ccid_hc_rx_delete()
185 void ccid_hc_tx_delete(struct ccid *ccid, struct sock *sk) in ccid_hc_tx_delete()
Dfeat.c41 static int dccp_hdlr_ccid(struct sock *sk, u64 ccid, bool rx) in dccp_hdlr_ccid()
59 static int dccp_hdlr_seq_win(struct sock *sk, u64 seq_win, bool rx) in dccp_hdlr_seq_win()
75 static int dccp_hdlr_ack_ratio(struct sock *sk, u64 ratio, bool rx) in dccp_hdlr_ack_ratio()
84 static int dccp_hdlr_ackvec(struct sock *sk, u64 enable, bool rx) in dccp_hdlr_ackvec()
101 static int dccp_hdlr_ndp(struct sock *sk, u64 enable, bool rx) in dccp_hdlr_ndp()
117 static int dccp_hdlr_min_cscov(struct sock *sk, u64 cscov, bool rx) in dccp_hdlr_min_cscov()
308 static int __dccp_feat_activate(struct sock *sk, const int idx, in __dccp_feat_activate()
356 static int dccp_feat_activate(struct sock *sk, u8 feat_num, bool local, in dccp_feat_activate()
752 int dccp_feat_register_sp(struct sock *sk, u8 feat, u8 is_local, in dccp_feat_register_sp()
771 u64 dccp_feat_nn_get(struct sock *sk, u8 feat) in dccp_feat_nn_get()
[all …]
Ddiag.c19 static void dccp_get_info(struct sock *sk, struct tcp_info *info) in dccp_get_info()
42 static void dccp_diag_get_info(struct sock *sk, struct inet_diag_msg *r, in dccp_diag_get_info()
Doptions.c51 int dccp_parse_options(struct sock *sk, struct dccp_request_sock *dreq, in dccp_parse_options()
312 static int dccp_insert_option_ndp(struct sock *sk, struct sk_buff *skb) in dccp_insert_option_ndp()
399 static int dccp_insert_option_ackvec(struct sock *sk, struct sk_buff *skb) in dccp_insert_option_ackvec()
549 int dccp_insert_options(struct sock *sk, struct sk_buff *skb) in dccp_insert_options()
Ddccp.h256 static inline void dccp_clear_xmit_timers(struct sock *sk) in dccp_clear_xmit_timers()
330 static inline bool dccp_bad_service_code(const struct sock *sk, in dccp_bad_service_code()
420 static inline void dccp_update_gsr(struct sock *sk, u64 seq) in dccp_update_gsr()
448 static inline void dccp_update_gss(struct sock *sk, u64 seq) in dccp_update_gss()
461 static inline int dccp_ackvec_pending(const struct sock *sk) in dccp_ackvec_pending()
467 static inline int dccp_ack_pending(const struct sock *sk) in dccp_ack_pending()
/linux-4.4.14/include/net/
Dsock.h97 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ argument
102 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG()
462 #define __sk_user_data(sk) ((*((void __rcu **)&(sk)->sk_user_data))) argument
464 #define rcu_dereference_sk_user_data(sk) rcu_dereference(__sk_user_data((sk))) argument
465 #define rcu_assign_sk_user_data(sk, ptr) rcu_assign_pointer(__sk_user_data((sk)), ptr) argument
478 static inline int sk_peek_offset(struct sock *sk, int flags) in sk_peek_offset()
486 static inline void sk_peek_offset_bwd(struct sock *sk, int val) in sk_peek_offset_bwd()
496 static inline void sk_peek_offset_fwd(struct sock *sk, int val) in sk_peek_offset_fwd()
530 static inline struct sock *sk_next(const struct sock *sk) in sk_next()
536 static inline struct sock *sk_nulls_next(const struct sock *sk) in sk_nulls_next()
[all …]
Dtcp.h293 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure()
317 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory()
327 static inline bool tcp_too_many_orphans(struct sock *sk, int shift) in tcp_too_many_orphans()
379 static inline void tcp_dec_quickack_mode(struct sock *sk, in tcp_dec_quickack_mode()
500 static inline void tcp_synq_overflow(const struct sock *sk) in tcp_synq_overflow()
510 static inline bool tcp_synq_no_recent_overflow(const struct sock *sk) in tcp_synq_no_recent_overflow()
576 static inline void tcp_clear_xmit_timers(struct sock *sk) in tcp_clear_xmit_timers()
623 static inline void tcp_bound_rto(const struct sock *sk) in tcp_bound_rto()
646 static inline void tcp_fast_path_check(struct sock *sk) in tcp_fast_path_check()
658 static inline u32 tcp_rto_min(struct sock *sk) in tcp_rto_min()
[all …]
Dbusy_poll.h50 static inline unsigned long sk_busy_loop_end_time(struct sock *sk) in sk_busy_loop_end_time()
61 static inline bool sk_can_busy_loop(struct sock *sk) in sk_can_busy_loop()
78 static inline bool sk_busy_loop(struct sock *sk, int nonblock) in sk_busy_loop()
128 static inline void sk_mark_napi_id(struct sock *sk, struct sk_buff *skb) in sk_mark_napi_id()
144 static inline bool sk_can_busy_loop(struct sock *sk) in sk_can_busy_loop()
154 static inline void sk_mark_napi_id(struct sock *sk, struct sk_buff *skb) in sk_mark_napi_id()
163 static inline bool sk_busy_loop(struct sock *sk, int nonblock) in sk_busy_loop()
Dinet_connection_sock.h147 static inline struct inet_connection_sock *inet_csk(const struct sock *sk) in inet_csk()
152 static inline void *inet_csk_ca(const struct sock *sk) in inet_csk_ca()
174 static inline void inet_csk_schedule_ack(struct sock *sk) in inet_csk_schedule_ack()
179 static inline int inet_csk_ack_scheduled(const struct sock *sk) in inet_csk_ack_scheduled()
184 static inline void inet_csk_delack_init(struct sock *sk) in inet_csk_delack_init()
196 static inline void inet_csk_clear_xmit_timer(struct sock *sk, const int what) in inet_csk_clear_xmit_timer()
221 static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what, in inet_csk_reset_xmit_timer()
282 static inline void inet_csk_reqsk_queue_added(struct sock *sk) in inet_csk_reqsk_queue_added()
287 static inline int inet_csk_reqsk_queue_len(const struct sock *sk) in inet_csk_reqsk_queue_len()
292 static inline int inet_csk_reqsk_queue_young(const struct sock *sk) in inet_csk_reqsk_queue_young()
[all …]
Dip.h73 struct sock *sk; member
144 static inline struct sk_buff *ip_finish_skb(struct sock *sk, struct flowi4 *fl4) in ip_finish_skb()
154 static inline __u8 get_rtconn_flags(struct ipcm_cookie* ipc, struct sock* sk) in get_rtconn_flags()
281 int ip_dont_fragment(const struct sock *sk, const struct dst_entry *dst) in ip_dont_fragment()
290 static inline bool ip_sk_accept_pmtu(const struct sock *sk) in ip_sk_accept_pmtu()
296 static inline bool ip_sk_use_pmtu(const struct sock *sk) in ip_sk_use_pmtu()
301 static inline bool ip_sk_ignore_df(const struct sock *sk) in ip_sk_ignore_df()
322 struct sock *sk = skb->sk; in ip_skb_dst_mtu() local
337 struct sock *sk, int segs) in ip_select_ident_segs()
359 struct sock *sk) in ip_select_ident()
[all …]
Dinet_sock.h103 static inline struct inet_request_sock *inet_rsk(const struct request_sock *sk) in inet_rsk()
108 static inline u32 inet_request_mark(const struct sock *sk, struct sk_buff *skb) in inet_request_mark()
160 struct sock sk; member
220 static inline struct sock *sk_to_full_sk(struct sock *sk) in sk_to_full_sk()
230 static inline const struct sock *sk_const_to_full_sk(const struct sock *sk) in sk_const_to_full_sk()
244 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk()
282 static inline __u8 inet_sk_flowi_flags(const struct sock *sk) in inet_sk_flowi_flags()
291 static inline void inet_inc_convert_csum(struct sock *sk) in inet_inc_convert_csum()
296 static inline void inet_dec_convert_csum(struct sock *sk) in inet_dec_convert_csum()
302 static inline bool inet_get_convert_csum(struct sock *sk) in inet_get_convert_csum()
Dip6_route.h71 const struct sock *sk, in ip6_route_output()
144 static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst, in ip6_dst_store()
187 static inline bool ip6_sk_accept_pmtu(const struct sock *sk) in ip6_sk_accept_pmtu()
193 static inline bool ip6_sk_ignore_df(const struct sock *sk) in ip6_sk_ignore_df()
Dtimewait_sock.h27 static inline int twsk_unique(struct sock *sk, struct sock *sktw, void *twp) in twsk_unique()
34 static inline void twsk_destructor(struct sock *sk) in twsk_destructor()
Dcls_cgroup.h44 static inline void sock_update_classid(struct sock *sk) in sock_update_classid()
77 static inline void sock_update_classid(struct sock *sk) in sock_update_classid()
Dudp.h131 static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb) in udp_csum_outgoing()
180 static inline void udp_lib_hash(struct sock *sk) in udp_lib_hash()
188 static inline void udp_lib_close(struct sock *sk, long timeout) in udp_lib_close()
291 #define UDPX_INC_STATS_BH(sk, field) \ argument
299 #define UDPX_INC_STATS_BH(sk, field) UDP_INC_STATS_BH(sock_net(sk), field, 0) argument
Droute.h46 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE)) argument
47 #define RT_CONN_FLAGS_TOS(sk,tos) (RT_TOS(tos) | sock_flag(sk, SOCK_LOCALROUTE)) argument
149 struct sock *sk, in ip_route_output_ports()
262 struct sock *sk) in ip_route_connect_init()
277 struct sock *sk) in ip_route_connect()
308 struct sock *sk) in ip_route_newports()
Dinet_ecn.h51 static inline void INET_ECN_xmit(struct sock *sk) in INET_ECN_xmit()
58 static inline void INET_ECN_dontxmit(struct sock *sk) in INET_ECN_dontxmit()
69 #define IP6_ECN_flow_xmit(sk, label) do { \ argument
Dinet_hashtables.h196 static inline int inet_sk_listen_hashfn(const struct sock *sk) in inet_sk_listen_hashfn()
307 struct sock *sk = __inet_lookup_established(net, hashinfo, in __inet_lookup() local
320 struct sock *sk; in inet_lookup() local
334 struct sock *sk = skb_steal_sock(skb); in __inet_lookup_skb() local
350 static inline void sk_daddr_set(struct sock *sk, __be32 addr) in sk_daddr_set()
358 static inline void sk_rcv_saddr_set(struct sock *sk, __be32 addr) in sk_rcv_saddr_set()
Dudplite.h27 static inline int udplite_sk_init(struct sock *sk) in udplite_sk_init()
71 static inline __wsum udplite_csum_outgoing(struct sock *sk, struct sk_buff *skb) in udplite_csum_outgoing()
Dinet6_hashtables.h69 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup() local
84 struct sock *sk = skb_steal_sock(skb); in __inet6_lookup_skb() local
/linux-4.4.14/net/vmw_vsock/
Dvmci_transport_notify_qstate.c81 vmci_transport_handle_read(struct sock *sk, in vmci_transport_handle_read()
90 vmci_transport_handle_wrote(struct sock *sk, in vmci_transport_handle_wrote()
98 static void vsock_block_update_write_window(struct sock *sk) in vsock_block_update_write_window()
108 static int vmci_transport_send_read_notification(struct sock *sk) in vmci_transport_send_read_notification()
148 static void vmci_transport_notify_pkt_socket_init(struct sock *sk) in vmci_transport_notify_pkt_socket_init()
167 vmci_transport_notify_pkt_poll_in(struct sock *sk, in vmci_transport_notify_pkt_poll_in()
188 vmci_transport_notify_pkt_poll_out(struct sock *sk, in vmci_transport_notify_pkt_poll_out()
210 struct sock *sk, in vmci_transport_notify_pkt_recv_init()
242 struct sock *sk, in vmci_transport_notify_pkt_recv_pre_block()
262 struct sock *sk, in vmci_transport_notify_pkt_recv_post_dequeue()
[all …]
Dvmci_transport_notify.c113 vmci_transport_handle_waiting_read(struct sock *sk, in vmci_transport_handle_waiting_read()
143 vmci_transport_handle_waiting_write(struct sock *sk, in vmci_transport_handle_waiting_write()
173 vmci_transport_handle_read(struct sock *sk, in vmci_transport_handle_read()
188 static bool send_waiting_read(struct sock *sk, u64 room_needed) in send_waiting_read()
230 static bool send_waiting_write(struct sock *sk, u64 room_needed) in send_waiting_write()
267 static int vmci_transport_send_read_notification(struct sock *sk) in vmci_transport_send_read_notification()
309 vmci_transport_handle_wrote(struct sock *sk, in vmci_transport_handle_wrote()
321 static void vmci_transport_notify_pkt_socket_init(struct sock *sk) in vmci_transport_notify_pkt_socket_init()
346 vmci_transport_notify_pkt_poll_in(struct sock *sk, in vmci_transport_notify_pkt_poll_in()
370 vmci_transport_notify_pkt_poll_out(struct sock *sk, in vmci_transport_notify_pkt_poll_out()
[all …]
Daf_vsock.c169 struct sock *sk = sk_vsock(vsk); in vsock_auto_bind() local
288 struct sock *sk; in vsock_find_bound_socket() local
304 struct sock *sk; in vsock_find_connected_socket() local
339 void vsock_for_each_connected_socket(void (*fn)(struct sock *sk)) in vsock_for_each_connected_socket()
416 static bool vsock_is_accept_queue_empty(struct sock *sk) in vsock_is_accept_queue_empty()
422 static bool vsock_is_pending(struct sock *sk) in vsock_is_pending()
428 static int vsock_send_shutdown(struct sock *sk, int mode) in vsock_send_shutdown()
435 struct sock *sk; in vsock_pending_work() local
541 static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr) in __vsock_bind()
586 struct sock *sk; in __vsock_create() local
[all …]
Dvmci_transport.c72 struct sock *sk; member
276 vmci_transport_send_control_pkt(struct sock *sk, in vmci_transport_send_control_pkt()
321 static int vmci_transport_send_reset(struct sock *sk, in vmci_transport_send_reset()
332 static int vmci_transport_send_negotiate(struct sock *sk, size_t size) in vmci_transport_send_negotiate()
342 static int vmci_transport_send_negotiate2(struct sock *sk, size_t size, in vmci_transport_send_negotiate2()
352 static int vmci_transport_send_qp_offer(struct sock *sk, in vmci_transport_send_qp_offer()
361 static int vmci_transport_send_attach(struct sock *sk, in vmci_transport_send_attach()
406 int vmci_transport_send_wrote(struct sock *sk) in vmci_transport_send_wrote()
414 int vmci_transport_send_read(struct sock *sk) in vmci_transport_send_read()
422 int vmci_transport_send_waiting_write(struct sock *sk, in vmci_transport_send_waiting_write()
[all …]
/linux-4.4.14/net/core/
Dsock.c159 bool sk_ns_capable(const struct sock *sk, in sk_ns_capable()
176 bool sk_capable(const struct sock *sk, int cap) in sk_capable()
191 bool sk_net_capable(const struct sock *sk, int cap) in sk_net_capable()
342 void sk_set_memalloc(struct sock *sk) in sk_set_memalloc()
350 void sk_clear_memalloc(struct sock *sk) in sk_clear_memalloc()
367 int __sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) in __sk_backlog_rcv()
425 static bool sock_needs_netstamp(const struct sock *sk) in sock_needs_netstamp()
436 static void sock_disable_timestamp(struct sock *sk, unsigned long flags) in sock_disable_timestamp()
447 int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in sock_queue_rcv_skb()
487 int sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested) in sk_receive_skb()
[all …]
Dstream.c28 void sk_stream_write_space(struct sock *sk) in sk_stream_write_space()
55 int sk_stream_wait_connect(struct sock *sk, long *timeo_p) in sk_stream_wait_connect()
89 static inline int sk_stream_closing(struct sock *sk) in sk_stream_closing()
95 void sk_stream_wait_close(struct sock *sk, long timeout) in sk_stream_wait_close()
117 int sk_stream_wait_memory(struct sock *sk, long *timeo_p) in sk_stream_wait_memory()
180 int sk_stream_error(struct sock *sk, int flags, int err) in sk_stream_error()
190 void sk_stream_kill_queues(struct sock *sk) in sk_stream_kill_queues()
Dsock_diag.c22 static u64 sock_gen_cookie(struct sock *sk) in sock_gen_cookie()
34 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie) in sock_diag_check_cookie()
49 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie) in sock_diag_save_cookie()
58 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype) in sock_diag_put_meminfo()
75 int sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk, in sock_diag_put_filterinfo()
114 struct sock *sk; member
129 struct sock *sk = bsk->sk; in sock_diag_broadcast_destroy_work() local
157 void sock_diag_broadcast_destroy(struct sock *sk) in sock_diag_broadcast_destroy()
Ddatagram.c66 static inline int connection_based(struct sock *sk) in connection_based()
86 static int wait_for_more_packets(struct sock *sk, int *err, long *timeo_p, in wait_for_more_packets()
194 struct sk_buff *__skb_recv_datagram(struct sock *sk, unsigned int flags, in __skb_recv_datagram()
268 struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned int flags, in skb_recv_datagram()
278 void skb_free_datagram(struct sock *sk, struct sk_buff *skb) in skb_free_datagram()
285 void skb_free_datagram_locked(struct sock *sk, struct sk_buff *skb) in skb_free_datagram_locked()
325 int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags) in skb_kill_datagram()
755 struct sock *sk = sock->sk; in datagram_poll() local
Dfilter.c66 int sk_filter(struct sock *sk, struct sk_buff *skb) in sk_filter()
908 void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp) in sk_filter_uncharge()
919 bool sk_filter_charge(struct sock *sk, struct sk_filter *fp) in sk_filter_charge()
1142 static int __sk_attach_prog(struct bpf_prog *prog, struct sock *sk, in __sk_attach_prog()
1177 int __sk_attach_filter(struct sock_fprog *fprog, struct sock *sk, in __sk_attach_filter()
1226 int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk) in sk_attach_filter()
1231 int sk_attach_bpf(u32 ufd, struct sock *sk) in sk_attach_bpf()
1921 int __sk_detach_filter(struct sock *sk, bool locked) in __sk_detach_filter()
1940 int sk_detach_filter(struct sock *sk) in sk_detach_filter()
1945 int sk_get_filter(struct sock *sk, struct sock_filter __user *ubuf, in sk_get_filter()
/linux-4.4.14/net/iucv/
Daf_iucv.c52 #define __iucv_sock_wait(sk, condition, timeo, ret) \ argument
77 #define iucv_sock_wait(sk, condition, timeo) \ argument
151 struct sock *sk; in afiucv_pm_freeze() local
188 struct sock *sk; in afiucv_pm_restore_thaw() local
271 static int iucv_sock_in_state(struct sock *sk, int state, int state2) in iucv_sock_in_state()
284 static inline int iucv_below_msglim(struct sock *sk) in iucv_below_msglim()
300 static void iucv_sock_wake_msglim(struct sock *sk) in iucv_sock_wake_msglim()
383 struct sock *sk; in __iucv_get_sock_by_name() local
392 static void iucv_sock_destruct(struct sock *sk) in iucv_sock_destruct()
413 struct sock *sk; in iucv_sock_cleanup_listen() local
[all …]
/linux-4.4.14/net/ieee802154/
Dsocket.c90 struct sock *sk = sock->sk; in ieee802154_sock_release() local
102 struct sock *sk = sock->sk; in ieee802154_sock_sendmsg() local
110 struct sock *sk = sock->sk; in ieee802154_sock_bind() local
121 struct sock *sk = sock->sk; in ieee802154_sock_connect() local
132 static int ieee802154_dev_ioctl(struct sock *sk, struct ifreq __user *arg, in ieee802154_dev_ioctl()
163 struct sock *sk = sock->sk; in ieee802154_sock_ioctl() local
185 static void raw_hash(struct sock *sk) in raw_hash()
193 static void raw_unhash(struct sock *sk) in raw_unhash()
201 static void raw_close(struct sock *sk, long timeout) in raw_close()
206 static int raw_bind(struct sock *sk, struct sockaddr *_uaddr, int len) in raw_bind()
[all …]
/linux-4.4.14/net/bluetooth/
Dsco.c48 struct sock *sk; member
60 #define sco_pi(sk) ((struct sco_pinfo *) sk) argument
77 struct sock *sk = (struct sock *)arg; in sco_sock_timeout() local
90 static void sco_sock_set_timer(struct sock *sk, long timeout) in sco_sock_set_timer()
96 static void sco_sock_clear_timer(struct sock *sk) in sco_sock_clear_timer()
132 static void sco_chan_del(struct sock *sk, int err) in sco_chan_del()
160 struct sock *sk; in sco_conn_del() local
186 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, in __sco_chan_add()
198 static int sco_chan_add(struct sco_conn *conn, struct sock *sk, in sco_chan_add()
213 static int sco_connect(struct sock *sk) in sco_connect()
[all …]
Dl2cap_sock.c82 struct sock *sk = sock->sk; in l2cap_sock_bind() local
176 struct sock *sk = sock->sk; in l2cap_sock_connect() local
253 struct sock *sk = sock->sk; in l2cap_sock_listen() local
306 struct sock *sk = sock->sk, *nsk; in l2cap_sock_accept() local
362 struct sock *sk = sock->sk; in l2cap_sock_getname() local
394 struct sock *sk = sock->sk; in l2cap_sock_getsockopt_old() local
497 struct sock *sk = sock->sk; in l2cap_sock_getsockopt() local
633 struct sock *sk = sock->sk; in l2cap_sock_setsockopt_old() local
745 struct sock *sk = sock->sk; in l2cap_sock_setsockopt() local
950 struct sock *sk = sock->sk; in l2cap_sock_sendmsg() local
[all …]
Dhci_sock.c45 #define hci_pi(sk) ((struct hci_pinfo *) sk) argument
56 void hci_sock_set_flag(struct sock *sk, int nr) in hci_sock_set_flag()
61 void hci_sock_clear_flag(struct sock *sk, int nr) in hci_sock_clear_flag()
66 int hci_sock_test_flag(struct sock *sk, int nr) in hci_sock_test_flag()
71 unsigned short hci_sock_get_channel(struct sock *sk) in hci_sock_get_channel()
115 static bool is_filtered_packet(struct sock *sk, struct sk_buff *skb) in is_filtered_packet()
155 struct sock *sk; in hci_send_to_sock() local
219 struct sock *sk; in hci_send_to_channel() local
386 static void send_monitor_replay(struct sock *sk) in send_monitor_replay()
481 struct sock *sk; in hci_sock_dev_event() local
[all …]
Daf_bluetooth.c67 void bt_sock_reclassify_lock(struct sock *sk, int proto) in bt_sock_reclassify_lock()
139 void bt_sock_link(struct bt_sock_list *l, struct sock *sk) in bt_sock_link()
147 void bt_sock_unlink(struct bt_sock_list *l, struct sock *sk) in bt_sock_unlink()
155 void bt_accept_enqueue(struct sock *parent, struct sock *sk) in bt_accept_enqueue()
166 void bt_accept_unlink(struct sock *sk) in bt_accept_unlink()
180 struct sock *sk; in bt_accept_dequeue() local
217 struct sock *sk = sock->sk; in bt_sock_recvmsg() local
257 static long bt_sock_data_wait(struct sock *sk, long timeo) in bt_sock_data_wait()
289 struct sock *sk = sock->sk; in bt_sock_stream_recvmsg() local
394 struct sock *sk; in bt_accept_poll() local
[all …]
Dmgmt.c279 static int read_version(struct sock *sk, struct hci_dev *hdev, void *data, in read_version()
293 static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data, in read_commands()
345 static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data, in read_index_list()
405 static int read_unconf_index_list(struct sock *sk, struct hci_dev *hdev, in read_unconf_index_list()
465 static int read_ext_index_list(struct sock *sk, struct hci_dev *hdev, in read_ext_index_list()
577 static int send_options_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev) in send_options_rsp()
585 static int read_config_info(struct sock *sk, struct hci_dev *hdev, in read_config_info()
1355 static void mgmt_init_hdev(struct sock *sk, struct hci_dev *hdev) in mgmt_init_hdev()
1371 static int read_controller_info(struct sock *sk, struct hci_dev *hdev, in read_controller_info()
1401 static int send_settings_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev) in send_settings_rsp()
[all …]
Dmgmt_util.c60 int mgmt_cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status) in mgmt_cmd_status()
90 int mgmt_cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status, in mgmt_cmd_complete()
170 struct mgmt_pending_cmd *mgmt_pending_add(struct sock *sk, u16 opcode, in mgmt_pending_add()
/linux-4.4.14/net/ipv4/
Dtcp_timer.c35 static void tcp_write_err(struct sock *sk) in tcp_write_err()
55 static int tcp_out_of_resources(struct sock *sk, bool do_reset) in tcp_out_of_resources()
86 static int tcp_orphan_retries(struct sock *sk, bool alive) in tcp_orphan_retries()
102 static void tcp_mtu_probing(struct inet_connection_sock *icsk, struct sock *sk) in tcp_mtu_probing()
131 static bool retransmits_timed_out(struct sock *sk, in retransmits_timed_out()
159 static int tcp_write_timeout(struct sock *sk) in tcp_write_timeout()
219 void tcp_delack_timer_handler(struct sock *sk) in tcp_delack_timer_handler()
268 struct sock *sk = (struct sock *)data; in tcp_delack_timer() local
284 static void tcp_probe_timer(struct sock *sk) in tcp_probe_timer()
334 static void tcp_fastopen_synack_timer(struct sock *sk) in tcp_fastopen_synack_timer()
[all …]
Dtcp_output.c72 static void tcp_event_new_data_sent(struct sock *sk, const struct sk_buff *skb) in tcp_event_new_data_sent()
97 static inline __u32 tcp_acceptable_seq(const struct sock *sk) in tcp_acceptable_seq()
121 static __u16 tcp_advertise_mss(struct sock *sk) in tcp_advertise_mss()
142 void tcp_cwnd_restart(struct sock *sk, s32 delta) in tcp_cwnd_restart()
162 struct sock *sk) in tcp_event_data_sent()
180 static inline void tcp_event_ack_sent(struct sock *sk, unsigned int pkts) in tcp_event_ack_sent()
266 static u16 tcp_select_window(struct sock *sk) in tcp_select_window()
315 static void tcp_ecn_send_synack(struct sock *sk, struct sk_buff *skb) in tcp_ecn_send_synack()
327 static void tcp_ecn_send_syn(struct sock *sk, struct sk_buff *skb) in tcp_ecn_send_syn()
350 static void tcp_ecn_clear_syn(struct sock *sk, struct sk_buff *skb) in tcp_ecn_clear_syn()
[all …]
Dtcp_input.c132 static void tcp_measure_rcv_mss(struct sock *sk, const struct sk_buff *skb) in tcp_measure_rcv_mss()
178 static void tcp_incr_quickack(struct sock *sk) in tcp_incr_quickack()
189 static void tcp_enter_quickack_mode(struct sock *sk) in tcp_enter_quickack_mode()
201 static bool tcp_in_quickack_mode(struct sock *sk) in tcp_in_quickack_mode()
287 static void tcp_sndbuf_expand(struct sock *sk) in tcp_sndbuf_expand()
342 static int __tcp_grow_window(const struct sock *sk, const struct sk_buff *skb) in __tcp_grow_window()
359 static void tcp_grow_window(struct sock *sk, const struct sk_buff *skb) in tcp_grow_window()
387 static void tcp_fixup_rcvbuf(struct sock *sk) in tcp_fixup_rcvbuf()
408 void tcp_init_buffer_space(struct sock *sk) in tcp_init_buffer_space()
444 static void tcp_clamp_window(struct sock *sk) in tcp_clamp_window()
[all …]
Dinet_connection_sock.c46 int inet_csk_bind_conflict(const struct sock *sk, in inet_csk_bind_conflict()
93 int inet_csk_get_port(struct sock *sk, unsigned short snum) in inet_csk_get_port()
255 static int inet_csk_wait_for_connect(struct sock *sk, long timeo) in inet_csk_wait_for_connect()
303 struct sock *inet_csk_accept(struct sock *sk, int flags, int *err) in inet_csk_accept()
369 void inet_csk_init_xmit_timers(struct sock *sk, in inet_csk_init_xmit_timers()
385 void inet_csk_clear_xmit_timers(struct sock *sk) in inet_csk_clear_xmit_timers()
397 void inet_csk_delete_keepalive_timer(struct sock *sk) in inet_csk_delete_keepalive_timer()
403 void inet_csk_reset_keepalive_timer(struct sock *sk, unsigned long len) in inet_csk_reset_keepalive_timer()
409 struct dst_entry *inet_csk_route_req(const struct sock *sk, in inet_csk_route_req()
440 struct dst_entry *inet_csk_route_child_sock(const struct sock *sk, in inet_csk_route_child_sock()
[all …]
Draw.c96 void raw_hash_sk(struct sock *sk) in raw_hash_sk()
110 void raw_unhash_sk(struct sock *sk) in raw_unhash_sk()
121 static struct sock *__raw_v4_lookup(struct net *net, struct sock *sk, in __raw_v4_lookup()
142 static int icmp_filter(const struct sock *sk, const struct sk_buff *skb) in icmp_filter()
170 struct sock *sk; in raw_v4_input() local
223 static void raw_err(struct sock *sk, struct sk_buff *skb, u32 info) in raw_err()
310 static int raw_rcv_skb(struct sock *sk, struct sk_buff *skb) in raw_rcv_skb()
323 int raw_rcv(struct sock *sk, struct sk_buff *skb) in raw_rcv()
338 static int raw_send_hdrinc(struct sock *sk, struct flowi4 *fl4, in raw_send_hdrinc()
486 static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) in raw_sendmsg()
[all …]
Dtcp.c329 void tcp_enter_memory_pressure(struct sock *sk) in tcp_enter_memory_pressure()
380 void tcp_init_sock(struct sock *sk) in tcp_init_sock()
432 static void tcp_tx_timestamp(struct sock *sk, struct sk_buff *skb) in tcp_tx_timestamp()
453 struct sock *sk = sock->sk; in tcp_poll() local
548 int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg) in tcp_ioctl()
616 static void skb_entail(struct sock *sk, struct sk_buff *skb) in skb_entail()
651 static bool tcp_should_autocork(struct sock *sk, struct sk_buff *skb, in tcp_should_autocork()
660 static void tcp_push(struct sock *sk, int flags, int mss_now, in tcp_push()
709 static int __tcp_splice_read(struct sock *sk, struct tcp_splice_state *tss) in __tcp_splice_read()
736 struct sock *sk = sock->sk; in tcp_splice_read() local
[all …]
Dinet_hashtables.c43 u32 sk_ehashfn(const struct sock *sk) in sk_ehashfn()
91 void inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb, in inet_bind_hash()
103 static void __inet_put_port(struct sock *sk) in __inet_put_port()
121 void inet_put_port(struct sock *sk) in inet_put_port()
129 int __inet_inherit_port(const struct sock *sk, struct sock *child) in __inet_inherit_port()
171 static inline int compute_score(struct sock *sk, struct net *net, in compute_score()
212 struct sock *sk, *result; in __inet_lookup_listener() local
263 void sock_gen_put(struct sock *sk) in sock_gen_put()
291 struct sock *sk; in __inet_lookup_established() local
334 struct sock *sk, __u16 lport, in __inet_check_established()
[all …]
Dtcp_vegas.c70 static void vegas_enable(struct sock *sk) in vegas_enable()
86 static inline void vegas_disable(struct sock *sk) in vegas_disable()
93 void tcp_vegas_init(struct sock *sk) in tcp_vegas_init()
110 void tcp_vegas_pkts_acked(struct sock *sk, u32 cnt, s32 rtt_us) in tcp_vegas_pkts_acked()
133 void tcp_vegas_state(struct sock *sk, u8 ca_state) in tcp_vegas_state()
151 void tcp_vegas_cwnd_event(struct sock *sk, enum tcp_ca_event event) in tcp_vegas_cwnd_event()
164 static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_vegas_cong_avoid()
289 size_t tcp_vegas_get_info(struct sock *sk, u32 ext, int *attr, in tcp_vegas_get_info()
Dtcp_veno.c44 static inline void veno_enable(struct sock *sk) in veno_enable()
54 static inline void veno_disable(struct sock *sk) in veno_disable()
62 static void tcp_veno_init(struct sock *sk) in tcp_veno_init()
72 static void tcp_veno_pkts_acked(struct sock *sk, u32 cnt, s32 rtt_us) in tcp_veno_pkts_acked()
94 static void tcp_veno_state(struct sock *sk, u8 ca_state) in tcp_veno_state()
111 static void tcp_veno_cwnd_event(struct sock *sk, enum tcp_ca_event event) in tcp_veno_cwnd_event()
117 static void tcp_veno_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_veno_cong_avoid()
190 static u32 tcp_veno_ssthresh(struct sock *sk) in tcp_veno_ssthresh()
Dtcp_dctcp.c84 static void dctcp_init(struct sock *sk) in dctcp_init()
112 static u32 dctcp_ssthresh(struct sock *sk) in dctcp_ssthresh()
126 static void dctcp_ce_state_0_to_1(struct sock *sk) in dctcp_ce_state_0_to_1()
156 static void dctcp_ce_state_1_to_0(struct sock *sk) in dctcp_ce_state_1_to_0()
186 static void dctcp_update_alpha(struct sock *sk, u32 flags) in dctcp_update_alpha()
231 static void dctcp_state(struct sock *sk, u8 new_state) in dctcp_state()
248 static void dctcp_update_ack_reserved(struct sock *sk, enum tcp_ca_event ev) in dctcp_update_ack_reserved()
267 static void dctcp_cwnd_event(struct sock *sk, enum tcp_ca_event ev) in dctcp_cwnd_event()
286 static size_t dctcp_get_info(struct sock *sk, u32 ext, int *attr, in dctcp_get_info()
Dtcp_ipv4.c108 int tcp_twsk_unique(struct sock *sk, struct sock *sktw, void *twp) in tcp_twsk_unique()
141 int tcp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in tcp_v4_connect()
272 void tcp_v4_mtu_reduced(struct sock *sk) in tcp_v4_mtu_reduced()
305 static void do_redirect(struct sk_buff *skb, struct sock *sk) in do_redirect()
315 void tcp_req_err(struct sock *sk, u32 seq, bool abort) in tcp_req_err()
364 struct sock *sk; in tcp_v4_err() local
561 void tcp_v4_send_check(struct sock *sk, struct sk_buff *skb) in tcp_v4_send_check()
582 static void tcp_v4_send_reset(const struct sock *sk, struct sk_buff *skb) in tcp_v4_send_reset()
783 static void tcp_v4_timewait_ack(struct sock *sk, struct sk_buff *skb) in tcp_v4_timewait_ack()
802 static void tcp_v4_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb, in tcp_v4_reqsk_send_ack()
[all …]
Dtcp_westwood.c60 static void tcp_westwood_init(struct sock *sk) in tcp_westwood_init()
102 static void tcp_westwood_pkts_acked(struct sock *sk, u32 cnt, s32 rtt) in tcp_westwood_pkts_acked()
115 static void westwood_update_window(struct sock *sk) in westwood_update_window()
161 static inline void westwood_fast_bw(struct sock *sk) in westwood_fast_bw()
178 static inline u32 westwood_acked_count(struct sock *sk) in westwood_acked_count()
215 static u32 tcp_westwood_bw_rttmin(const struct sock *sk) in tcp_westwood_bw_rttmin()
223 static void tcp_westwood_ack(struct sock *sk, u32 ack_flags) in tcp_westwood_ack()
238 static void tcp_westwood_event(struct sock *sk, enum tcp_ca_event event) in tcp_westwood_event()
259 static size_t tcp_westwood_info(struct sock *sk, u32 ext, int *attr, in tcp_westwood_info()
Dudp.c138 struct sock *sk, in udp_lib_lport_inuse()
171 struct sock *sk, in udp_lib_lport_inuse2()
208 int udp_lib_get_port(struct sock *sk, unsigned short snum, in udp_lib_get_port()
327 int udp_v4_get_port(struct sock *sk, unsigned short snum) in udp_v4_get_port()
339 static inline int compute_score(struct sock *sk, struct net *net, in compute_score()
385 static inline int compute_score2(struct sock *sk, struct net *net, in compute_score2()
446 struct sock *sk, *result; in udp4_lib_lookup2() local
499 struct sock *sk, *result; in __udp4_lib_lookup() local
594 static inline bool __udp_is_mcast_sock(struct net *net, struct sock *sk, in __udp_is_mcast_sock()
632 struct sock *sk; in __udp4_lib_err() local
[all …]
Daf_inet.c133 void inet_sock_destruct(struct sock *sk) in inet_sock_destruct()
174 static int inet_autobind(struct sock *sk) in inet_autobind()
196 struct sock *sk = sock->sk; in inet_listen() local
252 struct sock *sk; in inet_create() local
396 struct sock *sk = sock->sk; in inet_release() local
425 struct sock *sk = sock->sk; in inet_bind() local
522 struct sock *sk = sock->sk; in inet_dgram_connect() local
535 static long inet_wait_for_connect(struct sock *sk, long timeo, int writebias) in inet_wait_for_connect()
567 struct sock *sk = sock->sk; in __inet_stream_connect() local
700 struct sock *sk = sock->sk; in inet_getname() local
[all …]
Dping.c82 int ping_get_port(struct sock *sk, unsigned short ident) in ping_get_port()
148 void ping_hash(struct sock *sk) in ping_hash()
154 void ping_unhash(struct sock *sk) in ping_unhash()
174 struct sock *sk = NULL; in ping_lookup() local
254 int ping_init_sock(struct sock *sk) in ping_init_sock()
291 void ping_close(struct sock *sk, long timeout) in ping_close()
302 static int ping_check_bind_addr(struct sock *sk, struct inet_sock *isk, in ping_check_bind_addr()
380 static void ping_set_saddr(struct sock *sk, struct sockaddr *saddr) in ping_set_saddr()
395 static void ping_clear_saddr(struct sock *sk, int dif) in ping_clear_saddr()
414 int ping_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ping_bind()
[all …]
Dtcp_illinois.c56 static void rtt_reset(struct sock *sk) in rtt_reset()
68 static void tcp_illinois_init(struct sock *sk) in tcp_illinois_init()
85 static void tcp_illinois_acked(struct sock *sk, u32 pkts_acked, s32 rtt) in tcp_illinois_acked()
220 static void update_params(struct sock *sk) in update_params()
242 static void tcp_illinois_state(struct sock *sk, u8 new_state) in tcp_illinois_state()
258 static void tcp_illinois_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_illinois_cong_avoid()
293 static u32 tcp_illinois_ssthresh(struct sock *sk) in tcp_illinois_ssthresh()
303 static size_t tcp_illinois_info(struct sock *sk, u32 ext, int *attr, in tcp_illinois_info()
Dip_output.c99 int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) in __ip_local_out()
110 int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_local_out()
135 int ip_build_and_send_pkt(struct sk_buff *skb, const struct sock *sk, in ip_build_and_send_pkt()
175 static int ip_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_finish_output2()
223 static int ip_finish_output_gso(struct net *net, struct sock *sk, in ip_finish_output_gso()
267 static int ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_finish_output()
288 int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_mc_output()
350 int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_output()
380 int ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl) in ip_queue_xmit()
493 static int ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, in ip_fragment()
[all …]
Dtcp_bic.c70 static void bictcp_init(struct sock *sk) in bictcp_init()
141 static void bictcp_cong_avoid(struct sock *sk, u32 ack, u32 acked) in bictcp_cong_avoid()
161 static u32 bictcp_recalc_ssthresh(struct sock *sk) in bictcp_recalc_ssthresh()
183 static u32 bictcp_undo_cwnd(struct sock *sk) in bictcp_undo_cwnd()
191 static void bictcp_state(struct sock *sk, u8 new_state) in bictcp_state()
200 static void bictcp_acked(struct sock *sk, u32 cnt, s32 rtt) in bictcp_acked()
Dtcp_lp.c95 static void tcp_lp_init(struct sock *sk) in tcp_lp_init()
118 static void tcp_lp_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_lp_cong_avoid()
133 static u32 tcp_lp_remote_hz_estimator(struct sock *sk) in tcp_lp_remote_hz_estimator()
186 static u32 tcp_lp_owd_calculator(struct sock *sk) in tcp_lp_owd_calculator()
220 static void tcp_lp_rtt_sample(struct sock *sk, u32 rtt) in tcp_lp_rtt_sample()
263 static void tcp_lp_pkts_acked(struct sock *sk, u32 num_acked, s32 rtt_us) in tcp_lp_pkts_acked()
Dtcp_htcp.c67 static u32 htcp_cwnd_undo(struct sock *sk) in htcp_cwnd_undo()
82 static inline void measure_rtt(struct sock *sk, u32 srtt) in measure_rtt()
101 static void measure_achieved_throughput(struct sock *sk, in measure_achieved_throughput()
208 static void htcp_param_update(struct sock *sk) in htcp_param_update()
222 static u32 htcp_recalc_ssthresh(struct sock *sk) in htcp_recalc_ssthresh()
231 static void htcp_cong_avoid(struct sock *sk, u32 ack, u32 acked) in htcp_cong_avoid()
257 static void htcp_init(struct sock *sk) in htcp_init()
268 static void htcp_state(struct sock *sk, u8 new_state) in htcp_state()
Dtcp_cdg.c138 static void tcp_cdg_hystart_update(struct sock *sk) in tcp_cdg_hystart_update()
239 static bool tcp_cdg_backoff(struct sock *sk, u32 grad) in tcp_cdg_backoff()
260 static void tcp_cdg_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_cdg_cong_avoid()
297 static void tcp_cdg_acked(struct sock *sk, u32 num_acked, s32 rtt_us) in tcp_cdg_acked()
326 static u32 tcp_cdg_ssthresh(struct sock *sk) in tcp_cdg_ssthresh()
345 static u32 tcp_cdg_undo_cwnd(struct sock *sk) in tcp_cdg_undo_cwnd()
352 static void tcp_cdg_cwnd_event(struct sock *sk, const enum tcp_ca_event ev) in tcp_cdg_cwnd_event()
380 static void tcp_cdg_init(struct sock *sk) in tcp_cdg_init()
393 static void tcp_cdg_release(struct sock *sk) in tcp_cdg_release()
Dtcp_cubic.c129 static inline void bictcp_hystart_reset(struct sock *sk) in bictcp_hystart_reset()
140 static void bictcp_init(struct sock *sk) in bictcp_init()
154 static void bictcp_cwnd_event(struct sock *sk, enum tcp_ca_event event) in bictcp_cwnd_event()
336 static void bictcp_cong_avoid(struct sock *sk, u32 ack, u32 acked) in bictcp_cong_avoid()
355 static u32 bictcp_recalc_ssthresh(struct sock *sk) in bictcp_recalc_ssthresh()
374 static u32 bictcp_undo_cwnd(struct sock *sk) in bictcp_undo_cwnd()
381 static void bictcp_state(struct sock *sk, u8 new_state) in bictcp_state()
389 static void hystart_update(struct sock *sk, u32 delay) in hystart_update()
440 static void bictcp_acked(struct sock *sk, u32 cnt, s32 rtt_us) in bictcp_acked()
Dtcp_cong.c153 void tcp_assign_congestion_control(struct sock *sk) in tcp_assign_congestion_control()
182 void tcp_init_congestion_control(struct sock *sk) in tcp_init_congestion_control()
194 static void tcp_reinit_congestion_control(struct sock *sk, in tcp_reinit_congestion_control()
208 void tcp_cleanup_congestion_control(struct sock *sk) in tcp_cleanup_congestion_control()
338 int tcp_set_congestion_control(struct sock *sk, const char *name) in tcp_set_congestion_control()
417 void tcp_reno_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_reno_cong_avoid()
436 u32 tcp_reno_ssthresh(struct sock *sk) in tcp_reno_ssthresh()
Dip_sockglue.c317 int ip_ra_control(struct sock *sk, unsigned char on, in ip_ra_control()
371 void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err, in ip_icmp_error()
400 void ip_local_error(struct sock *sk, int err, __be32 daddr, __be16 port, u32 info) in ip_local_error()
451 static bool ipv4_datagram_support_cmsg(const struct sock *sk, in ipv4_datagram_support_cmsg()
480 int ip_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len) in ip_recv_error()
572 static int do_ip_setsockopt(struct sock *sk, int level, in do_ip_setsockopt()
1180 void ipv4_pktinfo_prepare(const struct sock *sk, struct sk_buff *skb) in ipv4_pktinfo_prepare()
1196 int ip_setsockopt(struct sock *sk, int level, in ip_setsockopt()
1221 int compat_ip_setsockopt(struct sock *sk, int level, int optname, in compat_ip_setsockopt()
1266 static int do_ip_getsockopt(struct sock *sk, int level, int optname, in do_ip_getsockopt()
[all …]
Dtcp_hybla.c33 static inline void hybla_recalc_param (struct sock *sk) in hybla_recalc_param()
45 static void hybla_init(struct sock *sk) in hybla_init()
67 static void hybla_state(struct sock *sk, u8 ca_state) in hybla_state()
89 static void hybla_cong_avoid(struct sock *sk, u32 ack, u32 acked) in hybla_cong_avoid()
Dinet_diag.c69 static void inet_diag_msg_common_fill(struct inet_diag_msg *r, struct sock *sk) in inet_diag_msg_common_fill()
107 int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk, in inet_sk_diag_fill()
254 static int inet_csk_diag_fill(struct sock *sk, in inet_csk_diag_fill()
265 static int inet_twsk_diag_fill(struct sock *sk, in inet_twsk_diag_fill()
302 static int inet_req_diag_fill(struct sock *sk, struct sk_buff *skb, in inet_req_diag_fill()
335 static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, in sk_diag_fill()
360 struct sock *sk; in inet_diag_dump_one_icsk() local
548 const struct sock *sk) in entry_fill_addrs()
562 int inet_diag_bc_sk(const struct nlattr *bc, struct sock *sk) in inet_diag_bc_sk()
692 static int inet_csk_diag_dump(struct sock *sk, in inet_csk_diag_dump()
[all …]
Ddatagram.c23 int __ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in __ip4_datagram_connect()
87 int ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ip4_datagram_connect()
102 void ip4_datagram_release_cb(struct sock *sk) in ip4_datagram_release_cb()
Dtcp_yeah.c42 static void tcp_yeah_init(struct sock *sk) in tcp_yeah_init()
59 static void tcp_yeah_pkts_acked(struct sock *sk, u32 pkts_acked, s32 rtt_us) in tcp_yeah_pkts_acked()
70 static void tcp_yeah_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_yeah_cong_avoid()
204 static u32 tcp_yeah_ssthresh(struct sock *sk) in tcp_yeah_ssthresh()
Dxfrm4_output.c74 int xfrm4_output_finish(struct sock *sk, struct sk_buff *skb) in xfrm4_output_finish()
85 static int __xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb) in __xfrm4_output()
99 int xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb) in xfrm4_output()
Dtcp_highspeed.c99 static void hstcp_init(struct sock *sk) in hstcp_init()
111 static void hstcp_cong_avoid(struct sock *sk, u32 ack, u32 acked) in hstcp_cong_avoid()
150 static u32 hstcp_ssthresh(struct sock *sk) in hstcp_ssthresh()
Dudp_diag.c20 static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, in sk_diag_dump()
39 struct sock *sk; in udp_dump_one() local
106 struct sock *sk; in udp_dump() local
161 static void udp_diag_get_info(struct sock *sk, struct inet_diag_msg *r, in udp_diag_get_info()
Dtcp_minisocks.c267 void tcp_time_wait(struct sock *sk, int state, int timeo) in tcp_time_wait()
353 void tcp_twsk_destructor(struct sock *sk) in tcp_twsk_destructor()
409 void tcp_ca_openreq_child(struct sock *sk, const struct dst_entry *dst) in tcp_ca_openreq_child()
444 struct sock *tcp_create_openreq_child(const struct sock *sk, in tcp_create_openreq_child()
571 struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb, in tcp_check_req()
Dtcp_scalable.c18 static void tcp_scalable_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_scalable_cong_avoid()
32 static u32 tcp_scalable_ssthresh(struct sock *sk) in tcp_scalable_ssthresh()
Dip_input.c163 struct sock *sk = ra->sk; in ip_call_ra_chain() local
192 static int ip_local_deliver_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_local_deliver_finish()
314 static int ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_rcv_finish()
Dinet_timewait_sock.c101 void __inet_twsk_hashdance(struct inet_timewait_sock *tw, struct sock *sk, in __inet_twsk_hashdance()
156 struct inet_timewait_sock *inet_twsk_alloc(const struct sock *sk, in inet_twsk_alloc()
263 struct sock *sk; in inet_twsk_purge() local
Dtcp_fastopen.c127 static struct sock *tcp_fastopen_create_child(struct sock *sk, in tcp_fastopen_create_child()
216 static bool tcp_fastopen_queue_check(struct sock *sk) in tcp_fastopen_queue_check()
256 struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb, in tcp_try_fastopen()
Dxfrm4_input.c25 static inline int xfrm4_rcv_encap_finish(struct net *net, struct sock *sk, in xfrm4_rcv_encap_finish()
69 int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb) in xfrm4_udp_encap_rcv()
Dicmp.c214 struct sock *sk; in icmp_xmit_lock() local
230 static inline void icmp_xmit_unlock(struct sock *sk) in icmp_xmit_unlock()
358 struct sock *sk; in icmp_push_reply() local
395 struct sock *sk; in icmp_reply() local
580 struct sock *sk; in icmp_send() local
1181 struct sock *sk; in icmp_sk_init() local
Dudp_tunnel.c59 struct sock *sk = sock->sk; in setup_udp_tunnel_sock() local
77 int udp_tunnel_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb, in udp_tunnel_xmit_skb()
Dtcp_metrics.c318 static struct tcp_metrics_block *tcp_get_metrics(struct sock *sk, in tcp_get_metrics()
367 void tcp_update_metrics(struct sock *sk) in tcp_update_metrics()
488 void tcp_init_metrics(struct sock *sk) in tcp_init_metrics()
610 void tcp_fetch_timewait_stamp(struct sock *sk, struct dst_entry *dst) in tcp_fetch_timewait_stamp()
633 bool tcp_remember_stamp(struct sock *sk) in tcp_remember_stamp()
668 struct sock *sk = (struct sock *) tw; in tcp_tw_remember_stamp() local
686 void tcp_fastopen_cache_get(struct sock *sk, u16 *mss, in tcp_fastopen_cache_get()
712 void tcp_fastopen_cache_set(struct sock *sk, u16 mss, in tcp_fastopen_cache_set()
/linux-4.4.14/net/sctp/
Dsocket.c109 static void sctp_enter_memory_pressure(struct sock *sk) in sctp_enter_memory_pressure()
151 struct sock *sk = asoc->base.sk; in sctp_set_owner_w() local
172 static inline int sctp_verify_addr(struct sock *sk, union sctp_addr *addr, in sctp_verify_addr()
195 struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id) in sctp_id2assoc()
233 static struct sctp_transport *sctp_addr_id2transport(struct sock *sk, in sctp_addr_id2transport()
268 static int sctp_bind(struct sock *sk, struct sockaddr *addr, int addr_len) in sctp_bind()
322 static int sctp_do_bind(struct sock *sk, union sctp_addr *addr, int len) in sctp_do_bind()
448 static int sctp_bindx_add(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_add()
498 static int sctp_send_asconf_add_ip(struct sock *sk, in sctp_send_asconf_add_ip()
622 static int sctp_bindx_rem(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_rem()
[all …]
Dendpointola.c58 struct sock *sk, in sctp_endpoint_init()
184 struct sctp_endpoint *sctp_endpoint_new(struct sock *sk, gfp_t gfp) in sctp_endpoint_new()
209 struct sock *sk = ep->base.sk; in sctp_endpoint_add_asoc() local
244 struct sock *sk; in sctp_endpoint_destroy() local
410 struct sock *sk; in sctp_endpoint_bh_rcv() local
Dipv6.c145 struct sock *sk; in sctp_v6_err() local
209 struct sock *sk = skb->sk; in sctp_v6_xmit() local
234 struct flowi *fl, struct sock *sk) in sctp_v6_get_dst()
363 static void sctp_v6_get_saddr(struct sctp_sock *sk, in sctp_v6_get_saddr()
434 static void sctp_v6_from_sk(union sctp_addr *addr, struct sock *sk) in sctp_v6_from_sk()
442 static void sctp_v6_to_sk_saddr(union sctp_addr *addr, struct sock *sk) in sctp_v6_to_sk_saddr()
456 static void sctp_v6_to_sk_daddr(union sctp_addr *addr, struct sock *sk) in sctp_v6_to_sk_daddr()
640 static struct sock *sctp_v6_create_accept_sk(struct sock *sk, in sctp_v6_create_accept_sk()
729 static void sctp_v6_ecn_capable(struct sock *sk) in sctp_v6_ecn_capable()
822 struct sock *sk = sctp_opt2sk(opt); in sctp_inet6_cmp_addr() local
Dinput.c109 struct sock *sk; in sctp_rcv() local
303 int sctp_backlog_rcv(struct sock *sk, struct sk_buff *skb) in sctp_backlog_rcv()
365 static int sctp_add_backlog(struct sock *sk, struct sk_buff *skb) in sctp_add_backlog()
389 void sctp_icmp_frag_needed(struct sock *sk, struct sctp_association *asoc, in sctp_icmp_frag_needed()
418 void sctp_icmp_redirect(struct sock *sk, struct sctp_transport *t, in sctp_icmp_redirect()
441 void sctp_icmp_proto_unreachable(struct sock *sk, in sctp_icmp_proto_unreachable()
478 struct sock *sk = NULL; in sctp_err_lookup() local
547 void sctp_err_finish(struct sock *sk, struct sctp_association *asoc) in sctp_err_finish()
574 struct sock *sk; in sctp_v4_err() local
Dprotocol.c254 static void sctp_v4_from_sk(union sctp_addr *addr, struct sock *sk) in sctp_v4_from_sk()
262 static void sctp_v4_to_sk_saddr(union sctp_addr *addr, struct sock *sk) in sctp_v4_to_sk_saddr()
268 static void sctp_v4_to_sk_daddr(union sctp_addr *addr, struct sock *sk) in sctp_v4_to_sk_daddr()
424 struct flowi *fl, struct sock *sk) in sctp_v4_get_dst()
545 static void sctp_v4_get_saddr(struct sctp_sock *sk, in sctp_v4_get_saddr()
571 static struct sock *sctp_v4_create_accept_sk(struct sock *sk, in sctp_v4_create_accept_sk()
613 static void sctp_v4_ecn_capable(struct sock *sk) in sctp_v4_ecn_capable()
658 struct sock *sk; in sctp_addr_wq_timeout_handler() local
/linux-4.4.14/net/bluetooth/rfcomm/
Dsock.c51 struct sock *sk = d->owner; in rfcomm_sk_data_ready() local
65 struct sock *sk = d->owner, *parent; in rfcomm_sk_state_change() local
110 struct sock *sk = NULL; in __rfcomm_get_listen_sock_by_addr() local
131 struct sock *sk = NULL, *sk1 = NULL; in rfcomm_get_sock_by_channel() local
155 static void rfcomm_sock_destruct(struct sock *sk) in rfcomm_sock_destruct()
177 struct sock *sk; in rfcomm_sock_cleanup_listen() local
194 static void rfcomm_sock_kill(struct sock *sk) in rfcomm_sock_kill()
207 static void __rfcomm_sock_close(struct sock *sk) in __rfcomm_sock_close()
233 static void rfcomm_sock_close(struct sock *sk) in rfcomm_sock_close()
240 static void rfcomm_sock_init(struct sock *sk, struct sock *parent) in rfcomm_sock_init()
[all …]
/linux-4.4.14/net/phonet/
Dpep.c81 static struct sk_buff *pep_alloc_skb(struct sock *sk, const void *payload, in pep_alloc_skb()
97 static int pep_reply(struct sock *sk, struct sk_buff *oskb, u8 code, in pep_reply()
119 static int pep_indicate(struct sock *sk, u8 id, u8 code, in pep_indicate()
140 static int pipe_handler_request(struct sock *sk, u8 id, u8 code, in pipe_handler_request()
159 static int pipe_handler_send_created_ind(struct sock *sk) in pipe_handler_send_created_ind()
171 static int pep_accept_conn(struct sock *sk, struct sk_buff *skb) in pep_accept_conn()
192 static int pep_reject_conn(struct sock *sk, struct sk_buff *skb, u8 code, in pep_reject_conn()
202 static int pep_ctrlreq_error(struct sock *sk, struct sk_buff *oskb, u8 code, in pep_ctrlreq_error()
229 static int pipe_snd_status(struct sock *sk, u8 type, u8 status, gfp_t priority) in pipe_snd_status()
239 static void pipe_grant_credits(struct sock *sk, gfp_t priority) in pipe_grant_credits()
[all …]
Dsocket.c41 struct sock *sk = sock->sk; in pn_socket_release() local
143 void pn_sock_hash(struct sock *sk) in pn_sock_hash()
153 void pn_sock_unhash(struct sock *sk) in pn_sock_unhash()
167 struct sock *sk = sock->sk; in pn_socket_bind() local
229 struct sock *sk = sock->sk; in pn_socket_connect() local
306 struct sock *sk = sock->sk; in pn_socket_accept() local
327 struct sock *sk = sock->sk; in pn_socket_getname() local
343 struct sock *sk = sock->sk; in pn_socket_poll() local
369 struct sock *sk = sock->sk; in pn_socket_ioctl() local
406 struct sock *sk = sock->sk; in pn_socket_listen() local
[all …]
Ddatagram.c39 static void pn_sock_close(struct sock *sk, long timeout) in pn_sock_close()
44 static int pn_ioctl(struct sock *sk, int cmd, unsigned long arg) in pn_ioctl()
75 static void pn_destruct(struct sock *sk) in pn_destruct()
80 static int pn_init(struct sock *sk) in pn_init()
86 static int pn_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) in pn_sendmsg()
127 static int pn_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, in pn_recvmsg()
173 static int pn_backlog_rcv(struct sock *sk, struct sk_buff *skb) in pn_backlog_rcv()
Dpep-gprs.c38 struct sock *sk; member
76 static void gprs_state_change(struct sock *sk) in gprs_state_change()
149 static void gprs_data_ready(struct sock *sk) in gprs_data_ready()
160 static void gprs_write_space(struct sock *sk) in gprs_write_space()
189 struct sock *sk = gp->sk; in gprs_xmit() local
258 int gprs_attach(struct sock *sk) in gprs_attach()
312 void gprs_detach(struct sock *sk) in gprs_detach()
Daf_phonet.c66 struct sock *sk; in pn_socket_create() local
237 int pn_skb_send(struct sock *sk, struct sk_buff *skb, in pn_skb_send()
265 struct sock *sk = pn_find_sock_by_res(net, res); in pn_skb_send() local
408 struct sock *sk = pn_find_sock_by_res(net, sa.spn_resource); in phonet_rcv() local
416 struct sock *sk = pn_find_sock_by_sa(net, &sa); in phonet_rcv() local
/linux-4.4.14/net/dccp/ccids/
Dccid2.c79 static int ccid2_hc_tx_send_packet(struct sock *sk, struct sk_buff *skb) in ccid2_hc_tx_send_packet()
86 static void ccid2_change_l_ack_ratio(struct sock *sk, u32 val) in ccid2_change_l_ack_ratio()
104 static void ccid2_check_l_ack_ratio(struct sock *sk) in ccid2_check_l_ack_ratio()
122 static void ccid2_change_l_seq_window(struct sock *sk, u64 val) in ccid2_change_l_seq_window()
131 struct sock *sk = (struct sock *)data; in ccid2_hc_tx_rto_expire() local
194 static void ccid2_cwnd_application_limited(struct sock *sk, const u32 now) in ccid2_cwnd_application_limited()
213 static void ccid2_cwnd_restart(struct sock *sk, const u32 now) in ccid2_cwnd_restart()
232 static void ccid2_hc_tx_packet_sent(struct sock *sk, unsigned int len) in ccid2_hc_tx_packet_sent()
356 static void ccid2_rtt_estimator(struct sock *sk, const long mrtt) in ccid2_rtt_estimator()
426 static void ccid2_new_ack(struct sock *sk, struct ccid2_seq *seqp, in ccid2_new_ack()
[all …]
Dccid3.c63 static void ccid3_hc_tx_set_state(struct sock *sk, in ccid3_hc_tx_set_state()
85 static inline u64 rfc3390_initial_rate(struct sock *sk) in rfc3390_initial_rate()
124 static void ccid3_hc_tx_update_x(struct sock *sk, ktime_t *stamp) in ccid3_hc_tx_update_x()
200 struct sock *sk = (struct sock *)data; in ccid3_hc_tx_no_feedback_timer() local
280 static int ccid3_hc_tx_send_packet(struct sock *sk, struct sk_buff *skb) in ccid3_hc_tx_send_packet()
357 static void ccid3_hc_tx_packet_sent(struct sock *sk, unsigned int len) in ccid3_hc_tx_packet_sent()
367 static void ccid3_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb) in ccid3_hc_tx_packet_recv()
465 static int ccid3_hc_tx_parse_options(struct sock *sk, u8 packet_type, in ccid3_hc_tx_parse_options()
502 static int ccid3_hc_tx_init(struct ccid *ccid, struct sock *sk) in ccid3_hc_tx_init()
513 static void ccid3_hc_tx_exit(struct sock *sk) in ccid3_hc_tx_exit()
[all …]
/linux-4.4.14/net/decnet/
Ddn_nsp_out.c76 struct sock *sk = skb->sk; in dn_nsp_send() local
118 struct sk_buff *dn_alloc_skb(struct sock *sk, int size, gfp_t pri) in dn_alloc_skb()
142 unsigned long dn_nsp_persist(struct sock *sk) in dn_nsp_persist()
165 static void dn_nsp_rtt(struct sock *sk, long rtt) in dn_nsp_rtt()
238 void dn_nsp_output(struct sock *sk) in dn_nsp_output()
274 int dn_nsp_xmit_timeout(struct sock *sk) in dn_nsp_xmit_timeout()
301 static __le16 *dn_mk_ack_header(struct sock *sk, struct sk_buff *skb, unsigned char msgflag, int hl… in dn_mk_ack_header()
333 static __le16 *dn_nsp_mk_data_header(struct sock *sk, struct sk_buff *skb, int oth) in dn_nsp_mk_data_header()
351 void dn_nsp_queue_xmit(struct sock *sk, struct sk_buff *skb, in dn_nsp_queue_xmit()
380 int dn_nsp_check_xmit_queue(struct sock *sk, struct sk_buff *skb, struct sk_buff_head *q, unsigned … in dn_nsp_check_xmit_queue()
[all …]
Daf_decnet.c143 struct sock sk; member
163 static struct hlist_head *dn_find_list(struct sock *sk) in dn_find_list()
178 struct sock *sk; in check_port() local
191 static unsigned short port_alloc(struct sock *sk) in port_alloc()
212 static int dn_hash_sock(struct sock *sk) in dn_hash_sock()
236 static void dn_unhash_sock(struct sock *sk) in dn_unhash_sock()
243 static void dn_unhash_sock_bh(struct sock *sk) in dn_unhash_sock_bh()
271 static void dn_rehash_sock(struct sock *sk) in dn_rehash_sock()
377 struct sock *sk; in dn_sklist_find_listener() local
415 struct sock *sk; in dn_find_by_skb() local
[all …]
Ddn_nsp_in.c100 static void dn_ack(struct sock *sk, struct sk_buff *skb, unsigned short ack) in dn_ack()
136 static int dn_process_ack(struct sock *sk, struct sk_buff *skb, int oth) in dn_process_ack()
332 static void dn_nsp_conn_init(struct sock *sk, struct sk_buff *skb) in dn_nsp_conn_init()
344 static void dn_nsp_conn_conf(struct sock *sk, struct sk_buff *skb) in dn_nsp_conn_conf()
387 static void dn_nsp_conn_ack(struct sock *sk, struct sk_buff *skb) in dn_nsp_conn_ack()
399 static void dn_nsp_disc_init(struct sock *sk, struct sk_buff *skb) in dn_nsp_disc_init()
467 static void dn_nsp_disc_conf(struct sock *sk, struct sk_buff *skb) in dn_nsp_disc_conf()
511 static void dn_nsp_linkservice(struct sock *sk, struct sk_buff *skb) in dn_nsp_linkservice()
585 static __inline__ int dn_queue_skb(struct sock *sk, struct sk_buff *skb, int sig, struct sk_buff_he… in dn_queue_skb()
611 static void dn_nsp_otherdata(struct sock *sk, struct sk_buff *skb) in dn_nsp_otherdata()
[all …]
Ddn_timer.c38 void dn_start_slow_timer(struct sock *sk) in dn_start_slow_timer()
44 void dn_stop_slow_timer(struct sock *sk) in dn_stop_slow_timer()
51 struct sock *sk = (struct sock *)arg; in dn_slow_timer() local
Ddn_neigh.c197 static int dn_neigh_output_packet(struct net *net, struct sock *sk, struct sk_buff *skb) in dn_neigh_output_packet()
209 static int dn_long_output(struct neighbour *neigh, struct sock *sk, in dn_long_output()
257 static int dn_short_output(struct neighbour *neigh, struct sock *sk, in dn_short_output()
300 static int dn_phase3_output(struct neighbour *neigh, struct sock *sk, in dn_phase3_output()
337 int dn_to_neigh_output(struct net *net, struct sock *sk, struct sk_buff *skb) in dn_to_neigh_output()
381 int dn_neigh_router_hello(struct net *net, struct sock *sk, struct sk_buff *skb) in dn_neigh_router_hello()
443 int dn_neigh_endnode_hello(struct net *net, struct sock *sk, struct sk_buff *skb) in dn_neigh_endnode_hello()
/linux-4.4.14/net/nfc/
Drawsock.c34 static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_link()
41 static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_unlink()
48 static void rawsock_write_queue_purge(struct sock *sk) in rawsock_write_queue_purge()
58 static void rawsock_report_error(struct sock *sk, int err) in rawsock_report_error()
71 struct sock *sk = sock->sk; in rawsock_release() local
90 struct sock *sk = sock->sk; in rawsock_connect() local
153 struct sock *sk = (struct sock *) context; in rawsock_data_exchange_complete() local
190 struct sock *sk = to_rawsock_sk(work); in rawsock_tx_work() local
216 struct sock *sk = sock->sk; in rawsock_sendmsg() local
254 struct sock *sk = sock->sk; in rawsock_recvmsg() local
[all …]
Dllcp_sock.c28 static int sock_wait_state(struct sock *sk, int state, unsigned long timeo) in sock_wait_state()
72 struct sock *sk = sock->sk; in llcp_sock_bind() local
146 struct sock *sk = sock->sk; in llcp_raw_sock_bind() local
199 struct sock *sk = sock->sk; in llcp_sock_listen() local
227 struct sock *sk = sock->sk; in nfc_llcp_setsockopt() local
301 struct sock *sk = sock->sk; in nfc_llcp_getsockopt() local
374 void nfc_llcp_accept_unlink(struct sock *sk) in nfc_llcp_accept_unlink()
387 void nfc_llcp_accept_enqueue(struct sock *parent, struct sock *sk) in nfc_llcp_accept_enqueue()
405 struct sock *sk; in nfc_llcp_accept_dequeue() local
446 struct sock *sk = sock->sk, *new_sk; in llcp_sock_accept() local
[all …]
Dllcp_core.c35 void nfc_llcp_sock_link(struct llcp_sock_list *l, struct sock *sk) in nfc_llcp_sock_link()
42 void nfc_llcp_sock_unlink(struct llcp_sock_list *l, struct sock *sk) in nfc_llcp_sock_unlink()
81 struct sock *sk; in nfc_llcp_socket_release() local
201 struct sock *sk; in nfc_llcp_sock_get() local
342 struct sock *sk; in nfc_llcp_sock_from_sn() local
674 struct sock *sk; in nfc_llcp_send_to_raw_sock() local
715 struct sock *sk; in nfc_llcp_tx_work() local
778 struct sock *sk; in nfc_llcp_connecting_sock_get() local
1028 struct sock *sk; in nfc_llcp_recv_hdlc() local
1115 struct sock *sk; in nfc_llcp_recv_disc() local
[all …]
/linux-4.4.14/sound/usb/usx2y/
Dusb_stream.c27 static unsigned usb_stream_next_packet_size(struct usb_stream_kernel *sk) in usb_stream_next_packet_size()
34 static void playback_prep_freqn(struct usb_stream_kernel *sk, struct urb *urb) in playback_prep_freqn()
59 static void init_pipe_urbs(struct usb_stream_kernel *sk, unsigned use_packsize, in init_pipe_urbs()
92 static void init_urbs(struct usb_stream_kernel *sk, unsigned use_packsize, in init_urbs()
130 void usb_stream_free(struct usb_stream_kernel *sk) in usb_stream_free()
152 struct usb_stream *usb_stream_new(struct usb_stream_kernel *sk, in usb_stream_new()
236 static bool balance_check(struct usb_stream_kernel *sk, struct urb *urb) in balance_check()
251 static bool balance_playback(struct usb_stream_kernel *sk, struct urb *urb) in balance_playback()
257 static bool balance_capture(struct usb_stream_kernel *sk, struct urb *urb) in balance_capture()
273 static int usb_stream_prepare_playback(struct usb_stream_kernel *sk, in usb_stream_prepare_playback()
[all …]
/linux-4.4.14/net/can/
Draw.c84 struct sock sk; member
113 static inline struct raw_sock *raw_sk(const struct sock *sk) in raw_sk()
120 struct sock *sk = (struct sock *)data; in raw_rcv() local
184 static int raw_enable_filters(struct net_device *dev, struct sock *sk, in raw_enable_filters()
207 static int raw_enable_errfilter(struct net_device *dev, struct sock *sk, in raw_enable_errfilter()
219 static void raw_disable_filters(struct net_device *dev, struct sock *sk, in raw_disable_filters()
230 struct sock *sk, in raw_disable_errfilter()
240 struct sock *sk) in raw_disable_allfilters()
248 static int raw_enable_allfilters(struct net_device *dev, struct sock *sk) in raw_enable_allfilters()
268 struct sock *sk = &ro->sk; in raw_notifier() local
[all …]
Dbcm.c111 struct sock *sk; member
118 struct sock sk; member
129 static inline struct bcm_sock *bcm_sk(const struct sock *sk) in bcm_sk()
167 struct sock *sk = (struct sock *)m->private; in bcm_proc_show() local
299 struct sock *sk = op->sk; in bcm_send_to_user() local
834 int ifindex, struct sock *sk) in bcm_tx_setup()
991 int ifindex, struct sock *sk) in bcm_rx_setup()
1197 static int bcm_tx_send(struct msghdr *msg, int ifindex, struct sock *sk) in bcm_tx_send()
1243 struct sock *sk = sock->sk; in bcm_sendmsg() local
1357 struct sock *sk = &bo->sk; in bcm_notifier() local
[all …]
/linux-4.4.14/drivers/isdn/mISDN/
Dsocket.c31 #define _pms(sk) ((struct mISDN_sock *)sk) argument
55 mISDN_sock_link(struct mISDN_sock_list *l, struct sock *sk) in mISDN_sock_link()
62 static void mISDN_sock_unlink(struct mISDN_sock_list *l, struct sock *sk) in mISDN_sock_unlink()
104 mISDN_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_buff *skb) in mISDN_sock_cmsg()
119 struct sock *sk = sock->sk; in mISDN_sock_recvmsg() local
178 struct sock *sk = sock->sk; in mISDN_sock_sendmsg() local
248 struct sock *sk = sock->sk; in data_sock_release() local
289 data_sock_ioctl_bound(struct sock *sk, unsigned int cmd, void __user *p) in data_sock_ioctl_bound()
363 struct sock *sk = sock->sk; in data_sock_ioctl() local
416 struct sock *sk = sock->sk; in data_sock_setsockopt() local
[all …]
/linux-4.4.14/net/l2tp/
Dl2tp_ip.c45 static inline struct l2tp_ip_sock *l2tp_ip_sk(const struct sock *sk) in l2tp_ip_sk()
52 struct sock *sk; in __l2tp_ip_bind_lookup() local
75 struct sock *sk = __l2tp_ip_bind_lookup(net, laddr, dif, tunnel_id); in l2tp_ip_bind_lookup() local
118 struct sock *sk; in l2tp_ip_recv() local
209 static int l2tp_ip_open(struct sock *sk) in l2tp_ip_open()
221 static void l2tp_ip_close(struct sock *sk, long timeout) in l2tp_ip_close()
230 static void l2tp_ip_destroy_sock(struct sock *sk) in l2tp_ip_destroy_sock()
246 static int l2tp_ip_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip_bind()
305 static int l2tp_ip_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip_connect()
336 static int l2tp_ip_disconnect(struct sock *sk, int flags) in l2tp_ip_disconnect()
[all …]
Dl2tp_ip6.c54 static inline struct l2tp_ip6_sock *l2tp_ip6_sk(const struct sock *sk) in l2tp_ip6_sk()
63 struct sock *sk; in __l2tp_ip6_bind_lookup() local
88 struct sock *sk = __l2tp_ip6_bind_lookup(net, laddr, dif, tunnel_id); in l2tp_ip6_bind_lookup() local
130 struct sock *sk; in l2tp_ip6_recv() local
222 static int l2tp_ip6_open(struct sock *sk) in l2tp_ip6_open()
234 static void l2tp_ip6_close(struct sock *sk, long timeout) in l2tp_ip6_close()
244 static void l2tp_ip6_destroy_sock(struct sock *sk) in l2tp_ip6_destroy_sock()
260 static int l2tp_ip6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip6_bind()
361 static int l2tp_ip6_connect(struct sock *sk, struct sockaddr *uaddr, in l2tp_ip6_connect()
405 static int l2tp_ip6_disconnect(struct sock *sk, int flags) in l2tp_ip6_disconnect()
[all …]
Dl2tp_ppp.c143 static inline struct l2tp_session *pppol2tp_sock_to_session(struct sock *sk) in pppol2tp_sock_to_session()
193 struct sock *sk = sock->sk; in pppol2tp_recvmsg() local
222 struct sock *sk = NULL; in pppol2tp_recv() local
301 struct sock *sk = sock->sk; in pppol2tp_sendmsg() local
388 struct sock *sk = (struct sock *) chan->private; in pppol2tp_xmit() local
452 struct sock *sk = ps->sock; in pppol2tp_session_close() local
467 static void pppol2tp_session_destruct(struct sock *sk) in pppol2tp_session_destruct()
481 struct sock *sk = sock->sk; in pppol2tp_release() local
532 static int pppol2tp_backlog_recv(struct sock *sk, struct sk_buff *skb) in pppol2tp_backlog_recv()
548 struct sock *sk; in pppol2tp_create() local
[all …]
Dl2tp_core.c118 static inline struct l2tp_tunnel *l2tp_tunnel(struct sock *sk) in l2tp_tunnel()
183 struct sock *sk = NULL; in l2tp_tunnel_sock_lookup() local
207 static void l2tp_tunnel_sock_put(struct sock *sk) in l2tp_tunnel_sock_put()
949 int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb) in l2tp_udp_encap_recv()
1106 struct sock *sk = tunnel->sock; in l2tp_xmit_skb() local
1191 static void l2tp_tunnel_destruct(struct sock *sk) in l2tp_tunnel_destruct()
1292 static void l2tp_udp_encap_destroy(struct sock *sk) in l2tp_udp_encap_destroy()
1317 struct sock *sk = NULL; in l2tp_tunnel_del_work() local
1478 struct sock *sk = NULL; in l2tp_tunnel_create() local
/linux-4.4.14/net/atm/
Dcommon.c42 static void __vcc_insert_socket(struct sock *sk) in __vcc_insert_socket()
50 void vcc_insert_socket(struct sock *sk) in vcc_insert_socket()
58 static void vcc_remove_socket(struct sock *sk) in vcc_remove_socket()
68 struct sock *sk = sk_atm(vcc); in alloc_tx() local
82 static void vcc_sock_destruct(struct sock *sk) in vcc_sock_destruct()
93 static void vcc_def_wakeup(struct sock *sk) in vcc_def_wakeup()
104 static inline int vcc_writable(struct sock *sk) in vcc_writable()
112 static void vcc_write_space(struct sock *sk) in vcc_write_space()
129 static void vcc_release_cb(struct sock *sk) in vcc_release_cb()
146 struct sock *sk; in vcc_create() local
[all …]
Dsvc.c49 struct sock *sk = sk_atm(vcc); in svc_disconnect() local
76 struct sock *sk = sock->sk; in svc_release() local
98 struct sock *sk = sock->sk; in svc_bind() local
154 struct sock *sk = sock->sk; in svc_connect() local
284 struct sock *sk = sock->sk; in svc_listen() local
323 struct sock *sk = sock->sk; in svc_accept() local
433 struct sock *sk = sk_atm(vcc); in svc_change_qos() local
455 struct sock *sk = sock->sk; in svc_setsockopt() local
500 struct sock *sk = sock->sk; in svc_getsockopt() local
529 struct sock *sk = sock->sk; in svc_addparty() local
[all …]
Draw.c25 struct sock *sk = sk_atm(vcc); in atm_push_raw() local
34 struct sock *sk = sk_atm(vcc); in atm_pop_raw() local
Dpvc.c29 struct sock *sk = sock->sk; in pvc_bind() local
67 struct sock *sk = sock->sk; in pvc_setsockopt() local
79 struct sock *sk = sock->sk; in pvc_getsockopt() local
/linux-4.4.14/net/unix/
Ddiag.c11 static int sk_diag_dump_name(struct sock *sk, struct sk_buff *nlskb) in sk_diag_dump_name()
22 static int sk_diag_dump_vfs(struct sock *sk, struct sk_buff *nlskb) in sk_diag_dump_vfs()
38 static int sk_diag_dump_peer(struct sock *sk, struct sk_buff *nlskb) in sk_diag_dump_peer()
56 static int sk_diag_dump_icons(struct sock *sk, struct sk_buff *nlskb) in sk_diag_dump_icons()
97 static int sk_diag_show_rqlen(struct sock *sk, struct sk_buff *nlskb) in sk_diag_show_rqlen()
112 static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, in sk_diag_fill()
166 static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, in sk_diag_dump()
196 struct sock *sk; in unix_diag_dump() local
226 struct sock *sk; in unix_lookup_by_ino() local
248 struct sock *sk; in unix_diag_get_exact() local
Daf_unix.c138 #define UNIX_ABSTRACT(sk) (unix_sk(sk)->addr->hash < UNIX_HASH_SIZE) argument
182 #define unix_peer(sk) (unix_sk(sk)->peer) argument
184 static inline int unix_our_peer(struct sock *sk, struct sock *osk) in unix_our_peer()
189 static inline int unix_may_send(struct sock *sk, struct sock *osk) in unix_may_send()
194 static inline int unix_recvq_full(struct sock const *sk) in unix_recvq_full()
248 static void __unix_remove_socket(struct sock *sk) in __unix_remove_socket()
253 static void __unix_insert_socket(struct hlist_head *list, struct sock *sk) in __unix_insert_socket()
259 static inline void unix_remove_socket(struct sock *sk) in unix_remove_socket()
266 static inline void unix_insert_socket(struct hlist_head *list, struct sock *sk) in unix_insert_socket()
374 static int unix_dgram_peer_wake_connect(struct sock *sk, struct sock *other) in unix_dgram_peer_wake_connect()
[all …]
/linux-4.4.14/net/netlink/
Daf_netlink.c89 static inline int netlink_is_kernel(struct sock *sk) in netlink_is_kernel()
199 struct sock *sk = skb->sk; in netlink_filter_tap() local
223 struct sock *sk = skb->sk; in __netlink_deliver_tap_skb() local
279 static void netlink_overrun(struct sock *sk) in netlink_overrun()
293 static void netlink_rcv_wake(struct sock *sk) in netlink_rcv_wake()
304 static bool netlink_rx_is_mmaped(struct sock *sk) in netlink_rx_is_mmaped()
309 static bool netlink_tx_is_mmaped(struct sock *sk) in netlink_tx_is_mmaped()
380 __netlink_set_ring(struct sock *sk, struct nl_mmap_req *req, bool tx_ring, void **pg_vec, in __netlink_set_ring()
410 static int netlink_set_ring(struct sock *sk, struct nl_mmap_req *req, in netlink_set_ring()
474 struct sock *sk = sock->sk; in netlink_mm_open() local
[all …]
Ddiag.c25 static int sk_diag_put_rings_cfg(struct sock *sk, struct sk_buff *nlskb) in sk_diag_put_rings_cfg()
40 static int sk_diag_put_rings_cfg(struct sock *sk, struct sk_buff *nlskb) in sk_diag_put_rings_cfg()
46 static int sk_diag_dump_groups(struct sock *sk, struct sk_buff *nlskb) in sk_diag_dump_groups()
57 static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, in sk_diag_fill()
111 struct sock *sk; in __netlink_diag_dump() local
/linux-4.4.14/net/ipv6/
Draw.c72 static struct sock *__raw_v6_lookup(struct net *net, struct sock *sk, in __raw_v6_lookup()
110 static int icmpv6_filter(const struct sock *sk, const struct sk_buff *skb) in icmpv6_filter()
162 struct sock *sk; in ipv6_raw_deliver() local
242 static int rawv6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in rawv6_bind()
320 static void rawv6_err(struct sock *sk, struct sk_buff *skb, in rawv6_err()
362 struct sock *sk; in raw6_icmp_error() local
388 static inline int rawv6_rcv_skb(struct sock *sk, struct sk_buff *skb) in rawv6_rcv_skb()
414 int rawv6_rcv(struct sock *sk, struct sk_buff *skb) in rawv6_rcv()
460 static int rawv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, in rawv6_recvmsg()
537 static int rawv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6, in rawv6_push_pending_frames()
[all …]
Dinet6_connection_sock.c30 int inet6_csk_bind_conflict(const struct sock *sk, in inet6_csk_bind_conflict()
68 struct dst_entry *inet6_csk_route_req(const struct sock *sk, in inet6_csk_route_req()
99 void inet6_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr) in inet6_csk_addr2sockaddr()
114 struct dst_entry *__inet6_csk_dst_check(struct sock *sk, u32 cookie) in __inet6_csk_dst_check()
119 static struct dst_entry *inet6_csk_route_socket(struct sock *sk, in inet6_csk_route_socket()
153 int inet6_csk_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl_unused) in inet6_csk_xmit()
181 struct dst_entry *inet6_csk_update_pmtu(struct sock *sk, u32 mtu) in inet6_csk_update_pmtu()
Dtcp_ipv6.c85 static struct tcp_md5sig_key *tcp_v6_md5_do_lookup(const struct sock *sk, in tcp_v6_md5_do_lookup()
92 static void inet6_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb) in inet6_sk_rx_dst_set()
113 static int tcp_v6_connect(struct sock *sk, struct sockaddr *uaddr, in tcp_v6_connect()
303 static void tcp_v6_mtu_reduced(struct sock *sk) in tcp_v6_mtu_reduced()
330 struct sock *sk; in tcp_v6_err() local
439 static int tcp_v6_send_synack(const struct sock *sk, struct dst_entry *dst, in tcp_v6_send_synack()
484 static struct tcp_md5sig_key *tcp_v6_md5_do_lookup(const struct sock *sk, in tcp_v6_md5_do_lookup()
490 static struct tcp_md5sig_key *tcp_v6_md5_lookup(const struct sock *sk, in tcp_v6_md5_lookup()
496 static int tcp_v6_parse_md5_keys(struct sock *sk, char __user *optval, in tcp_v6_parse_md5_keys()
583 const struct sock *sk, in tcp_v6_md5_hash_skb()
[all …]
Dudp.c79 int ipv6_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2) in ipv6_rcv_saddr_equal()
123 int udp_v6_get_port(struct sock *sk, unsigned short snum) in udp_v6_get_port()
135 static void udp_v6_rehash(struct sock *sk) in udp_v6_rehash()
144 static inline int compute_score(struct sock *sk, struct net *net, in compute_score()
191 static inline int compute_score2(struct sock *sk, struct net *net, in compute_score2()
240 struct sock *sk, *result; in udp6_lib_lookup2() local
292 struct sock *sk, *result; in __udp6_lib_lookup() local
372 struct sock *sk; in __udp6_lib_lookup_skb() local
395 int udpv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, in udpv6_recvmsg()
546 struct sock *sk; in __udp6_lib_err() local
[all …]
Dxfrm6_output.c33 struct sock *sk = skb->sk; in xfrm6_local_dontfrag() local
50 struct sock *sk = skb->sk; in xfrm6_local_rxpmtu() local
62 struct sock *sk = skb->sk; in xfrm6_local_error() local
124 int xfrm6_output_finish(struct sock *sk, struct sk_buff *skb) in xfrm6_output_finish()
135 static int __xfrm6_output_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in __xfrm6_output_finish()
142 static int __xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb) in __xfrm6_output()
182 int xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb) in xfrm6_output()
Ddatagram.c43 static int __ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in __ip6_datagram_connect()
213 int ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ip6_datagram_connect()
224 int ip6_datagram_connect_v6_only(struct sock *sk, struct sockaddr *uaddr, in ip6_datagram_connect_v6_only()
234 void ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err, in ipv6_icmp_error()
269 void ipv6_local_error(struct sock *sk, int err, struct flowi6 *fl6, u32 info) in ipv6_local_error()
308 void ipv6_local_rxpmtu(struct sock *sk, struct flowi6 *fl6, u32 mtu) in ipv6_local_rxpmtu()
386 int ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len) in ipv6_recv_error()
479 int ipv6_recv_rxpmtu(struct sock *sk, struct msghdr *msg, int len, in ipv6_recv_rxpmtu()
527 void ip6_datagram_recv_common_ctl(struct sock *sk, struct msghdr *msg, in ip6_datagram_recv_common_ctl()
552 void ip6_datagram_recv_specific_ctl(struct sock *sk, struct msghdr *msg, in ip6_datagram_recv_specific_ctl()
[all …]
Daf_inet6.c93 static __inline__ struct ipv6_pinfo *inet6_sk_generic(struct sock *sk) in inet6_sk_generic()
105 struct sock *sk; in inet6_create() local
259 struct sock *sk = sock->sk; in inet6_bind() local
398 struct sock *sk = sock->sk; in inet6_release() local
413 void inet6_destroy_sock(struct sock *sk) in inet6_destroy_sock()
450 struct sock *sk = sock->sk; in inet6_getname() local
484 struct sock *sk = sock->sk; in inet6_ioctl() local
644 int inet6_sk_rebuild_header(struct sock *sk) in inet6_sk_rebuild_header()
686 bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb, in ipv6_opt_accepted()
Dip6_output.c60 static int ip6_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_finish_output2()
124 static int ip6_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_finish_output()
134 int ip6_output(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_output()
157 int ip6_xmit(const struct sock *sk, struct sk_buff *skb, struct flowi6 *fl6, in ip6_xmit()
258 struct sock *sk = ra->sk; in ip6_call_ra_chain() local
332 static inline int ip6_forward_finish(struct net *net, struct sock *sk, in ip6_forward_finish()
559 int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, in ip6_fragment()
857 static struct dst_entry *ip6_sk_dst_check(struct sock *sk, in ip6_sk_dst_check()
904 static int ip6_dst_lookup_tail(struct net *net, const struct sock *sk, in ip6_dst_lookup_tail()
1020 int ip6_dst_lookup(struct net *net, struct sock *sk, struct dst_entry **dst, in ip6_dst_lookup()
[all …]
Dipv6_sockglue.c61 int ip6_ra_control(struct sock *sk, int sel) in ip6_ra_control()
102 struct ipv6_txoptions *ipv6_update_options(struct sock *sk, in ipv6_update_options()
140 static int do_ipv6_setsockopt(struct sock *sk, int level, int optname, in do_ipv6_setsockopt()
884 int ipv6_setsockopt(struct sock *sk, int level, int optname, in ipv6_setsockopt()
911 int compat_ipv6_setsockopt(struct sock *sk, int level, int optname, in compat_ipv6_setsockopt()
946 static int ipv6_getsockopt_sticky(struct sock *sk, struct ipv6_txoptions *opt, in ipv6_getsockopt_sticky()
980 static int do_ipv6_getsockopt(struct sock *sk, int level, int optname, in do_ipv6_getsockopt()
1321 int ipv6_getsockopt(struct sock *sk, int level, int optname, in ipv6_getsockopt()
1354 int compat_ipv6_getsockopt(struct sock *sk, int level, int optname, in compat_ipv6_getsockopt()
Dinet6_hashtables.c59 struct sock *sk; in __inet6_lookup_established() local
96 static inline int compute_score(struct sock *sk, struct net *net, in compute_score()
128 struct sock *sk; in inet6_lookup_listener() local
184 struct sock *sk; in inet6_lookup() local
195 struct sock *sk, const __u16 lport, in __inet6_check_established()
257 static u32 inet6_sk_port_offset(const struct sock *sk) in inet6_sk_port_offset()
267 struct sock *sk) in inet6_hash_connect()
Dicmp.c114 struct sock *sk; in icmpv6_xmit_lock() local
130 static __inline__ void icmpv6_xmit_unlock(struct sock *sk) in icmpv6_xmit_unlock()
173 static bool icmpv6_xrlim_allow(struct sock *sk, u8 type, in icmpv6_xrlim_allow()
239 int icmpv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6, in icmpv6_push_pending_frames()
326 struct sock *sk, in icmpv6_route_lookup()
396 struct sock *sk; in icmp6_send() local
556 struct sock *sk; in icmpv6_echo_reply() local
821 void icmpv6_flow_init(struct sock *sk, struct flowi6 *fl6, in icmpv6_flow_init()
839 struct sock *sk; in icmpv6_sk_init() local
Dping.c59 static int dummy_ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len, in dummy_ipv6_recv_error()
64 static void dummy_ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg, in dummy_ip6_datagram_recv_ctl()
72 static void dummy_ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err, in dummy_ipv6_icmp_error()
80 int ping_v6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) in ping_v6_sendmsg()
Dip6_flowlabel.c241 struct ip6_flowlabel *fl6_sock_lookup(struct sock *sk, __be32 label) in fl6_sock_lookup()
263 void fl6_free_socklist(struct sock *sk) in fl6_free_socklist()
354 fl_create(struct net *net, struct sock *sk, struct in6_flowlabel_req *freq, in fl_create()
441 static int mem_check(struct sock *sk) in mem_check()
475 int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq, in ipv6_flowlabel_opt_get()
512 int ipv6_flowlabel_opt(struct sock *sk, char __user *optval, int optlen) in ipv6_flowlabel_opt()
Dip6_input.c50 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_rcv_finish()
202 static int ip6_input_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_input_finish()
/linux-4.4.14/net/caif/
Dcaif_socket.c47 struct sock sk; /* must be first member */ member
92 static void caif_read_lock(struct sock *sk) in caif_read_lock()
99 static void caif_read_unlock(struct sock *sk) in caif_read_unlock()
112 static void caif_flow_ctrl(struct sock *sk, int mode) in caif_flow_ctrl()
124 static void caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in caif_queue_rcv_skb()
254 static void caif_check_flow_release(struct sock *sk) in caif_check_flow_release()
275 struct sock *sk = sock->sk; in caif_seqpkt_recvmsg() local
309 static long caif_stream_data_wait(struct sock *sk, long timeo) in caif_stream_data_wait()
350 struct sock *sk = sock->sk; in caif_stream_recvmsg() local
467 struct sock *sk = &cf_sk->sk; in caif_wait_for_flow_on() local
[all …]
/linux-4.4.14/net/sched/
Dem_meta.c346 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR() local
357 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR() local
368 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR() local
379 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR() local
390 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR() local
401 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR() local
412 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR() local
423 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR() local
434 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR() local
445 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR() local
[all …]
/linux-4.4.14/net/irda/
Daf_irda.c84 struct sock *sk; in irda_data_indication() local
112 struct sock *sk; in irda_disconnect_indication() local
177 struct sock *sk; in irda_connect_confirm() local
241 struct sock *sk; in irda_connect_indication() local
324 struct sock *sk; in irda_flow_indication() local
702 struct sock *sk = sock->sk; in irda_getname() local
737 struct sock *sk = sock->sk; in irda_listen() local
766 struct sock *sk = sock->sk; in irda_bind() local
832 struct sock *sk = sock->sk; in irda_accept() local
957 struct sock *sk = sock->sk; in irda_connect() local
[all …]
/linux-4.4.14/net/netfilter/
Dnf_sockopt.c61 static struct nf_sockopt_ops *nf_sockopt_find(struct sock *sk, u_int8_t pf, in nf_sockopt_find()
92 static int nf_sockopt(struct sock *sk, u_int8_t pf, int val, in nf_sockopt()
111 int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, in nf_setsockopt()
118 int nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, in nf_getsockopt()
126 static int compat_nf_sockopt(struct sock *sk, u_int8_t pf, int val, in compat_nf_sockopt()
152 int compat_nf_setsockopt(struct sock *sk, u_int8_t pf, in compat_nf_setsockopt()
159 int compat_nf_getsockopt(struct sock *sk, u_int8_t pf, in compat_nf_getsockopt()
Dxt_TPROXY.c43 static bool tproxy_sk_is_transparent(struct sock *sk) in tproxy_sk_is_transparent()
114 struct sock *sk; in nf_tproxy_get_sock_v4() local
178 struct sock *sk; in nf_tproxy_get_sock_v6() local
254 __be32 laddr, __be16 lport, struct sock *sk) in tproxy_handle_time_wait4()
285 nf_tproxy_assign_sock(struct sk_buff *skb, struct sock *sk) in nf_tproxy_assign_sock()
298 struct sock *sk; in tproxy_tg4() local
415 struct sock *sk) in tproxy_handle_time_wait6()
453 struct sock *sk; in tproxy_tg6_v1() local
/linux-4.4.14/net/tipc/
Dsocket.c82 struct sock sk; member
232 static struct tipc_sock *tipc_sk(const struct sock *sk) in tipc_sk()
247 static void tsk_advance_rx_queue(struct sock *sk) in tsk_advance_rx_queue()
254 static void tipc_sk_respond(struct sock *sk, struct sk_buff *skb, int err) in tipc_sk_respond()
273 static void tsk_rej_rx_queue(struct sock *sk) in tsk_rej_rx_queue()
332 struct sock *sk; in tipc_sk_create() local
423 struct sock *sk = sock->sk; in tipc_release() local
503 struct sock *sk = sock->sk; in tipc_bind() local
629 struct sock *sk = sock->sk; in tipc_poll() local
672 struct sock *sk = sock->sk; in tipc_sendmcast() local
[all …]
Dserver.c95 struct sock *sk; in tipc_conn_kref_release() local
135 static void sock_data_ready(struct sock *sk) in sock_data_ready()
149 static void sock_write_space(struct sock *sk) in sock_write_space()
165 struct sock *sk = sock->sk; in tipc_register_callbacks() local
180 struct sock *sk = con->sock->sk; in tipc_unregister_callbacks() local
/linux-4.4.14/net/ax25/
Daf_ax25.c58 static void ax25_free_sock(struct sock *sk) in ax25_free_sock()
185 struct sock *sk = NULL; in ax25_get_socket() local
274 struct sock *sk; in ax25_destroy_timer() local
334 struct sock *sk=ax25->sk; in ax25_destroy_socket() local
537 struct sock *sk = sock->sk; in ax25_setsockopt() local
679 struct sock *sk = sock->sk; in ax25_getsockopt() local
775 struct sock *sk = sock->sk; in ax25_listen() local
805 struct sock *sk; in ax25_create() local
883 struct sock *sk; in ax25_make_new() local
953 struct sock *sk = sock->sk; in ax25_release() local
[all …]
/linux-4.4.14/net/rxrpc/
Daf_rxrpc.c55 static inline int rxrpc_writable(struct sock *sk) in rxrpc_writable()
63 static void rxrpc_write_space(struct sock *sk) in rxrpc_write_space()
125 struct sock *sk = sock->sk; in rxrpc_bind() local
190 struct sock *sk = sock->sk; in rxrpc_listen() local
377 struct sock *sk = sock->sk; in rxrpc_connect() local
592 struct sock *sk = sock->sk; in rxrpc_poll() local
618 struct sock *sk; in rxrpc_create() local
662 static void rxrpc_sock_destructor(struct sock *sk) in rxrpc_sock_destructor()
681 static int rxrpc_release_sock(struct sock *sk) in rxrpc_release_sock()
741 struct sock *sk = sock->sk; in rxrpc_release() local
/linux-4.4.14/crypto/
Dalgif_aead.c57 static inline int aead_sndbuf(struct sock *sk) in aead_sndbuf()
66 static inline bool aead_writable(struct sock *sk) in aead_writable()
78 static void aead_put_sgl(struct sock *sk) in aead_put_sgl()
100 static void aead_wmem_wakeup(struct sock *sk) in aead_wmem_wakeup()
117 static int aead_wait_for_data(struct sock *sk, unsigned flags) in aead_wait_for_data()
147 static void aead_data_wakeup(struct sock *sk) in aead_data_wakeup()
170 struct sock *sk = sock->sk; in aead_sendmsg() local
303 struct sock *sk = sock->sk; in aead_sendpage() local
354 struct sock *sk = sock->sk; in aead_recvmsg() local
477 struct sock *sk = sock->sk; in aead_poll() local
[all …]
Dalgif_skcipher.c106 static inline int skcipher_sndbuf(struct sock *sk) in skcipher_sndbuf()
115 static inline bool skcipher_writable(struct sock *sk) in skcipher_writable()
120 static int skcipher_alloc_sgl(struct sock *sk) in skcipher_alloc_sgl()
150 static void skcipher_pull_sgl(struct sock *sk, int used, int put) in skcipher_pull_sgl()
192 static void skcipher_free_sgl(struct sock *sk) in skcipher_free_sgl()
200 static int skcipher_wait_for_wmem(struct sock *sk, unsigned flags) in skcipher_wait_for_wmem()
226 static void skcipher_wmem_wakeup(struct sock *sk) in skcipher_wmem_wakeup()
243 static int skcipher_wait_for_data(struct sock *sk, unsigned flags) in skcipher_wait_for_data()
274 static void skcipher_data_wakeup(struct sock *sk) in skcipher_data_wakeup()
296 struct sock *sk = sock->sk; in skcipher_sendmsg() local
[all …]
Dalgif_hash.c46 struct sock *sk = sock->sk; in hash_sendmsg() local
107 struct sock *sk = sock->sk; in hash_sendpage() local
152 struct sock *sk = sock->sk; in hash_recvmsg() local
183 struct sock *sk = sock->sk; in hash_accept() local
251 struct sock *sk = sock->sk; in hash_check_key() local
392 static void hash_sock_destruct(struct sock *sk) in hash_sock_destruct()
403 static int hash_accept_parent_nokey(void *private, struct sock *sk) in hash_accept_parent_nokey()
439 static int hash_accept_parent(void *private, struct sock *sk) in hash_accept_parent()
Daf_alg.c130 void af_alg_release_parent(struct sock *sk) in af_alg_release_parent()
153 struct sock *sk = sock->sk; in alg_bind() local
204 static int alg_setkey(struct sock *sk, char __user *ukey, in alg_setkey()
231 struct sock *sk = sock->sk; in alg_setsockopt() local
269 int af_alg_accept(struct sock *sk, struct socket *newsock) in af_alg_accept()
354 static void alg_sock_destruct(struct sock *sk) in alg_sock_destruct()
364 struct sock *sk; in alg_create() local
Dalgif_rng.c61 struct sock *sk = sock->sk; in rng_recvmsg() local
127 static void rng_sock_destruct(struct sock *sk) in rng_sock_destruct()
136 static int rng_accept_parent(void *private, struct sock *sk) in rng_accept_parent()
/linux-4.4.14/security/selinux/
Dnetlabel.c81 static struct netlbl_lsm_secattr *selinux_netlbl_sock_genattr(struct sock *sk) in selinux_netlbl_sock_genattr()
113 const struct sock *sk, in selinux_netlbl_sock_getattr()
244 struct sock *sk; in selinux_netlbl_skbuff_setsid() local
310 void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family) in selinux_netlbl_inet_csk_clone()
330 int selinux_netlbl_socket_post_create(struct sock *sk, u16 family) in selinux_netlbl_socket_post_create()
430 struct sock *sk = sock->sk; in selinux_netlbl_socket_setsockopt() local
464 int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr) in selinux_netlbl_socket_connect()
/linux-4.4.14/drivers/target/iscsi/
Discsi_target_nego.c406 static void iscsi_target_sk_data_ready(struct sock *sk) in iscsi_target_sk_data_ready()
446 struct sock *sk; in iscsi_target_set_sock_callbacks() local
468 struct sock *sk; in iscsi_target_restore_sock_callbacks() local
492 static bool iscsi_target_sk_state_check(struct sock *sk) in iscsi_target_sk_state_check()
553 struct sock *sk = conn->sock->sk; in iscsi_target_do_login_rx() local
600 struct sock *sk = conn->sock->sk; in iscsi_target_do_login_rx() local
617 struct sock *sk = conn->sock->sk; in iscsi_target_do_cleanup() local
635 static void iscsi_target_sk_state_change(struct sock *sk) in iscsi_target_sk_state_change()
972 struct sock *sk = conn->sock->sk; in iscsi_target_do_login() local
1252 struct sock *sk = conn->sock->sk; in iscsi_target_start_negotiation() local
/linux-4.4.14/include/linux/
Dudp.h76 static inline struct udp_sock *udp_sk(const struct sock *sk) in udp_sk()
81 static inline void udp_set_no_check6_tx(struct sock *sk, bool val) in udp_set_no_check6_tx()
86 static inline void udp_set_no_check6_rx(struct sock *sk, bool val) in udp_set_no_check6_rx()
91 static inline bool udp_get_no_check6_tx(struct sock *sk) in udp_get_no_check6_tx()
96 static inline bool udp_get_no_check6_rx(struct sock *sk) in udp_get_no_check6_rx()
Dsock_diag.h34 enum sknetlink_groups sock_diag_destroy_group(const struct sock *sk) in sock_diag_destroy_group()
61 bool sock_diag_has_destroy_listeners(const struct sock *sk) in sock_diag_has_destroy_listeners()
Dnetfilter.h56 struct sock *sk; member
68 struct sock *sk, in nf_hook_state_init()
173 struct sock *sk, in nf_hook_thresh()
193 struct sock *sk, struct sk_buff *skb, in nf_hook()
218 NF_HOOK_THRESH(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_THRESH()
231 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND()
245 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, in NF_HOOK()
350 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND()
359 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK()
367 struct sock *sk, struct sk_buff *skb, in nf_hook()
Dipv6.h272 static inline struct raw6_sock *raw6_sk(const struct sock *sk) in raw6_sk()
288 #define __ipv6_only_sock(sk) (sk->sk_ipv6only) argument
289 #define ipv6_only_sock(sk) (__ipv6_only_sock(sk)) argument
290 #define ipv6_sk_rxinfo(sk) ((sk)->sk_family == PF_INET6 && \ argument
293 static inline const struct in6_addr *inet6_rcv_saddr(const struct sock *sk) in inet6_rcv_saddr()
300 static inline int inet_v6_ipv6only(const struct sock *sk) in inet_v6_ipv6only()
306 #define __ipv6_only_sock(sk) 0 argument
307 #define ipv6_only_sock(sk) 0 argument
308 #define ipv6_sk_rxinfo(sk) 0 argument
321 static inline struct raw6_sock *raw6_sk(const struct sock *sk) in raw6_sk()
/linux-4.4.14/security/selinux/include/
Dnetlabel.h109 static inline int selinux_netlbl_conn_setsid(struct sock *sk, in selinux_netlbl_conn_setsid()
120 static inline void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family) in selinux_netlbl_inet_csk_clone()
124 static inline int selinux_netlbl_socket_post_create(struct sock *sk, in selinux_netlbl_socket_post_create()
142 static inline int selinux_netlbl_socket_connect(struct sock *sk, in selinux_netlbl_socket_connect()
/linux-4.4.14/drivers/net/ppp/
Dpppoe.c289 struct sock *sk; in pppoe_flush_dev() local
372 static int pppoe_rcv_core(struct sock *sk, struct sk_buff *skb) in pppoe_rcv_core()
466 struct sock *sk = sk_pppox(po); in pppoe_unbind_sock_work() local
506 struct sock *sk = sk_pppox(po); in pppoe_disc_rcv() local
556 struct sock *sk; in pppoe_create() local
581 struct sock *sk = sock->sk; in pppoe_release() local
630 struct sock *sk = sock->sk; in pppoe_connect() local
755 struct sock *sk = sock->sk; in pppoe_ioctl() local
856 struct sock *sk = sock->sk; in pppoe_sendmsg() local
927 static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb) in __pppoe_xmit()
[all …]
Dpptp.c173 struct sock *sk = (struct sock *) chan->private; in pptp_xmit() local
297 static int pptp_rcv_core(struct sock *sk, struct sk_buff *skb) in pptp_rcv_core()
419 struct sock *sk = sock->sk; in pptp_bind() local
452 struct sock *sk = sock->sk; in pptp_connect() local
543 struct sock *sk = sock->sk; in pptp_release() local
574 static void pptp_sock_destruct(struct sock *sk) in pptp_sock_destruct()
586 struct sock *sk; in pptp_create() local
620 struct sock *sk = (struct sock *) chan->private; in pptp_ppp_ioctl() local
Dpppox.c57 void pppox_unbind_sock(struct sock *sk) in pppox_unbind_sock()
73 struct sock *sk = sock->sk; in pppox_ioctl() local
/linux-4.4.14/net/appletalk/
Dddp.c80 static inline void __atalk_insert_socket(struct sock *sk) in __atalk_insert_socket()
85 static inline void atalk_remove_socket(struct sock *sk) in atalk_remove_socket()
139 static struct sock *atalk_find_or_insert_socket(struct sock *sk, in atalk_find_or_insert_socket()
163 struct sock *sk = (struct sock *)data; in atalk_destroy_timer() local
172 static inline void atalk_destroy_socket(struct sock *sk) in atalk_destroy_socket()
1020 struct sock *sk; in atalk_create() local
1049 struct sock *sk = sock->sk; in atalk_release() local
1075 static int atalk_pick_and_bind_port(struct sock *sk, struct sockaddr_at *sat) in atalk_pick_and_bind_port()
1110 static int atalk_autobind(struct sock *sk) in atalk_autobind()
1134 struct sock *sk = sock->sk; in atalk_bind() local
[all …]
/linux-4.4.14/net/packet/
Daf_packet.c340 static void register_prot_hook(struct sock *sk) in register_prot_hook()
362 static void __unregister_prot_hook(struct sock *sk, bool sync) in __unregister_prot_hook()
382 static void unregister_prot_hook(struct sock *sk, bool sync) in unregister_prot_hook()
795 struct sock *sk = &po->sk; in prb_close_block() local
1267 struct sock *sk = &po->sk; in __packet_rcv_has_room() local
1311 static void packet_sock_destruct(struct sock *sk) in packet_sock_destruct()
1493 static void __fanout_link(struct sock *sk, struct packet_sock *po) in __fanout_link()
1504 static void __fanout_unlink(struct sock *sk, struct packet_sock *po) in __fanout_unlink()
1520 static bool match_fanout_group(struct packet_type *ptype, struct sock *sk) in match_fanout_group()
1625 static int fanout_add(struct sock *sk, u16 id, u16 type_flags) in fanout_add()
[all …]
/linux-4.4.14/net/ipx/
Daf_ipx.c114 static void ipx_remove_socket(struct sock *sk) in ipx_remove_socket()
131 static void ipx_destroy_socket(struct sock *sk) in ipx_destroy_socket()
201 static void ipxitf_insert_socket(struct ipx_interface *intrfc, struct sock *sk) in ipxitf_insert_socket()
421 struct sock *sk = NULL; in ncp_connection_hack() local
1269 struct sock *sk = sock->sk; in ipx_setsockopt() local
1295 struct sock *sk = sock->sk; in ipx_getsockopt() local
1335 struct sock *sk; in ipx_create() local
1365 struct sock *sk = sock->sk; in ipx_release() local
1411 struct sock *sk = sock->sk; in __ipx_bind() local
1506 struct sock *sk = sock->sk; in ipx_bind() local
[all …]
/linux-4.4.14/net/key/
Daf_key.c51 struct sock sk; member
68 static inline struct pfkey_sock *pfkey_sk(struct sock *sk) in pfkey_sk()
73 static int pfkey_can_dump(const struct sock *sk) in pfkey_can_dump()
93 static void pfkey_sock_destruct(struct sock *sk) in pfkey_sock_destruct()
114 static void pfkey_insert(struct sock *sk) in pfkey_insert()
124 static void pfkey_remove(struct sock *sk) in pfkey_remove()
141 struct sock *sk; in pfkey_create() local
173 struct sock *sk = sock->sk; in pfkey_release() local
191 gfp_t allocation, struct sock *sk) in pfkey_broadcast_one()
227 struct sock *sk; in pfkey_broadcast() local
[all …]
/linux-4.4.14/net/sunrpc/
Dxprtsock.c219 static inline struct rpc_xprt *xprt_from_sock(struct sock *sk) in xprt_from_sock()
456 struct sock *sk = transport->inet; in xs_nospace() local
742 static void xs_save_old_callbacks(struct sock_xprt *transport, struct sock *sk) in xs_save_old_callbacks()
750 static void xs_restore_old_callbacks(struct sock_xprt *transport, struct sock *sk) in xs_restore_old_callbacks()
780 static void xs_error_report(struct sock *sk) in xs_error_report()
806 struct sock *sk = transport->inet; in xs_reset_transport() local
911 struct sock *sk, in xs_local_data_read_skb()
956 struct sock *sk; in xs_local_data_receive() local
989 struct sock *sk, in xs_udp_data_read_skb()
1038 struct sock *sk; in xs_udp_data_receive() local
[all …]
Dsvcsock.c86 struct sock *sk = sock->sk; in svc_reclassify_socket() local
282 const struct sock *sk = svsk->sk_sk; in svc_one_sock_name() local
430 static void svc_udp_data_ready(struct sock *sk) in svc_udp_data_ready()
449 static void svc_write_space(struct sock *sk) in svc_write_space()
484 static void svc_tcp_write_space(struct sock *sk) in svc_tcp_write_space()
788 static void svc_tcp_listen_data_ready(struct sock *sk) in svc_tcp_listen_data_ready()
822 static void svc_tcp_state_change(struct sock *sk) in svc_tcp_state_change()
840 static void svc_tcp_data_ready(struct sock *sk) in svc_tcp_data_ready()
1349 struct sock *sk = svsk->sk_sk; in svc_tcp_init() local
1610 struct sock *sk = svsk->sk_sk; in svc_sock_detach() local
/linux-4.4.14/net/rds/
Daf_rds.c60 struct sock *sk = sock->sk; in rds_release() local
158 struct sock *sk = sock->sk; in rds_poll() local
378 struct sock *sk = sock->sk; in rds_connect() local
435 static void rds_sock_destruct(struct sock *sk) in rds_sock_destruct()
443 static int __rds_create(struct socket *sock, struct sock *sk, int protocol) in __rds_create()
473 struct sock *sk; in rds_create() local
Drecv.c69 static void rds_recv_rcvbuf_delta(struct rds_sock *rs, struct sock *sk, in rds_recv_rcvbuf_delta()
161 struct sock *sk; in rds_recv_incoming() local
270 struct sock *sk = rds_rs_to_sk(rs); in rds_still_queued() local
401 struct sock *sk = sock->sk; in rds_recvmsg() local
508 struct sock *sk = rds_rs_to_sk(rs); in rds_clear_recv_queue() local
Dtcp_listen.c145 void rds_tcp_listen_data_ready(struct sock *sk) in rds_tcp_listen_data_ready()
211 struct sock *sk; in rds_tcp_listen_stop() local
/linux-4.4.14/net/xfrm/
Dxfrm_output.c161 static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb) in xfrm_output2()
166 static int xfrm_output_gso(struct net *net, struct sock *sk, struct sk_buff *skb) in xfrm_output_gso()
197 int xfrm_output(struct sock *sk, struct sk_buff *skb) in xfrm_output()
/linux-4.4.14/security/smack/
Dsmack_netfilter.c29 struct sock *sk = skb_to_full_sk(skb); in smack_ipv6_output() local
47 struct sock *sk = skb_to_full_sk(skb); in smack_ipv4_output() local
/linux-4.4.14/net/bridge/
Dbr_input.c30 br_netif_receive_skb(struct net *net, struct sock *sk, struct sk_buff *skb) in br_netif_receive_skb()
129 int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in br_handle_frame_finish()
217 static int br_handle_local_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in br_handle_local_finish()
Dbr_nf_core.c28 static void fake_update_pmtu(struct dst_entry *dst, struct sock *sk, in fake_update_pmtu()
33 static void fake_redirect(struct dst_entry *dst, struct sock *sk, in fake_redirect()
Dbr_netfilter_hooks.c256 int br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_pre_routing_finish_bridge()
342 static int br_nf_pre_routing_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_pre_routing_finish()
535 static int br_nf_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_forward_finish()
667 static int br_nf_push_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_push_frag_xmit()
693 br_nf_ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, in br_nf_ip_fragment()
717 static int br_nf_dev_queue_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_dev_queue_xmit()
/linux-4.4.14/drivers/scsi/
Discsi_tcp.c114 static inline int iscsi_sw_sk_state_check(struct sock *sk) in iscsi_sw_sk_state_check()
128 static void iscsi_sw_tcp_data_ready(struct sock *sk) in iscsi_sw_tcp_data_ready()
160 static void iscsi_sw_tcp_state_change(struct sock *sk) in iscsi_sw_tcp_state_change()
191 static void iscsi_sw_tcp_write_space(struct sock *sk) in iscsi_sw_tcp_write_space()
220 struct sock *sk = tcp_sw_conn->sock->sk; in iscsi_sw_tcp_conn_set_callbacks() local
239 struct sock *sk = tcp_sw_conn->sock->sk; in iscsi_sw_tcp_conn_restore_callbacks() local
268 struct socket *sk = tcp_sw_conn->sock; in iscsi_sw_tcp_xmit_segment() local
650 struct sock *sk; in iscsi_sw_tcp_conn_bind() local
/linux-4.4.14/include/net/phonet/
Dphonet.h37 struct sock sk; member
43 static inline struct pn_sock *pn_sk(struct sock *sk) in pn_sk()
/linux-4.4.14/net/bluetooth/cmtp/
Dsock.c51 struct sock *sk = sock->sk; in cmtp_sock_release() local
201 struct sock *sk; in cmtp_sock_create() local

123