Home
last modified time | relevance | path

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

/linux/drivers/usb/cdns3/
H A Dcdnsp-debug.h428 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 Dcdnsp-ring.c263 cdnsp_set_link_state(pdev, &pdev->active_port->regs->portsc, XDEV_U0); in cdnsp_force_l0_go()
798 u32 portsc, cmd_regs; in cdnsp_handle_port_status()
818 portsc = readl(&port_regs->portsc); in cdnsp_handle_port_status()
819 writel(cdnsp_port_state_to_neutral(portsc) | in cdnsp_handle_port_status()
820 (portsc & PORT_CHANGE_BITS), &port_regs->portsc); in cdnsp_handle_port_status()
822 trace_cdnsp_handle_port_status(pdev->active_port->port_num, portsc); in cdnsp_handle_port_status()
824 pdev->gadget.speed = cdnsp_port_speed(portsc); in cdnsp_handle_port_status()
825 link_state = portsc in cdnsp_handle_port_status()
795 u32 portsc, cmd_regs; cdnsp_handle_port_status() local
[all...]
H A Dcdnsp-gadget.c134 temp = cdnsp_port_state_to_neutral(readl(&port->regs->portsc)); in cdnsp_clear_port_change_bit()
135 writel(temp | PORT_PED, &port->regs->portsc); in cdnsp_clear_port_change_bit()
141 u32 portsc; in cdnsp_clear_port_change_bit()
146 portsc = readl(&port->regs->portsc); in cdnsp_set_apb_timeout_value()
147 writel(cdnsp_port_state_to_neutral(portsc) | in cdnsp_set_apb_timeout_value()
148 (portsc & PORT_CHANGE_BITS), &port->regs->portsc); in cdnsp_set_apb_timeout_value()
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()
137 u32 portsc = readl(port_regs); cdnsp_clear_port_change_bit() local
1524 u32 portpm, portsc; __cdnsp_gadget_wakeup() local
[all...]
H A Dcdnsp-gadget.h138 * @portsc: PORTSC - Port Status and Control Register.
143 __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()
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 Dxhci-dbc.h28 __le32 portsc; /* Port status and control */ member
/linux/drivers/usb/host/
H A Dxhci-trace.h534 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 Dxhci-dbgcap.c762 u32 portsc; in dbc_handle_port_status()
764 portsc = readl(&dbc->regs->portsc); in dbc_handle_port_status()
765 if (portsc & DBC_PORTSC_CONN_CHANGE) in dbc_handle_port_status()
768 if (portsc & DBC_PORTSC_RESET_CHANGE) in dbc_handle_port_status()
771 if (portsc & DBC_PORTSC_LINK_CHANGE) in dbc_handle_xfer_event()
774 if (portsc & DBC_PORTSC_CONFIG_CHANGE) in dbc_handle_xfer_event()
778 writel(portsc & ~DBC_PORTSC_RESET_CHANGE, &dbc->regs->portsc); in dbc_handle_xfer_event()
893 u32 ctrl, portsc; in xhci_dbc_do_handle_events()
752 u32 portsc; dbc_handle_port_status() local
885 u32 ctrl, portsc; xhci_dbc_do_handle_events() local
[all...]
H A Dxhci-debugfs.c329 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 Dehci-fsl.c195 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 Dxhci-tegra.c2108 static enum usb_device_speed tegra_xhci_portsc_to_speed(struct tegra_xusb *tegra, u32 portsc) in tegra_xhci_portsc_to_speed()
2110 if (DEV_LOWSPEED(portsc))
2113 if (DEV_HIGHSPEED(portsc)) in tegra_xhci_enable_phy_sleepwalk_wake()
2116 if (DEV_FULLSPEED(portsc)) in tegra_xhci_enable_phy_sleepwalk_wake()
2119 if (DEV_SUPERSPEED_ANY(portsc)) in tegra_xhci_enable_phy_sleepwalk_wake()
2134 u32 portsc; in tegra_xhci_enable_phy_sleepwalk_wake()
2161 portsc = xhci_portsc_readl(rhub->ports[index]); in tegra_xhci_disable_phy_wake()
2162 speed = tegra_xhci_portsc_to_speed(tegra, portsc); in tegra_xhci_disable_phy_wake()
2239 u32 portsc; in tegra_xusb_enter_elpg()
2256 portsc in tegra_xusb_enter_elpg()
2094 tegra_xhci_portsc_to_speed(struct tegra_xusb * tegra,u32 portsc) tegra_xhci_portsc_to_speed() argument
2120 u32 portsc; tegra_xhci_enable_phy_sleepwalk_wake() local
2225 u32 portsc; tegra_xusb_enter_elpg() local
2776 u32 portsc; tegra_xhci_hub_control() local
[all...]
H A Dxhci-pci.c895 u32 portsc; in xhci_pci_poweroff_late()
912 portsc = xhci_portsc_readl(port); in xhci_pci_poweroff_late()
914 if ((portsc & PORT_PLS_MASK) != XDEV_U3) in xhci_pci_poweroff_late()
932 portsc = xhci_port_state_to_neutral(portsc); in xhci_pci_shutdown()
933 xhci_portsc_writel(port, portsc | PORT_PE); in xhci_pci_shutdown()
884 u32 portsc; xhci_pci_poweroff_late() local
H A Dxhci-ring.c1997 u32 portsc, cmd_reg; in handle_port_status() local
2037 portsc = xhci_portsc_readl(port); in handle_port_status()
2039 xhci_dbg(xhci, "Port change event, %d-%d, id %d, portsc: 0x%x\n", 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 in handle_port_status()
[all...]
H A Dxhci.c47 writel(val, &port->port_reg->portsc); in xhci_portsc_writel()
53 return readl(&port->port_reg->portsc); in xhci_portsc_readl()
883 u32 t1, t2, portsc;
889 portsc = xhci_portsc_readl(rhub->ports[i]); in xhci_disable_hub_port_wake()
890 t1 = xhci_port_state_to_neutral(portsc); in xhci_disable_hub_port_wake() local
898 if (!(portsc & (PORT_CSC | PORT_CONNECT))) in xhci_disable_hub_port_wake()
903 xhci_dbg(xhci, "config port %d-%d wake bits, portsc: 0x%x, write: 0x%x\n", in xhci_disable_hub_port_wake()
904 rhub->hcd->self.busnum, i + 1, portsc, t2); in xhci_disable_hub_port_wake()
915 u32 portsc; in xhci_disable_hub_port_wake()
929 portsc in xhci_pending_portevent()
922 u32 portsc; xhci_pending_portevent() local
[all...]
H A Doxu210hp-hcd.c3526 unsigned int portsc) in oxu_port_speed() argument
3528 switch ((portsc >> 26) & 3) { in oxu_port_speed()
/linux/drivers/usb/phy/
H A Dphy-fsl-usb.c159 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 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/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/gadget/udc/
H A Dtegra-xudc.c2982 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 Dfsl_udc_core.c1155 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()
/linux/drivers/usb/chipidea/
H A Dcore.c272 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()