Home
last modified time | relevance | path

Searched refs:portsc (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/usb/cdns3/
H A Dcdnsp-debug.h427 static inline const char *cdnsp_portsc_link_state_string(u32 portsc) in cdnsp_portsc_link_state_string() argument
429 switch (portsc & PORT_PLS_MASK) { in cdnsp_portsc_link_state_string()
464 u32 portsc) in cdnsp_decode_portsc() argument
469 portsc & PORT_POWER ? "Powered" : "Powered-off", in cdnsp_decode_portsc()
470 portsc & PORT_CONNECT ? "Connected" : "Not-connected", in cdnsp_decode_portsc()
471 portsc & PORT_PED ? "Enabled" : "Disabled", in cdnsp_decode_portsc()
472 cdnsp_portsc_link_state_string(portsc), in cdnsp_decode_portsc()
473 DEV_PORT_SPEED(portsc)); in cdnsp_decode_portsc()
475 if (portsc & PORT_RESET) in cdnsp_decode_portsc()
479 if (portsc & PORT_CSC) in cdnsp_decode_portsc()
[all …]
H A Dcdnsp-ring.c263 cdnsp_set_link_state(pdev, &pdev->active_port->regs->portsc, XDEV_U0); in cdnsp_force_l0_go()
792 u32 portsc, cmd_regs; in cdnsp_handle_port_status() local
812 portsc = readl(&port_regs->portsc); in cdnsp_handle_port_status()
813 writel(cdnsp_port_state_to_neutral(portsc) | in cdnsp_handle_port_status()
814 (portsc & PORT_CHANGE_BITS), &port_regs->portsc); in cdnsp_handle_port_status()
816 trace_cdnsp_handle_port_status(pdev->active_port->port_num, portsc); in cdnsp_handle_port_status()
818 pdev->gadget.speed = cdnsp_port_speed(portsc); in cdnsp_handle_port_status()
819 link_state = portsc & PORT_PLS_MASK; in cdnsp_handle_port_status()
822 if ((portsc & PORT_PLC)) { in cdnsp_handle_port_status()
829 if (DEV_SUPERSPEED_ANY(portsc)) { in cdnsp_handle_port_status()
[all …]
H A Dcdnsp-gadget.c136 u32 portsc = readl(port_regs); in cdnsp_clear_port_change_bit()
138 writel(cdnsp_port_state_to_neutral(portsc) | in cdnsp_clear_port_change_bit()
139 (portsc & PORT_CHANGE_BITS), port_regs); in cdnsp_clear_port_change_bit()
1278 cdnsp_set_link_state(pdev, &pdev->usb3_port.regs->portsc, in cdnsp_run()
1281 cdnsp_disable_port(pdev, &pdev->usb3_port.regs->portsc); in cdnsp_run()
1284 cdnsp_set_link_state(pdev, &pdev->usb2_port.regs->portsc, in cdnsp_run()
1435 cdnsp_disable_port(pdev, &pdev->usb2_port.regs->portsc); in cdnsp_stop()
1436 cdnsp_disable_port(pdev, &pdev->usb3_port.regs->portsc); in cdnsp_stop()
1445 cdnsp_clear_port_change_bit(pdev, &pdev->usb2_port.regs->portsc); in cdnsp_stop()
1446 cdnsp_clear_port_change_bit(pdev, &pdev->usb3_port.regs->portsc); in cdnsp_stop()
135 u32 portsc = readl(port_regs); cdnsp_clear_port_change_bit() local
1486 u32 portpm, portsc; __cdnsp_gadget_wakeup() local
[all...]
H A Dcdnsp-gadget.h143 __le32 portsc; member
/linux/drivers/usb/early/
H A Dehci-dbgp.c495 u32 ctrl, portsc, cmd; in _dbgp_external_startup() local
509 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
510 if (!(portsc & PORT_CONNECT) && try_hard_once) { in _dbgp_external_startup()
518 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
519 portsc |= PORT_TEST_PKT; in _dbgp_external_startup()
520 writel(portsc, &ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
546 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
547 portsc &= ~PORT_PE; in _dbgp_external_startup()
548 writel(portsc, &ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
610 u32 portsc; in ehci_reset_port() local
[all …]
H A Dxhci-dbc.c351 void __iomem *portsc; in xdbc_do_reset_debug_port() local
360 portsc = ops_reg + 0x400 + i * 0x10; in xdbc_do_reset_debug_port()
361 val = readl(portsc); in xdbc_do_reset_debug_port()
363 writel(val | PORT_RESET, portsc); in xdbc_do_reset_debug_port()
436 ret = handshake(&xdbc.xdbc_reg->portsc, PORTSC_CONN_STATUS, PORTSC_CONN_STATUS, 5000000, 100); in xdbc_start()
693 port_reg = readl(&xdbc.xdbc_reg->portsc); in xdbc_handle_port_status()
714 writel(port_reg, &xdbc.xdbc_reg->portsc); in xdbc_handle_port_status()
H A Dxhci-dbc.h28 __le32 portsc; /* Port status and control */ member
/linux/drivers/usb/host/
H A Dxhci-hub.c285 u32 portsc; in xhci_usb2_hub_descriptor() local
302 portsc = readl(rhub->ports[i]->addr); in xhci_usb2_hub_descriptor()
306 if (portsc & PORT_DEV_REMOVE) in xhci_usb2_hub_descriptor()
339 u32 portsc; in xhci_usb3_hub_descriptor() local
359 portsc = readl(rhub->ports[i]->addr); in xhci_usb3_hub_descriptor()
360 if (portsc & PORT_DEV_REMOVE) in xhci_usb3_hub_descriptor()
553 u32 portsc; in xhci_disable_port() local
569 portsc = readl(port->addr); in xhci_disable_port()
570 portsc = xhci_port_state_to_neutral(portsc); in xhci_disable_port()
573 writel(portsc | PORT_PE, port->addr); in xhci_disable_port()
[all …]
H A Dxhci.h2324 static inline const char *xhci_portsc_link_state_string(u32 portsc) in xhci_portsc_link_state_string() argument
2326 switch (portsc & PORT_PLS_MASK) { in xhci_portsc_link_state_string()
2359 static inline const char *xhci_decode_portsc(char *str, u32 portsc) in xhci_decode_portsc() argument
2363 ret = sprintf(str, "0x%08x ", portsc); in xhci_decode_portsc()
2365 if (portsc == ~(u32)0) in xhci_decode_portsc()
2369 portsc & PORT_POWER ? "Powered" : "Powered-off", in xhci_decode_portsc()
2370 portsc & PORT_CONNECT ? "Connected" : "Not-connected", in xhci_decode_portsc()
2371 portsc & PORT_PE ? "Enabled" : "Disabled", in xhci_decode_portsc()
2372 xhci_portsc_link_state_string(portsc), in xhci_decode_portsc()
2373 DEV_PORT_SPEED(portsc)); in xhci_decode_portsc()
[all …]
H A Dxhci-pci.c850 u32 portsc; in xhci_pci_poweroff_late() local
867 portsc = readl(port->addr); in xhci_pci_poweroff_late()
869 if ((portsc & PORT_PLS_MASK) != XDEV_U3) in xhci_pci_poweroff_late()
887 portsc = xhci_port_state_to_neutral(portsc); in xhci_pci_poweroff_late()
888 writel(portsc | PORT_PE, port->addr); in xhci_pci_poweroff_late()
H A Dxhci-ring.c1952 u32 portsc, cmd_reg; in handle_port_status() local
1991 portsc = readl(port->addr); in handle_port_status()
1994 hcd->self.busnum, hcd_portnum + 1, port_id, portsc); in handle_port_status()
1996 trace_xhci_handle_port_status(port, portsc); in handle_port_status()
2004 (portsc & PORT_PLS_MASK) == XDEV_INACTIVE) { in handle_port_status()
2009 if ((portsc & PORT_PLC) && (portsc & PORT_PLS_MASK) == XDEV_RESUME) { in handle_port_status()
2018 if (DEV_SUPERSPEED_ANY(portsc)) { in handle_port_status()
2050 if ((portsc & PORT_PLC) && in handle_port_status()
2051 DEV_SUPERSPEED_ANY(portsc) && in handle_port_status()
2052 ((portsc & PORT_PLS_MASK) == XDEV_U0 || in handle_port_status()
[all …]
H A Dxhci-dbgcap.h24 __le32 portsc; /* Port status and control */ member
H A Dxhci.c815 u32 t1, t2, portsc; in xhci_disable_hub_port_wake() local
821 portsc = readl(rhub->ports[i]->addr); in xhci_disable_hub_port_wake()
822 t1 = xhci_port_state_to_neutral(portsc); in xhci_disable_hub_port_wake()
830 if (!(portsc & (PORT_CSC | PORT_CONNECT))) in xhci_disable_hub_port_wake()
836 rhub->hcd->self.busnum, i + 1, portsc, t2); in xhci_disable_hub_port_wake()
847 u32 portsc; in xhci_pending_portevent() local
861 portsc = readl(ports[port_index]->addr); in xhci_pending_portevent()
862 if (portsc & PORT_CHANGE_MASK || in xhci_pending_portevent()
863 (portsc & PORT_PLS_MASK) == XDEV_RESUME) in xhci_pending_portevent()
869 portsc = readl(ports[port_index]->addr); in xhci_pending_portevent()
[all …]
/linux/drivers/usb/fotg210/
H A Dfotg210-hcd.h611 fotg210_get_speed(struct fotg210_hcd *fotg210, unsigned int portsc) in fotg210_get_speed() argument
619 fotg210_port_speed(struct fotg210_hcd *fotg210, unsigned int portsc) in fotg210_port_speed() argument
621 switch (fotg210_get_speed(fotg210, portsc)) { in fotg210_port_speed()
/linux/drivers/usb/phy/
H A Dphy-mv-usb.h120 u32 portsc[VUSBHS_MAX_PORTS]; /* Port Status/Control x, x = 1..8 */ member
H A Dphy-fsl-usb.h315 u32 portsc; /* Port 1 Status and Control Register */ member
/linux/drivers/usb/chipidea/
H A Dhost.c352 u32 portsc = ehci_readl(ehci, reg); in ci_ehci_bus_suspend()
354 if (portsc & PORT_CONNECT) { in ci_ehci_bus_suspend()
345 u32 portsc = ehci_readl(ehci, reg); ci_ehci_bus_suspend() local
/linux/drivers/usb/gadget/udc/
H A Dmv_udc.h155 u32 portsc[VUSBHS_MAX_PORTS]; /* Port Status/Control x, x = 1..8 */ member
H A Dmv_u3d.h135 u32 portsc; /* port status and control register*/ member