/linux-6.6.21/drivers/pcmcia/ |
D | db1xxx_ss.c | 71 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 …]
|
D | xxs1500_ss.c | 71 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 …]
|
D | sa11xx_base.h | 69 #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.6.21/include/net/ |
D | llc_c_ac.h | 23 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 …]
|
D | llc_c_ev.h | 128 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 …]
|
D | sock.h | 87 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG() 111 struct sock; 212 struct sock *skc_listener; /* request_sock */ 357 struct sock { struct 529 void (*sk_state_change)(struct sock *sk); argument 530 void (*sk_data_ready)(struct sock *sk); argument 531 void (*sk_write_space)(struct sock *sk); argument 532 void (*sk_error_report)(struct sock *sk); argument 533 int (*sk_backlog_rcv)(struct sock *sk, argument 536 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk, argument [all …]
|
D | inet_connection_sock.h | 36 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 …]
|
D | tcp.h | 54 void tcp_time_wait(struct sock *sk, int state, int timeo); 263 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure() 288 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory() 296 static inline void tcp_wmem_free_skb(struct sock *sk, struct sk_buff *skb) in tcp_wmem_free_skb() 306 void sk_forced_mem_schedule(struct sock *sk, int size); 308 bool tcp_check_oom(struct sock *sk, int shift); 322 void tcp_shutdown(struct sock *sk, int how); 327 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 …]
|
D | inet_common.h | 21 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 void __inet_accept(struct socket *sock, struct socket *newsock, 35 struct sock *newsk); 36 int inet_send_prepare(struct sock *sk); 37 int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size); [all …]
|
D | netrom.h | 68 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 …]
|
D | sock_reuseport.h | 29 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 …]
|
/linux-6.6.21/drivers/memstick/host/ |
D | tifm_ms.c | 85 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.6.21/drivers/mmc/host/ |
D | tifm_sd.c | 115 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 311 dev_dbg(&sock->dev, "setting dma for %d blocks\n", dma_blk_cnt); in tifm_sd_set_dma_data() 312 writel(sg_dma_address(sg) + dma_off, sock->addr + SOCK_DMA_ADDRESS); in tifm_sd_set_dma_data() 315 sock->addr + SOCK_DMA_CONTROL); in tifm_sd_set_dma_data() 318 sock->addr + SOCK_DMA_CONTROL); in tifm_sd_set_dma_data() [all …]
|
/linux-6.6.21/drivers/misc/ |
D | tifm_core.c | 34 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 const struct tifm_dev *sock = container_of_const(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.6.21/net/handshake/ |
D | handshake-test.c | 148 struct socket *sock; in handshake_req_submit_test1() local 153 &sock, 1); in handshake_req_submit_test1() 157 result = handshake_req_submit(sock, NULL, GFP_KERNEL); in handshake_req_submit_test1() 162 sock_release(sock); in handshake_req_submit_test1() 186 struct socket *sock; in handshake_req_submit_test3() local 194 &sock, 1); in handshake_req_submit_test3() 196 sock->file = NULL; in handshake_req_submit_test3() 199 result = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_submit_test3() 205 sock_release(sock); in handshake_req_submit_test3() 211 struct socket *sock; in handshake_req_submit_test4() local [all …]
|
/linux-6.6.21/net/dccp/ |
D | dccp.h | 53 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 …]
|
D | ccid.h | 56 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.6.21/include/linux/ |
D | net.h | 125 struct sock *sk; 158 typedef int (*skb_read_actor_t)(struct sock *, struct sk_buff *); 164 int (*release) (struct socket *sock); 165 int (*bind) (struct socket *sock, 168 int (*connect) (struct socket *sock, 173 int (*accept) (struct socket *sock, 175 int (*getname) (struct socket *sock, 178 __poll_t (*poll) (struct file *file, struct socket *sock, 180 int (*ioctl) (struct socket *sock, unsigned int cmd, 183 int (*compat_ioctl) (struct socket *sock, unsigned int cmd, [all …]
|
/linux-6.6.21/net/rds/ |
D | tcp_listen.c | 42 void rds_tcp_keepalive(struct socket *sock) in rds_tcp_keepalive() argument 48 sock_set_keepalive(sock->sk); in rds_tcp_keepalive() 49 tcp_sock_set_keepcnt(sock->sk, keepcnt); in rds_tcp_keepalive() 50 tcp_sock_set_keepidle(sock->sk, keepidle); in rds_tcp_keepalive() 54 tcp_sock_set_keepintvl(sock->sk, keepidle); in rds_tcp_keepalive() 98 int rds_tcp_accept_one(struct socket *sock) in rds_tcp_accept_one() argument 113 if (!sock) /* module unload or netns delete in progress */ in rds_tcp_accept_one() 116 ret = sock_create_lite(sock->sk->sk_family, in rds_tcp_accept_one() 117 sock->sk->sk_type, sock->sk->sk_protocol, in rds_tcp_accept_one() 122 ret = sock->ops->accept(sock, new_sock, O_NONBLOCK, true); in rds_tcp_accept_one() [all …]
|
D | tcp_connect.c | 40 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 = kernel_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 = kernel_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.6.21/net/ |
D | socket.c | 139 struct socket *sock = f->private_data; in sock_show_fdinfo() local 140 const struct proto_ops *ops = READ_ONCE(sock->ops); in sock_show_fdinfo() 143 ops->show_fdinfo(m, sock); in sock_show_fdinfo() 462 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname) in sock_alloc_file() argument 467 dname = sock->sk ? sock->sk->sk_prot_creator->name : ""; in sock_alloc_file() 469 file = alloc_file_pseudo(SOCK_INODE(sock), sock_mnt, dname, in sock_alloc_file() 473 sock_release(sock); in sock_alloc_file() 478 sock->file = file; in sock_alloc_file() 479 file->private_data = sock; in sock_alloc_file() 480 stream_open(SOCK_INODE(sock), file); in sock_alloc_file() [all …]
|
/linux-6.6.21/net/tls/ |
D | tls.h | 127 struct sock *sk; 138 struct tls_context *tls_ctx_create(struct sock *sk); 139 void tls_ctx_free(struct sock *sk, struct tls_context *ctx); 140 void update_sk_prot(struct sock *sk, struct tls_context *ctx); 142 int wait_on_pending_writer(struct sock *sk, long *timeo); 143 void tls_err_abort(struct sock *sk, int err); 145 int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx); 147 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx); 149 int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size); 150 void tls_sw_splice_eof(struct socket *sock); [all …]
|
/linux-6.6.21/net/llc/ |
D | llc_c_ev.c | 75 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.6.21/net/bluetooth/rfcomm/ |
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; 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 …]
|
/linux-6.6.21/net/ipv4/ |
D | udp_tunnel_core.c | 14 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 …]
|