Home
last modified time | relevance | path

Searched refs:sock (Results 1 – 25 of 158) sorted by relevance

1234567

/linux-4.19.296/include/net/
Dllc_c_ac.h90 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb);
92 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb);
93 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb);
94 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb);
95 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb);
96 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb);
97 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb);
98 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb);
99 int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk,
101 int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk,
[all …]
Dllc_c_ev.h128 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb);
129 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb);
131 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb);
132 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb);
133 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb);
134 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb);
135 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb);
136 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb);
137 int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb);
138 int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb);
[all …]
Dinet_connection_sock.h38 int (*queue_xmit)(struct sock *sk, struct sk_buff *skb, struct flowi *fl);
39 void (*send_check)(struct sock *sk, struct sk_buff *skb);
40 int (*rebuild_header)(struct sock *sk);
41 void (*sk_rx_dst_set)(struct sock *sk, const struct sk_buff *skb);
42 int (*conn_request)(struct sock *sk, struct sk_buff *skb);
43 struct sock *(*syn_recv_sock)(const struct sock *sk, struct sk_buff *skb,
51 int (*setsockopt)(struct sock *sk, int level, int optname,
53 int (*getsockopt)(struct sock *sk, int level, int optname,
56 int (*compat_setsockopt)(struct sock *sk,
59 int (*compat_getsockopt)(struct sock *sk,
[all …]
Dsock.h91 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG()
115 struct sock;
204 struct sock *skc_listener; /* request_sock */
328 struct sock { struct
502 void (*sk_state_change)(struct sock *sk); argument
503 void (*sk_data_ready)(struct sock *sk); argument
504 void (*sk_write_space)(struct sock *sk); argument
505 void (*sk_error_report)(struct sock *sk); argument
506 int (*sk_backlog_rcv)(struct sock *sk, argument
509 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk, argument
[all …]
Dtcp.h54 void tcp_time_wait(struct sock *sk, int state, int timeo);
259 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure()
284 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory()
292 void sk_forced_mem_schedule(struct sock *sk, int size);
294 static inline bool tcp_too_many_orphans(struct sock *sk, int shift) in tcp_too_many_orphans()
307 bool tcp_check_oom(struct sock *sk, int shift);
321 void tcp_shutdown(struct sock *sk, int how);
327 int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
328 int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size);
329 int tcp_sendpage(struct sock *sk, struct page *page, int offset, size_t size,
[all …]
Dtls.h82 int (*hash)(struct tls_device *device, struct sock *sk);
83 void (*unhash)(struct tls_device *device, struct sock *sk);
121 void (*saved_data_ready)(struct sock *sk);
122 unsigned int (*sk_poll)(struct file *file, struct socket *sock,
147 void (*sk_destruct)(struct sock *sk);
212 int (*push_pending_record)(struct sock *sk, int flags);
214 void (*sk_write_space)(struct sock *sk);
215 void (*sk_destruct)(struct sock *sk);
216 void (*sk_proto_close)(struct sock *sk, long timeout);
218 int (*setsockopt)(struct sock *sk, int level,
[all …]
Dnetrom.h67 struct sock sock; member
190 void nr_destroy_socket(struct sock *);
197 int nr_process_rx_frame(struct sock *, struct sk_buff *);
205 void nr_output(struct sock *, struct sk_buff *);
206 void nr_send_nak_frame(struct sock *);
207 void nr_kick(struct sock *);
208 void nr_transmit_buffer(struct sock *, struct sk_buff *);
209 void nr_establish_data_link(struct sock *);
210 void nr_enquiry_response(struct sock *);
211 void nr_check_iframes_acked(struct sock *, unsigned short);
[all …]
Dinet_common.h13 struct sock;
17 int inet_release(struct socket *sock);
18 int inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
20 int __inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
22 int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr,
24 int inet_accept(struct socket *sock, struct socket *newsock, int flags,
26 int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size);
27 ssize_t inet_sendpage(struct socket *sock, struct page *page, int offset,
29 int inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
31 int inet_shutdown(struct socket *sock, int how);
[all …]
Dx25.h150 struct sock sk;
179 static inline struct x25_sock *x25_sk(const struct sock *sk) in x25_sk()
198 struct sock *x25_find_socket(unsigned int, struct x25_neigh *);
199 void x25_destroy_socket_from_timer(struct sock *);
215 int x25_negotiate_facilities(struct sk_buff *, struct sock *,
228 int x25_process_rx_frame(struct sock *, struct sk_buff *);
229 int x25_backlog_rcv(struct sock *, struct sk_buff *);
257 int x25_output(struct sock *, struct sk_buff *);
258 void x25_kick(struct sock *);
259 void x25_enquiry_response(struct sock *);
[all …]
Drose.h127 struct sock sock; member
168 struct sock *rose_find_socket(unsigned int, struct rose_neigh *);
173 void rose_destroy_socket(struct sock *);
179 int rose_process_rx_frame(struct sock *, struct sk_buff *);
198 void rose_kick(struct sock *);
199 void rose_enquiry_response(struct sock *);
223 void rose_clear_queues(struct sock *);
224 void rose_frames_acked(struct sock *, unsigned short);
225 void rose_requeue_frames(struct sock *);
226 int rose_validate_nr(struct sock *, unsigned short);
[all …]
Dudp.h131 static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb) in udp_csum_outgoing()
170 typedef struct sock *(*udp_lookup_t)(struct sk_buff *skb, __be16 sport,
196 static inline int udp_lib_hash(struct sock *sk) in udp_lib_hash()
202 void udp_lib_unhash(struct sock *sk);
203 void udp_lib_rehash(struct sock *sk, u16 new_hash);
205 static inline void udp_lib_close(struct sock *sk, long timeout) in udp_lib_close()
210 int udp_lib_get_port(struct sock *sk, unsigned short snum,
251 static inline int udp_rqueue_get(struct sock *sk) in udp_rqueue_get()
257 void udp_destruct_common(struct sock *sk);
258 void skb_consume_udp(struct sock *sk, struct sk_buff *skb, int len);
[all …]
Dllc_conn.h34 struct sock sk;
83 static inline struct llc_sock *llc_sk(const struct sock *sk) in llc_sk()
98 struct sock *llc_sk_alloc(struct net *net, int family, gfp_t priority,
100 void llc_sk_stop_all_timers(struct sock *sk, bool sync);
101 void llc_sk_free(struct sock *sk);
103 void llc_sk_reset(struct sock *sk);
106 int llc_conn_state_process(struct sock *sk, struct sk_buff *skb);
107 void llc_conn_send_pdu(struct sock *sk, struct sk_buff *skb);
108 void llc_conn_rtn_pdu(struct sock *sk, struct sk_buff *skb);
109 void llc_conn_resend_i_pdu_as_cmd(struct sock *sk, u8 nr, u8 first_p_bit);
[all …]
Dscm.h42 int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm);
47 static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm) in unix_get_peersec_dgram() argument
49 security_socket_getpeersec_dgram(sock, NULL, &scm->secid); in unix_get_peersec_dgram()
52 static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm) in unix_get_peersec_dgram() argument
78 static __inline__ int scm_send(struct socket *sock, struct msghdr *msg, in scm_send() argument
86 unix_get_peersec_dgram(sock, scm); in scm_send()
89 return __scm_send(sock, msg, scm); in scm_send()
93 static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) in scm_passec() argument
99 if (test_bit(SOCK_PASSSEC, &sock->flags)) { in scm_passec()
109 static inline bool scm_has_secdata(struct socket *sock) in scm_has_secdata() argument
[all …]
Dinet_sock.h112 static inline u32 inet_request_mark(const struct sock *sk, struct sk_buff *skb) in inet_request_mark()
121 static inline int inet_request_bound_dev_if(const struct sock *sk, in inet_request_bound_dev_if()
180 struct sock sk;
245 static inline struct sock *sk_to_full_sk(struct sock *sk) in sk_to_full_sk()
255 static inline const struct sock *sk_const_to_full_sk(const struct sock *sk) in sk_const_to_full_sk()
264 static inline struct sock *skb_to_full_sk(const struct sk_buff *skb) in skb_to_full_sk()
269 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk()
274 static inline void __inet_sk_copy_descendant(struct sock *sk_to, in __inet_sk_copy_descendant()
275 const struct sock *sk_from, in __inet_sk_copy_descendant()
282 static inline void inet_sk_copy_descendant(struct sock *sk_to, in inet_sk_copy_descendant()
[all …]
Dsock_reuseport.h27 struct sock *socks[0]; /* array of sock pointers */
30 extern int reuseport_alloc(struct sock *sk, bool bind_inany);
31 extern int reuseport_add_sock(struct sock *sk, struct sock *sk2,
33 extern void reuseport_detach_sock(struct sock *sk);
34 extern struct sock *reuseport_select_sock(struct sock *sk,
38 extern int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog);
40 static inline bool reuseport_has_conns(struct sock *sk, bool set) in reuseport_has_conns()
/linux-4.19.296/drivers/memstick/host/
Dtifm_ms.c89 struct tifm_dev *sock = host->dev; in tifm_ms_read_data() local
102 while (!(TIFM_MS_STAT_EMP & readl(sock->addr + SOCK_MS_STATUS))) { in tifm_ms_read_data()
105 *(unsigned int *)(buf + off) = __raw_readl(sock->addr in tifm_ms_read_data()
112 && !(TIFM_MS_STAT_EMP & readl(sock->addr + SOCK_MS_STATUS))) { in tifm_ms_read_data()
113 host->io_word = readl(sock->addr + SOCK_MS_DATA); in tifm_ms_read_data()
129 struct tifm_dev *sock = host->dev; in tifm_ms_write_data() local
141 && !(TIFM_MS_STAT_FUL & readl(sock->addr + SOCK_MS_STATUS))) { in tifm_ms_write_data()
142 writel(TIFM_MS_SYS_FDIR | readl(sock->addr + SOCK_MS_SYSTEM), in tifm_ms_write_data()
143 sock->addr + SOCK_MS_SYSTEM); in tifm_ms_write_data()
144 writel(host->io_word, sock->addr + SOCK_MS_DATA); in tifm_ms_write_data()
[all …]
/linux-4.19.296/include/linux/
Dnet.h126 struct sock *sk;
142 int (*release) (struct socket *sock);
143 int (*bind) (struct socket *sock,
146 int (*connect) (struct socket *sock,
151 int (*accept) (struct socket *sock,
153 int (*getname) (struct socket *sock,
156 __poll_t (*poll) (struct file *file, struct socket *sock,
158 int (*ioctl) (struct socket *sock, unsigned int cmd,
161 int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
164 int (*listen) (struct socket *sock, int len);
[all …]
Dmroute6.h25 struct sock;
28 extern int ip6_mroute_setsockopt(struct sock *, int, char __user *, unsigned int);
29 extern int ip6_mroute_getsockopt(struct sock *, int, char __user *, int __user *);
31 extern int ip6mr_ioctl(struct sock *sk, int cmd, void __user *arg);
32 extern int ip6mr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
37 int ip6_mroute_setsockopt(struct sock *sock, in ip6_mroute_setsockopt() argument
44 int ip6_mroute_getsockopt(struct sock *sock, in ip6_mroute_getsockopt() argument
51 int ip6mr_ioctl(struct sock *sk, int cmd, void __user *arg) in ip6mr_ioctl()
102 extern int ip6mr_sk_done(struct sock *sk);
108 static inline int ip6mr_sk_done(struct sock *sk) in ip6mr_sk_done()
Dnetlink.h28 struct sock *sk;
51 bool (*compare)(struct net *net, struct sock *sk);
54 extern struct sock *__netlink_kernel_create(struct net *net, int unit,
57 static inline struct sock *
113 extern void netlink_kernel_release(struct sock *sk);
114 extern int __netlink_change_ngroups(struct sock *sk, unsigned int groups);
115 extern int netlink_change_ngroups(struct sock *sk, unsigned int groups);
116 extern void __netlink_clear_multicast_users(struct sock *sk, unsigned int group);
119 extern int netlink_has_listeners(struct sock *sk, unsigned int group);
121 extern int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 portid, int nonblock);
[all …]
Dsock_diag.h13 struct sock;
18 int (*get_info)(struct sk_buff *skb, struct sock *sk);
28 u64 sock_gen_cookie(struct sock *sk);
29 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie);
30 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie);
32 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attr);
33 int sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk,
37 enum sknetlink_groups sock_diag_destroy_group(const struct sock *sk) in sock_diag_destroy_group()
70 bool sock_diag_has_destroy_listeners(const struct sock *sk) in sock_diag_has_destroy_listeners()
78 void sock_diag_broadcast_destroy(struct sock *sk);
[all …]
/linux-4.19.296/drivers/misc/
Dtifm_core.c38 static int tifm_dev_match(struct tifm_dev *sock, struct tifm_device_id *id) in tifm_dev_match() argument
40 if (sock->type == id->type) in tifm_dev_match()
47 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_bus_match() local
54 if (tifm_dev_match(sock, ids)) in tifm_bus_match()
64 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_uevent() local
66 if (add_uevent_var(env, "TIFM_CARD_TYPE=%s", tifm_media_type_name(sock->type, 1))) in tifm_uevent()
74 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_probe() local
81 rc = drv->probe(sock); in tifm_device_probe()
89 static void tifm_dummy_event(struct tifm_dev *sock) in tifm_dummy_event() argument
96 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_remove() local
[all …]
/linux-4.19.296/include/crypto/
Dif_alg.h33 struct sock sk;
35 struct sock *parent;
54 int (*accept)(void *private, struct sock *sk);
55 int (*accept_nokey)(void *private, struct sock *sk);
102 struct sock *sk;
166 int af_alg_release(struct socket *sock);
167 void af_alg_release_parent(struct sock *sk);
168 int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern);
176 static inline struct alg_sock *alg_sk(struct sock *sk) in alg_sk()
187 static inline int af_alg_sndbuf(struct sock *sk) in af_alg_sndbuf()
[all …]
/linux-4.19.296/fs/dlm/
Dlowcomms.c104 struct socket *sock; /* NULL if not connected */ member
150 void (*sk_error_report)(struct sock *);
151 void (*sk_data_ready)(struct sock *);
152 void (*sk_state_change)(struct sock *);
153 void (*sk_write_space)(struct sock *);
412 static void lowcomms_data_ready(struct sock *sk) in lowcomms_data_ready()
423 static void lowcomms_write_space(struct sock *sk) in lowcomms_write_space()
432 clear_bit(SOCK_NOSPACE, &con->sock->flags); in lowcomms_write_space()
435 con->sock->sk->sk_write_pending--; in lowcomms_write_space()
436 clear_bit(SOCKWQ_ASYNC_NOSPACE, &con->sock->flags); in lowcomms_write_space()
[all …]
/linux-4.19.296/drivers/xen/
Dpvcalls-front.h6 int pvcalls_front_socket(struct socket *sock);
7 int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr,
9 int pvcalls_front_bind(struct socket *sock,
12 int pvcalls_front_listen(struct socket *sock, int backlog);
13 int pvcalls_front_accept(struct socket *sock,
16 int pvcalls_front_sendmsg(struct socket *sock,
19 int pvcalls_front_recvmsg(struct socket *sock,
24 struct socket *sock,
26 int pvcalls_front_release(struct socket *sock);
/linux-4.19.296/crypto/
Dalgif_skcipher.c41 static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg, in skcipher_sendmsg() argument
44 struct sock *sk = sock->sk; in skcipher_sendmsg()
46 struct sock *psk = ask->parent; in skcipher_sendmsg()
51 return af_alg_sendmsg(sock, msg, size, ivsize); in skcipher_sendmsg()
54 static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg, in _skcipher_recvmsg() argument
57 struct sock *sk = sock->sk; in _skcipher_recvmsg()
59 struct sock *psk = ask->parent; in _skcipher_recvmsg()
153 static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg() argument
156 struct sock *sk = sock->sk; in skcipher_recvmsg()
161 int err = _skcipher_recvmsg(sock, msg, ignored, flags); in skcipher_recvmsg()
[all …]

1234567