/Linux-v4.19/drivers/pcmcia/ |
D | db1xxx_ss.c | 70 static int db1300_card_inserted(struct db1x_pcmcia_sock *sock) in db1300_card_inserted() argument 76 static int db1200_card_inserted(struct db1x_pcmcia_sock *sock) in db1200_card_inserted() argument 81 return sigstat & 1 << (8 + 2 * sock->nr); in db1200_card_inserted() 85 static int db1000_card_inserted(struct db1x_pcmcia_sock *sock) in db1000_card_inserted() argument 87 return !gpio_get_value(sock->insert_gpio); in db1000_card_inserted() 90 static int db1x_card_inserted(struct db1x_pcmcia_sock *sock) in db1x_card_inserted() argument 92 switch (sock->board_type) { in db1x_card_inserted() 94 return db1200_card_inserted(sock); in db1x_card_inserted() 96 return db1300_card_inserted(sock); in db1x_card_inserted() 98 return db1000_card_inserted(sock); in db1x_card_inserted() [all …]
|
D | xxs1500_ss.c | 70 struct xxs1500_pcmcia_sock *sock = data; in cdirq() local 72 pcmcia_parse_events(&sock->socket, SS_DETECT); in cdirq() 80 struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); in xxs1500_pcmcia_configure() local 96 changed = state->flags ^ sock->old_flags; in xxs1500_pcmcia_configure() 109 sock->old_flags = state->flags; in xxs1500_pcmcia_configure() 178 struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); in au1x00_pcmcia_set_io_map() local 180 map->start = (u32)sock->virt_io; in au1x00_pcmcia_set_io_map() 189 struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); in au1x00_pcmcia_set_mem_map() local 192 map->static_start = sock->phys_attr + map->card_start; in au1x00_pcmcia_set_mem_map() 194 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-v4.19/include/net/ |
D | llc_c_ac.h | 90 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 …]
|
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 | 91 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG() 115 struct sock; 204 struct sock *skc_listener; /* request_sock */ 326 struct sock { struct 494 void (*sk_state_change)(struct sock *sk); argument 495 void (*sk_data_ready)(struct sock *sk); argument 496 void (*sk_write_space)(struct sock *sk); argument 497 void (*sk_error_report)(struct sock *sk); argument 498 int (*sk_backlog_rcv)(struct sock *sk, argument 501 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk, argument [all …]
|
D | inet_connection_sock.h | 38 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 …]
|
D | tcp.h | 54 void tcp_time_wait(struct sock *sk, int state, int timeo); 256 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure() 281 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory() 289 void sk_forced_mem_schedule(struct sock *sk, int size); 291 static inline bool tcp_too_many_orphans(struct sock *sk, int shift) in tcp_too_many_orphans() 304 bool tcp_check_oom(struct sock *sk, int shift); 318 void tcp_shutdown(struct sock *sk, int how); 324 int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size); 325 int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size); 326 int tcp_sendpage(struct sock *sk, struct page *page, int offset, size_t size, [all …]
|
D | tls.h | 82 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); 202 int (*push_pending_record)(struct sock *sk, int flags); 204 void (*sk_write_space)(struct sock *sk); 205 void (*sk_destruct)(struct sock *sk); 206 void (*sk_proto_close)(struct sock *sk, long timeout); 208 int (*setsockopt)(struct sock *sk, int level, [all …]
|
D | netrom.h | 67 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 …]
|
D | inet_common.h | 13 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 …]
|
D | x25.h | 150 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 …]
|
/Linux-v4.19/drivers/memstick/host/ |
D | tifm_ms.c | 89 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-v4.19/drivers/mmc/host/ |
D | tifm_sd.c | 117 struct tifm_dev *sock = host->dev; in tifm_sd_read_fifo() local 128 val = readl(sock->addr + SOCK_MMCSD_DATA); in tifm_sd_read_fifo() 143 struct tifm_dev *sock = host->dev; in tifm_sd_write_fifo() local 150 writel(val, sock->addr + SOCK_MMCSD_DATA); in tifm_sd_write_fifo() 162 writel(val, sock->addr + SOCK_MMCSD_DATA); in tifm_sd_write_fifo() 265 struct tifm_dev *sock = host->dev; in tifm_sd_set_dma_data() local 318 dev_dbg(&sock->dev, "setting dma for %d blocks\n", dma_blk_cnt); in tifm_sd_set_dma_data() 319 writel(sg_dma_address(sg) + dma_off, sock->addr + SOCK_DMA_ADDRESS); in tifm_sd_set_dma_data() 322 sock->addr + SOCK_DMA_CONTROL); in tifm_sd_set_dma_data() 325 sock->addr + SOCK_DMA_CONTROL); in tifm_sd_set_dma_data() [all …]
|
/Linux-v4.19/include/linux/ |
D | net.h | 120 struct sock *sk; 136 int (*release) (struct socket *sock); 137 int (*bind) (struct socket *sock, 140 int (*connect) (struct socket *sock, 145 int (*accept) (struct socket *sock, 147 int (*getname) (struct socket *sock, 150 __poll_t (*poll) (struct file *file, struct socket *sock, 152 int (*ioctl) (struct socket *sock, unsigned int cmd, 155 int (*compat_ioctl) (struct socket *sock, unsigned int cmd, 158 int (*listen) (struct socket *sock, int len); [all …]
|
/Linux-v4.19/drivers/misc/ |
D | tifm_core.c | 38 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-v4.19/net/rds/ |
D | tcp_listen.c | 41 int rds_tcp_keepalive(struct socket *sock) in rds_tcp_keepalive() argument 49 ret = kernel_setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, in rds_tcp_keepalive() 54 ret = kernel_setsockopt(sock, IPPROTO_TCP, TCP_KEEPCNT, in rds_tcp_keepalive() 59 ret = kernel_setsockopt(sock, IPPROTO_TCP, TCP_KEEPIDLE, in rds_tcp_keepalive() 67 ret = kernel_setsockopt(sock, IPPROTO_TCP, TCP_KEEPINTVL, in rds_tcp_keepalive() 114 void rds_tcp_set_linger(struct socket *sock) in rds_tcp_set_linger() argument 121 kernel_setsockopt(sock, SOL_SOCKET, SO_LINGER, in rds_tcp_set_linger() 125 int rds_tcp_accept_one(struct socket *sock) in rds_tcp_accept_one() argument 140 if (!sock) /* module unload or netns delete in progress */ in rds_tcp_accept_one() 143 ret = sock_create_lite(sock->sk->sk_family, 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() 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 …]
|
/Linux-v4.19/net/dccp/ |
D | dccp.h | 56 void dccp_time_wait(struct sock *sk, int state, int timeo); 227 void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb); 229 int dccp_retransmit_skb(struct sock *sk); 231 void dccp_send_ack(struct sock *sk); 232 void dccp_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb, 235 void dccp_send_sync(struct sock *sk, const u64 seq, 241 void dccp_qpolicy_push(struct sock *sk, struct sk_buff *skb); 242 bool dccp_qpolicy_full(struct sock *sk); 243 void dccp_qpolicy_drop(struct sock *sk, struct sk_buff *skb); 244 struct sk_buff *dccp_qpolicy_top(struct sock *sk); [all …]
|
D | ccid.h | 59 int (*ccid_hc_rx_init)(struct ccid *ccid, struct sock *sk); 60 int (*ccid_hc_tx_init)(struct ccid *ccid, struct sock *sk); 61 void (*ccid_hc_rx_exit)(struct sock *sk); 62 void (*ccid_hc_tx_exit)(struct sock *sk); 63 void (*ccid_hc_rx_packet_recv)(struct sock *sk, 65 int (*ccid_hc_rx_parse_options)(struct sock *sk, u8 pkt, 67 int (*ccid_hc_rx_insert_options)(struct sock *sk, 69 void (*ccid_hc_tx_packet_recv)(struct sock *sk, 71 int (*ccid_hc_tx_parse_options)(struct sock *sk, u8 pkt, 73 int (*ccid_hc_tx_send_packet)(struct sock *sk, [all …]
|
/Linux-v4.19/net/ |
D | socket.c | 387 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname) in sock_alloc_file() argument 392 dname = sock->sk ? sock->sk->sk_prot_creator->name : ""; in sock_alloc_file() 394 file = alloc_file_pseudo(SOCK_INODE(sock), sock_mnt, dname, in sock_alloc_file() 398 sock_release(sock); in sock_alloc_file() 402 sock->file = file; in sock_alloc_file() 403 file->private_data = sock; in sock_alloc_file() 408 static int sock_map_fd(struct socket *sock, int flags) in sock_map_fd() argument 413 sock_release(sock); in sock_map_fd() 417 newfile = sock_alloc_file(sock, flags, NULL); in sock_map_fd() 453 struct socket *sock; in sockfd_lookup() local [all …]
|
/Linux-v4.19/include/crypto/ |
D | if_alg.h | 33 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-v4.19/net/ipv4/ |
D | udp_tunnel.c | 16 struct socket *sock = NULL; in udp_sock_create4() local 19 err = sock_create_kern(net, AF_INET, SOCK_DGRAM, 0, &sock); in udp_sock_create4() 26 err = kernel_bind(sock, (struct sockaddr *)&udp_addr, in udp_sock_create4() 35 err = kernel_connect(sock, (struct sockaddr *)&udp_addr, in udp_sock_create4() 41 sock->sk->sk_no_check_tx = !cfg->use_udp_checksums; in udp_sock_create4() 43 *sockp = sock; in udp_sock_create4() 47 if (sock) { in udp_sock_create4() 48 kernel_sock_shutdown(sock, SHUT_RDWR); in udp_sock_create4() 49 sock_release(sock); in udp_sock_create4() 56 void setup_udp_tunnel_sock(struct net *net, struct socket *sock, in setup_udp_tunnel_sock() argument [all …]
|
/Linux-v4.19/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-v4.19/net/atm/ |
D | svc.c | 31 static int svc_create(struct net *net, struct socket *sock, int protocol, 41 static int svc_shutdown(struct socket *sock, int how) in svc_shutdown() argument 50 struct sock *sk = sk_atm(vcc); in svc_disconnect() 75 static int svc_release(struct socket *sock) in svc_release() argument 77 struct sock *sk = sock->sk; in svc_release() 81 vcc = ATM_SD(sock); in svc_release() 90 vcc_release(sock); in svc_release() 95 static int svc_bind(struct socket *sock, struct sockaddr *sockaddr, in svc_bind() argument 99 struct sock *sk = sock->sk; in svc_bind() 107 if (sock->state == SS_CONNECTED) { in svc_bind() [all …]
|