Lines Matching refs:rhport
180 static int vhci_port_disconnect(struct vhci_hcd *vhci_hcd, __u32 rhport)
182 struct vhci_device *vdev = &vhci_hcd->vdev[rhport];
216 static int valid_port(__u32 *pdev_nr, __u32 *rhport)
224 if (*rhport >= VHCI_HC_PORTS) {
225 pr_err("rhport %u\n", *rhport);
228 *rhport = array_index_nospec(*rhport, VHCI_HC_PORTS);
236 __u32 port = 0, pdev_nr = 0, rhport = 0;
245 rhport = port_to_rhport(port);
247 if (!valid_port(&pdev_nr, &rhport))
256 usbip_dbg_vhci_sysfs("rhport %d\n", rhport);
263 ret = vhci_port_disconnect(vhci_hcd, rhport);
273 static int valid_args(__u32 *pdev_nr, __u32 *rhport,
276 if (!valid_port(pdev_nr, rhport)) {
302 * A remote device is virtually attached to the root-hub port of @rhport with
313 __u32 port = 0, pdev_nr = 0, rhport = 0, devid = 0, speed = 0;
324 * @rhport: port number of vhci_hcd
332 rhport = port_to_rhport(port);
334 usbip_dbg_vhci_sysfs("port(%u) pdev(%d) rhport(%u)\n",
335 port, pdev_nr, rhport);
340 if (!valid_args(&pdev_nr, &rhport, speed))
353 vdev = &vhci->vhci_hcd_ss->vdev[rhport];
355 vdev = &vhci->vhci_hcd_hs->vdev[rhport];
406 dev_err(dev, "port %d already used\n", rhport);
415 dev_info(dev, "pdev(%u) rhport(%u) sockfd(%d)\n",
416 pdev_nr, rhport, sockfd);