rhport 1142 drivers/usb/host/isp1362-hcd.c isp1362_hcd->rhport[0] = isp1362_read_reg32(isp1362_hcd, HCRHPORT1); rhport 1143 drivers/usb/host/isp1362-hcd.c isp1362_hcd->rhport[1] = isp1362_read_reg32(isp1362_hcd, HCRHPORT2); rhport 1259 drivers/usb/host/isp1362-hcd.c if (!((isp1362_hcd->rhport[0] | isp1362_hcd->rhport[1]) & rhport 1520 drivers/usb/host/isp1362-hcd.c u32 status = isp1362_hcd->rhport[i]; rhport 1615 drivers/usb/host/isp1362-hcd.c tmp = isp1362_hcd->rhport[--wIndex]; rhport 1664 drivers/usb/host/isp1362-hcd.c isp1362_hcd->rhport[wIndex] = rhport 1678 drivers/usb/host/isp1362-hcd.c isp1362_hcd->rhport[wIndex] = rhport 1686 drivers/usb/host/isp1362-hcd.c isp1362_hcd->rhport[wIndex] = rhport 1713 drivers/usb/host/isp1362-hcd.c isp1362_hcd->rhport[wIndex] = isp1362_read_reg32(isp1362_hcd, rhport 449 drivers/usb/host/isp1362.h u32 rhport[MAX_ROOT_PORTS]; rhport 32 drivers/usb/usbip/vhci.h __u32 rhport; rhport 171 drivers/usb/usbip/vhci.h return container_of((void *)(vdev - vdev->rhport), struct vhci_hcd, vdev); rhport 157 drivers/usb/usbip/vhci_hcd.c int rhport = vdev->rhport; rhport 161 drivers/usb/usbip/vhci_hcd.c usbip_dbg_vhci_rh("rh_port_connect %d\n", rhport); rhport 165 drivers/usb/usbip/vhci_hcd.c status = vhci_hcd->port_status[rhport]; rhport 180 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] = status; rhport 191 drivers/usb/usbip/vhci_hcd.c int rhport = vdev->rhport; rhport 195 drivers/usb/usbip/vhci_hcd.c usbip_dbg_vhci_rh("rh_port_disconnect %d\n", rhport); rhport 199 drivers/usb/usbip/vhci_hcd.c status = vhci_hcd->port_status[rhport]; rhport 204 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] = status; rhport 233 drivers/usb/usbip/vhci_hcd.c int rhport; rhport 246 drivers/usb/usbip/vhci_hcd.c for (rhport = 0; rhport < VHCI_HC_PORTS; rhport++) { rhport 247 drivers/usb/usbip/vhci_hcd.c if ((vhci_hcd->port_status[rhport] & PORT_C_MASK)) { rhport 249 drivers/usb/usbip/vhci_hcd.c usbip_dbg_vhci_rh("port %d status changed\n", rhport); rhport 251 drivers/usb/usbip/vhci_hcd.c buf[(rhport + 1) / 8] |= 1 << (rhport + 1) % 8; rhport 321 drivers/usb/usbip/vhci_hcd.c int rhport = -1; rhport 350 drivers/usb/usbip/vhci_hcd.c rhport = wIndex - 1; rhport 382 drivers/usb/usbip/vhci_hcd.c if (vhci_hcd->port_status[rhport] & USB_PORT_STAT_SUSPEND) { rhport 392 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] &= ~USB_SS_PORT_STAT_POWER; rhport 394 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] &= ~USB_PORT_STAT_POWER; rhport 399 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] &= ~(1 << wValue); rhport 444 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] |= (1 << USB_PORT_FEAT_C_SUSPEND); rhport 445 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] &= ~(1 << USB_PORT_FEAT_SUSPEND); rhport 450 drivers/usb/usbip/vhci_hcd.c if ((vhci_hcd->port_status[rhport] & (1 << USB_PORT_FEAT_RESET)) != rhport 452 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] |= (1 << USB_PORT_FEAT_C_RESET); rhport 453 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] &= ~(1 << USB_PORT_FEAT_RESET); rhport 456 drivers/usb/usbip/vhci_hcd.c if (vhci_hcd->vdev[rhport].ud.status == rhport 460 drivers/usb/usbip/vhci_hcd.c rhport, rhport 461 drivers/usb/usbip/vhci_hcd.c vhci_hcd->vdev[rhport].ud.status); rhport 462 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] |= rhport 467 drivers/usb/usbip/vhci_hcd.c switch (vhci_hcd->vdev[rhport].speed) { rhport 469 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] |= rhport 473 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] |= rhport 482 drivers/usb/usbip/vhci_hcd.c ((__le16 *) buf)[0] = cpu_to_le16(vhci_hcd->port_status[rhport]); rhport 484 drivers/usb/usbip/vhci_hcd.c cpu_to_le16(vhci_hcd->port_status[rhport] >> 16); rhport 537 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] |= USB_PORT_STAT_SUSPEND; rhport 547 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] |= USB_SS_PORT_STAT_POWER; rhport 549 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] |= USB_PORT_STAT_POWER; rhport 574 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] = 0; rhport 575 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] = rhport 579 drivers/usb/usbip/vhci_hcd.c } else if (vhci_hcd->port_status[rhport] & USB_PORT_STAT_ENABLE) { rhport 580 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] &= ~(USB_PORT_STAT_ENABLE rhport 597 drivers/usb/usbip/vhci_hcd.c if ((vhci_hcd->port_status[rhport] & rhport 599 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] |= (1 << wValue); rhport 602 drivers/usb/usbip/vhci_hcd.c if ((vhci_hcd->port_status[rhport] & rhport 604 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport] |= (1 << wValue); rhport 635 drivers/usb/usbip/vhci_hcd.c pr_debug("port %d\n", rhport); rhport 638 drivers/usb/usbip/vhci_hcd.c dump_port_status_diff(prev_port_status[rhport], rhport 639 drivers/usb/usbip/vhci_hcd.c vhci_hcd->port_status[rhport], rhport 648 drivers/usb/usbip/vhci_hcd.c (vhci_hcd->port_status[rhport] & PORT_C_MASK) != 0) { rhport 718 drivers/usb/usbip/vhci_hcd.c dev_err(dev, "enqueue for inactive port %d\n", vdev->rhport); rhport 753 drivers/usb/usbip/vhci_hcd.c ctrlreq->wValue, vdev->rhport); rhport 1162 drivers/usb/usbip/vhci_hcd.c int id, rhport; rhport 1172 drivers/usb/usbip/vhci_hcd.c for (rhport = 0; rhport < VHCI_HC_PORTS; rhport++) { rhport 1173 drivers/usb/usbip/vhci_hcd.c struct vhci_device *vdev = &vhci_hcd->vdev[rhport]; rhport 1176 drivers/usb/usbip/vhci_hcd.c vdev->rhport = rhport; rhport 1216 drivers/usb/usbip/vhci_hcd.c int id, rhport; rhport 1228 drivers/usb/usbip/vhci_hcd.c for (rhport = 0; rhport < VHCI_HC_PORTS; rhport++) { rhport 1229 drivers/usb/usbip/vhci_hcd.c struct vhci_device *vdev = &vhci_hcd->vdev[rhport]; rhport 1412 drivers/usb/usbip/vhci_hcd.c int rhport; rhport 1427 drivers/usb/usbip/vhci_hcd.c for (rhport = 0; rhport < VHCI_HC_PORTS; rhport++) { rhport 1428 drivers/usb/usbip/vhci_hcd.c if (vhci->vhci_hcd_hs->port_status[rhport] & rhport 1432 drivers/usb/usbip/vhci_hcd.c if (vhci->vhci_hcd_ss->port_status[rhport] & rhport 180 drivers/usb/usbip/vhci_sysfs.c static int vhci_port_disconnect(struct vhci_hcd *vhci_hcd, __u32 rhport) rhport 182 drivers/usb/usbip/vhci_sysfs.c struct vhci_device *vdev = &vhci_hcd->vdev[rhport]; rhport 211 drivers/usb/usbip/vhci_sysfs.c static int valid_port(__u32 *pdev_nr, __u32 *rhport) rhport 219 drivers/usb/usbip/vhci_sysfs.c if (*rhport >= VHCI_HC_PORTS) { rhport 220 drivers/usb/usbip/vhci_sysfs.c pr_err("rhport %u\n", *rhport); rhport 223 drivers/usb/usbip/vhci_sysfs.c *rhport = array_index_nospec(*rhport, VHCI_HC_PORTS); rhport 231 drivers/usb/usbip/vhci_sysfs.c __u32 port = 0, pdev_nr = 0, rhport = 0; rhport 240 drivers/usb/usbip/vhci_sysfs.c rhport = port_to_rhport(port); rhport 242 drivers/usb/usbip/vhci_sysfs.c if (!valid_port(&pdev_nr, &rhport)) rhport 251 drivers/usb/usbip/vhci_sysfs.c usbip_dbg_vhci_sysfs("rhport %d\n", rhport); rhport 258 drivers/usb/usbip/vhci_sysfs.c ret = vhci_port_disconnect(vhci_hcd, rhport); rhport 268 drivers/usb/usbip/vhci_sysfs.c static int valid_args(__u32 *pdev_nr, __u32 *rhport, rhport 271 drivers/usb/usbip/vhci_sysfs.c if (!valid_port(pdev_nr, rhport)) { rhport 308 drivers/usb/usbip/vhci_sysfs.c __u32 port = 0, pdev_nr = 0, rhport = 0, devid = 0, speed = 0; rhport 325 drivers/usb/usbip/vhci_sysfs.c rhport = port_to_rhport(port); rhport 328 drivers/usb/usbip/vhci_sysfs.c port, pdev_nr, rhport); rhport 333 drivers/usb/usbip/vhci_sysfs.c if (!valid_args(&pdev_nr, &rhport, speed)) rhport 346 drivers/usb/usbip/vhci_sysfs.c vdev = &vhci->vhci_hcd_ss->vdev[rhport]; rhport 348 drivers/usb/usbip/vhci_sysfs.c vdev = &vhci->vhci_hcd_hs->vdev[rhport]; rhport 368 drivers/usb/usbip/vhci_sysfs.c dev_err(dev, "port %d already used\n", rhport); rhport 377 drivers/usb/usbip/vhci_sysfs.c pdev_nr, rhport, sockfd); rhport 187 tools/usb/usbip/libsrc/vhci_driver.c static int read_record(int rhport, char *host, unsigned long host_len, rhport 202 tools/usb/usbip/libsrc/vhci_driver.c snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", rhport); rhport 39 tools/usb/usbip/src/usbip_attach.c static int record_connection(char *host, char *port, char *busid, int rhport) rhport 61 tools/usb/usbip/src/usbip_attach.c snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", rhport); rhport 178 tools/usb/usbip/src/usbip_attach.c int rhport; rhport 186 tools/usb/usbip/src/usbip_attach.c rhport = query_import_device(sockfd, busid); rhport 187 tools/usb/usbip/src/usbip_attach.c if (rhport < 0) rhport 192 tools/usb/usbip/src/usbip_attach.c rc = record_connection(host, usbip_port_string, busid, rhport);