/kernel/linux/linux-5.10/drivers/pcmcia/ |
D | ti113x.h | 166 #define ti_sysctl(socket) ((socket)->private[0]) argument 167 #define ti_cardctl(socket) ((socket)->private[1]) argument 168 #define ti_devctl(socket) ((socket)->private[2]) argument 169 #define ti_diag(socket) ((socket)->private[3]) argument 170 #define ti_mfunc(socket) ((socket)->private[4]) argument 171 #define ene_test_c9(socket) ((socket)->private[5]) argument 176 static void ti_save_state(struct yenta_socket *socket) in ti_save_state() argument 178 ti_sysctl(socket) = config_readl(socket, TI113X_SYSTEM_CONTROL); in ti_save_state() 179 ti_mfunc(socket) = config_readl(socket, TI122X_MFUNC); in ti_save_state() 180 ti_cardctl(socket) = config_readb(socket, TI113X_CARD_CONTROL); in ti_save_state() [all …]
|
D | ricoh.h | 128 #define rl_misc(socket) ((socket)->private[0]) argument 129 #define rl_ctl(socket) ((socket)->private[1]) argument 130 #define rl_io(socket) ((socket)->private[2]) argument 131 #define rl_mem(socket) ((socket)->private[3]) argument 132 #define rl_config(socket) ((socket)->private[4]) argument 137 struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket); in ricoh_zoom_video() local 139 reg = config_readb(socket, RL5C4XX_MISC_CONTROL); in ricoh_zoom_video() 146 config_writeb(socket, RL5C4XX_MISC_CONTROL, reg); in ricoh_zoom_video() 149 static void ricoh_set_zv(struct yenta_socket *socket) in ricoh_set_zv() argument 151 if(socket->dev->vendor == PCI_VENDOR_ID_RICOH) in ricoh_set_zv() [all …]
|
D | yenta_socket.c | 69 static int yenta_probe_cb_irq(struct yenta_socket *socket); 70 static unsigned int yenta_probe_irq(struct yenta_socket *socket, 84 static inline u32 cb_readl(struct yenta_socket *socket, unsigned reg) in cb_readl() argument 86 u32 val = readl(socket->base + reg); in cb_readl() 87 debug("%04x %08x\n", socket, reg, val); in cb_readl() 91 static inline void cb_writel(struct yenta_socket *socket, unsigned reg, u32 val) in cb_writel() argument 93 debug("%04x %08x\n", socket, reg, val); in cb_writel() 94 writel(val, socket->base + reg); in cb_writel() 95 readl(socket->base + reg); /* avoid problems with PCI write posting */ in cb_writel() 98 static inline u8 config_readb(struct yenta_socket *socket, unsigned offset) in config_readb() argument [all …]
|
D | pd6729.c | 61 static unsigned char indirect_read(struct pd6729_socket *socket, in indirect_read() argument 69 reg += socket->number * 0x40; in indirect_read() 70 port = socket->io_base; in indirect_read() 78 static unsigned short indirect_read16(struct pd6729_socket *socket, in indirect_read16() argument 86 reg = reg + socket->number * 0x40; in indirect_read16() 87 port = socket->io_base; in indirect_read16() 98 static void indirect_write(struct pd6729_socket *socket, unsigned short reg, in indirect_write() argument 105 reg = reg + socket->number * 0x40; in indirect_write() 106 port = socket->io_base; in indirect_write() 112 static void indirect_setbit(struct pd6729_socket *socket, unsigned short reg, in indirect_setbit() argument [all …]
|
D | vrc4173_cardu.c | 56 static inline uint8_t exca_readb(vrc4173_socket_t *socket, uint16_t offset) in exca_readb() argument 58 return readb(socket->base + EXCA_REGS_BASE + offset); in exca_readb() 61 static inline uint16_t exca_readw(vrc4173_socket_t *socket, uint16_t offset) in exca_readw() argument 65 val = readb(socket->base + EXCA_REGS_BASE + offset); in exca_readw() 66 val |= (u16)readb(socket->base + EXCA_REGS_BASE + offset + 1) << 8; in exca_readw() 71 static inline void exca_writeb(vrc4173_socket_t *socket, uint16_t offset, uint8_t val) in exca_writeb() argument 73 writeb(val, socket->base + EXCA_REGS_BASE + offset); in exca_writeb() 76 static inline void exca_writew(vrc4173_socket_t *socket, uint8_t offset, uint16_t val) in exca_writew() argument 78 writeb((u8)val, socket->base + EXCA_REGS_BASE + offset); in exca_writew() 79 writeb((u8)(val >> 8), socket->base + EXCA_REGS_BASE + offset + 1); in exca_writew() [all …]
|
D | topic.h | 112 struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket); in topic97_zoom_video() local 115 reg_zv = config_readb(socket, TOPIC97_ZOOM_VIDEO_CONTROL); in topic97_zoom_video() 118 config_writeb(socket, TOPIC97_ZOOM_VIDEO_CONTROL, reg_zv); in topic97_zoom_video() 120 reg = config_readb(socket, TOPIC97_AUDIO_VIDEO_SWITCH); in topic97_zoom_video() 122 config_writeb(socket, TOPIC97_AUDIO_VIDEO_SWITCH, reg); in topic97_zoom_video() 125 config_writeb(socket, TOPIC97_ZOOM_VIDEO_CONTROL, reg_zv); in topic97_zoom_video() 127 reg = config_readb(socket, TOPIC97_AUDIO_VIDEO_SWITCH); in topic97_zoom_video() 129 config_writeb(socket, TOPIC97_AUDIO_VIDEO_SWITCH, reg); in topic97_zoom_video() 133 static int topic97_override(struct yenta_socket *socket) in topic97_override() argument 136 socket->socket.zoom_video = topic97_zoom_video; in topic97_override() [all …]
|
D | cs.c | 92 struct pcmcia_socket *socket = dev_get_drvdata(dev); in pcmcia_release_socket() local 94 complete(&socket->socket_released); in pcmcia_release_socket() 103 int pcmcia_register_socket(struct pcmcia_socket *socket) in pcmcia_register_socket() argument 108 if (!socket || !socket->ops || !socket->dev.parent || !socket->resource_ops) in pcmcia_register_socket() 111 dev_dbg(&socket->dev, "pcmcia_register_socket(0x%p)\n", socket->ops); in pcmcia_register_socket() 119 socket->sock = 0; in pcmcia_register_socket() 131 socket->sock = i - 1; in pcmcia_register_socket() 133 list_add_tail(&socket->socket_list, &pcmcia_socket_list); in pcmcia_register_socket() 141 socket->features &= ~SS_CAP_CARDBUS; in pcmcia_register_socket() 145 dev_set_drvdata(&socket->dev, socket); in pcmcia_register_socket() [all …]
|
D | o2micro.h | 109 static int o2micro_override(struct yenta_socket *socket) in o2micro_override() argument 121 if (PCI_FUNC(socket->dev->devfn) == 0) { in o2micro_override() 122 a = config_readb(socket, O2_RESERVED1); in o2micro_override() 123 b = config_readb(socket, O2_RESERVED2); in o2micro_override() 124 dev_dbg(&socket->dev->dev, "O2: 0x94/0xD4: %02x/%02x\n", a, b); in o2micro_override() 126 switch (socket->dev->device) { in o2micro_override() 151 dev_warn(&socket->dev->dev, in o2micro_override() 155 dev_info(&socket->dev->dev, in o2micro_override() 157 config_writeb(socket, O2_RESERVED1, in o2micro_override() 159 config_writeb(socket, O2_RESERVED2, in o2micro_override() [all …]
|
D | i82092.c | 64 struct pcmcia_socket socket; member 116 sockets[i].socket.features |= SS_CAP_PCCARD; in i82092aa_pci_probe() 117 sockets[i].socket.map_size = 0x1000; in i82092aa_pci_probe() 118 sockets[i].socket.irq_mask = 0; in i82092aa_pci_probe() 119 sockets[i].socket.pci_irq = dev->irq; in i82092aa_pci_probe() 120 sockets[i].socket.cb_dev = dev; in i82092aa_pci_probe() 121 sockets[i].socket.owner = THIS_MODULE; in i82092aa_pci_probe() 152 sockets[i].socket.dev.parent = &dev->dev; in i82092aa_pci_probe() 153 sockets[i].socket.ops = &i82092aa_operations; in i82092aa_pci_probe() 154 sockets[i].socket.resource_ops = &pccard_nonstatic_ops; in i82092aa_pci_probe() [all …]
|
D | omap_cf.c | 57 struct pcmcia_socket socket; member 88 pcmcia_parse_events(&cf->socket, SS_DETECT); in omap_cf_timer() 117 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_get_status() 164 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_set_io_map() 178 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_set_mem_map() 232 cf->socket.pci_irq = irq; in omap_cf_probe() 253 cf->socket.io_offset = (unsigned long) in omap_cf_probe() 255 if (!cf->socket.io_offset) in omap_cf_probe() 288 cf->socket.owner = THIS_MODULE; in omap_cf_probe() 289 cf->socket.dev.parent = &pdev->dev; in omap_cf_probe() [all …]
|
D | i82365.c | 146 struct pcmcia_socket socket; member 159 static struct i82365_socket socket[8] = { variable 222 unsigned int port = socket[sock].ioaddr; in i365_get() 224 reg = I365_REG(socket[sock].psock, reg); in i365_get() 236 unsigned int port = socket[sock].ioaddr; in i365_set() 237 u_char val = I365_REG(socket[sock].psock, reg); in i365_set() 297 struct cirrus_state *p = &socket[s].state.cirrus; in cirrus_get_state() 309 struct cirrus_state *p = &socket[s].state.cirrus; in cirrus_set_state() 323 struct i82365_socket *t = &socket[s]; in cirrus_set_opts() 324 struct cirrus_state *p = &socket[s].state.cirrus; in cirrus_set_opts() [all …]
|
D | ds.c | 242 pcmcia_put_socket(p_dev->socket); in pcmcia_release_dev() 265 s = p_dev->socket; in pcmcia_device_probe() 276 ret = pccard_read_tuple(p_dev->socket, p_dev->func, CISTPL_CONFIG, in pcmcia_device_probe() 304 (p_dev->socket->device_count == 1) && (p_dev->device_no == 0)) in pcmcia_device_probe() 368 if ((p_dev->socket->pcmcia_pfc) && in pcmcia_device_remove() 369 (p_dev->socket->device_count > 0) && in pcmcia_device_remove() 371 pcmcia_card_remove(p_dev->socket, p_dev); in pcmcia_device_remove() 414 if (!pccard_read_tuple(p_dev->socket, BIND_FN_ALL, in pcmcia_device_query() 416 mutex_lock(&p_dev->socket->ops_mutex); in pcmcia_device_query() 421 mutex_unlock(&p_dev->socket->ops_mutex); in pcmcia_device_query() [all …]
|
D | vrc4171_card.c | 224 struct vrc4171_socket *socket; in pccard_init() local 233 socket = &vrc4171_sockets[slot]; in pccard_init() 234 socket->csc_irq = search_nonuse_irq(); in pccard_init() 235 socket->io_irq = search_nonuse_irq(); in pccard_init() 236 spin_lock_init(&socket->lock); in pccard_init() 307 struct vrc4171_socket *socket; in pccard_set_socket() local 317 socket = &vrc4171_sockets[slot]; in pccard_set_socket() 319 spin_lock_irq(&socket->lock); in pccard_set_socket() 333 control |= socket->io_irq; in pccard_set_socket() 346 cscint |= socket->csc_irq << 8; in pccard_set_socket() [all …]
|
D | at91_cf.c | 43 struct pcmcia_socket socket; member 77 pcmcia_parse_events(&cf->socket, SS_DETECT); in at91_cf_irq() 91 cf = container_of(s, struct at91_cf_socket, socket); in at91_cf_get_status() 114 cf = container_of(sock, struct at91_cf_socket, socket); in at91_cf_set_socket() 150 cf = container_of(s, struct at91_cf_socket, socket); in at91_cf_set_io_map() 175 io->start = cf->socket.io_offset; in at91_cf_set_io_map() 190 cf = container_of(s, struct at91_cf_socket, socket); in at91_cf_set_mem_map() 313 cf->socket.pci_irq = gpio_to_irq(board->irq_pin); in at91_cf_probe() 315 cf->socket.pci_irq = nr_irqs + 1; in at91_cf_probe() 321 cf->socket.io_offset = 0x10000; in at91_cf_probe() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | net.h | 116 struct socket { struct 143 int (*release) (struct socket *sock); argument 144 int (*bind) (struct socket *sock, 147 int (*connect) (struct socket *sock, 150 int (*socketpair)(struct socket *sock1, 151 struct socket *sock2); 152 int (*accept) (struct socket *sock, 153 struct socket *newsock, int flags, bool kern); 154 int (*getname) (struct socket *sock, 157 __poll_t (*poll) (struct file *file, struct socket *sock, [all …]
|
/kernel/linux/linux-5.10/include/net/ |
D | af_rxrpc.h | 16 struct socket; 39 void rxrpc_kernel_new_call_notification(struct socket *, 42 struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *, 52 int rxrpc_kernel_send_data(struct socket *, struct rxrpc_call *, 55 int rxrpc_kernel_recv_data(struct socket *, struct rxrpc_call *, 57 bool rxrpc_kernel_abort_call(struct socket *, struct rxrpc_call *, 59 void rxrpc_kernel_end_call(struct socket *, struct rxrpc_call *); 60 void rxrpc_kernel_get_peer(struct socket *, struct rxrpc_call *, 62 bool rxrpc_kernel_get_srtt(struct socket *, struct rxrpc_call *, u32 *); 63 int rxrpc_kernel_charge_accept(struct socket *, rxrpc_notify_rx_t, [all …]
|
D | inet_common.h | 17 struct socket; 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, 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, 34 int inet_shutdown(struct socket *sock, int how); [all …]
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | pvcalls-front.h | 6 int pvcalls_front_socket(struct socket *sock); 7 int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr, 9 int pvcalls_front_bind(struct socket *sock, 12 int pvcalls_front_listen(struct socket *sock, int backlog); 13 int pvcalls_front_accept(struct socket *sock, 14 struct socket *newsock, 16 int pvcalls_front_sendmsg(struct socket *sock, 19 int pvcalls_front_recvmsg(struct socket *sock, 24 struct socket *sock, 26 int pvcalls_front_release(struct socket *sock);
|
/kernel/linux/linux-5.10/Documentation/networking/ |
D | kcm.rst | 15 | KCM socket | | KCM socket | | KCM socket | | KCM socket | 46 written on a KCM socket are sent atomically on an appropriate TCP socket. 47 Similarly, in the receive path, messages are constructed on each TCP socket 48 (Psock) and complete messages are steered to a KCM socket. 54 for each bound TCP socket, this structure holds the state for constructing 63 can be used to send and receive messages from the KCM socket. 68 KCM supports SOCK_DGRAM and SOCK_SEQPACKET socket types. 79 Filter (BPF) is used for this. When attaching a TCP socket to a multiplexor a 84 to a KCM socket. 86 TCP socket management [all …]
|
/kernel/linux/linux-5.10/net/atm/ |
D | common.h | 14 int vcc_create(struct net *net, struct socket *sock, int protocol, int family, int kern); 15 int vcc_release(struct socket *sock); 16 int vcc_connect(struct socket *sock, int itf, short vpi, int vci); 17 int vcc_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, 19 int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len); 20 __poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait); 21 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); 22 int vcc_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); 23 int vcc_setsockopt(struct socket *sock, int level, int optname, 25 int vcc_getsockopt(struct socket *sock, int level, int optname,
|
/kernel/liteos_a/testsuites/unittest/net/socket/ |
D | config.gni | 31 socket_include_dirs = [ "$TEST_UNITTEST_DIR/net/socket" ] 33 socket_sources_entry = [ "$TEST_UNITTEST_DIR/net/socket/net_socket_test.cpp" ] 36 "$TEST_UNITTEST_DIR/net/socket/smoke/net_socket_test_001.cpp", 37 "$TEST_UNITTEST_DIR/net/socket/smoke/net_socket_test_002.cpp", 38 "$TEST_UNITTEST_DIR/net/socket/smoke/net_socket_test_003.cpp", 39 "$TEST_UNITTEST_DIR/net/socket/smoke/net_socket_test_004.cpp", 40 "$TEST_UNITTEST_DIR/net/socket/smoke/net_socket_test_005.cpp", 41 "$TEST_UNITTEST_DIR/net/socket/smoke/net_socket_test_006.cpp", 42 "$TEST_UNITTEST_DIR/net/socket/smoke/net_socket_test_007.cpp", 43 "$TEST_UNITTEST_DIR/net/socket/smoke/net_socket_test_008.cpp", [all …]
|
/kernel/linux/linux-5.10/Documentation/bpf/ |
D | prog_sk_lookup.rst | 8 into the socket lookup performed by the transport layer when a packet is to be 11 When invoked BPF sk_lookup program can select a socket that will receive the 20 binding sockets to an address with ``bind()`` socket call is impractical, such 29 Such setups would require creating and ``bind()``'ing one socket to each of the 31 latency spikes during socket lookup. 47 find a listening (TCP) or an unconnected (UDP) socket for an incoming packet. 54 ``SK_PASS`` signifies that the socket lookup should continue on to regular 58 A BPF sk_lookup program can also select a socket to receive the packet by 59 calling ``bpf_sk_assign()`` BPF helper. Typically, the program looks up a socket 62 selection. Selecting a socket only takes effect if the program has terminated [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | tcp_client.py | 7 import socket, time 16 except (socket.error) as e: return b'' 25 except (socket.error) as e: n = 0 35 sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM) 38 except socket.error as e:
|
/kernel/linux/linux-5.10/net/rds/ |
D | tcp.h | 21 struct socket *t_sock; 52 void rds_tcp_tune(struct socket *sock); 53 void rds_tcp_set_callbacks(struct socket *sock, struct rds_conn_path *cp); 54 void rds_tcp_reset_callbacks(struct socket *sock, struct rds_conn_path *cp); 55 void rds_tcp_restore_callbacks(struct socket *sock, 70 struct socket *rds_tcp_listen_init(struct net *net, bool isv6); 71 void rds_tcp_listen_stop(struct socket *sock, struct work_struct *acceptor); 73 int rds_tcp_accept_one(struct socket *sock); 74 void rds_tcp_keepalive(struct socket *sock);
|
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/ |
D | bpftool-cgroup.rst | 84 **ingress** ingress path of the inet socket (since 4.10); 85 **egress** egress path of the inet socket (since 4.10); 86 **sock_create** opening of an inet socket (since 4.10); 87 **sock_ops** various socket operations (since 4.12); 89 **bind4** call to bind(2) for an inet4 socket (since 4.17); 90 **bind6** call to bind(2) for an inet6 socket (since 4.17); 91 **post_bind4** return from bind(2) for an inet4 socket (since 4.17); 92 **post_bind6** return from bind(2) for an inet6 socket (since 4.17); 93 **connect4** call to connect(2) for an inet4 socket (since 4.17); 94 **connect6** call to connect(2) for an inet6 socket (since 4.17); [all …]
|