• Home
  • Raw
  • Download

Lines Matching refs:port1

199 	int port1 = port_dev->portnum;  in usb_port_runtime_resume()  local
205 set_bit(port1, hub->power_bits); in usb_port_runtime_resume()
217 retval = usb_hub_set_port_power(hdev, hub, port1, true); in usb_port_runtime_resume()
229 if (hub_port_debounce_be_connected(hub, port1) < 0) { in usb_port_runtime_resume()
232 set_bit(port1, hub->warm_reset_bits); in usb_port_runtime_resume()
236 if (!test_and_set_bit(port1, hub->child_usage_bits)) { in usb_port_runtime_resume()
254 int port1 = port_dev->portnum; in usb_port_runtime_suspend() local
270 retval = usb_hub_set_port_power(hdev, hub, port1, false); in usb_port_runtime_suspend()
271 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_CONNECTION); in usb_port_runtime_suspend()
273 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_ENABLE); in usb_port_runtime_suspend()
441 int port1; in match_location() local
456 for (port1 = 1; port1 <= peer_hdev->maxchild; port1++) { in match_location()
457 peer = peer_hub->ports[port1 - 1]; in match_location()
472 static void find_and_link_peer(struct usb_hub *hub, int port1) in find_and_link_peer() argument
474 struct usb_port *port_dev = hub->ports[port1 - 1], *peer; in find_and_link_peer()
513 if (!peer_hub || port1 > peer_hdev->maxchild) in find_and_link_peer()
520 peer = peer_hub->ports[port1 - 1]; in find_and_link_peer()
525 int usb_hub_create_port_device(struct usb_hub *hub, int port1) in usb_hub_create_port_device() argument
541 hub->ports[port1 - 1] = port_dev; in usb_hub_create_port_device()
542 port_dev->portnum = port1; in usb_hub_create_port_device()
543 set_bit(port1, hub->power_bits); in usb_hub_create_port_device()
556 port1); in usb_hub_create_port_device()
572 find_and_link_peer(hub, port1); in usb_hub_create_port_device()
608 void usb_hub_remove_port_device(struct usb_hub *hub, int port1) in usb_hub_remove_port_device() argument
610 struct usb_port *port_dev = hub->ports[port1 - 1]; in usb_hub_remove_port_device()