Home
last modified time | relevance | path

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

12345678910>>...35

/kernel/linux/linux-5.10/drivers/pcmcia/
Ddb1xxx_ss.c71 static int db1300_card_inserted(struct db1x_pcmcia_sock *sock) in db1300_card_inserted() argument
77 static int db1200_card_inserted(struct db1x_pcmcia_sock *sock) in db1200_card_inserted() argument
82 return sigstat & 1 << (8 + 2 * sock->nr); in db1200_card_inserted()
86 static int db1000_card_inserted(struct db1x_pcmcia_sock *sock) in db1000_card_inserted() argument
88 return !gpio_get_value(sock->insert_gpio); in db1000_card_inserted()
91 static int db1x_card_inserted(struct db1x_pcmcia_sock *sock) in db1x_card_inserted() argument
93 switch (sock->board_type) { in db1x_card_inserted()
95 return db1200_card_inserted(sock); in db1x_card_inserted()
97 return db1300_card_inserted(sock); in db1x_card_inserted()
99 return db1000_card_inserted(sock); in db1x_card_inserted()
[all …]
Dxxs1500_ss.c71 struct xxs1500_pcmcia_sock *sock = data; in cdirq() local
73 pcmcia_parse_events(&sock->socket, SS_DETECT); in cdirq()
81 struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); in xxs1500_pcmcia_configure() local
97 changed = state->flags ^ sock->old_flags; in xxs1500_pcmcia_configure()
110 sock->old_flags = state->flags; in xxs1500_pcmcia_configure()
179 struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); in au1x00_pcmcia_set_io_map() local
181 map->start = (u32)sock->virt_io; in au1x00_pcmcia_set_io_map()
190 struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); in au1x00_pcmcia_set_mem_map() local
193 map->static_start = sock->phys_attr + map->card_start; in au1x00_pcmcia_set_mem_map()
195 map->static_start = sock->phys_mem + map->card_start; in au1x00_pcmcia_set_mem_map()
[all …]
Dsa11xx_base.h69 #define MECR_SET(mecr, sock, shift, mask, bs) \ argument
71 ((sock)==0?MECR_SOCKET_0_SHIFT:MECR_SOCKET_1_SHIFT)))|\
72 (((bs)<<(shift))<<((sock)==0?MECR_SOCKET_0_SHIFT:MECR_SOCKET_1_SHIFT)))
74 #define MECR_GET(mecr, sock, shift, mask) \ argument
75 ((((mecr)>>(((sock)==0)?MECR_SOCKET_0_SHIFT:MECR_SOCKET_1_SHIFT))>>\
78 #define MECR_BSIO_SET(mecr, sock, bs) \ argument
79 MECR_SET((mecr), (sock), MECR_BSIO_SHIFT, MECR_BS_MASK, (bs))
81 #define MECR_BSIO_GET(mecr, sock) \ argument
82 MECR_GET((mecr), (sock), MECR_BSIO_SHIFT, MECR_BS_MASK)
84 #define MECR_BSA_SET(mecr, sock, bs) \ argument
[all …]
/kernel/linux/linux-5.10/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 …]
Dsock.h89 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG()
113 struct sock;
219 struct sock *skc_listener; /* request_sock */
353 struct sock { struct
515 void (*sk_state_change)(struct sock *sk); argument
516 void (*sk_data_ready)(struct sock *sk); argument
517 void (*sk_write_space)(struct sock *sk); argument
518 void (*sk_error_report)(struct sock *sk); argument
519 int (*sk_backlog_rcv)(struct sock *sk, argument
522 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk, argument
[all …]
Dinet_connection_sock.h35 int (*queue_xmit)(struct sock *sk, struct sk_buff *skb, struct flowi *fl);
36 void (*send_check)(struct sock *sk, struct sk_buff *skb);
37 int (*rebuild_header)(struct sock *sk);
38 void (*sk_rx_dst_set)(struct sock *sk, const struct sk_buff *skb);
39 int (*conn_request)(struct sock *sk, struct sk_buff *skb);
40 struct sock *(*syn_recv_sock)(const struct sock *sk, struct sk_buff *skb,
48 int (*setsockopt)(struct sock *sk, int level, int optname,
50 int (*getsockopt)(struct sock *sk, int level, int optname,
52 void (*addr2sockaddr)(struct sock *sk, struct sockaddr *);
53 void (*mtu_reduced)(struct sock *sk);
[all …]
Dtcp.h56 void tcp_time_wait(struct sock *sk, int state, int timeo);
262 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure()
287 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory()
295 void sk_forced_mem_schedule(struct sock *sk, int size);
297 bool tcp_check_oom(struct sock *sk, int shift);
311 void tcp_shutdown(struct sock *sk, int how);
317 int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
318 int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size);
319 int tcp_sendpage(struct sock *sk, struct page *page, int offset, size_t size,
321 int tcp_sendpage_locked(struct sock *sk, struct page *page, int offset,
[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.h15 struct sock;
19 int inet_release(struct socket *sock);
20 int inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
22 int __inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
24 int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr,
26 int inet_accept(struct socket *sock, struct socket *newsock, int flags,
28 int inet_send_prepare(struct sock *sk);
29 int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size);
30 ssize_t inet_sendpage(struct socket *sock, struct page *page, int offset,
32 int inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
[all …]
Dtls.h128 struct sock *sk;
153 void (*saved_data_ready)(struct sock *sk);
183 void (*sk_destruct)(struct sock *sk);
247 int (*push_pending_record)(struct sock *sk, int flags);
248 void (*sk_write_space)(struct sock *sk);
272 struct sock *sk;
274 void (*sk_destruct)(struct sock *sk);
290 int (*tls_dev_add)(struct net_device *netdev, struct sock *sk,
298 struct sock *sk, u32 seq, u8 *rcd_sn,
353 struct tls_context *tls_ctx_create(struct sock *sk);
[all …]
Dx25.h151 struct sock sk;
180 static inline struct x25_sock *x25_sk(const struct sock *sk) in x25_sk()
199 struct sock *x25_find_socket(unsigned int, struct x25_neigh *);
200 void x25_destroy_socket_from_timer(struct sock *);
216 int x25_negotiate_facilities(struct sk_buff *, struct sock *,
229 int x25_process_rx_frame(struct sock *, struct sk_buff *);
230 int x25_backlog_rcv(struct sock *, struct sk_buff *);
258 int x25_output(struct sock *, struct sk_buff *);
259 void x25_kick(struct sock *);
260 void x25_enquiry_response(struct sock *);
[all …]
/kernel/linux/common_modules/newip/third_party/linux-5.10/include/net/
Dtcp_nip.h81 void tcp_nip_done(struct sock *sk);
82 int tcp_direct_connect(struct sock *sk, void __user *arg);
84 struct sock *sk,
90 struct sock *sk,
94 u32 __nip_tcp_select_window(struct sock *sk);
97 void tcp_nip_rearm_rto(struct sock *sk);
99 int tcp_nip_rcv_state_process(struct sock *sk, struct sk_buff *skb);
103 struct sock *sk,
107 int __tcp_nip_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs);
108 int tcp_nip_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs);
[all …]
/kernel/linux/linux-5.10/drivers/memstick/host/
Dtifm_ms.c85 struct tifm_dev *sock = host->dev; in tifm_ms_read_data() local
98 while (!(TIFM_MS_STAT_EMP & readl(sock->addr + SOCK_MS_STATUS))) { in tifm_ms_read_data()
101 *(unsigned int *)(buf + off) = __raw_readl(sock->addr in tifm_ms_read_data()
108 && !(TIFM_MS_STAT_EMP & readl(sock->addr + SOCK_MS_STATUS))) { in tifm_ms_read_data()
109 host->io_word = readl(sock->addr + SOCK_MS_DATA); in tifm_ms_read_data()
125 struct tifm_dev *sock = host->dev; in tifm_ms_write_data() local
137 && !(TIFM_MS_STAT_FUL & readl(sock->addr + SOCK_MS_STATUS))) { in tifm_ms_write_data()
138 writel(TIFM_MS_SYS_FDIR | readl(sock->addr + SOCK_MS_SYSTEM), in tifm_ms_write_data()
139 sock->addr + SOCK_MS_SYSTEM); in tifm_ms_write_data()
140 writel(host->io_word, sock->addr + SOCK_MS_DATA); in tifm_ms_write_data()
[all …]
/kernel/linux/linux-5.10/drivers/mmc/host/
Dtifm_sd.c115 struct tifm_dev *sock = host->dev; in tifm_sd_read_fifo() local
126 val = readl(sock->addr + SOCK_MMCSD_DATA); in tifm_sd_read_fifo()
141 struct tifm_dev *sock = host->dev; in tifm_sd_write_fifo() local
148 writel(val, sock->addr + SOCK_MMCSD_DATA); in tifm_sd_write_fifo()
160 writel(val, sock->addr + SOCK_MMCSD_DATA); in tifm_sd_write_fifo()
263 struct tifm_dev *sock = host->dev; in tifm_sd_set_dma_data() local
316 dev_dbg(&sock->dev, "setting dma for %d blocks\n", dma_blk_cnt); in tifm_sd_set_dma_data()
317 writel(sg_dma_address(sg) + dma_off, sock->addr + SOCK_DMA_ADDRESS); in tifm_sd_set_dma_data()
320 sock->addr + SOCK_DMA_CONTROL); in tifm_sd_set_dma_data()
323 sock->addr + SOCK_DMA_CONTROL); in tifm_sd_set_dma_data()
[all …]
/kernel/linux/linux-5.10/drivers/misc/
Dtifm_core.c34 static int tifm_dev_match(struct tifm_dev *sock, struct tifm_device_id *id) in tifm_dev_match() argument
36 if (sock->type == id->type) in tifm_dev_match()
43 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_bus_match() local
50 if (tifm_dev_match(sock, ids)) in tifm_bus_match()
60 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_uevent() local
62 if (add_uevent_var(env, "TIFM_CARD_TYPE=%s", tifm_media_type_name(sock->type, 1))) in tifm_uevent()
70 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_probe() local
77 rc = drv->probe(sock); in tifm_device_probe()
85 static void tifm_dummy_event(struct tifm_dev *sock) in tifm_dummy_event() argument
92 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_remove() local
[all …]
/kernel/linux/linux-5.10/include/linux/
Dnet.h122 struct sock *sk;
140 int (*release) (struct socket *sock);
141 int (*bind) (struct socket *sock,
144 int (*connect) (struct socket *sock,
149 int (*accept) (struct socket *sock,
151 int (*getname) (struct socket *sock,
154 __poll_t (*poll) (struct file *file, struct socket *sock,
156 int (*ioctl) (struct socket *sock, unsigned int cmd,
159 int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
162 int (*gettstamp) (struct socket *sock, void __user *userstamp,
[all …]
/kernel/linux/linux-5.10/net/dccp/
Ddccp.h53 void dccp_time_wait(struct sock *sk, int state, int timeo);
219 void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb);
221 int dccp_retransmit_skb(struct sock *sk);
223 void dccp_send_ack(struct sock *sk);
224 void dccp_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb,
227 void dccp_send_sync(struct sock *sk, const u64 seq,
233 void dccp_qpolicy_push(struct sock *sk, struct sk_buff *skb);
234 bool dccp_qpolicy_full(struct sock *sk);
235 void dccp_qpolicy_drop(struct sock *sk, struct sk_buff *skb);
236 struct sk_buff *dccp_qpolicy_top(struct sock *sk);
[all …]
Dccid.h56 int (*ccid_hc_rx_init)(struct ccid *ccid, struct sock *sk);
57 int (*ccid_hc_tx_init)(struct ccid *ccid, struct sock *sk);
58 void (*ccid_hc_rx_exit)(struct sock *sk);
59 void (*ccid_hc_tx_exit)(struct sock *sk);
60 void (*ccid_hc_rx_packet_recv)(struct sock *sk,
62 int (*ccid_hc_rx_parse_options)(struct sock *sk, u8 pkt,
64 int (*ccid_hc_rx_insert_options)(struct sock *sk,
66 void (*ccid_hc_tx_packet_recv)(struct sock *sk,
68 int (*ccid_hc_tx_parse_options)(struct sock *sk, u8 pkt,
70 int (*ccid_hc_tx_send_packet)(struct sock *sk,
[all …]
/kernel/linux/linux-5.10/net/rds/
Dtcp_listen.c41 void rds_tcp_keepalive(struct socket *sock) in rds_tcp_keepalive() argument
47 sock_set_keepalive(sock->sk); in rds_tcp_keepalive()
48 tcp_sock_set_keepcnt(sock->sk, keepcnt); in rds_tcp_keepalive()
49 tcp_sock_set_keepidle(sock->sk, keepidle); in rds_tcp_keepalive()
53 tcp_sock_set_keepintvl(sock->sk, keepidle); in rds_tcp_keepalive()
97 int rds_tcp_accept_one(struct socket *sock) in rds_tcp_accept_one() argument
112 if (!sock) /* module unload or netns delete in progress */ in rds_tcp_accept_one()
115 ret = sock_create_lite(sock->sk->sk_family, in rds_tcp_accept_one()
116 sock->sk->sk_type, sock->sk->sk_protocol, in rds_tcp_accept_one()
121 ret = sock->ops->accept(sock, new_sock, O_NONBLOCK, true); in rds_tcp_accept_one()
[all …]
Dtcp_connect.c40 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()
91 struct socket *sock = NULL; in rds_tcp_conn_path_connect() local
115 SOCK_STREAM, IPPROTO_TCP, &sock); in rds_tcp_conn_path_connect()
119 SOCK_STREAM, IPPROTO_TCP, &sock); in rds_tcp_conn_path_connect()
126 rds_tcp_tune(sock); in rds_tcp_conn_path_connect()
144 ret = sock->ops->bind(sock, addr, addrlen); in rds_tcp_conn_path_connect()
171 rds_tcp_set_callbacks(sock, cp); in rds_tcp_conn_path_connect()
172 ret = sock->ops->connect(sock, addr, addrlen, O_NONBLOCK); in rds_tcp_conn_path_connect()
178 rds_tcp_keepalive(sock); in rds_tcp_conn_path_connect()
[all …]
/kernel/linux/linux-5.10/net/
Dsocket.c135 struct socket *sock = f->private_data; in sock_show_fdinfo() local
137 if (sock->ops->show_fdinfo) in sock_show_fdinfo()
138 sock->ops->show_fdinfo(m, sock); in sock_show_fdinfo()
404 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname) in sock_alloc_file() argument
409 dname = sock->sk ? sock->sk->sk_prot_creator->name : ""; in sock_alloc_file()
411 file = alloc_file_pseudo(SOCK_INODE(sock), sock_mnt, dname, in sock_alloc_file()
415 sock_release(sock); in sock_alloc_file()
419 sock->file = file; in sock_alloc_file()
420 file->private_data = sock; in sock_alloc_file()
421 stream_open(SOCK_INODE(sock), file); in sock_alloc_file()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/net/bluetooth/rfcomm/
Dsock.c43 static void rfcomm_sock_close(struct sock *sk);
44 static void rfcomm_sock_kill(struct sock *sk);
52 struct sock *sk = d->owner; in rfcomm_sk_data_ready()
66 struct sock *sk = d->owner, *parent; in rfcomm_sk_state_change()
106 static struct sock *__rfcomm_get_listen_sock_by_addr(u8 channel, bdaddr_t *src) in __rfcomm_get_listen_sock_by_addr()
108 struct sock *sk = NULL; in __rfcomm_get_listen_sock_by_addr()
127 static struct sock *rfcomm_get_sock_by_channel(int state, u8 channel, bdaddr_t *src) in rfcomm_get_sock_by_channel()
129 struct sock *sk = NULL, *sk1 = NULL; in rfcomm_get_sock_by_channel()
153 static void rfcomm_sock_destruct(struct sock *sk) in rfcomm_sock_destruct()
173 static void rfcomm_sock_cleanup_listen(struct sock *parent) in rfcomm_sock_cleanup_listen()
[all …]
/kernel/linux/linux-5.10/net/phonet/
Dsocket.c28 static int pn_socket_release(struct socket *sock) in pn_socket_release() argument
30 struct sock *sk = sock->sk; in pn_socket_release()
33 sock->sk = NULL; in pn_socket_release()
66 struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *spn) in pn_find_sock_by_sa()
68 struct sock *sknode; in pn_find_sock_by_sa()
69 struct sock *rval = NULL; in pn_find_sock_by_sa()
111 struct sock *sknode; in pn_deliver_sock_broadcast()
132 int pn_sock_hash(struct sock *sk) in pn_sock_hash()
144 void pn_sock_unhash(struct sock *sk) in pn_sock_unhash()
156 static int pn_socket_bind(struct socket *sock, struct sockaddr *addr, int len) in pn_socket_bind() argument
[all …]

12345678910>>...35