Home
last modified time | relevance | path

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

12345678910>>...73

/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 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 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 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 …]
/linux/include/linux/
H A Dnet.h3 * NET An implementation of the SOCKET network access protocol.
31 * struct sockopt - socket option value container
38 * Type-safe wrapper for socket option data that works with both
125 * enum sock_type - Socket types
126 * @SOCK_STREAM: stream (connection) socket
127 * @SOCK_DGRAM: datagram (conn.less) socket
128 * @SOCK_RAW: raw socket
130 * @SOCK_SEQPACKET: sequential packet socket
131 * @SOCK_DCCP: Datagram Congestion Control Protocol socket
135 * When adding some new socket typ
160 struct socket { global() struct
161 statesocket global() argument
171 wqsocket global() argument
[all...]
/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
[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 Dstrparser.rst18 socket. Messages are parsed and delivered as they are received on the
19 socket.
40 socket associated with the stream parser. Callbacks are called by
71 has been stopped. The socket lock must not be held.
78 the lower socket for strparser to process. This should be called
79 from a data_ready callback that is set on the socket. Note that
80 maximum messages size is the limit of the receive socket
81 buffer and message timeout is the receive timeout for the socket.
87 strp_check_rcv is called to check for new messages on the socket.
114 kernel, return control of the socket t
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_gotox.c15 SEC("socket") \
22 .quad ret0_%= - socket; \
23 .quad ret1_%= - socket; \
77 SEC("socket")
79 DEFINE_TERMINAL_GOTOX_PROG(jump_table_terminal_gotox, "socket")
89 SEC("socket") in jump_table_terminal_gotox_subprog()
104 SEC("socket") in jump_table_no_jump_table()
122 SEC("socket") in jump_table_incorrect_dst_reg_type()
129 .quad ret0_%= - socket; \ in jump_table_incorrect_dst_reg_type()
130 .quad ret1_%= - socket; \ in jump_table_incorrect_dst_reg_type()
[all...]
H A Dverifier_sdiv.c14 SEC("socket")
26 SEC("socket")
38 SEC("socket")
50 SEC("socket")
62 SEC("socket")
74 SEC("socket")
86 SEC("socket")
98 SEC("socket")
110 SEC("socket")
123 SEC("socket")
[all...]
H A Dcgroup_tcp_skb.c14 #include <sys/socket.h>
47 /* Run accept() on a socket in the cgroup to receive a new connection. */
83 /* Run connect() on a socket in the cgroup to start a new connection. */
200 /* Check the types of outgoing packets of a server socket to make sure they
201 * are consistent with the state of the server socket.
215 /* Egress of the server socket. */ in server_egress()
223 /* Check the types of incoming packets of a server socket to make sure they
224 * are consistent with the state of the server socket.
238 /* Ingress of the server socket. */ in server_ingress()
246 /* Check the types of outgoing packets of a server socket to make sure they
[all …]
H A Dverifier_subreg.c21 SEC("socket")
38 SEC("socket")
68 SEC("socket")
85 SEC("socket")
109 SEC("socket")
126 SEC("socket")
150 SEC("socket")
167 SEC("socket")
191 SEC("socket")
208 SEC("socket")
[all...]
/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
70 Socket-local storage for map ``map_fd`` can be added or updated locally to a
71 socket using the ``bpf_map_update_elem()`` libbpf function. The socket is
[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 …]
/linux/tools/testing/selftests/net/
H A Drtnetlink.py4 import socket
45 lo_idx = socket.if_nametoindex('lo')
46 addresses = rtnl.getmulticast({"ifa-family": socket.AF_INET}, dump=True)
56 mreq = IPV4_TEST_MULTICAST + socket.inet_aton('127.0.0.1')
57 before = _users_for(rtnl, socket.AF_INET, IPV4_TEST_MULTICAST, lo_idx)
61 s1 = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
62 s2 = socket
[all...]
H A Dcork_fragsize.py9 import socket
106 socket.AF_INET6,
107 (socket.IPPROTO_IPV6, IPV6_MTU_DISCOVER, IPV6_PMTUDISC_DO),
114 socket.AF_INET,
115 (socket.IPPROTO_IP, IP_MTU_DISCOVER, IP_PMTUDISC_PROBE),
122 af: socket.AddressFamily,
128 Test that sending an oversized UDP packet over a UDP socket doesn't overflow
148 socket.socket(af, socket
[all...]
/linux/tools/perf/pmu-events/arch/x86/amdzen4/
H A Ddata-fabric.json388 …"PublicDescription": "Read data beats (64 bytes) for local socket upstream DMA at IO Moderator (IO…
396 …"PublicDescription": "Read data beats (64 bytes) for local socket upstream DMA at IO Moderator (IO…
404 …"PublicDescription": "Read data beats (64 bytes) for local socket upstream DMA at IO Moderator (IO…
412 …"PublicDescription": "Read data beats (64 bytes) for local socket upstream DMA at IO Moderator (IO…
420 …"PublicDescription": "Write data beats (64 bytes) for local socket upstream DMA at IO Moderator (I…
428 …"PublicDescription": "Write data beats (64 bytes) for local socket upstream DMA at IO Moderator (I…
436 …"PublicDescription": "Write data beats (64 bytes) for local socket upstream DMA at IO Moderator (I…
444 …"PublicDescription": "Write data beats (64 bytes) for local socket upstream DMA at IO Moderator (I…
452 …"PublicDescription": "Read data beats (64 bytes) for remote socket upstream DMA at IO Moderator (I…
460 …"PublicDescription": "Read data beats (64 bytes) for remote socket upstream DMA at IO Moderator (I…
[all …]
/linux/drivers/net/ovpn/
H A Dsocket.c18 #include "socket.h"
35 * @peer: peer whose socket reference counter should be decreased
36 * @sock: the RCU protected peer socket
41 * Return: true if the socket was released, false otherwise
49 * ovpn_socket_release - release resources owned by socket user
50 * @peer: peer whose socket should be released
53 * and wants to drop its link to the socket.
58 * In case of TCP, releasing the socket will cause dropping
74 /* release may be invoked after socket was detached */ in ovpn_socket_release()
80 * detached socket. in ovpn_socket_release()
[all …]
/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
45 @pytest.mark.parametrize('socket', range(0, NUM_SOCKETS))
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
[all …]
/linux/tools/testing/selftests/drivers/net/
H A Dpsp.py9 import socket
52 s = socket.create_connection((remote_addr, cfg.comm_port), )
59 s = socket.create_connection((remote_addr, cfg.comm_port), )
69 with socket.create_server(("localhost", 0)) as srv, \
70 socket.create_connection(srv.getsockname()[:2]) as s:
98 n += s.send(data[n:], socket.MSG_DONTWAIT)
129 data += s.recv(target - len(data), socket.MSG_DONTWAIT)
274 with socket.socket(socket
[all...]
/linux/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
58 #include <linux/socket.h>
142 struct socket *sock = f->private_data; in sock_show_fdinfo()
153 * Socket files have a set of 'special' operations as well as the generic file ones. These don't appear
234 * Move socket addresses back and forth across the kernel/user
239 * move_addr_to_kernel - copy a socket address into kernel space
336 init_waitqueue_head(&si->socket in sock_alloc_inode()
1830 SYSCALL_DEFINE3(socket,int,family,int,type,int,protocol) SYSCALL_DEFINE3() argument
[all...]
/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-cgroup.rst102 - **ingress** ingress path of the inet socket (since 4.10)
103 - **egress** egress path of the inet socket (since 4.10)
104 - **sock_create** opening of an inet socket (since 4.10)
105 - **sock_ops** various socket operations (since 4.12)
107 - **bind4** call to bind(2) for an inet4 socket (since 4.17)
108 - **bind6** call to bind(2) for an inet6 socket (since 4.17)
109 - **post_bind4** return from bind(2) for an inet4 socket (since 4.17)
110 - **post_bind6** return from bind(2) for an inet6 socket (since 4.17)
111 - **connect4** call to connect(2) for an inet4 socket (since 4.17)
112 - **connect6** call to connect(2) for an inet6 socket (sinc
[all...]
/linux/tools/testing/selftests/coredump/
H A Dcoredump_socket_test.c5 #include <sys/socket.h>
43 unlink("/tmp/coredump.socket"); in FIXTURE_TEARDOWN()
78 TEST_F(coredump, socket) in TEST_F() argument
87 ASSERT_TRUE(set_core_pattern("@/tmp/coredump.socket")); in TEST_F()
100 fd_server = create_and_listen_unix_socket("/tmp/coredump.socket"); in TEST_F()
102 fprintf(stderr, "socket test: create_and_listen_unix_socket failed: %m\n"); in TEST_F()
107 fprintf(stderr, "socket test: write_nointr to ipc socket failed: %m\n"); in TEST_F()
115 fprintf(stderr, "socket test: accept4 failed: %m\n"); in TEST_F()
121 fprintf(stderr, "socket test: get_peer_pidfd failed\n"); in TEST_F()
126 fprintf(stderr, "socket test: get_pidfd_info failed\n"); in TEST_F()
[all …]
/linux/security/selinux/
H A Dnetlabel.c60 * selinux_netlbl_sock_genattr - Generate the NetLabel socket secattr
61 * @sk: the socket
64 * Generate the NetLabel security attributes for a socket, making full use of
65 * the socket's attribute cache. Returns a pointer to the security attributes
94 * @sk: the socket
97 * Query the socket's cached secattr and if the SID matches the cached value
242 * being labeled by it's parent socket, if it is just exit */ in selinux_netlbl_skbuff_setsid()
320 * @req: incoming connection request socket
321 * @family: the request socket's address family
355 * socket vi
[all...]

12345678910>>...73