Home
last modified time | relevance | path

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

/openbmc/linux/drivers/usb/usbip/
H A Dvhci_hcd.c157 int rhport = vdev->rhport; in rh_port_connect() local
191 int rhport = vdev->rhport; in rh_port_disconnect() local
233 int rhport; in vhci_hub_status() local
246 for (rhport = 0; rhport < VHCI_HC_PORTS; rhport++) { in vhci_hub_status()
251 buf[(rhport + 1) / 8] |= 1 << (rhport + 1) % 8; in vhci_hub_status()
468 rhport, in vhci_hub_control()
1184 for (rhport = 0; rhport < VHCI_HC_PORTS; rhport++) { in vhci_start()
1188 vdev->rhport = rhport; in vhci_start()
1240 for (rhport = 0; rhport < VHCI_HC_PORTS; rhport++) { in vhci_stop()
1422 int rhport; in vhci_hcd_suspend() local
[all …]
H A Dvhci_sysfs.c224 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()
276 if (!valid_port(pdev_nr, rhport)) { in valid_args()
332 rhport = port_to_rhport(port); in attach_store()
335 port, pdev_nr, rhport); in attach_store()
353 vdev = &vhci->vhci_hcd_ss->vdev[rhport]; in attach_store()
[all …]
H A Dvhci.h32 __u32 rhport; member
171 return container_of((void *)(vdev - vdev->rhport), struct vhci_hcd, vdev); in vdev_to_vhci_hcd()
/openbmc/linux/tools/usb/usbip/src/
H A 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()
/openbmc/qemu/hw/usb/
H A Dhcd-ohci.c307 dev = ohci->rhport[i].port.dev; in ohci_stop_endpoints()
329 port = &ohci->rhport[i]; in ohci_roothub_reset()
1309 ohci->rhport[i].ctrl |= OHCI_PORT_PPS; in ohci_port_power()
1441 ohci->rhport[i].ctrl |= OHCI_PORT_CSC; in ohci_port_set_if_connected()
1451 if (ohci->rhport[i].ctrl & val) { in ohci_port_set_if_connected()
1455 ohci->rhport[i].ctrl |= val; in ohci_port_set_if_connected()
1466 port = &ohci->rhport[portnum]; in ohci_port_set_status()
1774 OHCIPort *port = &s->rhport[port1->index]; in ohci_attach()
1814 OHCIPort *port = &s->rhport[port1->index]; in ohci_detach()
1839 OHCIPort *port = &s->rhport[port1->index]; in ohci_wakeup()
[all …]
H A Dhcd-ohci.h77 OHCIPort rhport[OHCI_MAX_PORTS]; member
/openbmc/linux/tools/usb/usbip/libsrc/
H A 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()
/openbmc/linux/drivers/usb/host/
H A 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()
H A Disp1362.h448 u32 rhport[MAX_ROOT_PORTS]; member