Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/usb/usbip/
Dvhci_hcd.c122 void rh_port_connect(int rhport, enum usb_device_speed speed) in rh_port_connect() argument
124 usbip_dbg_vhci_rh("rh_port_connect %d\n", rhport); in rh_port_connect()
128 the_controller->port_status[rhport] |= USB_PORT_STAT_CONNECTION in rh_port_connect()
133 the_controller->port_status[rhport] |= USB_PORT_STAT_HIGH_SPEED; in rh_port_connect()
136 the_controller->port_status[rhport] |= USB_PORT_STAT_LOW_SPEED; in rh_port_connect()
147 static void rh_port_disconnect(int rhport) in rh_port_disconnect() argument
149 usbip_dbg_vhci_rh("rh_port_disconnect %d\n", rhport); in rh_port_disconnect()
153 the_controller->port_status[rhport] &= ~USB_PORT_STAT_CONNECTION; in rh_port_disconnect()
154 the_controller->port_status[rhport] |= in rh_port_disconnect()
183 int rhport; in vhci_hub_status() local
[all …]
Dvhci_sysfs.c80 static int vhci_port_disconnect(__u32 rhport) in vhci_port_disconnect() argument
89 vdev = port_to_vdev(rhport); in vhci_port_disconnect()
115 __u32 rhport = 0; in store_detach() local
117 if (sscanf(buf, "%u", &rhport) != 1) in store_detach()
121 if (rhport >= VHCI_NPORTS) { in store_detach()
122 dev_err(dev, "invalid port %u\n", rhport); in store_detach()
126 err = vhci_port_disconnect(rhport); in store_detach()
137 static int valid_args(__u32 rhport, enum usb_device_speed speed) in valid_args() argument
140 if (rhport >= VHCI_NPORTS) { in valid_args()
141 pr_err("port %u\n", rhport); in valid_args()
[all …]
Dvhci.h36 __u32 rhport; member
100 void rh_port_connect(int rhport, enum usb_device_speed speed);
/linux-4.1.27/tools/usb/usbip/src/
Dusbip_attach.c47 static int record_connection(char *host, char *port, char *busid, int rhport) in record_connection() argument
69 snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", rhport); in record_connection()
176 int rhport; in attach_device() local
184 rhport = query_import_device(sockfd, busid); in attach_device()
185 if (rhport < 0) { in attach_device()
192 rc = record_connection(host, usbip_port_string, busid, rhport); in attach_device()
/linux-4.1.27/tools/usb/usbip/libsrc/
Dvhci_driver.c164 static int read_record(int rhport, char *host, unsigned long host_len, in read_record() argument
179 snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", rhport); in read_record()
/linux-4.1.27/drivers/usb/host/
Disp1362-hcd.c1140 isp1362_hcd->rhport[0] = isp1362_read_reg32(isp1362_hcd, HCRHPORT1); in isp1362_irq()
1141 isp1362_hcd->rhport[1] = isp1362_read_reg32(isp1362_hcd, HCRHPORT2); in isp1362_irq()
1257 if (!((isp1362_hcd->rhport[0] | isp1362_hcd->rhport[1]) & in isp1362_urb_enqueue()
1518 u32 status = isp1362_hcd->rhport[i]; in isp1362_hub_status_data()
1612 tmp = isp1362_hcd->rhport[--wIndex]; in isp1362_hub_control()
1661 isp1362_hcd->rhport[wIndex] = in isp1362_hub_control()
1675 isp1362_hcd->rhport[wIndex] = in isp1362_hub_control()
1683 isp1362_hcd->rhport[wIndex] = in isp1362_hub_control()
1710 isp1362_hcd->rhport[wIndex] = isp1362_read_reg32(isp1362_hcd, in isp1362_hub_control()
Disp1362.h494 u32 rhport[MAX_ROOT_PORTS]; member