Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 25 of 1381) sorted by relevance

12345678910>>...56

/openbmc/linux/drivers/pcmcia/
H A Dti113x.h166 #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 …]
H A Dricoh.h128 #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 …]
H A Dyenta_socket.c69 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 …]
H A Dpd6729.c61 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 …]
H A Dtopic.h112 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 …]
H A Dcs.c92 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 …]
H A Do2micro.h109 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 …]
H A Di82092.c64 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 …]
H A Di82365.c146 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 …]
H A Dds.c242 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 …]
/openbmc/qemu/hw/ppc/
H A Drs6000_mc.c53 int socket; in rs6000mc_port0803_read() local
56 for (socket = 0; socket < 6; socket++) { in rs6000mc_port0803_read()
57 if (s->simm_size[socket] == 32) { in rs6000mc_port0803_read()
58 val |= (1 << socket); in rs6000mc_port0803_read()
72 int socket; in rs6000mc_port0804_read() local
75 for (socket = 0; socket < 6; socket++) { in rs6000mc_port0804_read()
76 if (s->simm_size[socket]) { in rs6000mc_port0804_read()
77 val &= ~(1 << socket); in rs6000mc_port0804_read()
100 uint8_t socket = val >> 5; in rs6000mc_port0820_write() local
104 s->end_address[socket] = end_address; in rs6000mc_port0820_write()
[all …]
/openbmc/linux/include/linux/
H A Dnet.h117 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 …]
/openbmc/qemu/backends/
H A Dspdm-socket.c17 static bool read_bytes(const int socket, uint8_t *buffer, in read_bytes() argument
24 result = recv(socket, buffer + number_received, in read_bytes()
34 static bool read_data32(const int socket, uint32_t *data) in read_data32() argument
38 result = read_bytes(socket, (uint8_t *)data, sizeof(uint32_t)); in read_data32()
46 static bool read_multiple_bytes(const int socket, uint8_t *buffer, in read_multiple_bytes() argument
53 result = read_data32(socket, &length); in read_multiple_bytes()
70 return read_bytes(socket, buffer, length); in read_multiple_bytes()
73 static bool receive_platform_data(const int socket, in receive_platform_data() argument
83 result = read_data32(socket, &response); in receive_platform_data()
89 result = read_data32(socket, &transport_type); in receive_platform_data()
[all …]
/openbmc/qemu/python/qemu/machine/
H A Dconsole_socket.py17 import socket
23 class ConsoleSocket(socket.socket):
48 socket.socket.__init__(self, socket.AF_UNIX, socket.SOCK_STREAM)
52 socket.socket.__init__(self, fileno=sock_fd)
74 except socket.timeout:
85 socket.socket.setblocking(self, False)
86 socket.socket.settimeout(self, 1)
99 socket.socket.close(self)
106 data = socket.socket.recv(self, 1)
118 return socket.socket.recv(self, bufsize, flags)
[all …]
H A Dqtest.py21 import socket
56 sock: Optional[socket.socket] = None, argument
75 def _get_sock(self) -> socket.socket:
78 family = socket.AF_INET
80 family = socket.AF_UNIX
81 return socket.socket(family, socket.SOCK_STREAM)
148 Tuple[socket.socket, socket.socket]] = None
163 self._qtest_sock_pair = socket.socketpair()
/openbmc/openbmc/poky/bitbake/lib/bb/asyncrpc/
H A Dserv.py12 import socket
30 def __init__(self, socket, proto_name, logger): argument
31 self.socket = socket
39 "address": socket.address,
45 await self.socket.close()
52 self.logger.info("Client %r connected" % (self.socket.address,))
55 client_protocol = await self.socket.recv()
74 header = await self.socket.recv()
83 await self.socket.send("%s: %s" % (k, v))
84 await self.socket.send("")
[all …]
/openbmc/linux/include/net/
H A Daf_rxrpc.h16 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 …]
H A Dinet_common.h23 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 …]
/openbmc/linux/Documentation/networking/
H A Dkcm.rst15 | 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 …]
/openbmc/linux/drivers/xen/
H A Dpvcalls-front.h6 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);
/openbmc/linux/tools/testing/selftests/drivers/sdsi/
H A Dsdsi_test.py33 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 …]
/openbmc/linux/net/atm/
H A Dcommon.h14 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,
/openbmc/linux/Documentation/bpf/
H A Dmap_sk_storage.rst11 ``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 …]
H A Dprog_sk_lookup.rst8 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 …]
/openbmc/boost-dbus/include/dbus/detail/
H A Dwatch_timeout.hpp28 boost::asio::generic::stream_protocol::socket &socket = in operator ()() local
29 *static_cast<boost::asio::generic::stream_protocol::socket *>(data); in operator ()()
31 watch_toggled(dbus_watch, &socket.get_io_service()); in operator ()()
41 auto socket = in watch_toggled() local
42 static_cast<boost::asio::generic::stream_protocol::socket *>(watch_data); in watch_toggled()
45 socket->async_read_some(boost::asio::null_buffers(), in watch_toggled()
49 socket->async_write_some(boost::asio::null_buffers(), in watch_toggled()
53 socket->cancel(); in watch_toggled()
70 boost::asio::generic::stream_protocol::socket &socket = in add_watch() local
71 *new boost::asio::generic::stream_protocol::socket(io); in add_watch()
[all …]

12345678910>>...56