/linux-master/net/bluetooth/rfcomm/ |
H A D | sock.c | 43 static void rfcomm_sock_close(struct sock *sk); 44 static void rfcomm_sock_kill(struct sock *sk); 52 struct sock *sk = d->owner; 66 struct sock *sk = d->owner, *parent; 106 static struct sock *__rfcomm_get_listen_sock_by_addr(u8 channel, bdaddr_t *src) 108 struct sock *sk = NULL; 127 static struct sock *rfcomm_get_sock_by_channel(int state, u8 channel, bdaddr_t *src) 129 struct sock *sk = NULL, *sk1 = NULL; 153 static void rfcomm_sock_destruct(struct sock *sk) 173 static void rfcomm_sock_cleanup_listen(struct sock *paren 271 rfcomm_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio, int kern) argument 305 rfcomm_sock_create(struct net *net, struct socket *sock, int protocol, int kern) argument 327 rfcomm_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) argument 374 rfcomm_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) argument 422 rfcomm_sock_listen(struct socket *sock, int backlog) argument 471 rfcomm_sock_accept(struct socket *sock, struct socket *newsock, int flags, bool kern) argument 532 rfcomm_sock_getname(struct socket *sock, struct sockaddr *addr, int peer) argument 554 rfcomm_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument 594 rfcomm_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int flags) argument 619 rfcomm_sock_setsockopt_old(struct socket *sock, int optname, sockptr_t optval, unsigned int optlen) argument 661 rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) argument 726 rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __user *optlen) argument 801 rfcomm_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument 857 rfcomm_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 880 rfcomm_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 886 rfcomm_sock_shutdown(struct socket *sock, int how) argument 912 rfcomm_sock_release(struct socket *sock) argument [all...] |
/linux-master/include/net/ |
H A D | busy_poll.h | 40 static inline bool sk_can_busy_loop(const struct sock *sk) 61 static inline bool sk_can_busy_loop(struct sock *sk) 93 static inline bool sk_busy_loop_timeout(struct sock *sk, 109 static inline void sk_busy_loop(struct sock *sk, int nonblock) 135 static inline void sk_mark_napi_id(struct sock *sk, const struct sk_buff *skb) 148 static inline void sk_mark_napi_id_set(struct sock *sk, 157 static inline void __sk_mark_napi_id_once(struct sock *sk, unsigned int napi_id) 166 static inline void sk_mark_napi_id_once(struct sock *sk, 174 static inline void sk_mark_napi_id_once_xdp(struct sock *sk,
|
H A D | tls.h | 90 struct sock *sk; 108 struct sock *sk; 127 void (*saved_data_ready)(struct sock *sk); 160 void (*sk_destruct)(struct sock *sk); 227 int (*push_pending_record)(struct sock *sk, int flags); 228 void (*sk_write_space)(struct sock *sk); 252 struct sock *sk; 254 void (*sk_destruct)(struct sock *sk); 270 int (*tls_dev_add)(struct net_device *netdev, struct sock *sk, 278 struct sock *s [all...] |
H A D | llc_if.h | 65 int llc_establish_connection(struct sock *sk, const u8 *lmac, u8 *dmac, 67 int llc_build_and_send_pkt(struct sock *sk, struct sk_buff *skb); 68 int llc_send_disc(struct sock *sk);
|
H A D | ipv6_stubs.h | 11 #include <net/sock.h> 23 int (*ipv6_sock_mc_join)(struct sock *sk, int ifindex, 25 int (*ipv6_sock_mc_drop)(struct sock *sk, int ifindex, 28 const struct sock *sk, 62 int (*xfrm6_udp_encap_rcv)(struct sock *sk, struct sk_buff *skb); 63 struct sk_buff *(*xfrm6_gro_udp_encap_rcv)(struct sock *sk, 71 int (*ipv6_fragment)(struct net *net, struct sock *sk, struct sk_buff *skb, 72 int (*output)(struct net *, struct sock *, struct sk_buff *)); 80 int (*inet6_bind)(struct sock *sk, struct sockaddr *uaddr, int addr_len, 82 struct sock *(*udp6_lib_looku [all...] |
H A D | mptcp.h | 123 static inline bool sk_is_mptcp(const struct sock *sk) 138 void mptcp_space(const struct sock *ssk, int *space, int *full_space); 139 bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb, 143 bool mptcp_established_options(struct sock *sk, struct sk_buff *skb, 146 bool mptcp_incoming_options(struct sock *sk, struct sk_buff *skb); 208 const struct sock *sk_listener, 211 struct sock *sk_listener, 229 static inline bool sk_is_mptcp(const struct sock *sk) 244 static inline bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb, 258 static inline bool mptcp_established_options(struct sock *s [all...] |
H A D | af_vsock.h | 13 #include <net/sock.h> 30 struct sock sk; 49 struct sock *listener; 81 struct sock *vsock_create_connected(struct sock *parent); 82 void vsock_data_ready(struct sock *sk); 207 void vsock_add_pending(struct sock *listener, struct sock *pending); 208 void vsock_remove_pending(struct sock *listener, struct sock *pendin [all...] |
/linux-master/drivers/pcmcia/ |
H A D | i82365.c | 217 static u_char i365_get(u_short sock, u_short reg) argument 222 unsigned int port = socket[sock].ioaddr; 224 reg = I365_REG(socket[sock].psock, reg); 231 static void i365_set(u_short sock, u_short reg, u_char data) argument 236 unsigned int port = socket[sock].ioaddr; 237 u_char val = I365_REG(socket[sock].psock, reg); 243 static void i365_bset(u_short sock, u_short reg, u_char mask) argument 245 u_char d = i365_get(sock, reg); 247 i365_set(sock, reg, d); 250 static void i365_bclr(u_short sock, u_shor argument 257 i365_bflip(u_short sock, u_short reg, u_char mask, int b) argument 267 i365_get_pair(u_short sock, u_short reg) argument 275 i365_set_pair(u_short sock, u_short reg, u_short data) argument 489 test_irq(u_short sock, int irq) argument 517 isa_scan(u_short sock, u_int mask0) argument 572 identify(unsigned int port, u_short sock) argument 640 is_alive(u_short sock) argument 755 int i, j, sock, k, ns, id; local 887 i365_get_status(u_short sock, u_int *value) argument 922 i365_set_socket(u_short sock, socket_state_t *state) argument 1032 i365_set_io_map(u_short sock, struct pccard_io_map *io) argument 1061 i365_set_mem_map(u_short sock, struct pccard_mem_map *mem) argument 1166 unsigned int sock = container_of(s, struct i82365_socket, socket)->number; local 1178 unsigned int sock = container_of(s, struct i82365_socket, socket)->number; local 1188 unsigned int sock = container_of(s, struct i82365_socket, socket)->number; local 1197 unsigned int sock = container_of(s, struct i82365_socket, socket)->number; local [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | tcp_ca_write_sk_pacing.c | 14 static inline struct tcp_sock *tcp_sk(const struct sock *sk) 30 void BPF_PROG(write_sk_pacing_init, struct sock *sk) 41 void BPF_PROG(write_sk_pacing_cong_control, struct sock *sk, 53 __u32 BPF_PROG(write_sk_pacing_ssthresh, struct sock *sk) 59 __u32 BPF_PROG(write_sk_pacing_undo_cwnd, struct sock *sk)
|
H A D | sk_storage_omem_uncharge.c | 25 struct sock *sk; 30 sk = bpf_core_cast(sk_ptr, struct sock); 42 int BPF_PROG(inet6_sock_destruct, struct sock *sk)
|
H A D | sock_iter_batch.c | 26 struct sock *sk = (struct sock *)ctx->sk_common; 35 sk = bpf_core_cast(sk, struct sock); 64 struct sock *sk = (struct sock *)ctx->udp_sk; 71 sk = bpf_core_cast(sk, struct sock);
|
H A D | kfunc_call_test_subprog.c | 26 sk_state_res = bpf_kfunc_call_test3((struct sock *)sk)->__sk_common.skc_state; 28 return (__u32)bpf_kfunc_call_test1((struct sock *)sk, 1, 2, 3, 4);
|
H A D | test_skc_to_unix_sock.c | 13 int BPF_PROG(unix_listen, struct socket *sock, int backlog) argument 22 unix_sk = (struct unix_sock *)bpf_skc_to_unix_sock(sock->sk);
|
/linux-master/net/ |
H A D | socket.c | 100 #include <net/sock.h> 111 #include <trace/events/sock.h> 139 struct socket *sock = f->private_data; local 140 const struct proto_ops *ops = READ_ONCE(sock->ops); 143 ops->show_fdinfo(m, sock); 436 * and file struct implicitly stored in sock->file. 450 * @sock: socket 454 * Returns the &file bound with @sock, implicitly storing it 455 * in sock->file. If dname is %NULL, sets to "". 457 * On failure @sock i 462 sock_alloc_file(struct socket *sock, int flags, const char *dname) argument 485 sock_map_fd(struct socket *sock, int flags) argument 536 struct socket *sock; local 556 struct socket *sock; local 605 struct socket *sock = SOCKET_I(d_inode(dentry)); local 632 struct socket *sock; local 650 __sock_release(struct socket *sock, struct inode *inode) argument 685 sock_release(struct socket *sock) argument 728 sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg) argument 740 __sock_sendmsg(struct socket *sock, struct msghdr *msg) argument 756 sock_sendmsg(struct socket *sock, struct msghdr *msg) argument 788 kernel_sendmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec, size_t num, size_t size) argument 812 struct socket *sock = sk->sk_socket; local 1043 sock_recvmsg_nosec(struct socket *sock, struct msghdr *msg, int flags) argument 1064 sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags) argument 1088 kernel_recvmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec, size_t num, size_t size, int flags) argument 1101 struct socket *sock = file->private_data; local 1113 struct socket *sock = file->private_data; local 1124 struct socket *sock = file->private_data; local 1146 struct socket *sock = file->private_data; local 1212 sock_do_ioctl(struct net *net, struct socket *sock, unsigned int cmd, unsigned long arg) argument 1252 struct socket *sock; local 1363 struct socket *sock = NULL; local 1393 struct socket *sock = file->private_data; local 1414 struct socket *sock = file->private_data; local 1438 struct socket *sock = filp->private_data; local 1504 struct socket *sock; local 1646 struct socket *sock; local 1668 struct socket *sock; local 1703 struct socket *sock; local 1835 struct socket *sock; local 1869 struct socket *sock; local 1897 struct socket *sock, *newsock; local 2034 struct socket *sock; local 2086 struct socket *sock; local 2124 struct socket *sock; local 2162 struct socket *sock; local 2229 struct socket *sock; local 2273 sock_use_custom_sol_socket(const struct socket *sock) argument 2278 do_sock_setsockopt(struct socket *sock, bool compat, int level, int optname, sockptr_t optval, int optlen) argument 2328 struct socket *sock; local 2349 do_sock_getsockopt(struct socket *sock, bool compat, int level, int optname, sockptr_t optval, sockptr_t optlen) argument 2394 struct socket *sock; local 2419 __sys_shutdown_sock(struct socket *sock, int how) argument 2433 struct socket *sock; local 2527 ____sys_sendmsg(struct socket *sock, struct msghdr *msg_sys, unsigned int flags, struct used_address *used_address, unsigned int allowed_msghdr_flags) argument 2623 ___sys_sendmsg(struct socket *sock, struct user_msghdr __user *msg, struct msghdr *msg_sys, unsigned int flags, struct used_address *used_address, unsigned int allowed_msghdr_flags) argument 2647 __sys_sendmsg_sock(struct socket *sock, struct msghdr *msg, unsigned int flags) argument 2658 struct socket *sock; local 2687 struct socket *sock; local 2777 ____sys_recvmsg(struct socket *sock, struct msghdr *msg_sys, struct user_msghdr __user *msg, struct sockaddr __user *uaddr, unsigned int flags, int nosec) argument 2833 ___sys_recvmsg(struct socket *sock, struct user_msghdr __user *msg, struct msghdr *msg_sys, unsigned int flags, int nosec) argument 2854 __sys_recvmsg_sock(struct socket *sock, struct msghdr *msg, struct user_msghdr __user *umsg, struct sockaddr __user *uaddr, unsigned int flags) argument 2866 struct socket *sock; local 2897 struct socket *sock; local 3411 compat_sock_ioctl_trans(struct file *file, struct socket *sock, unsigned int cmd, unsigned long arg) argument 3511 struct socket *sock = file->private_data; local 3543 kernel_bind(struct socket *sock, struct sockaddr *addr, int addrlen) argument 3562 kernel_listen(struct socket *sock, int backlog) argument 3579 kernel_accept(struct socket *sock, struct socket **newsock, int flags) argument 3618 kernel_connect(struct socket *sock, struct sockaddr *addr, int addrlen, int flags) argument 3639 kernel_getsockname(struct socket *sock, struct sockaddr *addr) argument 3654 kernel_getpeername(struct socket *sock, struct sockaddr *addr) argument 3668 kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how) argument [all...] |
/linux-master/net/nfc/ |
H A D | llcp_sock.c | 17 static int sock_wait_state(struct sock *sk, int state, unsigned long timeo) 59 static int llcp_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) argument 61 struct sock *sk = sock->sk; 149 static int llcp_raw_sock_bind(struct socket *sock, struct sockaddr *addr, argument 152 struct sock *sk = sock->sk; 204 static int llcp_sock_listen(struct socket *sock, int backlog) argument 206 struct sock *sk = sock 231 nfc_llcp_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) argument 304 nfc_llcp_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument 449 llcp_sock_accept(struct socket *sock, struct socket *newsock, int flags, bool kern) argument 503 llcp_sock_getname(struct socket *sock, struct sockaddr *uaddr, int peer) argument 555 llcp_sock_poll(struct file *file, struct socket *sock, poll_table *wait) argument 594 llcp_sock_release(struct socket *sock) argument 651 llcp_sock_connect(struct socket *sock, struct sockaddr *_addr, int len, int flags) argument 775 llcp_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument 828 llcp_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) argument 974 nfc_llcp_sock_alloc(struct socket *sock, int type, gfp_t gfp, int kern) argument 1010 nfc_llcp_sock_free(struct nfc_llcp_sock *sock) argument 1024 llcp_sock_create(struct net *net, struct socket *sock, const struct nfc_protocol *nfc_proto, int kern) argument [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | bpf_tcp_helpers.h | 36 struct sock { struct 44 struct sock sk; 91 static __always_inline struct inet_connection_sock *inet_csk(const struct sock *sk) 96 static __always_inline void *inet_csk_ca(const struct sock *sk) 101 static __always_inline struct tcp_sock *tcp_sk(const struct sock *sk) 164 void (*init)(struct sock *sk); 166 void (*release)(struct sock *sk); 169 __u32 (*ssthresh)(struct sock *sk); 171 void (*cong_avoid)(struct sock *sk, __u32 ack, __u32 acked); 173 void (*set_state)(struct sock *s [all...] |
/linux-master/tools/lib/thermal/ |
H A D | thermal_nl.c | 55 int nl_send_msg(struct nl_sock *sock, struct nl_cb *cb, struct nl_msg *msg, argument 61 err = nl_send_auto_complete(sock, msg); 70 nl_recvmsgs(sock, cb); 113 static int nl_get_multicast_id(struct nl_sock *sock, struct nl_cb *cb, argument 127 ctrlid = genl_ctrl_resolve(sock, "nlctrl"); 133 ret = nl_send_msg(sock, cb, msg, nl_family_handler, &grp); 147 struct nl_sock *sock; local 153 sock = nl_socket_alloc(); 154 if (!sock) 157 if (genl_connect(sock)) [all...] |
/linux-master/net/llc/ |
H A D | llc_c_ev.c | 39 #include <net/sock.h> 75 static u16 llc_util_nr_inside_tx_window(struct sock *sk, u8 nr) 99 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb) 107 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb) 115 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb) 123 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb) 131 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb) 139 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb) 147 int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb) 152 int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *s [all...] |
/linux-master/net/bluetooth/cmtp/ |
H A D | sock.c | 38 #include <net/sock.h> 49 static int cmtp_sock_release(struct socket *sock) argument 51 struct sock *sk = sock->sk; 53 BT_DBG("sock %p sk %p", sock, sk); 66 static int do_cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) argument 85 nsock = sockfd_lookup(ca.sock, &err); 139 static int cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 141 return do_cmtp_sock_ioctl(sock, cm 145 cmtp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 200 cmtp_sock_create(struct net *net, struct socket *sock, int protocol, int kern) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | fs_tcp.h | 13 struct sock *sk, u32 tirn, 20 struct sock *sk, u32 tirn,
|
/linux-master/drivers/infiniband/hw/erdma/ |
H A D | erdma_cm.h | 16 #include <net/sock.h> 68 void (*sk_state_change)(struct sock *sk); 69 void (*sk_data_ready)(struct sock *sk, int bytes); 70 void (*sk_error_report)(struct sock *sk); 100 struct socket *sock; member in struct:erdma_cep 113 /* Saved upcalls of socket llp.sock */ 114 void (*sk_state_change)(struct sock *sk); 115 void (*sk_data_ready)(struct sock *sk); 116 void (*sk_error_report)(struct sock *sk);
|
/linux-master/drivers/infiniband/sw/siw/ |
H A D | siw_cm.h | 11 #include <net/sock.h> 51 struct socket *sock; member in struct:siw_cep 62 void (*sk_state_change)(struct sock *sk); 63 void (*sk_data_ready)(struct sock *sk); 64 void (*sk_write_space)(struct sock *sk); 65 void (*sk_error_report)(struct sock *sk); 105 static inline int ksock_recv(struct socket *sock, char *buf, size_t size, argument 111 return kernel_recvmsg(sock, &msg, &iov, 1, size, flags);
|
/linux-master/net/mptcp/ |
H A D | protocol.h | 258 /* MPTCP connection sock */ 319 struct sock *first; /* The mptcp ops can safely dereference, using suitable 321 * lock as such sock is freed after close(). 350 sock_owned_by_me((const struct sock *)msk); 374 static inline int __mptcp_rmem(const struct sock *sk) 379 static inline int mptcp_win_from_space(const struct sock *sk, int space) 384 static inline int __mptcp_space(const struct sock *sk) 389 static inline struct mptcp_data_frag *mptcp_send_head(const struct sock *sk) 396 static inline struct mptcp_data_frag *mptcp_send_next(struct sock *sk) 406 static inline struct mptcp_data_frag *mptcp_pending_tail(const struct sock *s [all...] |
/linux-master/include/linux/ |
H A D | skmsg.h | 12 #include <net/sock.h> 51 struct sock *sk_redir; 52 struct sock *sk; 80 struct sock *sk; 81 struct sock *sk_redir; 98 void (*saved_unhash)(struct sock *sk); 99 void (*saved_destroy)(struct sock *sk); 100 void (*saved_close)(struct sock *sk, long timeout); 101 void (*saved_write_space)(struct sock *sk); 102 void (*saved_data_ready)(struct sock *s [all...] |
/linux-master/fs/dlm/ |
H A D | lowcomms.c | 46 #include <net/sock.h> 57 #include <trace/events/sock.h> 70 struct socket *sock; /* NULL if not connected */ member in struct:connection 73 * lock mode. When we release a sock we need to held the write lock. 118 struct socket *sock; member in struct:listen_connection 164 int (*connect)(struct connection *con, struct socket *sock, 166 void (*sockopts)(struct socket *sock); 167 int (*bind)(struct socket *sock); 169 void (*listen_sockopts)(struct socket *sock); 170 int (*listen_bind)(struct socket *sock); 644 add_sock(struct socket *sock, struct connection *con) argument 716 dlm_close_sock(struct socket **sock) argument 1129 sctp_bind_addrs(struct socket *sock, uint16_t port) argument 1564 struct socket *sock; local 1759 struct socket *sock; local 1809 dlm_tcp_bind(struct socket *sock) argument 1830 dlm_tcp_connect(struct connection *con, struct socket *sock, struct sockaddr *addr, int addr_len) argument 1847 dlm_tcp_sockopts(struct socket *sock) argument 1853 dlm_tcp_listen_sockopts(struct socket *sock) argument 1859 dlm_tcp_listen_bind(struct socket *sock) argument 1880 dlm_sctp_bind(struct socket *sock) argument 1885 dlm_sctp_connect(struct connection *con, struct socket *sock, struct sockaddr *addr, int addr_len) argument 1912 dlm_sctp_bind_listen(struct socket *sock) argument 1917 dlm_sctp_sockopts(struct socket *sock) argument [all...] |