/net/rds/ |
D | tcp_listen.c | 48 static int rds_tcp_accept_one(struct socket *sock) in rds_tcp_accept_one() argument 55 ret = sock_create_lite(sock->sk->sk_family, sock->sk->sk_type, in rds_tcp_accept_one() 56 sock->sk->sk_protocol, &new_sock); in rds_tcp_accept_one() 60 new_sock->type = sock->type; in rds_tcp_accept_one() 61 new_sock->ops = sock->ops; in rds_tcp_accept_one() 62 ret = sock->ops->accept(sock, new_sock, O_NONBLOCK); in rds_tcp_accept_one() 111 void rds_tcp_listen_data_ready(struct sock *sk) in rds_tcp_listen_data_ready() 113 void (*ready)(struct sock *sk); in rds_tcp_listen_data_ready() 141 struct socket *sock = NULL; in rds_tcp_listen_init() local 144 ret = sock_create(PF_INET, SOCK_STREAM, IPPROTO_TCP, &sock); in rds_tcp_listen_init() [all …]
|
D | tcp_connect.c | 40 void rds_tcp_state_change(struct sock *sk) in rds_tcp_state_change() 42 void (*state_change)(struct sock *sk); in rds_tcp_state_change() 77 struct socket *sock = NULL; in rds_tcp_conn_connect() local 81 ret = sock_create(PF_INET, SOCK_STREAM, IPPROTO_TCP, &sock); in rds_tcp_conn_connect() 85 rds_tcp_tune(sock); in rds_tcp_conn_connect() 91 ret = sock->ops->bind(sock, (struct sockaddr *)&src, sizeof(src)); in rds_tcp_conn_connect() 106 rds_tcp_set_callbacks(sock, conn); in rds_tcp_conn_connect() 107 ret = sock->ops->connect(sock, (struct sockaddr *)&dest, sizeof(dest), in rds_tcp_conn_connect() 114 sock = NULL; in rds_tcp_conn_connect() 116 rds_tcp_restore_callbacks(sock, conn->c_transport_data); in rds_tcp_conn_connect() [all …]
|
D | tcp.c | 56 void rds_tcp_nonagle(struct socket *sock) in rds_tcp_nonagle() argument 62 sock->ops->setsockopt(sock, SOL_TCP, TCP_NODELAY, (char __user *)&val, in rds_tcp_nonagle() 67 void rds_tcp_tune(struct socket *sock) in rds_tcp_tune() argument 69 struct sock *sk = sock->sk; in rds_tcp_tune() 71 rds_tcp_nonagle(sock); in rds_tcp_tune() 94 void rds_tcp_restore_callbacks(struct socket *sock, in rds_tcp_restore_callbacks() argument 97 rdsdebug("restoring sock %p callbacks from tc %p\n", sock, tc); in rds_tcp_restore_callbacks() 98 write_lock_bh(&sock->sk->sk_callback_lock); in rds_tcp_restore_callbacks() 108 sock->sk->sk_write_space = tc->t_orig_write_space; in rds_tcp_restore_callbacks() 109 sock->sk->sk_data_ready = tc->t_orig_data_ready; in rds_tcp_restore_callbacks() [all …]
|
/net/ |
D | socket.c | 358 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname) in sock_alloc_file() argument 367 } else if (sock->sk) { in sock_alloc_file() 368 name.name = sock->sk->sk_prot_creator->name; in sock_alloc_file() 376 d_instantiate(path.dentry, SOCK_INODE(sock)); in sock_alloc_file() 377 SOCK_INODE(sock)->i_fop = &socket_file_ops; in sock_alloc_file() 388 sock->file = file; in sock_alloc_file() 390 file->private_data = sock; in sock_alloc_file() 395 static int sock_map_fd(struct socket *sock, int flags) in sock_map_fd() argument 402 newfile = sock_alloc_file(sock, flags, NULL); in sock_map_fd() 438 struct socket *sock; in sockfd_lookup() local [all …]
|
/net/dccp/ |
D | dccp.h | 56 void dccp_time_wait(struct sock *sk, int state, int timeo); 227 void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb); 229 int dccp_retransmit_skb(struct sock *sk); 231 void dccp_send_ack(struct sock *sk); 232 void dccp_reqsk_send_ack(struct sock *sk, struct sk_buff *skb, 235 void dccp_send_sync(struct sock *sk, const u64 seq, 241 void dccp_qpolicy_push(struct sock *sk, struct sk_buff *skb); 242 bool dccp_qpolicy_full(struct sock *sk); 243 void dccp_qpolicy_drop(struct sock *sk, struct sk_buff *skb); 244 struct sk_buff *dccp_qpolicy_top(struct sock *sk); [all …]
|
D | ccid.h | 59 int (*ccid_hc_rx_init)(struct ccid *ccid, struct sock *sk); 60 int (*ccid_hc_tx_init)(struct ccid *ccid, struct sock *sk); 61 void (*ccid_hc_rx_exit)(struct sock *sk); 62 void (*ccid_hc_tx_exit)(struct sock *sk); 63 void (*ccid_hc_rx_packet_recv)(struct sock *sk, 65 int (*ccid_hc_rx_parse_options)(struct sock *sk, u8 pkt, 67 int (*ccid_hc_rx_insert_options)(struct sock *sk, 69 void (*ccid_hc_tx_packet_recv)(struct sock *sk, 71 int (*ccid_hc_tx_parse_options)(struct sock *sk, u8 pkt, 73 int (*ccid_hc_tx_send_packet)(struct sock *sk, [all …]
|
D | qpolicy.c | 18 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() 73 void (*push) (struct sock *sk, struct sk_buff *skb); 74 bool (*full) (struct sock *sk); 75 struct sk_buff* (*top) (struct sock *sk); 96 void dccp_qpolicy_push(struct sock *sk, struct sk_buff *skb) in dccp_qpolicy_push() [all …]
|
/net/llc/ |
D | llc_c_ev.c | 75 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 …]
|
D | llc_c_ac.c | 32 static int llc_conn_ac_inc_vs_by_1(struct sock *sk, struct sk_buff *skb); 33 static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb); 34 static int llc_conn_ac_data_confirm(struct sock *sk, struct sk_buff *ev); 36 static int llc_conn_ac_inc_npta_value(struct sock *sk, struct sk_buff *skb); 38 static int llc_conn_ac_send_rr_rsp_f_set_ackpf(struct sock *sk, 41 static int llc_conn_ac_set_p_flag_1(struct sock *sk, struct sk_buff *skb); 45 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() [all …]
|
/net/atm/ |
D | svc.c | 30 static int svc_create(struct net *net, struct socket *sock, int protocol, 40 static int svc_shutdown(struct socket *sock, int how) in svc_shutdown() argument 49 struct sock *sk = sk_atm(vcc); in svc_disconnect() 74 static int svc_release(struct socket *sock) in svc_release() argument 76 struct sock *sk = sock->sk; in svc_release() 80 vcc = ATM_SD(sock); in svc_release() 89 vcc_release(sock); in svc_release() 94 static int svc_bind(struct socket *sock, struct sockaddr *sockaddr, in svc_bind() argument 98 struct sock *sk = sock->sk; in svc_bind() 106 if (sock->state == SS_CONNECTED) { in svc_bind() [all …]
|
D | pvc.c | 21 static int pvc_shutdown(struct socket *sock, int how) in pvc_shutdown() argument 26 static int pvc_bind(struct socket *sock, struct sockaddr *sockaddr, in pvc_bind() argument 29 struct sock *sk = sock->sk; in pvc_bind() 40 vcc = ATM_SD(sock); in pvc_bind() 51 error = vcc_connect(sock, addr->sap_addr.itf, addr->sap_addr.vpi, in pvc_bind() 58 static int pvc_connect(struct socket *sock, struct sockaddr *sockaddr, in pvc_connect() argument 61 return pvc_bind(sock, sockaddr, sockaddr_len); in pvc_connect() 64 static int pvc_setsockopt(struct socket *sock, int level, int optname, in pvc_setsockopt() argument 67 struct sock *sk = sock->sk; in pvc_setsockopt() 71 error = vcc_setsockopt(sock, level, optname, optval, optlen); in pvc_setsockopt() [all …]
|
/net/nfc/ |
D | llcp_commands.c | 249 int nfc_llcp_parse_connection_tlv(struct nfc_llcp_sock *sock, in nfc_llcp_parse_connection_tlv() argument 256 if (sock == NULL) in nfc_llcp_parse_connection_tlv() 267 sock->remote_miu = llcp_tlv_miux(tlv) + 128; in nfc_llcp_parse_connection_tlv() 270 sock->remote_rw = llcp_tlv_rw(tlv); in nfc_llcp_parse_connection_tlv() 283 pr_debug("sock %p rw %d miu %d\n", sock, in nfc_llcp_parse_connection_tlv() 284 sock->remote_rw, sock->remote_miu); in nfc_llcp_parse_connection_tlv() 319 static struct sk_buff *llcp_allocate_pdu(struct nfc_llcp_sock *sock, in llcp_allocate_pdu() argument 325 if (sock->ssap == 0) in llcp_allocate_pdu() 328 skb = nfc_alloc_send_skb(sock->dev, &sock->sk, MSG_DONTWAIT, in llcp_allocate_pdu() 335 skb = llcp_add_header(skb, sock->dsap, sock->ssap, cmd); in llcp_allocate_pdu() [all …]
|
D | rawsock.c | 34 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() 69 static int rawsock_release(struct socket *sock) in rawsock_release() argument 71 struct sock *sk = sock->sk; in rawsock_release() 73 pr_debug("sock=%p sk=%p\n", sock, sk); in rawsock_release() 78 if (sock->type == SOCK_RAW) in rawsock_release() 87 static int rawsock_connect(struct socket *sock, struct sockaddr *_addr, in rawsock_connect() argument 90 struct sock *sk = sock->sk; in rawsock_connect() [all …]
|
D | llcp_sock.c | 28 static int sock_wait_state(struct sock *sk, int state, unsigned long timeo) in sock_wait_state() 70 static int llcp_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in llcp_sock_bind() argument 72 struct sock *sk = sock->sk; in llcp_sock_bind() 144 static int llcp_raw_sock_bind(struct socket *sock, struct sockaddr *addr, in llcp_raw_sock_bind() argument 147 struct sock *sk = sock->sk; in llcp_raw_sock_bind() 199 static int llcp_sock_listen(struct socket *sock, int backlog) in llcp_sock_listen() argument 201 struct sock *sk = sock->sk; in llcp_sock_listen() 208 if ((sock->type != SOCK_SEQPACKET && sock->type != SOCK_STREAM) || in llcp_sock_listen() 226 static int nfc_llcp_setsockopt(struct socket *sock, int level, int optname, in nfc_llcp_setsockopt() argument 229 struct sock *sk = sock->sk; in nfc_llcp_setsockopt() [all …]
|
/net/ipv4/ |
D | udp_tunnel.c | 15 struct socket *sock = NULL; in udp_sock_create4() local 18 err = sock_create_kern(AF_INET, SOCK_DGRAM, 0, &sock); in udp_sock_create4() 22 sk_change_net(sock->sk, net); in udp_sock_create4() 27 err = kernel_bind(sock, (struct sockaddr *)&udp_addr, in udp_sock_create4() 36 err = kernel_connect(sock, (struct sockaddr *)&udp_addr, in udp_sock_create4() 42 sock->sk->sk_no_check_tx = !cfg->use_udp_checksums; in udp_sock_create4() 44 *sockp = sock; in udp_sock_create4() 48 if (sock) { in udp_sock_create4() 49 kernel_sock_shutdown(sock, SHUT_RDWR); in udp_sock_create4() 50 sk_release_kernel(sock->sk); in udp_sock_create4() [all …]
|
/net/bluetooth/rfcomm/ |
D | sock.c | 42 static void rfcomm_sock_close(struct sock *sk); 43 static void rfcomm_sock_kill(struct sock *sk); 51 struct sock *sk = d->owner; in rfcomm_sk_data_ready() 65 struct sock *sk = d->owner, *parent; in rfcomm_sk_state_change() 108 static struct sock *__rfcomm_get_listen_sock_by_addr(u8 channel, bdaddr_t *src) in __rfcomm_get_listen_sock_by_addr() 110 struct sock *sk = NULL; in __rfcomm_get_listen_sock_by_addr() 129 static struct sock *rfcomm_get_sock_by_channel(int state, u8 channel, bdaddr_t *src) in rfcomm_get_sock_by_channel() 131 struct sock *sk = NULL, *sk1 = NULL; in rfcomm_get_sock_by_channel() 155 static void rfcomm_sock_destruct(struct sock *sk) in rfcomm_sock_destruct() 175 static void rfcomm_sock_cleanup_listen(struct sock *parent) in rfcomm_sock_cleanup_listen() [all …]
|
/net/phonet/ |
D | socket.c | 39 static int pn_socket_release(struct socket *sock) in pn_socket_release() argument 41 struct sock *sk = sock->sk; in pn_socket_release() 44 sock->sk = NULL; in pn_socket_release() 77 struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *spn) in pn_find_sock_by_sa() 79 struct sock *sknode; in pn_find_sock_by_sa() 80 struct sock *rval = NULL; in pn_find_sock_by_sa() 122 struct sock *sknode; in pn_deliver_sock_broadcast() 143 void pn_sock_hash(struct sock *sk) in pn_sock_hash() 153 void pn_sock_unhash(struct sock *sk) in pn_sock_unhash() 165 static int pn_socket_bind(struct socket *sock, struct sockaddr *addr, int len) in pn_socket_bind() argument [all …]
|
/net/bluetooth/ |
D | sco.c | 48 struct sock *sk; 56 static void sco_sock_close(struct sock *sk); 57 static void sco_sock_kill(struct sock *sk); 77 struct sock *sk = (struct sock *) arg; in sco_sock_timeout() 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() 185 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) in __sco_chan_add() 196 static int sco_chan_add(struct sco_conn *conn, struct sock *sk, in sco_chan_add() [all …]
|
D | l2cap_sock.c | 44 static void l2cap_sock_init(struct sock *sk, struct sock *parent); 45 static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, 48 bool l2cap_is_socket(struct socket *sock) in l2cap_is_socket() argument 50 return sock && sock->ops == &l2cap_sock_ops; in l2cap_is_socket() 80 static int l2cap_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in l2cap_sock_bind() argument 82 struct sock *sk = sock->sk; in l2cap_sock_bind() 173 static int l2cap_sock_connect(struct socket *sock, struct sockaddr *addr, in l2cap_sock_connect() argument 176 struct sock *sk = sock->sk; in l2cap_sock_connect() 251 static int l2cap_sock_listen(struct socket *sock, int backlog) in l2cap_sock_listen() argument 253 struct sock *sk = sock->sk; in l2cap_sock_listen() [all …]
|
/net/vmw_vsock/ |
D | af_vsock.c | 101 static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr); 102 static void vsock_sk_destruct(struct sock *sk); 103 static int vsock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb); 170 struct sock *sk = sk_vsock(vsk); in vsock_auto_bind() 216 static struct sock *__vsock_find_bound_socket(struct sockaddr_vm *addr) in __vsock_find_bound_socket() 227 static struct sock *__vsock_find_connected_socket(struct sockaddr_vm *src, in __vsock_find_connected_socket() 287 struct sock *vsock_find_bound_socket(struct sockaddr_vm *addr) in vsock_find_bound_socket() 289 struct sock *sk; in vsock_find_bound_socket() 302 struct sock *vsock_find_connected_socket(struct sockaddr_vm *src, in vsock_find_connected_socket() 305 struct sock *sk; in vsock_find_connected_socket() [all …]
|
D | vmci_transport_notify.h | 48 void (*socket_init) (struct sock *sk); 50 int (*poll_in) (struct sock *sk, size_t target, 52 int (*poll_out) (struct sock *sk, size_t target, 54 void (*handle_notify_pkt) (struct sock *sk, 59 int (*recv_init) (struct sock *sk, size_t target, 61 int (*recv_pre_block) (struct sock *sk, size_t target, 63 int (*recv_pre_dequeue) (struct sock *sk, size_t target, 65 int (*recv_post_dequeue) (struct sock *sk, size_t target, 68 int (*send_init) (struct sock *sk, 70 int (*send_pre_block) (struct sock *sk, [all …]
|
/net/tipc/ |
D | socket.c | 79 struct sock sk; 100 static int tipc_backlog_rcv(struct sock *sk, struct sk_buff *skb); 101 static void tipc_data_ready(struct sock *sk); 102 static void tipc_write_space(struct sock *sk); 103 static int tipc_release(struct socket *sock); 104 static int tipc_accept(struct socket *sock, struct socket *new_sock, int flags); 105 static int tipc_wait_for_sndmsg(struct socket *sock, long *timeo_p); 212 static struct tipc_sock *tipc_sk(const struct sock *sk) in tipc_sk() 227 static void tsk_advance_rx_queue(struct sock *sk) in tsk_advance_rx_queue() 237 static void tsk_rej_rx_queue(struct sock *sk) in tsk_rej_rx_queue() [all …]
|
/net/unix/ |
D | af_unix.c | 174 static inline int unix_our_peer(struct sock *sk, struct sock *osk) in unix_our_peer() 179 static inline int unix_may_send(struct sock *sk, struct sock *osk) in unix_may_send() 184 static inline int unix_recvq_full(struct sock const *sk) in unix_recvq_full() 189 struct sock *unix_peer_get(struct sock *s) in unix_peer_get() 191 struct sock *peer; in unix_peer_get() 238 static void __unix_remove_socket(struct sock *sk) in __unix_remove_socket() 243 static void __unix_insert_socket(struct hlist_head *list, struct sock *sk) in __unix_insert_socket() 249 static inline void unix_remove_socket(struct sock *sk) in unix_remove_socket() 256 static inline void unix_insert_socket(struct hlist_head *list, struct sock *sk) in unix_insert_socket() 263 static struct sock *__unix_find_socket_byname(struct net *net, in __unix_find_socket_byname() [all …]
|
/net/netrom/ |
D | nr_timer.c | 38 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 …]
|
/net/netlink/ |
D | af_netlink.c | 86 static inline int netlink_is_kernel(struct sock *sk) in netlink_is_kernel() 134 static int netlink_dump(struct sock *sk); 246 struct sock *sk = skb->sk; in netlink_filter_tap() 270 struct sock *sk = skb->sk; in __netlink_deliver_tap_skb() 322 static void netlink_deliver_tap_kernel(struct sock *dst, struct sock *src, in netlink_deliver_tap_kernel() 329 static void netlink_overrun(struct sock *sk) in netlink_overrun() 342 static void netlink_rcv_wake(struct sock *sk) in netlink_rcv_wake() 365 static void netlink_skb_set_owner_r(struct sk_buff *skb, struct sock *sk) in netlink_skb_set_owner_r() 374 static void netlink_sock_destruct(struct sock *sk) in netlink_sock_destruct() 462 struct sock *sk = ptr; in netlink_compare() [all …]
|