| /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-gadget.c | 134 temp = cdnsp_port_state_to_neutral(readl(&port->regs->portsc)); in cdnsp_disable_port() 135 writel(temp | PORT_PED, &port->regs->portsc); in cdnsp_disable_port() 141 u32 portsc; in cdnsp_clear_port_change_bit() local 146 portsc = readl(&port->regs->portsc); in cdnsp_clear_port_change_bit() 147 writel(cdnsp_port_state_to_neutral(portsc) | in cdnsp_clear_port_change_bit() 148 (portsc & PORT_CHANGE_BITS), &port->regs->portsc); in cdnsp_clear_port_change_bit() 1323 cdnsp_set_link_state(pdev, &pdev->usb3_port.regs->portsc, in cdnsp_run() 1330 cdnsp_set_link_state(pdev, &pdev->usb2_port.regs->portsc, in cdnsp_run() 1336 cdnsp_set_link_state(pdev, &pdev->eusb_port.regs->portsc, in cdnsp_run() 1541 u32 portpm, portsc; in __cdnsp_gadget_wakeup() local [all …]
|
| /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-dbgcap.c | 796 u32 portsc; in dbc_handle_port_status() local 798 portsc = readl(&dbc->regs->portsc); in dbc_handle_port_status() 799 if (portsc & DBC_PORTSC_CONN_CHANGE) in dbc_handle_port_status() 802 if (portsc & DBC_PORTSC_RESET_CHANGE) in dbc_handle_port_status() 805 if (portsc & DBC_PORTSC_LINK_CHANGE) in dbc_handle_port_status() 808 if (portsc & DBC_PORTSC_CONFIG_CHANGE) in dbc_handle_port_status() 812 writel(portsc & ~DBC_PORTSC_RESET_CHANGE, &dbc->regs->portsc); in dbc_handle_port_status() 927 u32 ctrl, portsc; in xhci_dbc_do_handle_events() local 937 portsc = readl(&dbc->regs->portsc); in xhci_dbc_do_handle_events() 940 if (portsc & DBC_PORTSC_CONN_STATUS) { in xhci_dbc_do_handle_events() [all …]
|
| 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 | 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-dbgcap.h | 24 __le32 portsc; /* Port status and control */ member
|
| 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/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/chipidea/ |
| H A D | core.c | 272 u32 portsc, lpm, sts = 0; in hw_phymode_configure() local 276 portsc = PORTSC_PTS(PTS_UTMI); in hw_phymode_configure() 280 portsc = PORTSC_PTS(PTS_UTMI) | PORTSC_PTW; in hw_phymode_configure() 284 portsc = PORTSC_PTS(PTS_ULPI); in hw_phymode_configure() 288 portsc = PORTSC_PTS(PTS_SERIAL); in hw_phymode_configure() 293 portsc = PORTSC_PTS(PTS_HSIC); in hw_phymode_configure() 305 hw_write(ci, OP_PORTSC, PORTSC_PTS(7) | PORTSC_PTW, portsc); in hw_phymode_configure()
|
| /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 | 1147 u32 portsc; in fsl_wakeup() local 1153 portsc = fsl_readl(&dr_regs->portsc1); in fsl_wakeup() 1155 if (!(portsc & PORTSCX_PORT_SUSPEND)) in fsl_wakeup() 1158 portsc |= PORTSCX_PORT_FORCE_RESUME; in fsl_wakeup() 1159 fsl_writel(portsc, &dr_regs->portsc1); in fsl_wakeup()
|
| /linux/drivers/usb/phy/ |
| H A D | phy-mv-usb.h | 120 u32 portsc[VUSBHS_MAX_PORTS]; /* Port Status/Control x, x = 1..8 */ member
|