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()
211 static int valid_port(__u32 *pdev_nr, __u32 *rhport) in valid_port() argument
219 if (*rhport >= VHCI_HC_PORTS) { in valid_port()
220 pr_err("rhport %u\n", *rhport); in valid_port()
223 *rhport = array_index_nospec(*rhport, VHCI_HC_PORTS); in valid_port()
231 __u32 port = 0, pdev_nr = 0, rhport = 0; in detach_store() local
240 rhport = port_to_rhport(port); in detach_store()
242 if (!valid_port(&pdev_nr, &rhport)) in detach_store()
251 usbip_dbg_vhci_sysfs("rhport %d\n", rhport); in detach_store()
258 ret = vhci_port_disconnect(vhci_hcd, rhport); in detach_store()
268 static int valid_args(__u32 *pdev_nr, __u32 *rhport, in valid_args() argument
271 if (!valid_port(pdev_nr, rhport)) { in valid_args()
308 __u32 port = 0, pdev_nr = 0, rhport = 0, devid = 0, speed = 0; in attach_store() local
325 rhport = port_to_rhport(port); in attach_store()
328 port, pdev_nr, rhport); in attach_store()
333 if (!valid_args(&pdev_nr, &rhport, speed)) in attach_store()
346 vdev = &vhci->vhci_hcd_ss->vdev[rhport]; in attach_store()
348 vdev = &vhci->vhci_hcd_hs->vdev[rhport]; in attach_store()
368 dev_err(dev, "port %d already used\n", rhport); in attach_store()
377 pdev_nr, rhport, sockfd); in attach_store()