Home
last modified time | relevance | path

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

12345678910>>...35

/linux-6.1.9/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 …]
/linux-6.1.9/include/net/
Dllc_c_ac.h23 struct sock;
97 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb);
99 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb);
100 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb);
101 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb);
102 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb);
103 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb);
104 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb);
105 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb);
106 int llc_conn_ac_clear_remote_busy_if_f_eq_1(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.h87 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG()
111 struct sock;
212 struct sock *skc_listener; /* request_sock */
353 struct sock { struct
523 void (*sk_state_change)(struct sock *sk); argument
524 void (*sk_data_ready)(struct sock *sk); argument
525 void (*sk_write_space)(struct sock *sk); argument
526 void (*sk_error_report)(struct sock *sk); argument
527 int (*sk_backlog_rcv)(struct sock *sk, argument
530 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk, argument
[all …]
Dinet_connection_sock.h36 int (*queue_xmit)(struct sock *sk, struct sk_buff *skb, struct flowi *fl);
37 void (*send_check)(struct sock *sk, struct sk_buff *skb);
38 int (*rebuild_header)(struct sock *sk);
39 void (*sk_rx_dst_set)(struct sock *sk, const struct sk_buff *skb);
40 int (*conn_request)(struct sock *sk, struct sk_buff *skb);
41 struct sock *(*syn_recv_sock)(const struct sock *sk, struct sk_buff *skb,
49 int (*setsockopt)(struct sock *sk, int level, int optname,
51 int (*getsockopt)(struct sock *sk, int level, int optname,
53 void (*addr2sockaddr)(struct sock *sk, struct sockaddr *);
54 void (*mtu_reduced)(struct sock *sk);
[all …]
Dtcp.h54 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 static inline void tcp_wmem_free_skb(struct sock *sk, struct sk_buff *skb) in tcp_wmem_free_skb()
305 void sk_forced_mem_schedule(struct sock *sk, int size);
307 bool tcp_check_oom(struct sock *sk, int shift);
321 void tcp_shutdown(struct sock *sk, int how);
326 void tcp_remove_empty_skb(struct sock *sk);
328 int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
329 int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size);
[all …]
Dnetrom.h68 struct sock sock; member
191 void nr_destroy_socket(struct sock *);
198 int nr_process_rx_frame(struct sock *, struct sk_buff *);
206 void nr_output(struct sock *, struct sk_buff *);
207 void nr_send_nak_frame(struct sock *);
208 void nr_kick(struct sock *);
209 void nr_transmit_buffer(struct sock *, struct sk_buff *);
210 void nr_establish_data_link(struct sock *);
211 void nr_enquiry_response(struct sock *);
212 void nr_check_iframes_acked(struct sock *, unsigned short);
[all …]
Dsock_reuseport.h29 struct sock *socks[]; /* array of sock pointers */
32 extern int reuseport_alloc(struct sock *sk, bool bind_inany);
33 extern int reuseport_add_sock(struct sock *sk, struct sock *sk2,
35 extern void reuseport_detach_sock(struct sock *sk);
36 void reuseport_stop_listen_sock(struct sock *sk);
37 extern struct sock *reuseport_select_sock(struct sock *sk,
41 struct sock *reuseport_migrate_sock(struct sock *sk,
42 struct sock *migrating_sk,
44 extern int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog);
45 extern int reuseport_detach_prog(struct sock *sk);
[all …]
Dinet_common.h21 struct sock;
25 int inet_release(struct socket *sock);
26 int inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
28 int __inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
30 int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr,
32 int inet_accept(struct socket *sock, struct socket *newsock, int flags,
34 int inet_send_prepare(struct sock *sk);
35 int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size);
36 ssize_t inet_sendpage(struct socket *sock, struct page *page, int offset,
38 int inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
[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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/include/linux/
Dnet.h123 struct sock *sk;
156 typedef int (*skb_read_actor_t)(struct sock *, struct sk_buff *);
162 int (*release) (struct socket *sock);
163 int (*bind) (struct socket *sock,
166 int (*connect) (struct socket *sock,
171 int (*accept) (struct socket *sock,
173 int (*getname) (struct socket *sock,
176 __poll_t (*poll) (struct file *file, struct socket *sock,
178 int (*ioctl) (struct socket *sock, unsigned int cmd,
181 int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/net/
Dsocket.c137 struct socket *sock = f->private_data; in sock_show_fdinfo() local
139 if (sock->ops->show_fdinfo) in sock_show_fdinfo()
140 sock->ops->show_fdinfo(m, sock); in sock_show_fdinfo()
456 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname) in sock_alloc_file() argument
461 dname = sock->sk ? sock->sk->sk_prot_creator->name : ""; in sock_alloc_file()
463 file = alloc_file_pseudo(SOCK_INODE(sock), sock_mnt, dname, in sock_alloc_file()
467 sock_release(sock); in sock_alloc_file()
471 sock->file = file; in sock_alloc_file()
472 file->private_data = sock; in sock_alloc_file()
473 stream_open(SOCK_INODE(sock), file); in sock_alloc_file()
[all …]
/linux-6.1.9/net/dccp/
Ddccp.h53 void dccp_time_wait(struct sock *sk, int state, int timeo);
214 void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb);
216 int dccp_retransmit_skb(struct sock *sk);
218 void dccp_send_ack(struct sock *sk);
219 void dccp_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb,
222 void dccp_send_sync(struct sock *sk, const u64 seq,
228 void dccp_qpolicy_push(struct sock *sk, struct sk_buff *skb);
229 bool dccp_qpolicy_full(struct sock *sk);
230 void dccp_qpolicy_drop(struct sock *sk, struct sk_buff *skb);
231 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 …]
/linux-6.1.9/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()
92 struct socket *sock = NULL; in rds_tcp_conn_path_connect() local
116 SOCK_STREAM, IPPROTO_TCP, &sock); in rds_tcp_conn_path_connect()
120 SOCK_STREAM, IPPROTO_TCP, &sock); in rds_tcp_conn_path_connect()
127 if (!rds_tcp_tune(sock)) { in rds_tcp_conn_path_connect()
148 ret = sock->ops->bind(sock, addr, addrlen); in rds_tcp_conn_path_connect()
175 rds_tcp_set_callbacks(sock, cp); in rds_tcp_conn_path_connect()
176 ret = sock->ops->connect(sock, addr, addrlen, O_NONBLOCK); in rds_tcp_conn_path_connect()
182 rds_tcp_keepalive(sock); in rds_tcp_conn_path_connect()
[all …]
/linux-6.1.9/net/tls/
Dtls.h82 struct tls_context *tls_ctx_create(struct sock *sk);
83 void tls_ctx_free(struct sock *sk, struct tls_context *ctx);
84 void update_sk_prot(struct sock *sk, struct tls_context *ctx);
86 int wait_on_pending_writer(struct sock *sk, long *timeo);
87 int tls_sk_query(struct sock *sk, int optname, char __user *optval,
89 int tls_sk_attach(struct sock *sk, int optname, char __user *optval,
91 void tls_err_abort(struct sock *sk, int err);
93 int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx);
95 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx);
97 int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
[all …]
/linux-6.1.9/net/ipv4/
Dudp_tunnel_core.c14 struct socket *sock = NULL; in udp_sock_create4() local
17 err = sock_create_kern(net, AF_INET, SOCK_DGRAM, 0, &sock); in udp_sock_create4()
22 err = sock_bindtoindex(sock->sk, cfg->bind_ifindex, true); in udp_sock_create4()
30 err = kernel_bind(sock, (struct sockaddr *)&udp_addr, in udp_sock_create4()
39 err = kernel_connect(sock, (struct sockaddr *)&udp_addr, in udp_sock_create4()
45 sock->sk->sk_no_check_tx = !cfg->use_udp_checksums; in udp_sock_create4()
47 *sockp = sock; in udp_sock_create4()
51 if (sock) { in udp_sock_create4()
52 kernel_sock_shutdown(sock, SHUT_RDWR); in udp_sock_create4()
53 sock_release(sock); in udp_sock_create4()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]

12345678910>>...35