Searched refs:rhport (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/usb/usbip/ |
H A D | vhci_sysfs.c | 180 static int vhci_port_disconnect(struct vhci_hcd *vhci_hcd, __u32 rhport) in vhci_port_disconnect() argument 182 struct vhci_device *vdev = &vhci_hcd->vdev[rhport]; in vhci_port_disconnect() 216 static int valid_port(__u32 *pdev_nr, __u32 *rhport) in valid_port() argument 224 if (*rhport >= VHCI_HC_PORTS) { in valid_port() 225 pr_err("rhport %u\n", *rhport); in valid_port() 228 *rhport = array_index_nospec(*rhport, VHCI_HC_PORTS); in valid_port() 236 __u32 port = 0, pdev_nr = 0, rhport = 0; in detach_store() local 245 rhport = port_to_rhport(port); in detach_store() 247 if (!valid_port(&pdev_nr, &rhport)) in detach_store() 256 usbip_dbg_vhci_sysfs("rhport %d\n", rhport); in detach_store() [all …]
|
H A D | vhci.h | 32 __u32 rhport; member 171 return container_of((void *)(vdev - vdev->rhport), struct vhci_hcd, vdev); in vdev_to_vhci_hcd()
|
/linux/tools/usb/usbip/src/ |
H A D | usbip_attach.c | 39 static int record_connection(char *host, char *port, char *busid, int rhport) in record_connection() argument 61 snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", rhport); in record_connection() 178 int rhport; in attach_device() local 186 rhport = query_import_device(sockfd, busid); in attach_device() 187 if (rhport < 0) in attach_device() 192 rc = record_connection(host, usbip_port_string, busid, rhport); in attach_device()
|
/linux/tools/usb/usbip/libsrc/ |
H A D | vhci_driver.c | 187 static int read_record(int rhport, char *host, unsigned long host_len, in read_record() argument 202 snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", rhport); in read_record()
|
/linux/drivers/usb/host/ |
H A D | isp1362.h | 448 u32 rhport[MAX_ROOT_PORTS]; member
|