Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/common/
H A Dusb_hub.c239 static inline char *portspeed(int portstatus) in portspeed() argument
243 switch (portstatus & USB_PORT_STAT_SPEED_MASK) { in portspeed()
276 unsigned short portstatus, portchange; in usb_hub_port_reset() local
297 portstatus = le16_to_cpu(portsts->wPortStatus); in usb_hub_port_reset()
300 debug("portstatus %x, change %x, %s\n", portstatus, portchange, in usb_hub_port_reset()
301 portspeed(portstatus)); in usb_hub_port_reset()
306 (portstatus & USB_PORT_STAT_CONNECTION) ? 1 : 0, in usb_hub_port_reset()
307 (portstatus & USB_PORT_STAT_ENABLE) ? 1 : 0); in usb_hub_port_reset()
326 if (portstatus & USB_PORT_STAT_ENABLE) in usb_hub_port_reset()
341 *portstat = portstatus; in usb_hub_port_reset()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/core/
H A Dhub.c119 u16 portstatus);
121 static inline char *portspeed(struct usb_hub *hub, int portstatus) in portspeed() argument
127 if (portstatus & USB_PORT_STAT_HIGH_SPEED) in portspeed()
129 else if (portstatus & USB_PORT_STAT_LOW_SPEED) in portspeed()
1125 u16 portstatus, portchange; in hub_activate() local
1127 portstatus = portchange = 0; in hub_activate()
1128 status = hub_port_status(hub, port1, &portstatus, &portchange); in hub_activate()
1132 if (udev || (portstatus & USB_PORT_STAT_CONNECTION)) in hub_activate()
1134 portstatus, portchange); in hub_activate()
1142 if ((portstatus & USB_PORT_STAT_ENABLE) && ( in hub_activate()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/host/
H A Dohci-hub.c100 __hc32 __iomem *portstat = ohci->regs->roothub.portstatus; in ohci_rh_suspend()
587 status = ohci_readl(ohci, &ohci->regs->roothub.portstatus [port]); in ohci_start_port_reset()
592 ohci_writel(ohci, RH_PS_PRS, &ohci->regs->roothub.portstatus [port]); in ohci_start_port_reset()
619 __hc32 __iomem *portstat = &ohci->regs->roothub.portstatus [port]; in root_port_reset()
735 &ohci->regs->roothub.portstatus [wIndex]); in ohci_hub_control()
778 &ohci->regs->roothub.portstatus [wIndex]); in ohci_hub_control()
782 &ohci->regs->roothub.portstatus [wIndex]); in ohci_hub_control()
H A Duhci-hcd.c825 unsigned int portstatus; in uhci_count_ports() local
827 portstatus = uhci_readw(uhci, USBPORTSC1 + (port * 2)); in uhci_count_ports()
828 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 Du132-hcd.c457 retval = u132_read_pcimem(u132, roothub.portstatus[i], in read_roothub_info()
1644 roothub.portstatus[temp], RH_PS_LSDA); in u132_run()
2616 roothub.portstatus[port], &rh_portstatus); in u132_roothub_portstatus()
2647 roothub.portstatus[port_index], &portstat); in u132_roothub_portreset()
2660 roothub.portstatus[port_index], in u132_roothub_portreset()
2668 retval = u132_write_pcimem(u132, roothub.portstatus[port_index], in u132_roothub_portreset()
2693 roothub.portstatus[port_index], RH_PS_PSS); in u132_roothub_setportfeature()
2696 roothub.portstatus[port_index], RH_PS_PPS); in u132_roothub_setportfeature()
2748 return u132_write_pcimem(u132, roothub.portstatus[port_index], in u132_roothub_clearportfeature()
H A Dohci-omap.c175 writel (RH_PS_PSS, &ohci->regs->roothub.portstatus [port]); in start_hnp()
H A Dohci-hcd.c1163 &ohci->regs->roothub.portstatus[port]); in ohci_resume()
/OK3568_Linux_fs/u-boot/arch/mips/mach-au1x00/
H A Dau1x00_usb_ohci.h175 __u32 portstatus[MAX_ROOT_PORTS]; member
H A Dau1x00_usb_ohci.c110 { return read_roothub (hc, portstatus [i], 0xffe0fce0); } in roothub_portstatus()
851 …o("WR:portstatus[%d] %#8x", wIndex-1, (x));writel((x), &gohci.regs->roothub.portstatus[wIndex-1]);}
854 #define WR_RH_PORTSTAT(x) writel((x), &gohci.regs->roothub.portstatus[wIndex-1])
/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Dohci.h188 __u32 portstatus[CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS]; member
H A Dohci-hcd.c207 { return ohci_readl(&hc->regs->roothub.portstatus[i]); } in roothub_portstatus()
1210 (x)); ohci_writel((x), &ohci->regs->roothub.portstatus[wIndex-1]); }
1214 &ohci->regs->roothub.portstatus[wIndex-1])
/OK3568_Linux_fs/kernel/drivers/staging/wlan-ng/
H A Dprism2sta.c1229 u16 portstatus; in prism2sta_processing_defer() local
1262 &portstatus); in prism2sta_processing_defer()
1270 (portstatus == HFA384x_PSTATUS_CONN_IBSS) ? in prism2sta_processing_defer()
/OK3568_Linux_fs/kernel/drivers/usb/misc/
H A Dftdi-elan.c2261 roothub.portstatus[temp], RH_PS_LSDA); in ftdi_elan_check_controller()
2385 u32 portstatus; in ftdi_elan_check_controller() local
2386 retval = ftdi_read_pcimem(ftdi, roothub.portstatus[temp], in ftdi_elan_check_controller()
2387 &portstatus); in ftdi_elan_check_controller()
2390 if (1 & portstatus) in ftdi_elan_check_controller()