• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/usb/core/

Lines Matching defs:port1

165 static int clear_port_feature(struct usb_device *hdev, int port1, int feature)
168 USB_REQ_CLEAR_FEATURE, USB_RT_PORT, feature, port1,
175 static int set_port_feature(struct usb_device *hdev, int port1, int feature)
178 USB_REQ_SET_FEATURE, USB_RT_PORT, feature, port1,
188 int port1,
192 int status = set_port_feature(hub->hdev, (selector << 8) | port1,
197 port1,
303 static int get_port_status(struct usb_device *hdev, int port1,
310 USB_REQ_GET_STATUS, USB_DIR_IN | USB_RT_PORT, 0, port1,
476 int port1;
492 for (port1 = 1; port1 <= hub->descriptor->bNbrPorts; port1++)
493 set_port_feature(hub->hdev, port1, USB_PORT_FEAT_POWER);
549 static int hub_port_disable(struct usb_hub *hub, int port1, int set_state)
554 if (hdev->children[port1-1] && set_state) {
555 usb_set_device_state(hdev->children[port1-1],
558 ret = clear_port_feature(hdev, port1, USB_PORT_FEAT_ENABLE);
561 port1, ret);
572 int port1;
574 for (port1 = 1; port1 <= hdev->maxchild; ++port1) {
575 if (hdev->children[port1 - 1]) {
576 usb_disconnect(&hdev->children[port1 - 1]);
578 hub_port_disable(hub, port1, 0);
1104 int port1;
1116 for (port1 = 1; port1 <= rhdev->maxchild; ++port1) {
1117 if (rhdev->children[port1 - 1]) {
1119 rhdev->children[port1 - 1]);
1120 set_bit(port1, hub->change_bits);
1269 static int __usb_port_suspend(struct usb_device *, int port1);
1339 unsigned port1 = udev->portnum;
1343 (port1 == bus->otg_port)
1347 if (port1 == bus->otg_port)
1410 static int hub_port_status(struct usb_hub *hub, int port1,
1416 ret = get_port_status(hub->hdev, port1, &hub->status->port);
1454 static int hub_port_wait_reset(struct usb_hub *hub, int port1,
1468 ret = hub_port_status(hub, port1, &portstatus, &portchange);
1500 port1, delay);
1506 static int hub_port_reset(struct usb_hub *hub, int port1,
1514 port1, USB_PORT_FEAT_RESET);
1518 port1, status);
1520 status = hub_port_wait_reset(hub, port1, udev, delay);
1536 port1, USB_PORT_FEAT_C_RESET);
1545 port1);
1551 port1);
1561 static void hub_port_logical_disconnect(struct usb_hub *hub, int port1)
1563 dev_dbg(hub->intfdev, "logical disconnect on port %d\n", port1);
1564 hub_port_disable(hub, port1, 1);
1567 set_bit(port1, hub->change_bits);
1585 static int hub_port_suspend(struct usb_hub *hub, int port1,
1590 // dev_dbg(hub->intfdev, "suspend port %d\n", port1);
1611 status = set_port_feature(hub->hdev, port1, USB_PORT_FEAT_SUSPEND);
1615 port1, status);
1650 static int __usb_port_suspend (struct usb_device *udev, int port1)
1655 if (port1 < 0)
1656 return port1;
1662 status = hub_port_suspend(hdev_to_hub(udev->parent), port1,
1759 hub_port_resume(struct usb_hub *hub, int port1, struct usb_device *udev)
1765 status = hub_port_status(hub, port1, &portstatus, &portchange);
1769 // dev_dbg(hub->intfdev, "resume port %d\n", port1);
1771 set_bit(port1, hub->busy_bits);
1775 port1, USB_PORT_FEAT_SUSPEND);
1779 port1, status);
1795 status = hub_port_status(hub, port1, &portstatus, &portchange);
1803 port1, portchange, portstatus, status);
1808 clear_port_feature(hub->hdev, port1,
1817 hub_port_logical_disconnect(hub, port1);
1819 clear_bit(port1, hub->busy_bits);
1890 hub_port_resume(struct usb_hub *hub, int port1, struct usb_device *udev)
1911 unsigned port1;
1915 for (port1 = 1; port1 <= hdev->maxchild; port1++) {
1918 udev = hdev->children [port1-1];
1929 port1);
2013 static int hub_port_debounce(struct usb_hub *hub, int port1)
2021 ret = hub_port_status(hub, port1, &portstatus, &portchange);
2036 clear_port_feature(hub->hdev, port1,
2047 port1, total_time, stable_time, portstatus);
2094 hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1,
2110 if (port1 == hdev->bus->otg_port)
2122 retval = hub_port_reset(hub, port1, udev, delay);
2183 udev->ttport = port1;
2241 retval = hub_port_reset(hub, port1, udev, delay);
2323 hub_port_disable(hub, port1, 0);
2329 check_highspeed (struct usb_hub *hub, struct usb_device *udev, int port1)
2345 hub->indicator[port1-1] = INDICATOR_GREEN_BLINK;
2357 int port1;
2363 for (port1 = 1; port1 <= hdev->maxchild; ++port1) {
2364 struct usb_device *udev = hdev->children[port1 - 1];
2374 else if (port1 != udev->bus->otg_port || hdev->parent)
2381 delta, hub->mA_per_port, port1);
2400 static void hub_port_connect_change(struct usb_hub *hub, int port1,
2410 port1, portstatus, portchange, portspeed (portstatus));
2413 set_port_led(hub, port1, HUB_LED_AUTO);
2414 hub->indicator[port1-1] = INDICATOR_AUTO;
2418 if (hdev->children[port1-1])
2419 usb_disconnect(&hdev->children[port1-1]);
2420 clear_bit(port1, hub->change_bits);
2429 status = hub_port_debounce(hub, port1);
2433 "port %d disabled\n", port1);
2445 set_port_feature(hdev, port1, USB_PORT_FEAT_POWER);
2455 status = hub_port_resume(hub, port1, NULL);
2459 port1, status);
2471 udev = usb_alloc_dev(hdev, hdev->bus, port1);
2475 port1);
2492 status = hub_port_init(hub, udev, port1, i);
2518 hub->indicator[port1-1] =
2531 check_highspeed (hub, udev, port1);
2547 hdev->children[port1-1] = udev;
2555 hdev->children[port1-1] = NULL;
2570 hub_port_disable(hub, port1, 1);
2580 hub_port_disable(hub, port1, 1);
2943 int port1 = udev->portnum;
2959 set_bit(port1, parent_hub->busy_bits);
2965 ret = hub_port_init(parent_hub, udev, port1, i);
2969 clear_bit(port1, parent_hub->busy_bits);
3023 hub_port_logical_disconnect(parent_hub, port1);