• Home
  • Raw
  • Download

Lines Matching refs:portstatus

119 static inline char *portspeed(struct usb_hub *hub, int portstatus)  in portspeed()  argument
123 if (portstatus & USB_PORT_STAT_HIGH_SPEED) in portspeed()
125 else if (portstatus & USB_PORT_STAT_LOW_SPEED) in portspeed()
877 u16 portchange, portstatus; in hub_usb3_port_disable() local
888 ret = hub_port_status(hub, port1, &portstatus, &portchange); in hub_usb3_port_disable()
892 if ((portstatus & USB_PORT_STAT_LINK_STATE) == in hub_usb3_port_disable()
1084 u16 portstatus, portchange; in hub_activate() local
1086 portstatus = portchange = 0; in hub_activate()
1087 status = hub_port_status(hub, port1, &portstatus, &portchange); in hub_activate()
1088 if (udev || (portstatus & USB_PORT_STAT_CONNECTION)) in hub_activate()
1091 port1, portstatus, portchange); in hub_activate()
1098 if ((portstatus & USB_PORT_STAT_ENABLE) && ( in hub_activate()
1100 !(portstatus & USB_PORT_STAT_CONNECTION) || in hub_activate()
1111 portstatus &= ~USB_PORT_STAT_ENABLE; in hub_activate()
1114 portstatus &= ~USB_PORT_STAT_ENABLE; in hub_activate()
1138 if (!(portstatus & USB_PORT_STAT_CONNECTION) || in hub_activate()
1146 if (udev || (portstatus & USB_PORT_STAT_CONNECTION)) in hub_activate()
1149 } else if (portstatus & USB_PORT_STAT_ENABLE) { in hub_activate()
1150 bool port_resumed = (portstatus & in hub_activate()
2513 static bool hub_port_warm_reset_required(struct usb_hub *hub, u16 portstatus) in hub_port_warm_reset_required() argument
2516 (((portstatus & USB_PORT_STAT_LINK_STATE) == in hub_port_warm_reset_required()
2518 ((portstatus & USB_PORT_STAT_LINK_STATE) == in hub_port_warm_reset_required()
2526 u16 portstatus; in hub_port_wait_reset() local
2536 ret = hub_port_status(hub, port1, &portstatus, &portchange); in hub_port_wait_reset()
2541 if (!(portstatus & USB_PORT_STAT_RESET)) in hub_port_wait_reset()
2553 if ((portstatus & USB_PORT_STAT_RESET)) in hub_port_wait_reset()
2556 if (hub_port_warm_reset_required(hub, portstatus)) in hub_port_wait_reset()
2560 if (!(portstatus & USB_PORT_STAT_CONNECTION)) in hub_port_wait_reset()
2571 if (!(portstatus & USB_PORT_STAT_ENABLE)) in hub_port_wait_reset()
2581 else if (portstatus & USB_PORT_STAT_HIGH_SPEED) in hub_port_wait_reset()
2583 else if (portstatus & USB_PORT_STAT_LOW_SPEED) in hub_port_wait_reset()
2633 u16 portchange, portstatus; in hub_port_reset() local
2651 &portstatus, &portchange); in hub_port_reset()
2655 if (hub_port_warm_reset_required(hub, portstatus)) in hub_port_reset()
2691 &portstatus, &portchange) < 0) in hub_port_reset()
2694 if (!hub_port_warm_reset_required(hub, portstatus)) in hub_port_reset()
2726 static int port_is_power_on(struct usb_hub *hub, unsigned portstatus) in port_is_power_on() argument
2731 if (portstatus & USB_SS_PORT_STAT_POWER) in port_is_power_on()
2734 if (portstatus & USB_PORT_STAT_POWER) in port_is_power_on()
2744 static int port_is_suspended(struct usb_hub *hub, unsigned portstatus) in port_is_suspended() argument
2749 if ((portstatus & USB_PORT_STAT_LINK_STATE) in port_is_suspended()
2753 if (portstatus & USB_PORT_STAT_SUSPEND) in port_is_suspended()
2765 int status, unsigned portchange, unsigned portstatus) in check_port_resume_type() argument
2768 if (status || port_is_suspended(hub, portstatus) || in check_port_resume_type()
2769 !port_is_power_on(hub, portstatus) || in check_port_resume_type()
2770 !(portstatus & USB_PORT_STAT_CONNECTION)) { in check_port_resume_type()
2778 else if (!(portstatus & USB_PORT_STAT_ENABLE) && !udev->reset_resume) { in check_port_resume_type()
2788 port1, portchange, portstatus, status); in check_port_resume_type()
3185 u16 portchange, portstatus; in usb_port_resume() local
3198 status = hub_port_status(hub, port1, &portstatus, &portchange); in usb_port_resume()
3199 if (status == 0 && !port_is_suspended(hub, portstatus)) in usb_port_resume()
3225 status = hub_port_status(hub, port1, &portstatus, &portchange); in usb_port_resume()
3248 hub, port1, status, portchange, portstatus); in usb_port_resume()
3294 u16 portstatus, portchange; in check_ports_changed() local
3297 status = hub_port_status(hub, port1, &portstatus, &portchange); in check_ports_changed()
3851 u16 portchange, portstatus; in hub_port_debounce() local
3855 ret = hub_port_status(hub, port1, &portstatus, &portchange); in hub_port_debounce()
3860 (portstatus & USB_PORT_STAT_CONNECTION) == connection) { in hub_port_debounce()
3868 connection = portstatus & USB_PORT_STAT_CONNECTION; in hub_port_debounce()
3883 port1, total_time, stable_time, portstatus); in hub_port_debounce()
3887 return portstatus; in hub_port_debounce()
4313 u16 portstatus, u16 portchange) in hub_port_connect_change() argument
4326 port1, portstatus, portchange, portspeed(hub, portstatus)); in hub_port_connect_change()
4342 if ((portstatus & USB_PORT_STAT_CONNECTION) && udev && in hub_port_connect_change()
4345 if (portstatus & USB_PORT_STAT_ENABLE) { in hub_port_connect_change()
4371 !(portstatus & USB_PORT_STAT_CONNECTION)) in hub_port_connect_change()
4380 if (!(portstatus & USB_PORT_STAT_CONNECTION) || in hub_port_connect_change()
4391 portstatus &= ~USB_PORT_STAT_CONNECTION; in hub_port_connect_change()
4393 portstatus = status; in hub_port_connect_change()
4400 if (!(portstatus & USB_PORT_STAT_CONNECTION) || in hub_port_connect_change()
4405 && !port_is_power_on(hub, portstatus)) in hub_port_connect_change()
4408 if (portstatus & USB_PORT_STAT_ENABLE) in hub_port_connect_change()
4556 u16 portstatus, u16 portchange) in hub_handle_remote_wakeup() argument
4571 (portstatus & USB_PORT_STAT_LINK_STATE) != in hub_handle_remote_wakeup()
4603 u16 portstatus; in hub_events() local
4691 &portstatus, &portchange); in hub_events()
4706 i, portstatus); in hub_events()
4716 if (!(portstatus & USB_PORT_STAT_ENABLE) in hub_events()
4729 portstatus, portchange)) in hub_events()
4778 if (hub_port_warm_reset_required(hub, portstatus)) { in hub_events()
4800 portstatus, portchange); in hub_events()