Searched refs:VHCI_HC_PORTS (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/usb/usbip/ |
H A D | vhci.h | 77 #define VHCI_HC_PORTS CONFIG_USBIP_VHCI_HC_PORTS macro 79 #define VHCI_HC_PORTS 8 macro 82 /* Each VHCI has 2 hubs (USB2 and USB3), each has VHCI_HC_PORTS ports */ 83 #define VHCI_PORTS (VHCI_HC_PORTS*2) 106 u32 port_status[VHCI_HC_PORTS]; 118 struct vhci_device vdev[VHCI_HC_PORTS]; 141 return port % VHCI_HC_PORTS; in port_to_rhport()
|
H A D | vhci_sysfs.c | 84 for (i = 0; i < VHCI_HC_PORTS; i++) { in status_show_vhci() 93 for (i = 0; i < VHCI_HC_PORTS; i++) { in status_show_vhci() 98 pdev_nr * VHCI_PORTS + VHCI_HC_PORTS + i, vdev); in status_show_vhci() 112 for (i = 0; i < VHCI_HC_PORTS; i++) { in status_show_not_ready() 120 for (i = 0; i < VHCI_HC_PORTS; i++) { in status_show_not_ready() 122 (pdev_nr * VHCI_PORTS) + VHCI_HC_PORTS + i, in status_show_not_ready() 224 if (*rhport >= VHCI_HC_PORTS) { in valid_port() 228 *rhport = array_index_nospec(*rhport, VHCI_HC_PORTS); in valid_port() 258 if ((port / VHCI_HC_PORTS) % 2) in detach_store()
|
H A D | vhci_hcd.c | 232 int retval = DIV_ROUND_UP(VHCI_HC_PORTS + 1, 8); in vhci_hub_status() 246 for (rhport = 0; rhport < VHCI_HC_PORTS; rhport++) { in vhci_hub_status() 293 desc->bNbrPorts = VHCI_HC_PORTS; in ss_hub_descriptor() 307 desc->bNbrPorts = VHCI_HC_PORTS; in hub_descriptor() 308 BUILD_BUG_ON(VHCI_HC_PORTS > USB_MAXCHILDREN); in hub_descriptor() 325 u32 prev_port_status[VHCI_HC_PORTS]; in vhci_hub_control() 340 * in valid range when wIndex >= 1 and < VHCI_HC_PORTS. in vhci_hub_control() 345 if (wIndex < 1 || wIndex > VHCI_HC_PORTS) { in vhci_hub_control() 347 if (wIndex > VHCI_HC_PORTS) in vhci_hub_control() 703 if (portnum > VHCI_HC_PORTS) { in vhci_urb_enqueue() [all...] |
/kernel/linux/linux-6.6/drivers/usb/usbip/ |
H A D | vhci.h | 77 #define VHCI_HC_PORTS CONFIG_USBIP_VHCI_HC_PORTS macro 79 #define VHCI_HC_PORTS 8 macro 82 /* Each VHCI has 2 hubs (USB2 and USB3), each has VHCI_HC_PORTS ports */ 83 #define VHCI_PORTS (VHCI_HC_PORTS*2) 106 u32 port_status[VHCI_HC_PORTS]; 118 struct vhci_device vdev[VHCI_HC_PORTS]; 141 return port % VHCI_HC_PORTS; in port_to_rhport()
|
H A D | vhci_sysfs.c | 84 for (i = 0; i < VHCI_HC_PORTS; i++) { in status_show_vhci() 93 for (i = 0; i < VHCI_HC_PORTS; i++) { in status_show_vhci() 98 pdev_nr * VHCI_PORTS + VHCI_HC_PORTS + i, vdev); in status_show_vhci() 112 for (i = 0; i < VHCI_HC_PORTS; i++) { in status_show_not_ready() 120 for (i = 0; i < VHCI_HC_PORTS; i++) { in status_show_not_ready() 122 (pdev_nr * VHCI_PORTS) + VHCI_HC_PORTS + i, in status_show_not_ready() 224 if (*rhport >= VHCI_HC_PORTS) { in valid_port() 228 *rhport = array_index_nospec(*rhport, VHCI_HC_PORTS); in valid_port() 258 if ((port / VHCI_HC_PORTS) % 2) in detach_store()
|
H A D | vhci_hcd.c | 232 int retval = DIV_ROUND_UP(VHCI_HC_PORTS + 1, 8); in vhci_hub_status() 246 for (rhport = 0; rhport < VHCI_HC_PORTS; rhport++) { in vhci_hub_status() 293 desc->bNbrPorts = VHCI_HC_PORTS; in ss_hub_descriptor() 307 desc->bNbrPorts = VHCI_HC_PORTS; in hub_descriptor() 308 BUILD_BUG_ON(VHCI_HC_PORTS > USB_MAXCHILDREN); in hub_descriptor() 325 u32 prev_port_status[VHCI_HC_PORTS]; in vhci_hub_control() 340 * in valid range when wIndex >= 1 and < VHCI_HC_PORTS. in vhci_hub_control() 345 if (wIndex < 1 || wIndex > VHCI_HC_PORTS) { in vhci_hub_control() 347 if (wIndex > VHCI_HC_PORTS) in vhci_hub_control() 703 if (portnum > VHCI_HC_PORTS) { in vhci_urb_enqueue() [all...] |
Completed in 6 milliseconds