/linux-6.6.21/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 | 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 | 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() 409 if (!pccard_read_tuple(p_dev->socket, BIND_FN_ALL, in pcmcia_device_query() 411 mutex_lock(&p_dev->socket->ops_mutex); in pcmcia_device_query() 416 mutex_unlock(&p_dev->socket->ops_mutex); in pcmcia_device_query() [all …]
|
D | omap_cf.c | 56 struct pcmcia_socket socket; member 87 pcmcia_parse_events(&cf->socket, SS_DETECT); in omap_cf_timer() 116 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_get_status() 161 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_set_io_map() 175 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_set_mem_map() 233 cf->socket.pci_irq = irq; in omap_cf_probe() 237 cf->socket.io_offset = iospace.start; in omap_cf_probe() 267 cf->socket.owner = THIS_MODULE; in omap_cf_probe() 268 cf->socket.dev.parent = &pdev->dev; in omap_cf_probe() 269 cf->socket.ops = &omap_cf_ops; in omap_cf_probe() [all …]
|
/linux-6.6.21/include/linux/ |
D | net.h | 117 struct socket { struct 164 int (*release) (struct socket *sock); 165 int (*bind) (struct socket *sock, 168 int (*connect) (struct socket *sock, 171 int (*socketpair)(struct socket *sock1, 172 struct socket *sock2); 173 int (*accept) (struct socket *sock, 174 struct socket *newsock, int flags, bool kern); 175 int (*getname) (struct socket *sock, 178 __poll_t (*poll) (struct file *file, struct socket *sock, [all …]
|
/linux-6.6.21/include/net/ |
D | af_rxrpc.h | 16 struct socket; 40 void rxrpc_kernel_new_call_notification(struct socket *, 43 struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock, 54 int rxrpc_kernel_send_data(struct socket *, struct rxrpc_call *, 57 int rxrpc_kernel_recv_data(struct socket *, struct rxrpc_call *, 59 bool rxrpc_kernel_abort_call(struct socket *, struct rxrpc_call *, 61 void rxrpc_kernel_shutdown_call(struct socket *sock, struct rxrpc_call *call); 62 void rxrpc_kernel_put_call(struct socket *sock, struct rxrpc_call *call); 63 void rxrpc_kernel_get_peer(struct socket *, struct rxrpc_call *, 65 bool rxrpc_kernel_get_srtt(struct socket *, struct rxrpc_call *, u32 *); [all …]
|
D | inet_common.h | 23 struct socket; 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, 37 int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size); 38 void inet_splice_eof(struct socket *sock); 39 int inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, [all …]
|
/linux-6.6.21/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 …]
|
D | l2tp.rst | 28 associated with a socket. Each session is associated with a virtual 40 1) Create a tunnel socket. Exchange L2TP control protocol messages 41 with the peer over that socket in order to establish a tunnel. 47 tunnel socket in order to establish a session. 62 To create a tunnel socket for use by L2TP, the standard POSIX 63 socket API is used. 67 int sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); 71 int sockfd = socket(AF_INET6, SOCK_DGRAM, IPPROTO_L2TP); 73 UDP socket programming doesn't need to be covered here. 76 subsystem. The L2TPIP socket address is defined in struct [all …]
|
/linux-6.6.21/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);
|
/linux-6.6.21/tools/testing/selftests/drivers/sdsi/ |
D | sdsi_test.py | 33 def get_dev_file_path(socket, file): argument 34 return CLASS_DIR + '/' + DEV_PREFIX + '.' + str(socket) + '/' + file 53 def get_dev_folder(self, socket): argument 54 return CLASS_DIR + '/' + DEV_PREFIX + '.' + str(socket) + '/' 56 def test_sysfs_files_exist(self, socket): argument 57 folder = self.get_dev_folder(socket) 65 def test_sysfs_file_permissions(self, socket): argument 66 folder = self.get_dev_folder(socket) 78 def test_sysfs_file_ownership(self, socket): argument 79 folder = self.get_dev_folder(socket) [all …]
|
/linux-6.6.21/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,
|
/linux-6.6.21/Documentation/bpf/ |
D | map_sk_storage.rst | 11 ``BPF_MAP_TYPE_SK_STORAGE`` is used to provide socket-local storage for BPF 13 to be provided and acts as the handle for accessing the socket-local 15 locally with each socket instead of with the map. The kernel is responsible for 16 allocating storage for a socket when requested and for freeing the storage when 17 either the map or the socket is deleted. 22 socket-local storage. 37 Socket-local storage for ``map`` can be retrieved from socket ``sk`` using the 56 Socket-local storage for ``map`` can be deleted from socket ``sk`` using the 71 socket using the ``bpf_map_update_elem()`` libbpf function. The socket is 72 identified by a `socket` ``fd`` stored in the pointer ``key``. The pointer [all …]
|
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 …]
|
/linux-6.6.21/Documentation/admin-guide/perf/ |
D | nvidia-pmu.rst | 37 see /sys/bus/event_sources/devices/nvidia_scf_pmu_<socket-id>. 41 * Count event id 0x0 in socket 0:: 45 * Count event id 0x0 in socket 1:: 69 see /sys/bus/event_sources/devices/nvidia_nvlink_c2c0_pmu_<socket-id>. 73 * Count event id 0x0 from the GPU/CPU connected with socket 0:: 77 * Count event id 0x0 from the GPU/CPU connected with socket 1:: 81 * Count event id 0x0 from the GPU/CPU connected with socket 2:: 85 * Count event id 0x0 from the GPU/CPU connected with socket 3:: 99 see /sys/bus/event_sources/devices/nvidia_nvlink_c2c1_pmu_<socket-id>. 103 * Count event id 0x0 from the GPU connected with socket 0:: [all …]
|
/linux-6.6.21/drivers/perf/arm_cspmu/ |
D | nvidia_cspmu.c | 55 NV_CSPMU_EVENT_ATTR_4(socket, rd_data, 0x101), 56 NV_CSPMU_EVENT_ATTR_4(socket, dl_rsp, 0x105), 57 NV_CSPMU_EVENT_ATTR_4(socket, wb_data, 0x109), 58 NV_CSPMU_EVENT_ATTR_4(socket, ev_rsp, 0x10d), 59 NV_CSPMU_EVENT_ATTR_4(socket, prb_data, 0x111), 61 NV_CSPMU_EVENT_ATTR_4(socket, rd_outstanding, 0x115), 62 NV_CSPMU_EVENT_ATTR_4(socket, dl_outstanding, 0x119), 63 NV_CSPMU_EVENT_ATTR_4(socket, wb_outstanding, 0x11d), 64 NV_CSPMU_EVENT_ATTR_4(socket, wr_outstanding, 0x121), 65 NV_CSPMU_EVENT_ATTR_4(socket, ev_outstanding, 0x125), [all …]
|
/linux-6.6.21/fs/afs/ |
D | rxrpc.c | 41 struct socket *socket; in afs_open_socket() local 46 ret = sock_create_kern(net->net, AF_RXRPC, SOCK_DGRAM, PF_INET6, &socket); in afs_open_socket() 50 socket->sk->sk_allocation = GFP_NOFS; in afs_open_socket() 61 ret = rxrpc_sock_set_min_security_level(socket->sk, in afs_open_socket() 66 ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx)); in afs_open_socket() 69 ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx)); in afs_open_socket() 75 ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx)); in afs_open_socket() 86 rxrpc_kernel_new_call_notification(socket, afs_rx_new_call, in afs_open_socket() 89 ret = kernel_listen(socket, INT_MAX); in afs_open_socket() 93 net->socket = socket; in afs_open_socket() [all …]
|
/linux-6.6.21/net/rds/ |
D | tcp.h | 21 struct socket *t_sock; 52 bool 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, 69 struct socket *rds_tcp_listen_init(struct net *net, bool isv6); 70 void rds_tcp_listen_stop(struct socket *sock, struct work_struct *acceptor); 72 int rds_tcp_accept_one(struct socket *sock); 73 void rds_tcp_keepalive(struct socket *sock);
|