Lines Matching refs:port
555 int clear_port_feature(struct usb_device *dev, int port, int feature) in clear_port_feature() argument
558 USB_REQ_CLEAR_FEATURE, USB_RT_PORT, feature, port, NULL, 0, HZ); in clear_port_feature()
608 static int set_port_feature(struct usb_device *dev, int port, int feature) in set_port_feature() argument
611 USB_REQ_SET_FEATURE, USB_RT_PORT, feature, port, NULL, 0, HZ); in set_port_feature()
734 static int get_port_status(struct usb_device *dev, int port, in get_port_status() argument
738 USB_REQ_GET_STATUS, USB_DIR_IN | USB_RT_PORT, 0, port, in get_port_status()
3441 info->port[i] = 0; in hub_ioctl()
3443 info->port[i] = in hub_ioctl()
3774 int hub_port_status(struct usb_device *dev, int port, in hub_port_status() argument
3780 ret = get_port_status(dev, port + 1, &hub->status.port); in hub_port_status()
3786 *status = LE16ToCPU(hub->status.port.wPortStatus); in hub_port_status()
3787 *change = LE16ToCPU(hub->status.port.wPortChange); in hub_port_status()
3954 static int hub_port_wait_reset(struct usb_device *hub, int port, in hub_port_wait_reset() argument
4042 ret = hub_port_status(hub, port, &portstatus, &portchange); in hub_port_wait_reset()
4233 port + 1, delay); in hub_port_wait_reset()
4323 static int hub_port_reset(struct usb_device *hub, int port, in hub_port_reset() argument
4329 set_port_feature(hub, port + 1, USB_PORT_FEAT_RESET); in hub_port_reset()
4331 status = hub_port_wait_reset(hub, port, dev, delay); in hub_port_reset()
4335 port + 1, USB_PORT_FEAT_C_RESET); in hub_port_reset()
4420 port + 1); in hub_port_reset()
4426 port + 1); in hub_port_reset()
4513 int hub_port_disable(struct usb_device *hub, int port) in hub_port_disable() argument
4517 ret = clear_port_feature(hub, port + 1, USB_PORT_FEAT_ENABLE); in hub_port_disable()
4520 port + 1, ret); in hub_port_disable()
4608 static int hub_port_debounce(struct usb_device *hub, int port) in hub_port_debounce() argument
4690 ret = hub_port_status(hub, port, &portstatus, &portchange); in hub_port_debounce()
4774 clear_port_feature(hub, port+1, USB_PORT_FEAT_C_CONNECTION); in hub_port_debounce()
4780 port + 1, delay_time, stable_count, portstatus); in hub_port_debounce()
4860 void hub_port_connect_change(struct usb_hub *hubstate, int port, in hub_port_connect_change() argument
4946 port + 1, portstatus, portchange, portspeed (portstatus)); in hub_port_connect_change()
4950 port + 1, portstatus, portchange); in hub_port_connect_change()
5019 clear_port_feature(hub, port + 1, USB_PORT_FEAT_C_CONNECTION); in hub_port_connect_change()
5021 if (hub->children[port]) in hub_port_connect_change()
5022 usb_disconnect(&hub->children[port]); in hub_port_connect_change()
5124 hub_port_disable(hub, port); in hub_port_connect_change()
5128 if (hub_port_debounce(hub, port)) { in hub_port_connect_change()
5131 port+1); in hub_port_connect_change()
5132 hub_port_disable(hub, port); in hub_port_connect_change()
5349 hub->children[port] = dev; in hub_port_connect_change()
5470 if (hub_port_reset(hub, port, dev, delay)) { in hub_port_connect_change()
5594 dev->ttport = port + 1; in hub_port_connect_change()
5794 "%s.%d", pdev->devpath, port + 1); in hub_port_connect_change()
5797 "%d", port + 1); in hub_port_connect_change()
5806 port + 1, dev->devnum); in hub_port_connect_change()
5906 g_CurntPort = port; in hub_port_connect_change()
5921 hub->children[port] = NULL; in hub_port_connect_change()
5922 hub_port_disable(hub, port); in hub_port_connect_change()
7833 int i, ret, port = -1; in usb_physical_reset_device() local
7938 port = i; in usb_physical_reset_device()
7942 if (port < 0) in usb_physical_reset_device()
8048 if (hub_port_reset(parent, port, dev, HUB_SHORT_RESET_TIME)) { in usb_physical_reset_device()
8049 hub_port_disable(parent, port); in usb_physical_reset_device()
8154 hub_port_disable(parent, port); in usb_physical_reset_device()