Home
last modified time | relevance | path

Searched refs:port (Results 1 – 14 of 14) sorted by relevance

/tools/testing/selftests/x86/
Dioperm.c55 static bool try_outb(unsigned short port) in try_outb() argument
62 : : [port] "Nd" (port), "a" (0)); in try_outb()
68 static void expect_ok(unsigned short port) in expect_ok() argument
70 if (!try_outb(port)) { in expect_ok()
71 printf("[FAIL]\toutb to 0x%02hx failed\n", port); in expect_ok()
75 printf("[OK]\toutb to 0x%02hx worked\n", port); in expect_ok()
78 static void expect_gp(unsigned short port) in expect_gp() argument
80 if (try_outb(port)) { in expect_gp()
81 printf("[FAIL]\toutb to 0x%02hx worked\n", port); in expect_gp()
85 printf("[OK]\toutb to 0x%02hx failed\n", port); in expect_gp()
/tools/usb/usbip/libsrc/
Dvhci_driver.c52 int port, status, speed, devid; in parse_status() local
59 hub, &port, &status, &speed, in parse_status()
68 hub, port, status, speed, devid); in parse_status()
72 idev = &vhci_driver->idev[port]; in parse_status()
80 idev->port = port; in parse_status()
188 char *port, unsigned long port_len, char *busid) in read_record() argument
230 if (sscanf(buffer, "%s %s %s\n", host, port, busid) != 3) { in read_record()
351 return vhci_driver->idev[i].port; in usbip_vhci_get_free_port()
357 int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid, in usbip_vhci_attach_device2() argument
366 port, sockfd, devid, speed); in usbip_vhci_attach_device2()
[all …]
Dvhci_driver.h24 uint8_t port; member
56 int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid,
60 int usbip_vhci_attach_device(uint8_t port, int sockfd, uint8_t busnum,
63 int usbip_vhci_detach_device(uint8_t port);
/tools/usb/usbip/src/
Dusbip_detach.c44 static int detach_port(char *port) in detach_port() argument
50 unsigned int port_len = strlen(port); in detach_port()
53 if (!isdigit(port[i])) { in detach_port()
54 err("invalid port %s", port); in detach_port()
60 portnum = atoi(port); in detach_port()
Dusbip_attach.c51 static int record_connection(char *host, char *port, char *busid, int rhport) in record_connection() argument
80 host, port, busid); in record_connection()
96 int port; in import_device() local
106 port = usbip_vhci_get_free_port(speed); in import_device()
107 if (port < 0) { in import_device()
112 dbg("got free port %d", port); in import_device()
114 rc = usbip_vhci_attach_device(port, sockfd, udev->busnum, in import_device()
124 return port; in import_device()
Dusbip_network.c42 unsigned long int port = strtoul(arg, &end, 10); in usbip_setup_port_number() local
54 if (port > UINT16_MAX) { in usbip_setup_port_number()
60 usbip_port = port; in usbip_setup_port_number()
Dusbipd.c311 char host[NI_MAXHOST], port[NI_MAXSERV]; in do_accept() local
323 port, sizeof(port), NI_NUMERICHOST | NI_NUMERICSERV); in do_accept()
335 info("connection from %s:%s", host, port); in do_accept()
Dusbip_network.h178 int usbip_net_tcp_connect(char *hostname, char *port);
/tools/testing/selftests/net/
Dpsock_lib.h89 static __maybe_unused void pair_udp_open(int fds[], uint16_t port) in pair_udp_open() argument
102 saddr.sin_port = htons(port); in pair_udp_open()
107 daddr.sin_port = htons(port + 1); in pair_udp_open()
Dreuseport_bpf.c45 static struct sockaddr *new_any_sockaddr(int family, uint16_t port) in new_any_sockaddr() argument
59 addr4->sin_port = htons(port); in new_any_sockaddr()
65 addr6->sin6_port = htons(port); in new_any_sockaddr()
73 static struct sockaddr *new_loopback_sockaddr(int family, uint16_t port) in new_loopback_sockaddr() argument
75 struct sockaddr *addr = new_any_sockaddr(family, port); in new_loopback_sockaddr()
/tools/usb/usbip/
DREADME117 client:# usbip port
118 - Show virtual port status.
120 client:# usbip detach --port <port>
224 port 0 attached
228 deux:# usbip port
239 deux:# usbip detach --port 0
240 port 0 detached
251 - usbip now uses TCP port 3240.
/tools/testing/selftests/networking/timestamping/
Drxtimestamp.c273 int port = (s.type == SOCK_RAW) ? 0 : next_port++; in run_test_case() local
290 addr.sin_port = htons(port); in run_test_case()
293 error(1, errno, "Failed to bind to port %d", port); in run_test_case()
/tools/virtio/virtio-trace/
DREADME74 <address type='virtio-serial' controller='0' bus='0' port='0'/>
79 <address type='virtio-serial' controller='0' bus='0' port='1'/>
/tools/include/uapi/linux/
Dkvm.h289 __u16 port; member