/kernel/linux/linux-5.10/drivers/usb/early/ |
H A D | ehci-dbgp.c | 87 dbgp_printk(" ehci portsc : %08x\n", in dbgp_ehci_status() 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, in _dbgp_external_startup() 610 u32 portsc; ehci_reset_port() local 753 u32 ctrl, portsc, hcs_params; ehci_setup() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/early/ |
H A D | ehci-dbgp.c | 87 dbgp_printk(" ehci portsc : %08x\n", in dbgp_ehci_status() 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, in _dbgp_external_startup() 610 u32 portsc; ehci_reset_port() local 753 u32 ctrl, portsc, hcs_params; ehci_setup() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/cdns3/ |
H A D | cdnsp-debug.h | 430 static inline const char *cdnsp_portsc_link_state_string(u32 portsc) in cdnsp_portsc_link_state_string() argument 432 switch (portsc & PORT_PLS_MASK) { in cdnsp_portsc_link_state_string() 467 u32 portsc) in cdnsp_decode_portsc() 472 portsc & PORT_POWER ? "Powered" : "Powered-off", in cdnsp_decode_portsc() 473 portsc & PORT_CONNECT ? "Connected" : "Not-connected", in cdnsp_decode_portsc() 474 portsc & PORT_PED ? "Enabled" : "Disabled", in cdnsp_decode_portsc() 475 cdnsp_portsc_link_state_string(portsc), in cdnsp_decode_portsc() 476 DEV_PORT_SPEED(portsc)); in cdnsp_decode_portsc() 478 if (portsc & PORT_RESET) in cdnsp_decode_portsc() 482 if (portsc in cdnsp_decode_portsc() 466 cdnsp_decode_portsc(char *str, size_t size, u32 portsc) cdnsp_decode_portsc() argument [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() 790 u32 portsc, cmd_regs; in cdnsp_handle_port_status() local 810 portsc = readl(&port_regs->portsc); in cdnsp_handle_port_status() 811 writel(cdnsp_port_state_to_neutral(portsc) | in cdnsp_handle_port_status() 812 (portsc & PORT_CHANGE_BITS), &port_regs->portsc); in cdnsp_handle_port_status() 814 trace_cdnsp_handle_port_status(pdev->active_port->port_num, portsc); in cdnsp_handle_port_status() 816 pdev->gadget.speed = cdnsp_port_speed(portsc); in cdnsp_handle_port_status() 817 link_state = portsc in cdnsp_handle_port_status() [all...] |
H A D | cdnsp-trace.h | 772 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) [all...] |
H A D | cdnsp-gadget.c | 135 u32 portsc = readl(port_regs); in cdnsp_clear_port_change_bit() local 137 writel(cdnsp_port_state_to_neutral(portsc) | in cdnsp_clear_port_change_bit() 138 (portsc & PORT_CHANGE_BITS), port_regs); in cdnsp_clear_port_change_bit() 1279 cdnsp_set_link_state(pdev, &pdev->usb3_port.regs->portsc, in cdnsp_run() 1282 cdnsp_disable_port(pdev, &pdev->usb3_port.regs->portsc); in cdnsp_run() 1285 cdnsp_set_link_state(pdev, &pdev->usb2_port.regs->portsc, in cdnsp_run() 1438 cdnsp_disable_port(pdev, &pdev->usb2_port.regs->portsc); in cdnsp_stop() 1439 cdnsp_disable_port(pdev, &pdev->usb3_port.regs->portsc); in cdnsp_stop() 1448 cdnsp_clear_port_change_bit(pdev, &pdev->usb2_port.regs->portsc); in cdnsp_stop() 1449 cdnsp_clear_port_change_bit(pdev, &pdev->usb3_port.regs->portsc); in cdnsp_stop() 1490 u32 portpm, portsc; __cdnsp_gadget_wakeup() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | xhci-hub.c | 284 u32 portsc; in xhci_usb2_hub_descriptor() local 301 portsc = readl(rhub->ports[i]->addr); in xhci_usb2_hub_descriptor() 305 if (portsc & PORT_DEV_REMOVE) in xhci_usb2_hub_descriptor() 338 u32 portsc; in xhci_usb3_hub_descriptor() local 358 portsc = readl(rhub->ports[i]->addr); in xhci_usb3_hub_descriptor() 359 if (portsc & PORT_DEV_REMOVE) in xhci_usb3_hub_descriptor() 430 * xhci_port_state_to_neutral() - Clean up read portsc value back into writeable 431 * @state: u32 port value read from portsc register to be cleanup up 440 * Return: u32 value that can be written back to portsc register without 584 u32 portsc; in xhci_disable_port() local 791 u32 portsc; xhci_set_link_state() local 926 xhci_handle_usb2_port_link_resume(struct xhci_port *port, u32 portsc, unsigned long *flags) xhci_handle_usb2_port_link_resume() argument 1033 xhci_get_usb3_port_status(struct xhci_port *port, u32 *status, u32 portsc) xhci_get_usb3_port_status() argument 1084 xhci_get_usb2_port_status(struct xhci_port *port, u32 *status, u32 portsc, unsigned long *flags) xhci_get_usb2_port_status() argument 1853 u32 portsc; xhci_port_missing_cas_quirk() local 1883 u32 temp, portsc; xhci_bus_resume() local [all...] |
H A D | xhci-dbgcap.c | 663 u32 portsc; in dbc_handle_port_status() local 665 portsc = readl(&dbc->regs->portsc); in dbc_handle_port_status() 666 if (portsc & DBC_PORTSC_CONN_CHANGE) in dbc_handle_port_status() 669 if (portsc & DBC_PORTSC_RESET_CHANGE) in dbc_handle_port_status() 672 if (portsc & DBC_PORTSC_LINK_CHANGE) in dbc_handle_port_status() 675 if (portsc & DBC_PORTSC_CONFIG_CHANGE) in dbc_handle_port_status() 679 writel(portsc & ~DBC_PORTSC_RESET_CHANGE, &dbc->regs->portsc); in dbc_handle_port_status() 755 u32 ctrl, portsc; in xhci_dbc_do_handle_events() local [all...] |
H A D | xhci-trace.h | 512 TP_PROTO(u32 portnum, u32 portsc), 513 TP_ARGS(portnum, portsc), 516 __field(u32, portsc) 520 __entry->portsc = portsc; 524 xhci_decode_portsc(__get_buf(XHCI_MSG_MAX), __entry->portsc) 529 TP_PROTO(u32 portnum, u32 portsc), 530 TP_ARGS(portnum, portsc) 534 TP_PROTO(u32 portnum, u32 portsc), 535 TP_ARGS(portnum, portsc) [all...] |
H A D | xhci-debugfs.c | 349 u32 portsc; in xhci_portsc_show() local 352 portsc = readl(port->addr); in xhci_portsc_show() 353 seq_printf(s, "%s\n", xhci_decode_portsc(str, portsc)); in xhci_portsc_show() 370 u32 portsc; in xhci_port_write() local 382 portsc = readl(port->addr); in xhci_port_write() 383 if ((portsc & PORT_PLS_MASK) != XDEV_RXDETECT) { in xhci_port_write() 387 portsc = xhci_port_state_to_neutral(portsc); in xhci_port_write() 388 portsc &= ~PORT_PLS_MASK; in xhci_port_write() 389 portsc | in xhci_port_write() [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.h | 2584 static inline const char *xhci_portsc_link_state_string(u32 portsc) in xhci_portsc_link_state_string() argument 2586 switch (portsc & PORT_PLS_MASK) { in xhci_portsc_link_state_string() 2619 static inline const char *xhci_decode_portsc(char *str, u32 portsc) in xhci_decode_portsc() argument 2624 portsc & PORT_POWER ? "Powered" : "Powered-off", in xhci_decode_portsc() 2625 portsc & PORT_CONNECT ? "Connected" : "Not-connected", in xhci_decode_portsc() 2626 portsc & PORT_PE ? "Enabled" : "Disabled", in xhci_decode_portsc() 2627 xhci_portsc_link_state_string(portsc), in xhci_decode_portsc() 2628 DEV_PORT_SPEED(portsc)); in xhci_decode_portsc() 2630 if (portsc & PORT_OC) in xhci_decode_portsc() 2632 if (portsc in xhci_decode_portsc() [all...] |
H A D | ehci.h | 659 ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc) in ehci_port_speed() argument 662 switch ((portsc >> (ehci->has_hostpc ? 25 : 26)) & 3) { in ehci_port_speed() 679 #define ehci_port_speed(ehci, portsc) USB_PORT_STAT_HIGH_SPEED 716 #define ehci_has_ci_pec_bug(e, portsc) \ 718 && !(portsc & PORT_PEC) && !(portsc & PORT_PE))
|
H A D | xhci-tegra.c | 2041 static enum usb_device_speed tegra_xhci_portsc_to_speed(struct tegra_xusb *tegra, u32 portsc) in tegra_xhci_portsc_to_speed() argument 2043 if (DEV_LOWSPEED(portsc)) in tegra_xhci_portsc_to_speed() 2046 if (DEV_HIGHSPEED(portsc)) in tegra_xhci_portsc_to_speed() 2049 if (DEV_FULLSPEED(portsc)) in tegra_xhci_portsc_to_speed() 2052 if (DEV_SUPERSPEED_ANY(portsc)) in tegra_xhci_portsc_to_speed() 2067 u32 portsc; in tegra_xhci_enable_phy_sleepwalk_wake() local 2094 portsc = readl(rhub->ports[index]->addr); in tegra_xhci_enable_phy_sleepwalk_wake() 2095 speed = tegra_xhci_portsc_to_speed(tegra, portsc); in tegra_xhci_enable_phy_sleepwalk_wake() 2172 u32 portsc; in tegra_xusb_enter_elpg() local 2189 portsc in tegra_xusb_enter_elpg() 2699 u32 portsc; tegra_xhci_hub_control() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | xhci-hub.c | 198 u32 portsc; in xhci_usb2_hub_descriptor() local 215 portsc = readl(rhub->ports[i]->addr); in xhci_usb2_hub_descriptor() 219 if (portsc & PORT_DEV_REMOVE) in xhci_usb2_hub_descriptor() 252 u32 portsc; in xhci_usb3_hub_descriptor() local 272 portsc = readl(rhub->ports[i]->addr); in xhci_usb3_hub_descriptor() 273 if (portsc & PORT_DEV_REMOVE) in xhci_usb3_hub_descriptor() 500 xhci_dbg(xhci, "disable port %d-%d, portsc: 0x%x\n", in xhci_disable_port() 551 xhci_dbg(xhci, "clear port%d %s change, portsc: 0x%x\n", in xhci_clear_port_change_bit() 581 xhci_dbg(xhci, "set port power %d-%d %s, portsc: 0x%x\n", 686 u32 portsc; in xhci_set_link_state() local 821 xhci_handle_usb2_port_link_resume(struct xhci_port *port, u32 portsc, unsigned long *flags) xhci_handle_usb2_port_link_resume() argument 928 xhci_get_usb3_port_status(struct xhci_port *port, u32 *status, u32 portsc) xhci_get_usb3_port_status() argument 979 xhci_get_usb2_port_status(struct xhci_port *port, u32 *status, u32 portsc, unsigned long *flags) xhci_get_usb2_port_status() argument 1746 u32 portsc; xhci_port_missing_cas_quirk() local 1776 u32 temp, portsc; xhci_bus_resume() local [all...] |
H A D | xhci-dbgcap.c | 663 u32 portsc; in dbc_handle_port_status() local 665 portsc = readl(&dbc->regs->portsc); in dbc_handle_port_status() 666 if (portsc & DBC_PORTSC_CONN_CHANGE) in dbc_handle_port_status() 669 if (portsc & DBC_PORTSC_RESET_CHANGE) in dbc_handle_port_status() 672 if (portsc & DBC_PORTSC_LINK_CHANGE) in dbc_handle_port_status() 675 if (portsc & DBC_PORTSC_CONFIG_CHANGE) in dbc_handle_port_status() 679 writel(portsc & ~DBC_PORTSC_RESET_CHANGE, &dbc->regs->portsc); in dbc_handle_port_status() 755 u32 ctrl, portsc; in xhci_dbc_do_handle_events() local [all...] |
H A D | xhci-trace.h | 523 TP_PROTO(u32 portnum, u32 portsc), 524 TP_ARGS(portnum, portsc), 527 __field(u32, portsc) 532 __entry->portsc = portsc; 536 xhci_decode_portsc(__get_str(str), __entry->portsc) 541 TP_PROTO(u32 portnum, u32 portsc), 542 TP_ARGS(portnum, portsc) 546 TP_PROTO(u32 portnum, u32 portsc), 547 TP_ARGS(portnum, portsc) [all...] |
H A D | xhci-debugfs.c | 349 u32 portsc; in xhci_portsc_show() local 352 portsc = readl(port->addr); in xhci_portsc_show() 353 seq_printf(s, "%s\n", xhci_decode_portsc(str, portsc)); in xhci_portsc_show() 370 u32 portsc; in xhci_port_write() local 382 portsc = readl(port->addr); in xhci_port_write() 383 if ((portsc & PORT_PLS_MASK) != XDEV_RXDETECT) { in xhci_port_write() 387 portsc = xhci_port_state_to_neutral(portsc); in xhci_port_write() 388 portsc &= ~PORT_PLS_MASK; in xhci_port_write() 389 portsc | in xhci_port_write() [all...] |
H A D | ehci-fsl.c | 201 u32 portsc, tmp; in ehci_fsl_setup_phy() local 212 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy() 213 portsc &= ~(PORT_PTS_MSK | PORT_PTS_PTW); in ehci_fsl_setup_phy() 230 portsc |= PORT_PTS_ULPI; in ehci_fsl_setup_phy() 233 portsc |= PORT_PTS_SERIAL; in ehci_fsl_setup_phy() 236 portsc |= PORT_PTS_PTW; in ehci_fsl_setup_phy() 276 portsc |= PORT_PTS_UTMI; in ehci_fsl_setup_phy() 289 ehci_writel(ehci, portsc, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy()
|
H A D | xhci.h | 2552 static inline const char *xhci_portsc_link_state_string(u32 portsc) in xhci_portsc_link_state_string() argument 2554 switch (portsc & PORT_PLS_MASK) { in xhci_portsc_link_state_string() 2587 static inline const char *xhci_decode_portsc(char *str, u32 portsc) in xhci_decode_portsc() argument 2592 portsc & PORT_POWER ? "Powered" : "Powered-off", in xhci_decode_portsc() 2593 portsc & PORT_CONNECT ? "Connected" : "Not-connected", in xhci_decode_portsc() 2594 portsc & PORT_PE ? "Enabled" : "Disabled", in xhci_decode_portsc() 2595 xhci_portsc_link_state_string(portsc), in xhci_decode_portsc() 2596 DEV_PORT_SPEED(portsc)); in xhci_decode_portsc() 2598 if (portsc & PORT_OC) in xhci_decode_portsc() 2600 if (portsc in xhci_decode_portsc() [all...] |
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
H A D | mv_udc_core.c | 1004 u32 tmp, portsc; in udc_reset() local 1041 portsc = readl(&udc->op_regs->portsc[0]); in udc_reset() 1043 portsc &= (~PORTSCX_W1C_BITS | ~PORTSCX_PORT_POWER); in udc_reset() 1046 portsc |= PORTSCX_FORCE_FULL_SPEED_CONNECT; in udc_reset() 1048 portsc &= (~PORTSCX_FORCE_FULL_SPEED_CONNECT); in udc_reset() 1050 writel(portsc, &udc->op_regs->portsc[0]); in udc_reset() 1129 u32 portsc; in mv_udc_wakeup() local 1135 portsc in mv_udc_wakeup() 1414 u32 portsc; mv_set_ptc() local 1950 u32 portsc; irq_process_port_change() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/ |
H A D | mv_udc_core.c | 1006 u32 tmp, portsc; in udc_reset() local 1043 portsc = readl(&udc->op_regs->portsc[0]); in udc_reset() 1045 portsc &= (~PORTSCX_W1C_BITS | ~PORTSCX_PORT_POWER); in udc_reset() 1048 portsc |= PORTSCX_FORCE_FULL_SPEED_CONNECT; in udc_reset() 1050 portsc &= (~PORTSCX_FORCE_FULL_SPEED_CONNECT); in udc_reset() 1052 writel(portsc, &udc->op_regs->portsc[0]); in udc_reset() 1131 u32 portsc; in mv_udc_wakeup() local 1137 portsc in mv_udc_wakeup() 1415 u32 portsc; mv_set_ptc() local 1951 u32 portsc; irq_process_port_change() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/phy/ |
H A D | phy-fsl-usb.c | 158 tmp = fsl_readl(&usb_dr_regs->portsc) & ~PORTSC_W1C_BITS; in fsl_otg_drv_vbus() 159 fsl_writel(tmp | PORTSC_PORT_POWER, &usb_dr_regs->portsc); in fsl_otg_drv_vbus() 161 tmp = fsl_readl(&usb_dr_regs->portsc) & in fsl_otg_drv_vbus() 163 fsl_writel(tmp, &usb_dr_regs->portsc); in fsl_otg_drv_vbus() 194 tmp = fsl_readl(&fsl_otg_dev->dr_mem_map->portsc) & ~PORTSC_W1C_BITS; in fsl_otg_loc_sof() 200 fsl_writel(tmp, &fsl_otg_dev->dr_mem_map->portsc); in fsl_otg_loc_sof() 908 temp = fsl_readl(&p_otg->dr_mem_map->portsc); in usb_otg_start() 923 fsl_writel(temp, &p_otg->dr_mem_map->portsc); in usb_otg_start()
|
/kernel/linux/linux-6.6/drivers/usb/phy/ |
H A D | phy-fsl-usb.c | 158 tmp = fsl_readl(&usb_dr_regs->portsc) & ~PORTSC_W1C_BITS; in fsl_otg_drv_vbus() 159 fsl_writel(tmp | PORTSC_PORT_POWER, &usb_dr_regs->portsc); in fsl_otg_drv_vbus() 161 tmp = fsl_readl(&usb_dr_regs->portsc) & in fsl_otg_drv_vbus() 163 fsl_writel(tmp, &usb_dr_regs->portsc); in fsl_otg_drv_vbus() 194 tmp = fsl_readl(&fsl_otg_dev->dr_mem_map->portsc) & ~PORTSC_W1C_BITS; in fsl_otg_loc_sof() 200 fsl_writel(tmp, &fsl_otg_dev->dr_mem_map->portsc); in fsl_otg_loc_sof() 908 temp = fsl_readl(&p_otg->dr_mem_map->portsc); in usb_otg_start() 923 fsl_writel(temp, &p_otg->dr_mem_map->portsc); in usb_otg_start()
|
/kernel/linux/linux-5.10/include/linux/platform_data/ |
H A D | usb-ehci-mxc.h | 9 unsigned int portsc; member
|