Home
last modified time | relevance | path

Searched refs:portstatus (Results 1 – 12 of 12) sorted by relevance

/openbmc/u-boot/common/
H A Dusb_hub.c236 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()
[all …]
/openbmc/linux/drivers/usb/core/
H A Dhub.c135 u16 portstatus);
137 static inline char *portspeed(struct usb_hub *hub, int portstatus) in portspeed() argument
143 if (portstatus & USB_PORT_STAT_HIGH_SPEED) in portspeed()
145 else if (portstatus & USB_PORT_STAT_LOW_SPEED) in portspeed()
1149 u16 portstatus, portchange; in hub_activate() local
1151 portstatus = portchange = 0; in hub_activate()
1152 status = usb_hub_port_status(hub, port1, &portstatus, &portchange); in hub_activate()
1156 if (udev || (portstatus & USB_PORT_STAT_CONNECTION)) in hub_activate()
1158 portstatus, portchange); in hub_activate()
1166 if ((portstatus in hub_activate()
2873 hub_port_warm_reset_required(struct usb_hub * hub,int port1,u16 portstatus) hub_port_warm_reset_required() argument
2892 u16 portstatus; hub_port_wait_reset() local
2989 u16 portchange, portstatus; hub_port_reset() local
3169 usb_port_is_power_on(struct usb_hub * hub,unsigned int portstatus) usb_port_is_power_on() argument
3201 port_is_suspended(struct usb_hub * hub,unsigned portstatus) port_is_suspended() argument
3222 check_port_resume_type(struct usb_device * udev,struct usb_hub * hub,int port1,int status,u16 portchange,u16 portstatus) check_port_resume_type() argument
3501 u16 portstatus, portchange; usb_port_suspend() local
3675 wait_for_connected(struct usb_device * udev,struct usb_hub * hub,int port1,u16 * portchange,u16 * portstatus) wait_for_connected() argument
3734 u16 portchange, portstatus; usb_port_resume() local
3836 hub_handle_remote_wakeup(struct usb_hub * hub,unsigned int port,u16 portstatus,u16 portchange) hub_handle_remote_wakeup() argument
3883 u16 portstatus, portchange; check_ports_changed() local
4559 hub_handle_remote_wakeup(struct usb_hub * hub,unsigned int port,u16 portstatus,u16 portchange) hub_handle_remote_wakeup() argument
4631 u16 portchange, portstatus; hub_port_debounce() local
5324 hub_port_connect(struct usb_hub * hub,int port1,u16 portstatus,u16 portchange) hub_port_connect() argument
5572 hub_port_connect_change(struct usb_hub * hub,int port1,u16 portstatus,u16 portchange) hub_port_connect_change() argument
5687 u16 portstatus, portchange; port_event() local
[all...]
H A Dhub.h137 extern int usb_port_is_power_on(struct usb_hub *hub, unsigned int portstatus);
H A Dport.c55 u16 portstatus, unused; in disable_show() local
82 usb_hub_port_status(hub, port1, &portstatus, &unused); in disable_show()
83 disabled = !usb_port_is_power_on(hub, portstatus); in disable_show()
/openbmc/linux/drivers/usb/host/
H A Dohci-hub.c103 __hc32 __iomem *portstat = ohci->regs->roothub.portstatus; in ohci_rh_suspend()
590 status = ohci_readl(ohci, &ohci->regs->roothub.portstatus [port]); in ohci_start_port_reset()
595 ohci_writel(ohci, RH_PS_PRS, &ohci->regs->roothub.portstatus [port]); in ohci_start_port_reset()
622 __hc32 __iomem *portstat = &ohci->regs->roothub.portstatus [port]; in root_port_reset()
739 &ohci->regs->roothub.portstatus [wIndex]); in ohci_hub_control()
782 &ohci->regs->roothub.portstatus [wIndex]); in ohci_hub_control()
786 &ohci->regs->roothub.portstatus [wIndex]); in ohci_hub_control()
H A Duhci-hcd.c823 unsigned int portstatus; in uhci_count_ports() local
825 portstatus = uhci_readw(uhci, USBPORTSC1 + (port * 2)); in uhci_count_ports()
826 if (!(portstatus & 0x0080) || portstatus == 0xffff) in uhci_count_ports()
H A Dohci.h241 __hc32 portstatus [MAX_ROOT_PORTS]; member
725 { return read_roothub (hc, portstatus [i], 0xffe0fce0); } in roothub_portstatus()
H A Dohci-omap.c81 writel (RH_PS_PSS, &ohci->regs->roothub.portstatus [port]); in start_hnp()
H A Dohci-hcd.c1169 &ohci->regs->roothub.portstatus[port]); in ohci_resume()
/openbmc/u-boot/drivers/usb/host/
H A Dohci.h188 __u32 portstatus[CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS]; member
H A Dohci-hcd.c203 { return ohci_readl(&hc->regs->roothub.portstatus[i]); } in roothub_portstatus()
1206 (x)); ohci_writel((x), &ohci->regs->roothub.portstatus[wIndex-1]); }
1210 &ohci->regs->roothub.portstatus[wIndex-1])
/openbmc/linux/drivers/staging/wlan-ng/
H A Dprism2sta.c1210 u16 portstatus; in prism2sta_processing_defer() local
1243 &portstatus); in prism2sta_processing_defer()
1251 (portstatus == HFA384x_PSTATUS_CONN_IBSS) ? in prism2sta_processing_defer()