/kernel/linux/linux-5.10/drivers/pcmcia/ |
H A 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() 107 set_stschg(struct db1x_pcmcia_sock *sock, int en) set_stschg() argument 119 struct db1x_pcmcia_sock *sock = data; db1000_pcmcia_cdirq() local 128 struct db1x_pcmcia_sock *sock = data; db1000_pcmcia_stschgirq() local 148 struct db1x_pcmcia_sock *sock = data; db1200_pcmcia_cdirq_fn() local 162 db1x_pcmcia_setup_irqs(struct db1x_pcmcia_sock *sock) db1x_pcmcia_setup_irqs() argument 219 db1x_pcmcia_free_irqs(struct db1x_pcmcia_sock *sock) db1x_pcmcia_free_irqs() argument 245 struct db1x_pcmcia_sock *sock = to_db1x_socket(skt); db1x_pcmcia_configure() local 341 struct db1x_pcmcia_sock *sock = to_db1x_socket(skt); db1x_pcmcia_get_status() local 393 struct db1x_pcmcia_sock *sock = to_db1x_socket(skt); au1x00_pcmcia_set_io_map() local 404 struct db1x_pcmcia_sock *sock = to_db1x_socket(skt); au1x00_pcmcia_set_mem_map() local 425 struct db1x_pcmcia_sock *sock; db1x_pcmcia_socket_probe() local 581 struct db1x_pcmcia_sock *sock = platform_get_drvdata(pdev); db1x_pcmcia_socket_remove() local [all...] |
H A 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 in au1x00_pcmcia_set_mem_map() 211 struct xxs1500_pcmcia_sock *sock; xxs1500_pcmcia_probe() local 296 free_irq(gpio_to_irq(GPIO_CDA), sock); xxs1500_pcmcia_probe() local 306 struct xxs1500_pcmcia_sock *sock = platform_get_drvdata(pdev); xxs1500_pcmcia_remove() local 309 free_irq(gpio_to_irq(GPIO_CDA), sock); xxs1500_pcmcia_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/pcmcia/ |
H A 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() 107 set_stschg(struct db1x_pcmcia_sock *sock, int en) set_stschg() argument 119 struct db1x_pcmcia_sock *sock = data; db1000_pcmcia_cdirq() local 128 struct db1x_pcmcia_sock *sock = data; db1000_pcmcia_stschgirq() local 148 struct db1x_pcmcia_sock *sock = data; db1200_pcmcia_cdirq_fn() local 162 db1x_pcmcia_setup_irqs(struct db1x_pcmcia_sock *sock) db1x_pcmcia_setup_irqs() argument 219 db1x_pcmcia_free_irqs(struct db1x_pcmcia_sock *sock) db1x_pcmcia_free_irqs() argument 245 struct db1x_pcmcia_sock *sock = to_db1x_socket(skt); db1x_pcmcia_configure() local 341 struct db1x_pcmcia_sock *sock = to_db1x_socket(skt); db1x_pcmcia_get_status() local 394 struct db1x_pcmcia_sock *sock = to_db1x_socket(skt); au1x00_pcmcia_set_io_map() local 405 struct db1x_pcmcia_sock *sock = to_db1x_socket(skt); au1x00_pcmcia_set_mem_map() local 426 struct db1x_pcmcia_sock *sock; db1x_pcmcia_socket_probe() local 582 struct db1x_pcmcia_sock *sock = platform_get_drvdata(pdev); db1x_pcmcia_socket_remove() local [all...] |
H A 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 in au1x00_pcmcia_set_mem_map() 211 struct xxs1500_pcmcia_sock *sock; xxs1500_pcmcia_probe() local 296 free_irq(gpio_to_irq(GPIO_CDA), sock); xxs1500_pcmcia_probe() local 306 struct xxs1500_pcmcia_sock *sock = platform_get_drvdata(pdev); xxs1500_pcmcia_remove() local 309 free_irq(gpio_to_irq(GPIO_CDA), sock); xxs1500_pcmcia_remove() local [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | llc_c_ev.h | 15 #include <net/sock.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 *s [all...] |
H A 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 *s [all...] |
H A D | sock.h | 9 * Version: @(#)sock.h 1.0.4 05/13/93 89 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG() 113 struct sock; 163 * for struct sock and struct inet_timewait_sock. 213 * offset(struct sock, sk_refcnt) == 128 on 64bit arches 219 struct sock *skc_listener; /* request_sock */ 257 * struct sock - network layer representation of sockets 262 * @sk_kern_sock: True if sock is using kernel lock classes 264 * @sk_wq: sock wait queue and async head 300 * @sk_prot_creator: sk_prot of original sock creato 353 struct sock { global() struct 1932 sk_set_socket(struct sock *sk, struct socket *sock) sk_set_socket() argument 2238 sock_poll_wait(struct file *filp, struct socket *sock, poll_table *p) sock_poll_wait() argument [all...] |
H A D | inet_connection_sock.h | 39 int (*queue_xmit)(struct sock *sk, struct sk_buff *skb, struct flowi *fl); 40 void (*send_check)(struct sock *sk, struct sk_buff *skb); 41 int (*rebuild_header)(struct sock *sk); 42 void (*sk_rx_dst_set)(struct sock *sk, const struct sk_buff *skb); 43 int (*conn_request)(struct sock *sk, struct sk_buff *skb); 44 struct sock *(*syn_recv_sock)(const struct sock *sk, struct sk_buff *skb, 52 int (*setsockopt)(struct sock *sk, int level, int optname, 54 int (*getsockopt)(struct sock *sk, int level, int optname, 56 void (*addr2sockaddr)(struct sock *s [all...] |
H A D | tcp.h | 36 #include <net/sock.h> 56 void tcp_time_wait(struct sock *sk, int state, int timeo); 265 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure() 290 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory() 298 void sk_forced_mem_schedule(struct sock *sk, int size); 300 bool tcp_check_oom(struct sock *sk, int shift); 314 void tcp_shutdown(struct sock *sk, int how); 320 int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size); 321 int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size); 322 int tcp_sendpage(struct sock *s [all...] |
/kernel/linux/linux-6.6/include/net/ |
H A D | llc_c_ev.h | 15 #include <net/sock.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 *s [all...] |
H A 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 *s [all...] |
H A D | tcp.h | 36 #include <net/sock.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 *s [all...] |
H A 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 *s [all...] |
H A D | sock.h | 9 * Version: @(#)sock.h 1.0.4 05/13/93 87 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG() 111 struct sock; 161 * for struct sock and struct inet_timewait_sock. 206 * offset(struct sock, sk_refcnt) == 128 on 64bit arches 212 struct sock *skc_listener; /* request_sock */ 251 * struct sock - network layer representation of sockets 256 * @sk_kern_sock: True if sock is using kernel lock classes 258 * @sk_wq: sock wait queue and async head 294 * @sk_prot_creator: sk_prot of original sock creato 357 struct sock { global() struct 2085 sk_set_socket(struct sock *sk, struct socket *sock) sk_set_socket() argument 2393 sock_poll_wait(struct file *filp, struct socket *sock, poll_table *p) sock_poll_wait() argument [all...] |
/third_party/lwip/src/api/ |
H A D | sockets.c | 131 #define SOCK_ADDR_TYPE_MATCH(name, sock) \ 132 ((((name)->sa_family == AF_INET) && !(NETCONNTYPE_ISIPV6((sock)->conn->type))) || \ 133 (((name)->sa_family == AF_INET6) && (NETCONNTYPE_ISIPV6((sock)->conn->type)))) 146 #define SOCK_ADDR_TYPE_MATCH(name, sock) 1 155 #define SOCK_ADDR_TYPE_MATCH(name, sock) 1 165 #define SOCK_ADDR_TYPE_MATCH_OR_UNSPEC(name, sock) (((name)->sa_family == AF_UNSPEC) || \ 166 SOCK_ADDR_TYPE_MATCH(name, sock)) 170 #define LWIP_SOCKOPT_CHECK_OPTLEN(sock, optlen, opttype) do { if ((optlen) < sizeof(opttype)) { done_socket(sock); return EINVAL; }}while(0) 171 #define LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optle 234 struct lwip_sock *sock; global() member 253 struct lwip_sock *sock; global() member 343 sock_inc_used(struct lwip_sock *sock) sock_inc_used() argument 365 sock_inc_used_locked(struct lwip_sock *sock) sock_inc_used_locked() argument 385 done_socket(struct lwip_sock *sock) done_socket() argument 470 struct lwip_sock *sock = tryget_socket_unconn(fd); tryget_socket() local 489 struct lwip_sock *sock = tryget_socket(fd); get_socket() local 557 free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn, union lwip_sock_lastdata *lastdata) free_socket_locked() argument 603 free_socket(struct lwip_sock *sock, int is_tcp) free_socket() argument 631 struct lwip_sock *sock, *nsock; lwip_accept() local 728 struct lwip_sock *sock; lwip_bind() local 793 struct lwip_sock *sock; lwip_close_internal() local 845 struct lwip_sock *sock; lwip_connect_internal() local 913 struct lwip_sock *sock; lwip_listen() local 950 lwip_recv_tcp(struct lwip_sock *sock, void *mem, size_t len, int flags) lwip_recv_tcp() argument 1087 lwip_recv_tcp_from(struct lwip_sock *sock, struct sockaddr *from, socklen_t *fromlen, const char *dbg_fn, int dbg_s, ssize_t dbg_ret) lwip_recv_tcp_from() argument 1119 lwip_recvfrom_udp_raw(struct lwip_sock *sock, int flags, struct msghdr *msg, u16_t *datagram_len, int dbg_s) lwip_recvfrom_udp_raw() argument 1245 struct lwip_sock *sock; lwip_recvfrom_internal() local 1326 struct lwip_sock *sock; lwip_recvmsg() local 1427 struct lwip_sock *sock; lwip_send() local 1482 struct lwip_sock *sock; lwip_sendmsg_internal() local 1658 struct lwip_sock *sock; lwip_sendto_internal() local 1910 struct lwip_sock *sock; lwip_selscan() local 1985 struct lwip_sock *sock; lwip_select_inc_sockets_used_set() local 2020 struct lwip_sock *sock = tryget_socket_unconn_nouse(i); lwip_select_dec_sockets_used() local 2114 struct lwip_sock *sock; lwip_select() local 2175 struct lwip_sock *sock; lwip_select() local 2274 struct lwip_sock *sock; lwip_pollscan() local 2383 struct lwip_sock *sock = tryget_socket_unconn_nouse(fds[fdi].fd); lwip_poll_dec_sockets_used() local 2557 struct lwip_sock *sock; event_callback() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_timeout.py | 29 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 32 self.sock.close() 36 self.assertEqual(self.sock.gettimeout(), None, 41 self.sock.settimeout(7.345) 42 self.assertEqual(self.sock.gettimeout(), 7.345) 44 self.sock.settimeout(3) 45 self.assertEqual(self.sock.gettimeout(), 3) 47 self.sock.settimeout(None) 48 self.assertEqual(self.sock.gettimeout(), None) 52 self.sock [all...] |
/kernel/linux/linux-5.10/drivers/memstick/host/ |
H A 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 in tifm_ms_write_data() 182 struct tifm_dev *sock = host->dev; tifm_ms_transfer_data() local 254 struct tifm_dev *sock = host->dev; tifm_ms_issue_cmd() local 336 struct tifm_dev *sock = host->dev; tifm_ms_complete_cmd() local 381 tifm_ms_data_event(struct tifm_dev *sock) tifm_ms_data_event() argument 417 tifm_ms_card_event(struct tifm_dev *sock) tifm_ms_card_event() argument 459 struct tifm_dev *sock = host->dev; tifm_ms_req_tasklet() local 499 struct tifm_dev *sock = host->dev; tifm_ms_set_param() local 551 tifm_ms_probe(struct tifm_dev *sock) tifm_ms_probe() argument 591 tifm_ms_remove(struct tifm_dev *sock) tifm_ms_remove() argument 628 tifm_ms_suspend(struct tifm_dev *sock, pm_message_t state) tifm_ms_suspend() argument 636 tifm_ms_resume(struct tifm_dev *sock) tifm_ms_resume() argument [all...] |
/kernel/linux/linux-6.6/drivers/memstick/host/ |
H A 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 in tifm_ms_write_data() 182 struct tifm_dev *sock = host->dev; tifm_ms_transfer_data() local 254 struct tifm_dev *sock = host->dev; tifm_ms_issue_cmd() local 336 struct tifm_dev *sock = host->dev; tifm_ms_complete_cmd() local 381 tifm_ms_data_event(struct tifm_dev *sock) tifm_ms_data_event() argument 417 tifm_ms_card_event(struct tifm_dev *sock) tifm_ms_card_event() argument 459 struct tifm_dev *sock = host->dev; tifm_ms_req_tasklet() local 499 struct tifm_dev *sock = host->dev; tifm_ms_set_param() local 551 tifm_ms_probe(struct tifm_dev *sock) tifm_ms_probe() argument 591 tifm_ms_remove(struct tifm_dev *sock) tifm_ms_remove() argument 628 tifm_ms_suspend(struct tifm_dev *sock, pm_message_t state) tifm_ms_suspend() argument 636 tifm_ms_resume(struct tifm_dev *sock) tifm_ms_resume() argument [all...] |
/kernel/linux/common_modules/newip/third_party/linux-5.10/include/net/ |
H A D | tcp_nip.h | 42 #include <net/sock.h> 81 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 *s [all...] |
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_sock_lowlevel.py | 75 def _basetest_sock_client_ops(self, httpd, sock): 80 sock.setblocking(True) 83 self.loop.sock_connect(sock, httpd.address)) 86 self.loop.sock_sendall(sock, b'GET / HTTP/1.0\r\n\r\n')) 89 self.loop.sock_recv(sock, 1024)) 92 self.loop.sock_recv_into(sock, bytearray())) 95 self.loop.sock_accept(sock)) 98 sock.setblocking(False) 100 self.loop.sock_connect(sock, httpd.address)) 102 self.loop.sock_sendall(sock, [all...] |
/kernel/linux/linux-5.10/drivers/mmc/host/ |
H A 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 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 in tifm_sd_set_dma_data() 373 struct tifm_dev *sock = host->dev; tifm_sd_exec() local 390 tifm_sd_fetch_resp(struct mmc_command *cmd, struct tifm_dev *sock) tifm_sd_fetch_resp() argument 404 struct tifm_dev *sock = host->dev; tifm_sd_check_status() local 475 tifm_sd_data_event(struct tifm_dev *sock) tifm_sd_data_event() argument 503 tifm_sd_card_event(struct tifm_dev *sock) tifm_sd_card_event() argument 595 struct tifm_dev *sock = host->dev; tifm_sd_set_data_timeout() local 623 struct tifm_dev *sock = host->dev; tifm_sd_request() local 737 struct tifm_dev *sock = host->dev; tifm_sd_end_cmd() local 799 struct tifm_dev *sock = host->dev; tifm_sd_ios() local 867 struct tifm_dev *sock = host->dev; tifm_sd_ro() local 887 struct tifm_dev *sock = host->dev; tifm_sd_initialize_host() local 944 tifm_sd_probe(struct tifm_dev *sock) tifm_sd_probe() argument 1000 tifm_sd_remove(struct tifm_dev *sock) tifm_sd_remove() argument 1032 tifm_sd_suspend(struct tifm_dev *sock, pm_message_t state) tifm_sd_suspend() argument 1037 tifm_sd_resume(struct tifm_dev *sock) tifm_sd_resume() argument [all...] |
/kernel/linux/linux-6.6/drivers/mmc/host/ |
H A 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 in tifm_sd_set_dma_data() 368 struct tifm_dev *sock = host->dev; tifm_sd_exec() local 385 tifm_sd_fetch_resp(struct mmc_command *cmd, struct tifm_dev *sock) tifm_sd_fetch_resp() argument 399 struct tifm_dev *sock = host->dev; tifm_sd_check_status() local 470 tifm_sd_data_event(struct tifm_dev *sock) tifm_sd_data_event() argument 498 tifm_sd_card_event(struct tifm_dev *sock) tifm_sd_card_event() argument 587 struct tifm_dev *sock = host->dev; tifm_sd_set_data_timeout() local 615 struct tifm_dev *sock = host->dev; tifm_sd_request() local 729 struct tifm_dev *sock = host->dev; tifm_sd_end_cmd() local 791 struct tifm_dev *sock = host->dev; tifm_sd_ios() local 859 struct tifm_dev *sock = host->dev; tifm_sd_ro() local 879 struct tifm_dev *sock = host->dev; tifm_sd_initialize_host() local 936 tifm_sd_probe(struct tifm_dev *sock) tifm_sd_probe() argument 991 tifm_sd_remove(struct tifm_dev *sock) tifm_sd_remove() argument 1023 tifm_sd_suspend(struct tifm_dev *sock, pm_message_t state) tifm_sd_suspend() argument 1028 tifm_sd_resume(struct tifm_dev *sock) tifm_sd_resume() argument [all...] |
/third_party/vk-gl-cts/framework/delibs/deutil/ |
H A D | deSocket.c | 412 deSocket* sock = (deSocket*)deCalloc(sizeof(deSocket)); in deSocket_create() local 413 if (!sock) in deSocket_create() 414 return sock; in deSocket_create() 422 sock->stateLock = deMutex_create(0); in deSocket_create() 423 sock->handle = DE_INVALID_SOCKET_HANDLE; in deSocket_create() 424 sock->state = DE_SOCKETSTATE_CLOSED; in deSocket_create() 426 return sock; in deSocket_create() 429 void deSocket_destroy (deSocket* sock) in deSocket_destroy() argument 431 if (sock->state != DE_SOCKETSTATE_CLOSED) in deSocket_destroy() 432 deSocket_close(sock); in deSocket_destroy() 438 deSocket_getState(const deSocket* sock) deSocket_getState() argument 443 deSocket_getOpenChannels(const deSocket* sock) deSocket_getOpenChannels() argument 448 deSocket_setFlags(deSocket* sock, deUint32 flags) deSocket_setFlags() argument 496 deSocket_listen(deSocket* sock, const deSocketAddress* address) deSocket_listen() argument 542 deSocket_accept(deSocket* sock, deSocketAddress* clientAddress) deSocket_accept() argument 578 deSocket_connect(deSocket* sock, const deSocketAddress* address) deSocket_connect() argument 611 deSocket_shutdown(deSocket* sock, deUint32 channels) deSocket_shutdown() argument 696 deSocket_close(deSocket* sock) deSocket_close() argument 761 deSocket_setChannelsClosed(deSocket* sock, deUint32 channels) deSocket_setChannelsClosed() argument 772 deSocket_send(deSocket* sock, const void* buf, size_t bufSize, size_t* numSentPtr) deSocket_send() argument 789 deSocket_receive(deSocket* sock, void* buf, size_t bufSize, size_t* numReceivedPtr) deSocket_receive() argument [all...] |
/kernel/linux/linux-5.10/drivers/misc/ |
H A 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 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 in tifm_device_remove() local 111 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); tifm_device_suspend() local 122 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); tifm_device_resume() local 141 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); type_show() local 244 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); tifm_free_device() local 252 struct tifm_dev *sock = NULL; tifm_alloc_device() local 280 tifm_eject(struct tifm_dev *sock) tifm_eject() argument 287 tifm_has_ms_pif(struct tifm_dev *sock) tifm_has_ms_pif() argument 294 tifm_map_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents, int direction) tifm_map_sg() argument 301 tifm_unmap_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents, int direction) tifm_unmap_sg() argument [all...] |
/kernel/linux/linux-6.6/drivers/misc/ |
H A 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 in tifm_device_remove() local 110 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); tifm_device_suspend() local 121 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); tifm_device_resume() local 140 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); type_show() local 242 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); tifm_free_device() local 250 struct tifm_dev *sock = NULL; tifm_alloc_device() local 278 tifm_eject(struct tifm_dev *sock) tifm_eject() argument 285 tifm_has_ms_pif(struct tifm_dev *sock) tifm_has_ms_pif() argument 292 tifm_map_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents, int direction) tifm_map_sg() argument 300 tifm_unmap_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents, int direction) tifm_unmap_sg() argument [all...] |