Lines Matching refs:rhport
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()
263 ret = vhci_port_disconnect(vhci_hcd, rhport); in detach_store()
273 static int valid_args(__u32 *pdev_nr, __u32 *rhport, in valid_args() argument
276 if (!valid_port(pdev_nr, rhport)) { in valid_args()
313 __u32 port = 0, pdev_nr = 0, rhport = 0, devid = 0, speed = 0; in attach_store() local
332 rhport = port_to_rhport(port); in attach_store()
335 port, pdev_nr, rhport); in attach_store()
340 if (!valid_args(&pdev_nr, &rhport, speed)) in attach_store()
353 vdev = &vhci->vhci_hcd_ss->vdev[rhport]; in attach_store()
355 vdev = &vhci->vhci_hcd_hs->vdev[rhport]; in attach_store()
406 dev_err(dev, "port %d already used\n", rhport); in attach_store()
416 pdev_nr, rhport, sockfd); in attach_store()