Home
last modified time | relevance | path

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

/tools/usb/usbip/libsrc/
Dvhci_driver.c57 int port, status, speed, devid; in parse_status() local
62 &port, &status, &speed, in parse_status()
71 port, status, speed, devid); in parse_status()
77 struct usbip_imported_device *idev = &vhci_driver->idev[port]; in parse_status()
79 idev->port = port; in parse_status()
165 char *port, unsigned long port_len, char *busid) in read_record() argument
207 if (sscanf(buffer, "%s %s %s\n", host, port, busid) != 3) { in read_record()
301 int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid, in usbip_vhci_attach_device2() argument
310 port, sockfd, devid, speed); in usbip_vhci_attach_device2()
324 dbg("attached port: %d", port); in usbip_vhci_attach_device2()
[all …]
Dvhci_driver.h17 uint8_t port; member
48 int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid,
52 int usbip_vhci_attach_device(uint8_t port, int sockfd, uint8_t busnum,
55 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
104 port = usbip_vhci_get_free_port(); in import_device()
105 if (port < 0) { in import_device()
111 rc = usbip_vhci_attach_device(port, sockfd, udev->busnum, in import_device()
121 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.h183 int usbip_net_tcp_connect(char *hostname, char *port);
/tools/usb/usbip/
DREADME64 client:# usbip port
65 - Show virtual port status.
67 client:# usbip detach --port <port>
171 port 0 attached
175 deux:# usbip port
186 deux:# usbip detach --port 0
187 port 0 detached
196 - usbip now uses TCP port 3240.
/tools/testing/selftests/net/
Dpsock_lib.h71 static __maybe_unused void pair_udp_open(int fds[], uint16_t port) in pair_udp_open() argument
84 saddr.sin_port = htons(port); in pair_udp_open()
89 daddr.sin_port = htons(port + 1); in pair_udp_open()
Dreuseport_bpf.c44 static struct sockaddr *new_any_sockaddr(int family, uint16_t port) in new_any_sockaddr() argument
58 addr4->sin_port = htons(port); in new_any_sockaddr()
64 addr6->sin6_port = htons(port); in new_any_sockaddr()
72 static struct sockaddr *new_loopback_sockaddr(int family, uint16_t port) in new_loopback_sockaddr() argument
74 struct sockaddr *addr = new_any_sockaddr(family, port); in new_loopback_sockaddr()
/tools/lguest/
Dlguest.c1329 static bool is_pci_addr_port(u16 port) in is_pci_addr_port() argument
1331 return port >= PCI_CONFIG_ADDR && port < PCI_CONFIG_ADDR + 4; in is_pci_addr_port()
1334 static bool pci_addr_iowrite(u16 port, u32 mask, u32 val) in pci_addr_iowrite() argument
1336 iowrite(port - PCI_CONFIG_ADDR, val, mask, in pci_addr_iowrite()
1348 static void pci_addr_ioread(u16 port, u32 mask, u32 *val) in pci_addr_ioread() argument
1350 ioread(port - PCI_CONFIG_ADDR, pci_config_addr.val, mask, val); in pci_addr_ioread()
1354 static bool is_pci_data_port(u16 port) in is_pci_data_port() argument
1356 return port >= PCI_CONFIG_DATA && port < PCI_CONFIG_DATA + 4; in is_pci_data_port()
1361 static bool pci_data_iowrite(u16 port, u32 mask, u32 val) in pci_data_iowrite() argument
1371 portoff = port - PCI_CONFIG_DATA; in pci_data_iowrite()
[all …]
/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'/>