Home
last modified time | relevance | path

Searched full:socket (Results 1 – 25 of 2697) sorted by relevance

12345678910>>...108

/OK3568_Linux_fs/kernel/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 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 Dvrc4173_cardu.c6 * NEC VRC4173 CARDU driver for Socket Services
43 MODULE_DESCRIPTION("NEC VRC4173 CARDU driver for Socket Services");
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
[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 Dcs.c92 struct pcmcia_socket *socket = dev_get_drvdata(dev); in pcmcia_release_socket() local
94 complete(&socket->socket_released); in pcmcia_release_socket()
100 * pcmcia_register_socket - add a new pcmcia socket device
101 * @socket: the &socket to register
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()
113 /* try to obtain a socket number [yes, it gets ugly if we in pcmcia_register_socket()
115 * sockets... but the socket number is deprecated in pcmcia_register_socket()
119 socket->sock = 0; in pcmcia_register_socket()
[all …]
H A Di82092.c57 /* 0 = no socket,
58 * 1 = empty socket,
62 unsigned int io_base; /* base io address of the socket */
64 struct pcmcia_socket socket; member
65 struct pci_dev *dev; /* The PCI device for the socket */
104 dev_info(&dev->dev, "configured as a %d socket device.\n", in i82092aa_pci_probe()
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()
[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 …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dnet.h3 * NET An implementation of the SOCKET network access protocol.
48 * enum sock_type - Socket types
49 * @SOCK_STREAM: stream (connection) socket
50 * @SOCK_DGRAM: datagram (conn.less) socket
51 * @SOCK_RAW: raw socket
53 * @SOCK_SEQPACKET: sequential packet socket
54 * @SOCK_DCCP: Datagram Congestion Control Protocol socket
58 * When adding some new socket type please
59 * grep ARCH_HAS_SOCKET_TYPE include/asm-* /socket.h, at least MIPS
77 /* Flags for socket, socketpair, accept4 */
[all …]
/OK3568_Linux_fs/kernel/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.
65 Socket types
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.
[all …]
H A Dl2tp.rst28 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 …]
H A Drds.rst21 applications to use a single socket to talk to any other process in the
23 to N*N if you use a connection-oriented socket transport like TCP.
34 the end point of a connection. All socket operations that involve
46 * Socket interface
49 socket. The next section will cover the details. At any rate,
50 all I/O is performed through the standard BSD socket API.
57 attaches it to the socket. Once bound, the transport assignment
67 Socket Interface
71 AF_RDS and PF_RDS are the domain type to be used with socket(2)
72 to create RDS sockets. SOL_RDS is the socket-level to be used
[all …]
H A Dstrparser.rst21 callback of a TCP socket. Messages are parsed and delivered as they are
22 received on the socket.
48 socket associated with the stream parser for use with receive
99 the lower socket for strparser to process. This should be called
100 from a data_ready callback that is set on the socket. Note that
101 maximum messages size is the limit of the receive socket
102 buffer and message timeout is the receive timeout for the socket.
108 strp_check_rcv is called to check for new messages on the socket.
136 kernel, return control of the socket to userspace which
140 is unrecoverable (application expected to close TCP socket)
[all …]
/OK3568_Linux_fs/kernel/Documentation/bpf/
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 …]
/OK3568_Linux_fs/app/forlinx/quectelCM/libmnl/
H A Dsocket.c11 #include <sys/socket.h>
43 * It provides functions to make socket handling, message building,
75 * \defgroup socket Netlink socket helpers
80 * mnl_socket_get_fd - obtain file descriptor from netlink socket
81 * \param nl netlink socket obtained via mnl_socket_open()
83 * This function returns the file descriptor of a given netlink socket.
91 * mnl_socket_get_portid - obtain Netlink PortID from netlink socket
92 * \param nl netlink socket obtained via mnl_socket_open()
94 * This function returns the Netlink PortID of a given netlink socket.
97 * socket that is binded to the same Netlink subsystem from the same process.
[all …]
/OK3568_Linux_fs/kernel/include/net/
H A Dinet_common.h17 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 …]
H A Daf_rxrpc.h16 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 …]
/OK3568_Linux_fs/kernel/net/core/
H A Drequest_sock.c20 * Maximum number of SYN_RECV sockets in queue per LISTEN socket.
21 * One SYN_RECV socket costs about 80bytes on a 32bit machine.
23 * but then some measure against one socket starving all other sockets
47 * This function is called to set a Fast Open socket's "fastopen_rsk" field
48 * to NULL when a TFO socket no longer needs to access the request_sock.
52 * Before TFO, a child socket is created only after 3WHS is completed,
54 * complex with TFO. A child socket, accepted or not, has to access its
57 * until either the child socket is accepted, or in the rare case when the
60 * In short, a request socket is only freed after BOTH 3WHS has completed
61 * (or aborted) and the child socket has been accepted (or listener closed).
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/sys/
H A Dsocket.h1 /* Declarations of socket constants, types, and functions.
33 #include <bits/socket.h>
51 /* This is the type we use for generic socket address arguments.
99 /* Create a new socket of type TYPE in domain DOMAIN, using
101 Returns a file descriptor for the new socket, or -1 for errors. */
102 extern int socket (int __domain, int __type, int __protocol) __THROW;
111 /* Give the socket FD the local address ADDR (which is LEN bytes long). */
119 /* Open a connection on socket FD to peer at ADDR (which LEN bytes long).
120 For connectionless socket types, just set the default address to send to
128 /* Put the address of the peer connected to socket FD into *ADDR
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/sys/
H A Dsocket.h1 /* Declarations of socket constants, types, and functions.
33 #include <bits/socket.h>
51 /* This is the type we use for generic socket address arguments.
99 /* Create a new socket of type TYPE in domain DOMAIN, using
101 Returns a file descriptor for the new socket, or -1 for errors. */
102 extern int socket (int __domain, int __type, int __protocol) __THROW;
111 /* Give the socket FD the local address ADDR (which is LEN bytes long). */
119 /* Open a connection on socket FD to peer at ADDR (which LEN bytes long).
120 For connectionless socket types, just set the default address to send to
128 /* Put the address of the peer connected to socket FD into *ADDR
[all …]
/OK3568_Linux_fs/yocto/meta-clang/dynamic-layers/selinux/android-tools/android-tools/core/
H A D0003-socket.h-removing-dependency-of-gtest.patch4 Subject: [PATCH 03/15] socket.h: removing dependency of gtest
11 | fastboot/socket.h:43:10: fatal error: 'gtest/gtest_prod.h' file not found
15 | In file included from fastboot/socket.cpp:29:
16 | fastboot/socket.h:43:10: fatal error: 'gtest/gtest_prod.h' file not found
22 | fastboot/socket.h:43:10: fatal error: 'gtest/gtest_prod.h' file not found
28 | fastboot/socket.h:43:10: fatal error: 'gtest/gtest_prod.h' file not found
35 fastboot/socket.h | 3 ---
38 diff --git a/fastboot/socket.h b/fastboot/socket.h
40 --- a/fastboot/socket.h
41 +++ b/fastboot/socket.h
[all …]
/OK3568_Linux_fs/kernel/net/
H A Dsocket.c3 * NET An implementation of the SOCKET network access protocol.
5 * Version: @(#)socket.c 1.1.93 18/02/95
31 * Linus : Argh. removed all the socket allocation
49 * This module is effectively the top level interface to the BSD socket
56 #include <linux/socket.h>
135 struct socket *sock = f->private_data; in sock_show_fdinfo()
145 …* Socket files have a set of 'special' operations as well as the generic file ones. These don't ap…
177 * Move socket addresses back and forth across the kernel/user
182 * move_addr_to_kernel - copy a socket address into kernel space
256 init_waitqueue_head(&ei->socket.wq.wait); in sock_alloc_inode()
[all …]
/OK3568_Linux_fs/kernel/security/selinux/
H A Dnetlabel.c58 * selinux_netlbl_sock_genattr - Generate the NetLabel socket secattr
59 * @sk: the socket
62 * Generate the NetLabel security attributes for a socket, making full use of
63 * the socket's attribute cache. Returns a pointer to the security attributes
92 * @sk: the socket
95 * Query the socket's cached secattr and if the SID matches the cached value
163 * @family: the socket family
235 * being labeled by it's parent socket, if it is just exit */ in selinux_netlbl_skbuff_setsid()
315 * @req: incoming connection request socket
349 * socket via the request_sock struct in selinux_netlbl_inet_conn_request() but
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/mbedtls/
H A Dnet_sockets.h54 #define MBEDTLS_ERR_NET_SOCKET_FAILED -0x0042 /**< Failed to open a socket. */
56 #define MBEDTLS_ERR_NET_BIND_FAILED -0x0046 /**< Binding of the socket faile…
57 … MBEDTLS_ERR_NET_LISTEN_FAILED -0x0048 /**< Could not listen on the socket. */
59 …_NET_RECV_FAILED -0x004C /**< Reading information from the socket failed. */
60 …T_SEND_FAILED -0x004E /**< Sending information through the socket failed. */
104 * \param ctx Socket to use
114 * \note Sets the socket in connected mode even with UDP.
119 * \brief Create a receiving socket on bind_ip:port in the chosen
122 * \param ctx Socket to use
133 * In addition, make the socket listening if protocol is TCP.
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/mbedtls/
H A Dnet_sockets.h54 #define MBEDTLS_ERR_NET_SOCKET_FAILED -0x0042 /**< Failed to open a socket. */
56 #define MBEDTLS_ERR_NET_BIND_FAILED -0x0046 /**< Binding of the socket faile…
57 … MBEDTLS_ERR_NET_LISTEN_FAILED -0x0048 /**< Could not listen on the socket. */
59 …_NET_RECV_FAILED -0x004C /**< Reading information from the socket failed. */
60 …T_SEND_FAILED -0x004E /**< Sending information through the socket failed. */
104 * \param ctx Socket to use
114 * \note Sets the socket in connected mode even with UDP.
119 * \brief Create a receiving socket on bind_ip:port in the chosen
122 * \param ctx Socket to use
133 * In addition, make the socket listening if protocol is TCP.
[all …]

12345678910>>...108