/Linux-v4.19/drivers/usb/early/ |
D | ehci-dbgp.c | 500 u32 ctrl, portsc, cmd; in _dbgp_external_startup() local 514 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 515 if (!(portsc & PORT_CONNECT) && try_hard_once) { in _dbgp_external_startup() 523 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 524 portsc |= PORT_TEST_PKT; in _dbgp_external_startup() 525 writel(portsc, &ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 551 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 552 portsc &= ~PORT_PE; in _dbgp_external_startup() 553 writel(portsc, &ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 615 u32 portsc; in ehci_reset_port() local [all …]
|
D | xhci-dbc.c | 350 void __iomem *portsc; in xdbc_do_reset_debug_port() local 359 portsc = ops_reg + 0x400 + i * 0x10; in xdbc_do_reset_debug_port() 360 val = readl(portsc); in xdbc_do_reset_debug_port() 362 writel(val | PORT_RESET, portsc); in xdbc_do_reset_debug_port() 435 ret = handshake(&xdbc.xdbc_reg->portsc, PORTSC_CONN_STATUS, PORTSC_CONN_STATUS, 5000000, 100); in xdbc_start() 694 port_reg = readl(&xdbc.xdbc_reg->portsc); in xdbc_handle_port_status() 715 writel(port_reg, &xdbc.xdbc_reg->portsc); in xdbc_handle_port_status()
|
D | xhci-dbc.h | 28 __le32 portsc; /* Port status and control */ member
|
/Linux-v4.19/drivers/usb/host/ |
D | xhci-dbgcap.c | 572 u32 portsc; in dbc_handle_port_status() local 575 portsc = readl(&dbc->regs->portsc); in dbc_handle_port_status() 576 if (portsc & DBC_PORTSC_CONN_CHANGE) in dbc_handle_port_status() 579 if (portsc & DBC_PORTSC_RESET_CHANGE) in dbc_handle_port_status() 582 if (portsc & DBC_PORTSC_LINK_CHANGE) in dbc_handle_port_status() 585 if (portsc & DBC_PORTSC_CONFIG_CHANGE) in dbc_handle_port_status() 589 writel(portsc & ~DBC_PORTSC_RESET_CHANGE, &dbc->regs->portsc); in dbc_handle_port_status() 654 u32 ctrl, portsc; in xhci_dbc_do_handle_events() local 665 portsc = readl(&dbc->regs->portsc); in xhci_dbc_do_handle_events() 666 if (portsc & DBC_PORTSC_CONN_STATUS) { in xhci_dbc_do_handle_events() [all …]
|
D | xhci-debugfs.c | 342 u32 portsc; in xhci_portsc_show() local 344 portsc = readl(port->addr); in xhci_portsc_show() 345 seq_printf(s, "%s\n", xhci_decode_portsc(portsc)); in xhci_portsc_show() 362 u32 portsc; in xhci_port_write() local 374 portsc = readl(port->addr); in xhci_port_write() 375 if ((portsc & PORT_PLS_MASK) != XDEV_RXDETECT) { in xhci_port_write() 379 portsc = xhci_port_state_to_neutral(portsc); in xhci_port_write() 380 portsc &= ~PORT_PLS_MASK; in xhci_port_write() 381 portsc |= PORT_LINK_STROBE | XDEV_COMP_MODE; in xhci_port_write() 382 writel(portsc, port->addr); in xhci_port_write()
|
D | xhci-trace.h | 502 TP_PROTO(u32 portnum, u32 portsc), 503 TP_ARGS(portnum, portsc), 506 __field(u32, portsc) 510 __entry->portsc = portsc; 514 xhci_decode_portsc(__entry->portsc) 519 TP_PROTO(u32 portnum, u32 portsc), 520 TP_ARGS(portnum, portsc) 524 TP_PROTO(u32 portnum, u32 portsc), 525 TP_ARGS(portnum, portsc) 529 TP_PROTO(u32 portnum, u32 portsc), [all …]
|
D | xhci-hub.c | 190 u32 portsc; in xhci_usb2_hub_descriptor() local 206 portsc = readl(rhub->ports[i]->addr); in xhci_usb2_hub_descriptor() 210 if (portsc & PORT_DEV_REMOVE) in xhci_usb2_hub_descriptor() 243 u32 portsc; in xhci_usb3_hub_descriptor() local 262 portsc = readl(rhub->ports[i]->addr); in xhci_usb3_hub_descriptor() 263 if (portsc & PORT_DEV_REMOVE) in xhci_usb3_hub_descriptor() 1551 u32 portsc; in xhci_port_missing_cas_quirk() local 1553 portsc = readl(port->addr); in xhci_port_missing_cas_quirk() 1556 if (portsc & (PORT_CONNECT | PORT_CAS)) in xhci_port_missing_cas_quirk() 1559 if (((portsc & PORT_PLS_MASK) != XDEV_POLLING) && in xhci_port_missing_cas_quirk() [all …]
|
D | xhci.h | 2433 static inline const char *xhci_portsc_link_state_string(u32 portsc) in xhci_portsc_link_state_string() argument 2435 switch (portsc & PORT_PLS_MASK) { in xhci_portsc_link_state_string() 2468 static inline const char *xhci_decode_portsc(u32 portsc) in xhci_decode_portsc() argument 2474 portsc & PORT_POWER ? "Powered" : "Powered-off", in xhci_decode_portsc() 2475 portsc & PORT_CONNECT ? "Connected" : "Not-connected", in xhci_decode_portsc() 2476 portsc & PORT_PE ? "Enabled" : "Disabled", in xhci_decode_portsc() 2477 xhci_portsc_link_state_string(portsc), in xhci_decode_portsc() 2478 DEV_PORT_SPEED(portsc)); in xhci_decode_portsc() 2480 if (portsc & PORT_OC) in xhci_decode_portsc() 2482 if (portsc & PORT_RESET) in xhci_decode_portsc() [all …]
|
D | ehci-fsl.c | 177 u32 portsc; in ehci_fsl_setup_phy() local 188 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy() 189 portsc &= ~(PORT_PTS_MSK | PORT_PTS_PTW); in ehci_fsl_setup_phy() 201 portsc |= PORT_PTS_ULPI; in ehci_fsl_setup_phy() 204 portsc |= PORT_PTS_SERIAL; in ehci_fsl_setup_phy() 207 portsc |= PORT_PTS_PTW; in ehci_fsl_setup_phy() 223 portsc |= PORT_PTS_UTMI; in ehci_fsl_setup_phy() 242 ehci_writel(ehci, portsc, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy()
|
D | fotg210.h | 610 fotg210_get_speed(struct fotg210_hcd *fotg210, unsigned int portsc) in fotg210_get_speed() argument 618 fotg210_port_speed(struct fotg210_hcd *fotg210, unsigned int portsc) in fotg210_port_speed() argument 620 switch (fotg210_get_speed(fotg210, portsc)) { in fotg210_port_speed()
|
D | ehci.h | 655 ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc) in ehci_port_speed() argument 658 switch ((portsc >> (ehci->has_hostpc ? 25 : 26)) & 3) { in ehci_port_speed() 675 #define ehci_port_speed(ehci, portsc) USB_PORT_STAT_HIGH_SPEED argument
|
/Linux-v4.19/drivers/usb/gadget/udc/ |
D | mv_udc_core.c | 1005 u32 tmp, portsc; in udc_reset() local 1042 portsc = readl(&udc->op_regs->portsc[0]); in udc_reset() 1044 portsc &= (~PORTSCX_W1C_BITS | ~PORTSCX_PORT_POWER); in udc_reset() 1047 portsc |= PORTSCX_FORCE_FULL_SPEED_CONNECT; in udc_reset() 1049 portsc &= (~PORTSCX_FORCE_FULL_SPEED_CONNECT); in udc_reset() 1051 writel(portsc, &udc->op_regs->portsc[0]); in udc_reset() 1130 u32 portsc; in mv_udc_wakeup() local 1136 portsc = readl(&udc->op_regs->portsc); in mv_udc_wakeup() 1138 if (!(portsc & PORTSCX_PORT_SUSPEND)) in mv_udc_wakeup() 1141 portsc |= PORTSCX_PORT_FORCE_RESUME; in mv_udc_wakeup() [all …]
|
/Linux-v4.19/drivers/usb/phy/ |
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() 906 temp = fsl_readl(&p_otg->dr_mem_map->portsc); in usb_otg_start() 921 fsl_writel(temp, &p_otg->dr_mem_map->portsc); in usb_otg_start() 989 fsl_readl(&usb_dr_regs->portsc), in show_fsl_usb2_otg_state()
|
D | phy-mv-usb.h | 120 u32 portsc[VUSBHS_MAX_PORTS]; /* Port Status/Control x, x = 1..8 */ member
|
/Linux-v4.19/include/linux/platform_data/ |
D | usb-ehci-mxc.h | 9 unsigned int portsc; member
|
/Linux-v4.19/arch/arm/mach-imx/ |
D | mach-mx31lilly.c | 209 .portsc = MXC_EHCI_MODE_UTMI | MXC_EHCI_SERIAL, 214 .portsc = MXC_EHCI_MODE_ULPI | MXC_EHCI_UTMI_8BIT,
|
D | mach-pca100.c | 277 .portsc = MXC_EHCI_MODE_ULPI, 291 .portsc = MXC_EHCI_MODE_ULPI,
|
D | mach-pcm043.c | 309 .portsc = MXC_EHCI_MODE_UTMI, 320 .portsc = MXC_EHCI_MODE_SERIAL,
|
D | mx31moboard-smartbot.c | 61 .portsc = MXC_EHCI_MODE_ULPI | MXC_EHCI_UTMI_8BIT,
|
D | mach-mx35_3ds.c | 426 .portsc = MXC_EHCI_MODE_UTMI, 438 .portsc = MXC_EHCI_MODE_SERIAL,
|
D | mach-pcm037.c | 438 .portsc = MXC_EHCI_MODE_ULPI, 448 .portsc = MXC_EHCI_MODE_ULPI,
|
D | mach-armadillo5x0.c | 249 .portsc = MXC_EHCI_MODE_ULPI | MXC_EHCI_UTMI_8BIT, 254 .portsc = MXC_EHCI_MODE_ULPI | MXC_EHCI_UTMI_8BIT,
|
D | mach-mx31_3ds.c | 511 .portsc = MXC_EHCI_MODE_ULPI, 516 .portsc = MXC_EHCI_MODE_ULPI,
|
/Linux-v4.19/drivers/usb/chipidea/ |
D | core.c | 288 u32 portsc, lpm, sts = 0; in hw_phymode_configure() local 292 portsc = PORTSC_PTS(PTS_UTMI); in hw_phymode_configure() 296 portsc = PORTSC_PTS(PTS_UTMI) | PORTSC_PTW; in hw_phymode_configure() 300 portsc = PORTSC_PTS(PTS_ULPI); in hw_phymode_configure() 304 portsc = PORTSC_PTS(PTS_SERIAL); in hw_phymode_configure() 309 portsc = PORTSC_PTS(PTS_HSIC); in hw_phymode_configure() 321 hw_write(ci, OP_PORTSC, PORTSC_PTS(7) | PORTSC_PTW, portsc); in hw_phymode_configure()
|
D | host.c | 223 u32 portsc = ehci_readl(ehci, reg); in ci_ehci_bus_suspend() local 225 if (portsc & PORT_CONNECT) { in ci_ehci_bus_suspend()
|