Lines Matching full:port1

57 	int port1 = port_dev->portnum;  in disable_show()  local
85 usb_hub_port_status(hub, port1, &portstatus, &unused); in disable_show()
109 int port1 = port_dev->portnum; in disable_store() local
143 rc = usb_hub_set_port_power(hdev, hub, port1, !disabled); in disable_store()
146 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_CONNECTION); in disable_store()
148 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_ENABLE); in disable_store()
359 int port1 = port_dev->portnum; in usb_port_runtime_resume() local
365 set_bit(port1, hub->power_bits); in usb_port_runtime_resume()
380 retval = usb_hub_set_port_power(hdev, hub, port1, true); in usb_port_runtime_resume()
392 if (hub_port_debounce_be_connected(hub, port1) < 0) { in usb_port_runtime_resume()
395 set_bit(port1, hub->warm_reset_bits); in usb_port_runtime_resume()
399 if (!test_and_set_bit(port1, hub->child_usage_bits)) { in usb_port_runtime_resume()
417 int port1 = port_dev->portnum; in usb_port_runtime_suspend() local
436 retval = usb_hub_set_port_power(hdev, hub, port1, false); in usb_port_runtime_suspend()
437 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_CONNECTION); in usb_port_runtime_suspend()
439 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_ENABLE); in usb_port_runtime_suspend()
610 int port1; in match_location() local
625 for (port1 = 1; port1 <= peer_hdev->maxchild; port1++) { in match_location()
626 peer = peer_hub->ports[port1 - 1]; in match_location()
642 static void find_and_link_peer(struct usb_hub *hub, int port1) in find_and_link_peer() argument
644 struct usb_port *port_dev = hub->ports[port1 - 1], *peer; in find_and_link_peer()
683 if (!peer_hub || port1 > peer_hdev->maxchild) in find_and_link_peer()
690 peer = peer_hub->ports[port1 - 1]; in find_and_link_peer()
736 int usb_hub_create_port_device(struct usb_hub *hub, int port1) in usb_hub_create_port_device() argument
752 port_dev->connect_type = usb_of_get_connect_type(hdev, port1); in usb_hub_create_port_device()
753 hub->ports[port1 - 1] = port_dev; in usb_hub_create_port_device()
754 port_dev->portnum = port1; in usb_hub_create_port_device()
755 set_bit(port1, hub->power_bits); in usb_hub_create_port_device()
767 port1); in usb_hub_create_port_device()
795 find_and_link_peer(hub, port1); in usb_hub_create_port_device()
838 void usb_hub_remove_port_device(struct usb_hub *hub, int port1) in usb_hub_remove_port_device() argument
840 struct usb_port *port_dev = hub->ports[port1 - 1]; in usb_hub_remove_port_device()