Searched refs:sock (Results 76 - 100 of 1083) sorted by relevance

1234567891011>>

/linux-master/net/nfc/
H A Dllcp_commands.c242 int nfc_llcp_parse_connection_tlv(struct nfc_llcp_sock *sock, argument
250 if (sock == NULL)
261 sock->remote_miu = llcp_tlv_miux(tlv) + 128;
264 sock->remote_rw = llcp_tlv_rw(tlv);
277 pr_debug("sock %p rw %d miu %d\n", sock,
278 sock->remote_rw, sock->remote_miu);
313 static struct sk_buff *llcp_allocate_pdu(struct nfc_llcp_sock *sock, argument
319 if (sock
334 nfc_llcp_send_disconnect(struct nfc_llcp_sock *sock) argument
392 nfc_llcp_send_connect(struct nfc_llcp_sock *sock) argument
468 nfc_llcp_send_cc(struct nfc_llcp_sock *sock) argument
646 nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock, struct msghdr *msg, size_t len) argument
729 nfc_llcp_send_ui_frame(struct nfc_llcp_sock *sock, u8 ssap, u8 dsap, struct msghdr *msg, size_t len) argument
793 nfc_llcp_send_rr(struct nfc_llcp_sock *sock) argument
[all...]
H A Drawsock.c23 static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk)
30 static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk)
37 static void rawsock_write_queue_purge(struct sock *sk)
47 static void rawsock_report_error(struct sock *sk, int err)
58 static int rawsock_release(struct socket *sock) argument
60 struct sock *sk = sock->sk;
62 pr_debug("sock=%p sk=%p\n", sock, sk);
67 if (sock
76 rawsock_connect(struct socket *sock, struct sockaddr *_addr, int len, int flags) argument
205 rawsock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
241 rawsock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) argument
323 rawsock_create(struct net *net, struct socket *sock, const struct nfc_protocol *nfc_proto, int kern) argument
[all...]
H A Dllcp.h103 struct sock sk;
138 struct sock *parent;
200 void nfc_llcp_sock_link(struct llcp_sock_list *l, struct sock *s);
201 void nfc_llcp_sock_unlink(struct llcp_sock_list *l, struct sock *s);
202 void nfc_llcp_socket_remote_param_init(struct nfc_llcp_sock *sock);
206 struct nfc_llcp_sock *sock);
209 int nfc_llcp_queue_i_frames(struct nfc_llcp_sock *sock);
214 struct sock *nfc_llcp_sock_alloc(struct socket *sock, int type, gfp_t gfp, int kern);
215 void nfc_llcp_sock_free(struct nfc_llcp_sock *sock);
[all...]
/linux-master/net/sunrpc/
H A Dsocklib.h11 int xprt_sock_sendmsg(struct socket *sock, struct msghdr *msg,
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_bpf_sk_storage_helpers.c30 struct socket *sock; local
36 sock = bpf_sock_from_file(file);
37 if (!sock)
40 sock_tgid = bpf_sk_storage_get(&sk_stg_map, sock->sk, 0, 0);
H A Dlsm_cgroup_nonvoid.c10 int BPF_PROG(nonvoid_socket_clone, struct sock *newsk, const struct request_sock *req)
H A Dtcp_ca_update.c13 static inline struct tcp_sock *tcp_sk(const struct sock *sk)
19 void BPF_PROG(ca_update_1_init, struct sock *sk)
25 void BPF_PROG(ca_update_2_init, struct sock *sk)
31 void BPF_PROG(ca_update_cong_control, struct sock *sk,
37 __u32 BPF_PROG(ca_update_ssthresh, struct sock *sk)
43 __u32 BPF_PROG(ca_update_undo_cwnd, struct sock *sk)
H A Dtest_sk_storage_tracing.c33 int BPF_PROG(trace_inet_sock_set_state, struct sock *sk, int oldstate,
53 static void set_task_info(struct sock *sk)
71 int BPF_PROG(trace_inet_csk_listen_start, struct sock *sk)
79 int BPF_PROG(trace_tcp_connect, struct sock *sk)
87 int BPF_PROG(inet_csk_accept, struct sock *sk, int flags, int *err, bool kern,
88 struct sock *accepted_sk)
96 int BPF_PROG(tcp_retransmit_synack, struct sock* sk, struct request_sock* req)
/linux-master/include/net/netns/
H A Dsctp.h8 struct sock;
23 * the Out-of-the-blue (OOTB) packets. A control sock will be created
26 struct sock *ctl_sock;
28 /* UDP tunneling listening sock. */
29 struct sock *udp4_sock;
30 struct sock *udp6_sock;
/linux-master/include/net/
H A Dhandshake.h42 bool tls_handshake_cancel(struct sock *sk);
43 void tls_handshake_close(struct socket *sock);
45 u8 tls_get_record_type(const struct sock *sk, const struct cmsghdr *msg);
46 void tls_alert_recv(const struct sock *sk, const struct msghdr *msg,
H A Dtcp_ao.h208 int tcp_ao_transmit_skb(struct sock *sk, struct sk_buff *skb,
213 const struct sock *sk, const struct sk_buff *skb,
215 int tcp_parse_ao(struct sock *sk, int cmd, unsigned short int family,
219 int tcp_ao_copy_all_matching(const struct sock *sk, struct sock *newsk,
224 void tcp_ao_destroy_sock(struct sock *sk, bool twsk);
226 bool tcp_ao_ignore_icmp(const struct sock *sk, int family, int type, int code);
227 int tcp_ao_get_mkts(struct sock *sk, sockptr_t optval, sockptr_t optlen);
228 int tcp_ao_get_sock_info(struct sock *sk, sockptr_t optval, sockptr_t optlen);
229 int tcp_ao_get_repair(struct sock *s
[all...]
H A Dscm.h45 int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm);
50 static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm) argument
52 security_socket_getpeersec_dgram(sock, NULL, &scm->secid);
55 static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm) argument
81 static __inline__ int scm_send(struct socket *sock, struct msghdr *msg, argument
89 unix_get_peersec_dgram(sock, scm);
92 return __scm_send(sock, msg, scm);
96 static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) argument
102 if (test_bit(SOCK_PASSSEC, &sock->flags)) {
112 static inline bool scm_has_secdata(struct socket *sock) argument
117 scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) argument
120 scm_has_secdata(struct socket *sock) argument
162 __scm_recv_common(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm, int flags) argument
192 scm_recv(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm, int flags) argument
201 scm_recv_unix(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm, int flags) argument
[all...]
H A Dinet_hashtables.h27 #include <net/sock.h>
177 static inline struct inet_hashinfo *tcp_or_dccp_get_hashinfo(const struct sock *sk)
240 const struct sock *sk);
249 const struct sock *sk);
253 int l3mdev, const struct sock *sk);
262 inet_bhashfn_portaddr(const struct inet_hashinfo *hinfo, const struct sock *sk,
277 inet_bhash2_addr_any_hashbucket(const struct sock *sk, const struct net *net, int port);
283 int inet_bhash2_update_saddr(struct sock *sk, void *saddr, int family);
284 void inet_bhash2_reset_saddr(struct sock *sk);
286 void inet_bind_hash(struct sock *s
[all...]
H A Dudp.h25 #include <net/sock.h>
130 static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb)
169 typedef struct sock *(*udp_lookup_t)(const struct sk_buff *skb, __be16 sport,
178 static inline void udp_lib_init_sock(struct sock *sk)
188 static inline int udp_lib_hash(struct sock *sk)
194 void udp_lib_unhash(struct sock *sk);
195 void udp_lib_rehash(struct sock *sk, u16 new_hash);
197 static inline void udp_lib_close(struct sock *sk, long timeout)
202 int udp_lib_get_port(struct sock *sk, unsigned short snum,
243 static inline int udp_rqueue_get(struct sock *s
[all...]
H A Drose.h13 #include <net/sock.h>
128 struct sock sock; member in struct:rose_sock
170 struct sock *rose_find_socket(unsigned int, struct rose_neigh *);
175 void rose_destroy_socket(struct sock *);
181 int rose_process_rx_frame(struct sock *, struct sk_buff *);
200 void rose_kick(struct sock *);
201 void rose_enquiry_response(struct sock *);
225 void rose_clear_queues(struct sock *);
226 void rose_frames_acked(struct sock *, unsigne
[all...]
/linux-master/net/rxrpc/
H A Dmisc.c9 #include <net/sock.h>
/linux-master/net/bluetooth/
H A Dmgmt_util.h27 struct sock *sk;
39 struct sock *sk;
48 struct sock *skip_sk);
50 void *data, u16 data_len, int flag, struct sock *skip_sk);
51 int mgmt_cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status);
52 int mgmt_cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status,
64 struct mgmt_pending_cmd *mgmt_pending_add(struct sock *sk, u16 opcode,
67 struct mgmt_pending_cmd *mgmt_pending_new(struct sock *sk, u16 opcode,
74 void *data, struct sock *sk);
76 struct mgmt_mesh_tx *mgmt_mesh_next(struct hci_dev *hdev, struct sock *s
[all...]
/linux-master/net/rds/
H A Dinfo.h18 typedef void (*rds_info_func)(struct socket *sock, unsigned int len,
24 int rds_info_getsockopt(struct socket *sock, int optname, char __user *optval,
/linux-master/include/linux/
H A Dinet_diag.h19 void (*idiag_get_info)(struct sock *sk,
23 int (*idiag_get_aux)(struct sock *sk,
27 size_t (*idiag_get_aux_size)(struct sock *sk,
47 int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk,
58 struct sock *inet_diag_find_one_icsk(struct net *net,
62 int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk);
64 void inet_diag_msg_common_fill(struct inet_diag_msg *r, struct sock *sk);
83 int inet_diag_msg_attrs_fill(struct sock *sk, struct sk_buff *skb,
H A Dudp.h73 int (*encap_rcv)(struct sock *sk, struct sk_buff *skb);
74 void (*encap_err_rcv)(struct sock *sk, struct sk_buff *skb, int err,
76 int (*encap_err_lookup)(struct sock *sk, struct sk_buff *skb);
77 void (*encap_destroy)(struct sock *sk);
80 struct sk_buff * (*gro_receive)(struct sock *sk,
83 int (*gro_complete)(struct sock *sk,
115 static inline int udp_set_peek_off(struct sock *sk, int val)
122 static inline void udp_set_no_check6_tx(struct sock *sk, bool val)
127 static inline void udp_set_no_check6_rx(struct sock *sk, bool val)
132 static inline bool udp_get_no_check6_tx(const struct sock *s
[all...]
/linux-master/net/handshake/
H A Dhandshake.h35 struct sock *hr_sk;
36 void (*hr_odestruct)(struct sock *sk);
70 int tls_alert_send(struct socket *sock, u8 level, u8 description);
85 struct handshake_req *handshake_req_hash_lookup(struct sock *sk);
87 int handshake_req_submit(struct socket *sock, struct handshake_req *req,
91 bool handshake_req_cancel(struct sock *sk);
/linux-master/tools/testing/selftests/netfilter/
H A Dconntrack_dump_flush.c95 static int conntrack_data_insert(struct mnl_socket *sock, struct nlmsghdr *nlh, argument
103 portid = mnl_socket_get_portid(sock);
113 if (mnl_socket_sendto(sock, nlh, nlh->nlmsg_len) < 0) {
118 ret = mnl_socket_recvfrom(sock, buf, MNL_SOCKET_BUFFER_SIZE);
139 static int conntrack_data_generate_v4(struct mnl_socket *sock, uint32_t src_ip, argument
168 return conntrack_data_insert(sock, nlh, zone);
171 static int conntrack_data_generate_v6(struct mnl_socket *sock, argument
204 return conntrack_data_insert(sock, nlh, zone);
212 static int conntracK_count_zone(struct mnl_socket *sock, uint16_t zone) argument
221 portid = mnl_socket_get_portid(sock);
259 conntrack_flush_zone(struct mnl_socket *sock, uint16_t zone) argument
305 struct mnl_socket *sock; local
[all...]
/linux-master/net/ipv4/
H A Dudp_tunnel_core.c14 struct socket *sock = NULL; local
17 err = sock_create_kern(net, AF_INET, SOCK_DGRAM, 0, &sock);
22 err = sock_bindtoindex(sock->sk, cfg->bind_ifindex, true);
30 err = kernel_bind(sock, (struct sockaddr *)&udp_addr,
39 err = kernel_connect(sock, (struct sockaddr *)&udp_addr,
45 sock->sk->sk_no_check_tx = !cfg->use_udp_checksums;
47 *sockp = sock;
51 if (sock) {
52 kernel_sock_shutdown(sock, SHUT_RDWR);
53 sock_release(sock);
60 setup_udp_tunnel_sock(struct net *net, struct socket *sock, struct udp_tunnel_sock_cfg *cfg) argument
85 udp_tunnel_push_rx_port(struct net_device *dev, struct socket *sock, unsigned short type) argument
99 udp_tunnel_drop_rx_port(struct net_device *dev, struct socket *sock, unsigned short type) argument
114 udp_tunnel_notify_add_rx_port(struct socket *sock, unsigned short type) argument
134 udp_tunnel_notify_del_rx_port(struct socket *sock, unsigned short type) argument
176 udp_tunnel_sock_release(struct socket *sock) argument
[all...]
/linux-master/drivers/platform/x86/amd/
H A Dhsmp.c89 struct hsmp_socket *sock; member in struct:hsmp_plat_device
98 static int amd_hsmp_pci_rdwr(struct hsmp_socket *sock, u32 offset, argument
103 if (!sock->root)
106 ret = pci_write_config_dword(sock->root, HSMP_INDEX_REG,
107 sock->mbinfo.base_addr + offset);
111 ret = (write ? pci_write_config_dword(sock->root, HSMP_DATA_REG, *value)
112 : pci_read_config_dword(sock->root, HSMP_DATA_REG, value));
117 static void amd_hsmp_acpi_rdwr(struct hsmp_socket *sock, u32 offset, argument
121 iowrite32(*value, sock->virt_base_addr + offset);
123 *value = ioread32(sock
126 amd_hsmp_rdwr(struct hsmp_socket *sock, u32 offset, u32 *value, bool write) argument
147 __hsmp_send_message(struct hsmp_socket *sock, struct hsmp_message *msg) argument
263 struct hsmp_socket *sock; local
415 struct hsmp_socket *sock = data; local
436 hsmp_read_acpi_dsd(struct hsmp_socket *sock) argument
515 hsmp_read_acpi_crs(struct hsmp_socket *sock) argument
543 struct hsmp_socket *sock = &plat_dev.sock[sock_ind]; local
565 struct hsmp_socket *sock = bin_attr->private; local
591 struct hsmp_socket *sock = &plat_dev.sock[sock_ind]; local
748 struct hsmp_socket *sock; local
[all...]
/linux-master/net/netrom/
H A Dnr_timer.c21 #include <net/sock.h>
35 void nr_init_timers(struct sock *sk)
48 void nr_start_t1timer(struct sock *sk)
55 void nr_start_t2timer(struct sock *sk)
62 void nr_start_t4timer(struct sock *sk)
69 void nr_start_idletimer(struct sock *sk)
77 void nr_start_heartbeat(struct sock *sk)
82 void nr_stop_t1timer(struct sock *sk)
87 void nr_stop_t2timer(struct sock *sk)
92 void nr_stop_t4timer(struct sock *s
[all...]

Completed in 686 milliseconds

1234567891011>>