Lines Matching refs:portstatus
225 static __inline__ char *portspeed (int portstatus) in portspeed() argument
227 if (portstatus & (1 << USB_PORT_FEAT_HIGHSPEED)) in portspeed()
229 else if (portstatus & (1 << USB_PORT_FEAT_LOWSPEED)) in portspeed()
3958 U16 portstatus; in hub_port_wait_reset() local
4042 ret = hub_port_status(hub, port, &portstatus, &portchange); in hub_port_wait_reset()
4127 if (!(portstatus & USB_PORT_STAT_CONNECTION)) in hub_port_wait_reset()
4134 if (!(portstatus & USB_PORT_STAT_RESET) && in hub_port_wait_reset()
4135 (portstatus & USB_PORT_STAT_ENABLE)) { in hub_port_wait_reset()
4137 if (portstatus & USB_PORT_STAT_HIGH_SPEED) in hub_port_wait_reset()
4139 else if (portstatus & USB_PORT_STAT_LOW_SPEED) in hub_port_wait_reset()
4143 dev_dbg(hubdev(hub),"Device Speed is %s\n",portspeed (portstatus)); in hub_port_wait_reset()
4144 diag_printf("hub_port_wait_reset:: Device Speed is %s\n", portspeed(portstatus)); in hub_port_wait_reset()
4612 U16 portchange, portstatus; in hub_port_debounce() local
4690 ret = hub_port_status(hub, port, &portstatus, &portchange); in hub_port_debounce()
4694 if ((U16) (portstatus & USB_PORT_STAT_CONNECTION) == connection) { in hub_port_debounce()
4702 connection = portstatus & USB_PORT_STAT_CONNECTION; in hub_port_debounce()
4780 port + 1, delay_time, stable_count, portstatus); in hub_port_debounce()
4782 return ((portstatus&USB_PORT_STAT_CONNECTION)) ? 0 : 1; in hub_port_debounce()
4861 U16 portstatus, U16 portchange) 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()
5024 if (!(portstatus & USB_PORT_STAT_CONNECTION)) { in hub_port_connect_change()
5123 if (portstatus & USB_PORT_STAT_ENABLE) in hub_port_connect_change()
5237 if (portstatus & USB_PORT_STAT_LOW_SPEED) in hub_port_connect_change()
6282 U16 portstatus; in hub_events() local
6424 ret = hub_port_status(dev, i, &portstatus, &portchange); in hub_events()
6429 hub_port_connect_change(hub, i, portstatus, portchange); in hub_events()
6433 i + 1, portstatus); in hub_events()
6630 if (!(portstatus & USB_PORT_STAT_ENABLE) in hub_events()
6631 && (portstatus & USB_PORT_STAT_CONNECTION) in hub_events()
6639 i, portstatus, portchange); in hub_events()
8840 U16 portstatus; in hub_events_EX() local
9171 ret = hub_port_status(dev, i, &portstatus, &portchange); in hub_events_EX()
9176 hub_port_connect_change(hub, i, portstatus, portchange); in hub_events_EX()
9178 dev_dbg (hubdev (dev), "port %d enable change, status %x\n", i + 1, portstatus); in hub_events_EX()
9278 if (!(portstatus & USB_PORT_STAT_ENABLE) in hub_events_EX()
9279 && (portstatus & USB_PORT_STAT_CONNECTION) in hub_events_EX()
9282 hub_port_connect_change(hub, i, portstatus, portchange); in hub_events_EX()