Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/usb/cdns3/
H A Dcdnsp-debug.h429 switch (portsc & PORT_PLS_MASK) { in cdnsp_portsc_link_state_string()
464 u32 portsc) in cdnsp_decode_portsc() argument
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()
481 if (portsc & PORT_WRC) in cdnsp_decode_portsc()
483 if (portsc & PORT_RC) in cdnsp_decode_portsc()
485 if (portsc & PORT_PLC) in cdnsp_decode_portsc()
487 if (portsc & PORT_CEC) in cdnsp_decode_portsc()
490 if (portsc & PORT_WKCONN_E) in cdnsp_decode_portsc()
[all …]
H A Dcdnsp-ring.c793 u32 portsc, cmd_regs; in cdnsp_handle_port_status() local
813 portsc = readl(&port_regs->portsc); in cdnsp_handle_port_status()
815 (portsc & PORT_CHANGE_BITS), &port_regs->portsc); in cdnsp_handle_port_status()
823 if ((portsc & PORT_PLC)) { in cdnsp_handle_port_status()
830 if (DEV_SUPERSPEED_ANY(portsc)) { in cdnsp_handle_port_status()
848 !DEV_SUPERSPEED_ANY(portsc)) in cdnsp_handle_port_status()
857 if (portsc & PORT_CSC) { in cdnsp_handle_port_status()
863 if (portsc & PORT_CONNECT) { in cdnsp_handle_port_status()
872 if ((portsc & (PORT_RC | PORT_WRC)) && (portsc & PORT_CONNECT)) { in cdnsp_handle_port_status()
879 if (portsc & PORT_CEC) in cdnsp_handle_port_status()
[all …]
H A Dcdnsp-trace.h772 TP_PROTO(u32 portnum, u32 portsc),
773 TP_ARGS(portnum, portsc),
776 __field(u32, portsc)
780 __entry->portsc = portsc;
785 __entry->portsc)
790 TP_PROTO(u32 portnum, u32 portsc),
791 TP_ARGS(portnum, portsc)
795 TP_PROTO(u32 portnum, u32 portsc),
796 TP_ARGS(portnum, portsc)
H A Dcdnsp-gadget.c136 u32 portsc = readl(port_regs); in cdnsp_clear_port_change_bit() local
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()
1301 cdnsp_disable_port(pdev, &pdev->usb3_port.regs->portsc); in cdnsp_run()
1304 cdnsp_set_link_state(pdev, &pdev->usb2_port.regs->portsc, in cdnsp_run()
1455 cdnsp_disable_port(pdev, &pdev->usb2_port.regs->portsc); in cdnsp_stop()
1456 cdnsp_disable_port(pdev, &pdev->usb3_port.regs->portsc); in cdnsp_stop()
1507 u32 portpm, portsc; in __cdnsp_gadget_wakeup() local
1510 portsc = readl(&port_regs->portsc) & PORT_PLS_MASK; in __cdnsp_gadget_wakeup()
1520 if (portsc == XDEV_U3 && !pdev->may_wakeup) in __cdnsp_gadget_wakeup()
[all …]
/linux-6.15/drivers/usb/early/
H A Dehci-dbgp.c495 u32 ctrl, portsc, cmd; in _dbgp_external_startup() local
519 portsc |= PORT_TEST_PKT; in _dbgp_external_startup()
547 portsc &= ~PORT_PE; in _dbgp_external_startup()
610 u32 portsc; in ehci_reset_port() local
617 portsc &= ~PORT_PE; in ehci_reset_port()
618 portsc |= PORT_RESET; in ehci_reset_port()
626 if (!(portsc & PORT_RESET)) in ehci_reset_port()
629 if (portsc & PORT_RESET) { in ehci_reset_port()
641 if (!(portsc & PORT_CONNECT)) in ehci_reset_port()
645 if ((portsc & PORT_CSC)) in ehci_reset_port()
[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-6.15/drivers/usb/host/
H A Dxhci-hub.c285 u32 portsc; in xhci_usb2_hub_descriptor() local
339 u32 portsc; in xhci_usb3_hub_descriptor() local
553 u32 portsc; in xhci_disable_port() local
570 portsc = xhci_port_state_to_neutral(portsc); in xhci_disable_port()
803 u32 portsc; in xhci_set_link_state() local
813 portsc, temp); in xhci_set_link_state()
952 if ((portsc & PORT_RESET) || !(portsc & PORT_PE)) { in xhci_handle_usb2_port_link_resume()
1852 u32 portsc; in xhci_port_missing_cas_quirk() local
1866 portsc |= PORT_WR; in xhci_port_missing_cas_quirk()
1881 u32 portsc; in xhci_bus_resume() local
[all …]
H A Dxhci-dbgcap.c694 u32 portsc; in dbc_handle_port_status() local
696 portsc = readl(&dbc->regs->portsc); in dbc_handle_port_status()
697 if (portsc & DBC_PORTSC_CONN_CHANGE) in dbc_handle_port_status()
703 if (portsc & DBC_PORTSC_LINK_CHANGE) in dbc_handle_port_status()
710 writel(portsc & ~DBC_PORTSC_RESET_CHANGE, &dbc->regs->portsc); in dbc_handle_port_status()
827 u32 ctrl, portsc; in xhci_dbc_do_handle_events() local
837 portsc = readl(&dbc->regs->portsc); in xhci_dbc_do_handle_events()
849 portsc = readl(&dbc->regs->portsc); in xhci_dbc_do_handle_events()
850 writel(portsc, &dbc->regs->portsc); in xhci_dbc_do_handle_events()
857 portsc = readl(&dbc->regs->portsc); in xhci_dbc_do_handle_events()
[all …]
H A Dxhci-debugfs.c329 u32 portsc; in xhci_portsc_show() local
332 portsc = readl(port->addr); 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 = readl(port->addr); 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 writel(portsc, port->addr); in xhci_port_write()
H A Dxhci-trace.h544 TP_PROTO(struct xhci_port *port, u32 portsc),
545 TP_ARGS(port, portsc),
549 __field(u32, portsc)
554 __entry->portsc = portsc;
559 xhci_decode_portsc(__get_buf(XHCI_MSG_MAX), __entry->portsc)
564 TP_PROTO(struct xhci_port *port, u32 portsc),
565 TP_ARGS(port, portsc)
569 TP_PROTO(struct xhci_port *port, u32 portsc),
570 TP_ARGS(port, portsc)
574 TP_PROTO(struct xhci_port *port, u32 portsc),
[all …]
H A Dxhci.h2374 if (portsc == ~(u32)0) in xhci_decode_portsc()
2384 if (portsc & PORT_OC) in xhci_decode_portsc()
2386 if (portsc & PORT_RESET) in xhci_decode_portsc()
2390 if (portsc & PORT_CSC) in xhci_decode_portsc()
2392 if (portsc & PORT_PEC) in xhci_decode_portsc()
2394 if (portsc & PORT_WRC) in xhci_decode_portsc()
2396 if (portsc & PORT_OCC) in xhci_decode_portsc()
2398 if (portsc & PORT_RC) in xhci_decode_portsc()
2400 if (portsc & PORT_PLC) in xhci_decode_portsc()
2402 if (portsc & PORT_CEC) in xhci_decode_portsc()
[all …]
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 Dehci.h665 ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc) in ehci_port_speed() argument
668 switch ((portsc >> (ehci->has_hostpc ? 25 : 26)) & 3) { in ehci_port_speed()
685 #define ehci_port_speed(ehci, portsc) USB_PORT_STAT_HIGH_SPEED argument
722 #define ehci_has_ci_pec_bug(e, portsc) \ argument
724 && !(portsc & PORT_PEC) && !(portsc & PORT_PE))
H A Dxhci-tegra.c2047 if (DEV_LOWSPEED(portsc)) in tegra_xhci_portsc_to_speed()
2050 if (DEV_HIGHSPEED(portsc)) in tegra_xhci_portsc_to_speed()
2053 if (DEV_FULLSPEED(portsc)) in tegra_xhci_portsc_to_speed()
2056 if (DEV_SUPERSPEED_ANY(portsc)) in tegra_xhci_portsc_to_speed()
2071 u32 portsc; in tegra_xhci_enable_phy_sleepwalk_wake() local
2176 u32 portsc; in tegra_xusb_enter_elpg() local
2195 if (((portsc & PORT_PLS_MASK) == XDEV_U3) || ((portsc & DEV_SPEED_MASK) == XDEV_FS)) in tegra_xusb_enter_elpg()
2703 u32 portsc; in tegra_xhci_hub_control() local
2715 portsc = readl(ports[i]->addr); in tegra_xhci_hub_control()
2734 if (portsc & PORT_CONNECT) in tegra_xhci_hub_control()
[all …]
H A Dxhci-pci.c852 u32 portsc; in xhci_pci_poweroff_late() local
869 portsc = readl(port->addr); in xhci_pci_poweroff_late()
871 if ((portsc & PORT_PLS_MASK) != XDEV_U3) in xhci_pci_poweroff_late()
889 portsc = xhci_port_state_to_neutral(portsc); in xhci_pci_poweroff_late()
890 writel(portsc | PORT_PE, port->addr); in xhci_pci_poweroff_late()
H A Dxhci-ring.c1983 u32 portsc, cmd_reg; in handle_port_status() local
2022 portsc = readl(port->addr); in handle_port_status()
2027 trace_xhci_handle_port_status(port, portsc); in handle_port_status()
2040 if ((portsc & PORT_PLC) && (portsc & PORT_PLS_MASK) == XDEV_RESUME) { in handle_port_status()
2049 if (DEV_SUPERSPEED_ANY(portsc)) { in handle_port_status()
2081 if ((portsc & PORT_PLC) && in handle_port_status()
2082 DEV_SUPERSPEED_ANY(portsc) && in handle_port_status()
2083 ((portsc & PORT_PLS_MASK) == XDEV_U0 || in handle_port_status()
2084 (portsc & PORT_PLS_MASK) == XDEV_U1 || in handle_port_status()
2085 (portsc & PORT_PLS_MASK) == XDEV_U2)) { in handle_port_status()
[all …]
/linux-6.15/drivers/usb/gadget/udc/
H A Dmv_udc_core.c1006 u32 tmp, portsc; in udc_reset() local
1043 portsc = readl(&udc->op_regs->portsc[0]); in udc_reset()
1052 writel(portsc, &udc->op_regs->portsc[0]); in udc_reset()
1131 u32 portsc; in mv_udc_wakeup() local
1137 portsc = readl(&udc->op_regs->portsc); in mv_udc_wakeup()
1143 writel(portsc, &udc->op_regs->portsc[0]); in mv_udc_wakeup()
1415 u32 portsc; in mv_set_ptc() local
1417 portsc = readl(&udc->op_regs->portsc[0]); in mv_set_ptc()
1419 writel(portsc, &udc->op_regs->portsc[0]); in mv_set_ptc()
1951 u32 portsc; in irq_process_port_change() local
[all …]
H A Dtegra-xudc.c2984 u32 portsc, porthalt; in __tegra_xudc_handle_port_status() local
2994 portsc = xudc_readl(xudc, PORTSC); in __tegra_xudc_handle_port_status()
2995 if ((portsc & PORTSC_PRC) && (portsc & PORTSC_PR)) { in __tegra_xudc_handle_port_status()
3006 if ((portsc & PORTSC_PRC) && !(portsc & PORTSC_PR)) { in __tegra_xudc_handle_port_status()
3014 portsc = xudc_readl(xudc, PORTSC); in __tegra_xudc_handle_port_status()
3015 if (portsc & PORTSC_WRC) { in __tegra_xudc_handle_port_status()
3022 portsc = xudc_readl(xudc, PORTSC); in __tegra_xudc_handle_port_status()
3023 if (portsc & PORTSC_CSC) { in __tegra_xudc_handle_port_status()
3027 if (portsc & PORTSC_CCS) in __tegra_xudc_handle_port_status()
3039 if (portsc & PORTSC_PLC) { in __tegra_xudc_handle_port_status()
[all …]
/linux-6.15/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-6.15/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-6.15/drivers/usb/chipidea/
H A Dcore.c271 u32 portsc, lpm, sts = 0; in hw_phymode_configure() local
275 portsc = PORTSC_PTS(PTS_UTMI); in hw_phymode_configure()
279 portsc = PORTSC_PTS(PTS_UTMI) | PORTSC_PTW; in hw_phymode_configure()
283 portsc = PORTSC_PTS(PTS_ULPI); in hw_phymode_configure()
287 portsc = PORTSC_PTS(PTS_SERIAL); in hw_phymode_configure()
292 portsc = PORTSC_PTS(PTS_HSIC); in hw_phymode_configure()
304 hw_write(ci, OP_PORTSC, PORTSC_PTS(7) | PORTSC_PTW, portsc); in hw_phymode_configure()
H A Dhost.c352 u32 portsc = ehci_readl(ehci, reg); in ci_ehci_bus_suspend() local
354 if (portsc & PORT_CONNECT) { in ci_ehci_bus_suspend()

12