• Home
  • Raw
  • Download

Lines Matching refs:portstatus

236 static inline char *portspeed(int portstatus)  in portspeed()  argument
240 switch (portstatus & USB_PORT_STAT_SPEED_MASK) { in portspeed()
273 unsigned short portstatus, portchange; in usb_hub_port_reset() local
294 portstatus = le16_to_cpu(portsts->wPortStatus); in usb_hub_port_reset()
297 debug("portstatus %x, change %x, %s\n", portstatus, portchange, in usb_hub_port_reset()
298 portspeed(portstatus)); in usb_hub_port_reset()
303 (portstatus & USB_PORT_STAT_CONNECTION) ? 1 : 0, in usb_hub_port_reset()
304 (portstatus & USB_PORT_STAT_ENABLE) ? 1 : 0); in usb_hub_port_reset()
323 if (portstatus & USB_PORT_STAT_ENABLE) in usb_hub_port_reset()
338 *portstat = portstatus; in usb_hub_port_reset()
345 unsigned short portstatus; in usb_hub_port_connect_change() local
355 portstatus = le16_to_cpu(portsts->wPortStatus); in usb_hub_port_connect_change()
357 portstatus, in usb_hub_port_connect_change()
359 portspeed(portstatus)); in usb_hub_port_connect_change()
365 if (((!(portstatus & USB_PORT_STAT_CONNECTION)) && in usb_hub_port_connect_change()
366 (!(portstatus & USB_PORT_STAT_ENABLE))) || in usb_hub_port_connect_change()
370 if (!(portstatus & USB_PORT_STAT_CONNECTION)) in usb_hub_port_connect_change()
375 ret = usb_hub_port_reset(dev, port, &portstatus); in usb_hub_port_connect_change()
382 switch (portstatus & USB_PORT_STAT_SPEED_MASK) { in usb_hub_port_connect_change()
433 unsigned short portstatus; in usb_scan_port() local
465 portstatus = le16_to_cpu(portsts->wPortStatus); in usb_scan_port()
467 debug("Port %d Status %X Change %X\n", i + 1, portstatus, portchange); in usb_scan_port()
477 !(portstatus & USB_PORT_STAT_CONNECTION)) { in usb_scan_port()
506 debug("port %d enable change, status %x\n", i + 1, portstatus); in usb_scan_port()
518 if (!(portstatus & USB_PORT_STAT_ENABLE) && in usb_scan_port()
519 (portstatus & USB_PORT_STAT_CONNECTION) && in usb_scan_port()
528 if (portstatus & USB_PORT_STAT_SUSPEND) { in usb_scan_port()