| /linux/drivers/usb/cdns3/ |
| H A D | cdnsp-debug.h | 428 static inline const char *cdnsp_portsc_link_state_string(u32 portsc) in cdnsp_portsc_link_state_string() argument 430 switch (portsc & PORT_PLS_MASK) { in cdnsp_portsc_link_state_string() 465 u32 portsc) in cdnsp_decode_portsc() argument 470 portsc & PORT_POWER ? "Powered" : "Powered-off", in cdnsp_decode_portsc() 471 portsc & PORT_CONNECT ? "Connected" : "Not-connected", in cdnsp_decode_portsc() 472 portsc & PORT_PED ? "Enabled" : "Disabled", in cdnsp_decode_portsc() 473 cdnsp_portsc_link_state_string(portsc), in cdnsp_decode_portsc() 474 DEV_PORT_SPEED(portsc)); in cdnsp_decode_portsc() 476 if (portsc & PORT_RESET) in cdnsp_decode_portsc() 480 if (portsc & PORT_CSC) in cdnsp_decode_portsc() [all …]
|
| H A D | cdnsp-ring.c | 263 cdnsp_set_link_state(pdev, &pdev->active_port->regs->portsc, XDEV_U0); in cdnsp_force_l0_go() 795 u32 portsc, cmd_regs; in cdnsp_handle_port_status() local 815 portsc = readl(&port_regs->portsc); in cdnsp_handle_port_status() 816 writel(cdnsp_port_state_to_neutral(portsc) | in cdnsp_handle_port_status() 817 (portsc & PORT_CHANGE_BITS), &port_regs->portsc); in cdnsp_handle_port_status() 819 trace_cdnsp_handle_port_status(pdev->active_port->port_num, portsc); in cdnsp_handle_port_status() 821 pdev->gadget.speed = cdnsp_port_speed(portsc); in cdnsp_handle_port_status() 822 link_state = portsc & PORT_PLS_MASK; in cdnsp_handle_port_status() 825 if ((portsc & PORT_PLC)) { in cdnsp_handle_port_status() 832 if (DEV_SUPERSPEED_ANY(portsc)) { in cdnsp_handle_port_status() [all …]
|
| H A D | cdnsp-gadget.c | 137 u32 portsc = readl(port_regs); in cdnsp_clear_port_change_bit() local 139 writel(cdnsp_port_state_to_neutral(portsc) | in cdnsp_clear_port_change_bit() 140 (portsc & PORT_CHANGE_BITS), port_regs); in cdnsp_clear_port_change_bit() 1315 cdnsp_set_link_state(pdev, &pdev->usb3_port.regs->portsc, in cdnsp_run() 1318 cdnsp_disable_port(pdev, &pdev->usb3_port.regs->portsc); in cdnsp_run() 1321 cdnsp_set_link_state(pdev, &pdev->usb2_port.regs->portsc, in cdnsp_run() 1472 cdnsp_disable_port(pdev, &pdev->usb2_port.regs->portsc); in cdnsp_stop() 1473 cdnsp_disable_port(pdev, &pdev->usb3_port.regs->portsc); in cdnsp_stop() 1482 cdnsp_clear_port_change_bit(pdev, &pdev->usb2_port.regs->portsc); in cdnsp_stop() 1483 cdnsp_clear_port_change_bit(pdev, &pdev->usb3_port.regs->portsc); in cdnsp_stop() [all …]
|
| H A D | cdnsp-gadget.h | 143 __le32 portsc; member
|
| /linux/drivers/usb/early/ |
| H A D | ehci-dbgp.c | 495 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 D | xhci-dbc.c | 351 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() 697 port_reg = readl(&xdbc.xdbc_reg->portsc); in xdbc_handle_port_status() 718 writel(port_reg, &xdbc.xdbc_reg->portsc); in xdbc_handle_port_status()
|
| H A D | xhci-dbc.h | 28 __le32 portsc; /* Port status and control */ member
|
| /linux/drivers/usb/host/ |
| H A D | xhci-trace.h | 534 TP_PROTO(struct xhci_port *port, u32 portsc), 535 TP_ARGS(port, portsc), 539 __field(u32, portsc) 544 __entry->portsc = portsc; 549 xhci_decode_portsc(__get_buf(XHCI_MSG_MAX), __entry->portsc) 554 TP_PROTO(struct xhci_port *port, u32 portsc), 555 TP_ARGS(port, portsc) 559 TP_PROTO(struct xhci_port *port, u32 portsc), 560 TP_ARGS(port, portsc) 564 TP_PROTO(struct xhci_port *port, u32 portsc), [all …]
|
| H A D | xhci-dbgcap.c | 752 u32 portsc; in dbc_handle_port_status() local 754 portsc = readl(&dbc->regs->portsc); in dbc_handle_port_status() 755 if (portsc & DBC_PORTSC_CONN_CHANGE) in dbc_handle_port_status() 758 if (portsc & DBC_PORTSC_RESET_CHANGE) in dbc_handle_port_status() 761 if (portsc & DBC_PORTSC_LINK_CHANGE) in dbc_handle_port_status() 764 if (portsc & DBC_PORTSC_CONFIG_CHANGE) in dbc_handle_port_status() 768 writel(portsc & ~DBC_PORTSC_RESET_CHANGE, &dbc->regs->portsc); in dbc_handle_port_status() 885 u32 ctrl, portsc; in xhci_dbc_do_handle_events() local 895 portsc = readl(&dbc->regs->portsc); in xhci_dbc_do_handle_events() 896 if (portsc & DBC_PORTSC_CONN_STATUS) { in xhci_dbc_do_handle_events() [all …]
|
| H A D | xhci-debugfs.c | 329 u32 portsc; in xhci_portsc_show() local 332 portsc = xhci_portsc_readl(port); in xhci_portsc_show() 333 seq_printf(s, "%s\n", xhci_decode_portsc(str, portsc)); in xhci_portsc_show() 350 u32 portsc; in xhci_port_write() local 362 portsc = xhci_portsc_readl(port); in xhci_port_write() 363 if ((portsc & PORT_PLS_MASK) != XDEV_RXDETECT) { in xhci_port_write() 367 portsc = xhci_port_state_to_neutral(portsc); in xhci_port_write() 368 portsc &= ~PORT_PLS_MASK; in xhci_port_write() 369 portsc |= PORT_LINK_STROBE | XDEV_COMP_MODE; in xhci_port_write() 370 xhci_portsc_writel(port, portsc); in xhci_port_write()
|
| H A D | ehci-fsl.c | 195 u32 portsc, tmp; in ehci_fsl_setup_phy() local 206 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy() 207 portsc &= ~(PORT_PTS_MSK | PORT_PTS_PTW); in ehci_fsl_setup_phy() 224 portsc |= PORT_PTS_ULPI; in ehci_fsl_setup_phy() 227 portsc |= PORT_PTS_SERIAL; in ehci_fsl_setup_phy() 230 portsc |= PORT_PTS_PTW; in ehci_fsl_setup_phy() 270 portsc |= PORT_PTS_UTMI; in ehci_fsl_setup_phy() 283 ehci_writel(ehci, portsc, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy()
|
| H A D | xhci-pci.c | 884 u32 portsc; in xhci_pci_poweroff_late() local 901 portsc = xhci_portsc_readl(port); in xhci_pci_poweroff_late() 903 if ((portsc & PORT_PLS_MASK) != XDEV_U3) in xhci_pci_poweroff_late() 921 portsc = xhci_port_state_to_neutral(portsc); in xhci_pci_poweroff_late() 922 xhci_portsc_writel(port, portsc | PORT_PE); in xhci_pci_poweroff_late()
|
| H A D | xhci-ring.c | 1997 u32 portsc, cmd_reg; in handle_port_status() local 2037 portsc = xhci_portsc_readl(port); in handle_port_status() 2040 hcd->self.busnum, hcd_portnum + 1, port_id, portsc); in handle_port_status() 2042 trace_xhci_handle_port_status(port, portsc); in handle_port_status() 2049 if (vdev && (portsc & PORT_PLS_MASK) == XDEV_INACTIVE) { in handle_port_status() 2050 if (!(portsc & PORT_RESET)) in handle_port_status() 2052 } else if (vdev && portsc & PORT_RC) { in handle_port_status() 2056 if ((portsc & PORT_PLC) && (portsc & PORT_PLS_MASK) == XDEV_RESUME) { in handle_port_status() 2065 if (DEV_SUPERSPEED_ANY(portsc)) { in handle_port_status() 2097 if ((portsc & PORT_PLC) && in handle_port_status() [all …]
|
| H A D | xhci.c | 47 writel(val, &port->port_reg->portsc); in xhci_portsc_writel() 53 return readl(&port->port_reg->portsc); in xhci_portsc_readl() 890 u32 t1, t2, portsc; in xhci_disable_hub_port_wake() local 896 portsc = xhci_portsc_readl(rhub->ports[i]); in xhci_disable_hub_port_wake() 897 t1 = xhci_port_state_to_neutral(portsc); in xhci_disable_hub_port_wake() 905 if (!(portsc & (PORT_CSC | PORT_CONNECT))) in xhci_disable_hub_port_wake() 911 rhub->hcd->self.busnum, i + 1, portsc, t2); in xhci_disable_hub_port_wake() 922 u32 portsc; in xhci_pending_portevent() local 936 portsc = xhci_portsc_readl(ports[port_index]); in xhci_pending_portevent() 937 if (portsc & PORT_CHANGE_MASK || in xhci_pending_portevent() [all …]
|
| H A D | oxu210hp-hcd.c | 3526 unsigned int portsc) in oxu_port_speed() argument 3528 switch ((portsc >> 26) & 3) { in oxu_port_speed()
|
| /linux/drivers/usb/phy/ |
| H A D | phy-fsl-usb.c | 159 tmp = fsl_readl(&usb_dr_regs->portsc) & ~PORTSC_W1C_BITS; in fsl_otg_drv_vbus() 160 fsl_writel(tmp | PORTSC_PORT_POWER, &usb_dr_regs->portsc); in fsl_otg_drv_vbus() 162 tmp = fsl_readl(&usb_dr_regs->portsc) & in fsl_otg_drv_vbus() 164 fsl_writel(tmp, &usb_dr_regs->portsc); in fsl_otg_drv_vbus() 195 tmp = fsl_readl(&fsl_otg_dev->dr_mem_map->portsc) & ~PORTSC_W1C_BITS; in fsl_otg_loc_sof() 201 fsl_writel(tmp, &fsl_otg_dev->dr_mem_map->portsc); in fsl_otg_loc_sof() 909 temp = fsl_readl(&p_otg->dr_mem_map->portsc); in usb_otg_start() 924 fsl_writel(temp, &p_otg->dr_mem_map->portsc); in usb_otg_start()
|
| H A D | phy-mv-usb.h | 120 u32 portsc[VUSBHS_MAX_PORTS]; /* Port Status/Control x, x = 1..8 */ member
|
| H A D | phy-fsl-usb.h | 315 u32 portsc; /* Port 1 Status and Control Register */ member
|
| /linux/drivers/usb/fotg210/ |
| H A D | fotg210-hcd.h | 611 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/gadget/udc/ |
| H A D | tegra-xudc.c | 2982 u32 portsc, porthalt; in __tegra_xudc_handle_port_status() local 2992 portsc = xudc_readl(xudc, PORTSC); in __tegra_xudc_handle_port_status() 2993 if ((portsc & PORTSC_PRC) && (portsc & PORTSC_PR)) { in __tegra_xudc_handle_port_status() 2994 dev_dbg(xudc->dev, "PRC, PR, PORTSC = %#x\n", portsc); in __tegra_xudc_handle_port_status() 3004 if ((portsc & PORTSC_PRC) && !(portsc & PORTSC_PR)) { in __tegra_xudc_handle_port_status() 3005 dev_dbg(xudc->dev, "PRC, Not PR, PORTSC = %#x\n", portsc); in __tegra_xudc_handle_port_status() 3012 portsc = xudc_readl(xudc, PORTSC); in __tegra_xudc_handle_port_status() 3013 if (portsc & PORTSC_WRC) { in __tegra_xudc_handle_port_status() 3014 dev_dbg(xudc->dev, "WRC, PORTSC = %#x\n", portsc); in __tegra_xudc_handle_port_status() 3020 portsc = xudc_readl(xudc, PORTSC); in __tegra_xudc_handle_port_status() [all …]
|
| H A D | fsl_udc_core.c | 1155 u32 portsc; in fsl_wakeup() local 1161 portsc = fsl_readl(&dr_regs->portsc1); in fsl_wakeup() 1163 if (!(portsc & PORTSCX_PORT_SUSPEND)) in fsl_wakeup() 1166 portsc |= PORTSCX_PORT_FORCE_RESUME; in fsl_wakeup() 1167 fsl_writel(portsc, &dr_regs->portsc1); in fsl_wakeup()
|