Home
last modified time | relevance | path

Searched refs:rhport (Results 1 – 7 of 7) sorted by relevance

/linux-5.19.10/drivers/usb/usbip/
Dvhci_hcd.c157 int rhport = vdev->rhport; in rh_port_connect() local
161 usbip_dbg_vhci_rh("rh_port_connect %d\n", rhport); in rh_port_connect()
165 status = vhci_hcd->port_status[rhport]; in rh_port_connect()
180 vhci_hcd->port_status[rhport] = status; in rh_port_connect()
191 int rhport = vdev->rhport; in rh_port_disconnect() local
195 usbip_dbg_vhci_rh("rh_port_disconnect %d\n", rhport); in rh_port_disconnect()
199 status = vhci_hcd->port_status[rhport]; in rh_port_disconnect()
204 vhci_hcd->port_status[rhport] = status; in rh_port_disconnect()
233 int rhport; in vhci_hub_status() local
246 for (rhport = 0; rhport < VHCI_HC_PORTS; rhport++) { in vhci_hub_status()
[all …]
Dvhci_sysfs.c180 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 …]
Dvhci.h32 __u32 rhport; member
171 return container_of((void *)(vdev - vdev->rhport), struct vhci_hcd, vdev); in vdev_to_vhci_hcd()
/linux-5.19.10/tools/usb/usbip/src/
Dusbip_attach.c39 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-5.19.10/tools/usb/usbip/libsrc/
Dvhci_driver.c187 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-5.19.10/drivers/usb/host/
Disp1362-hcd.c1142 isp1362_hcd->rhport[0] = isp1362_read_reg32(isp1362_hcd, HCRHPORT1); in isp1362_irq()
1143 isp1362_hcd->rhport[1] = isp1362_read_reg32(isp1362_hcd, HCRHPORT2); in isp1362_irq()
1259 if (!((isp1362_hcd->rhport[0] | isp1362_hcd->rhport[1]) & in isp1362_urb_enqueue()
1520 u32 status = isp1362_hcd->rhport[i]; in isp1362_hub_status_data()
1615 tmp = isp1362_hcd->rhport[--wIndex]; in isp1362_hub_control()
1664 isp1362_hcd->rhport[wIndex] = in isp1362_hub_control()
1678 isp1362_hcd->rhport[wIndex] = in isp1362_hub_control()
1686 isp1362_hcd->rhport[wIndex] = in isp1362_hub_control()
1713 isp1362_hcd->rhport[wIndex] = isp1362_read_reg32(isp1362_hcd, in isp1362_hub_control()
Disp1362.h448 u32 rhport[MAX_ROOT_PORTS]; member