Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/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()
691 port_reg = readl(&xdbc.xdbc_reg->portsc); in xdbc_handle_port_status()
712 writel(port_reg, &xdbc.xdbc_reg->portsc); in xdbc_handle_port_status()
/OK3568_Linux_fs/kernel/drivers/usb/host/
H A Dxhci-hub.c198 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()
691 u32 portsc; in xhci_set_link_state() local
693 portsc = readl(port->addr); in xhci_set_link_state()
694 temp = xhci_port_state_to_neutral(portsc); in xhci_set_link_state()
701 portsc, temp); in xhci_set_link_state()
[all …]
H A Dxhci-dbgcap.c663 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
765 portsc = readl(&dbc->regs->portsc); in xhci_dbc_do_handle_events()
766 if (portsc & DBC_PORTSC_CONN_STATUS) { in xhci_dbc_do_handle_events()
[all …]
H A Dxhci-trace.h523 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)
551 TP_PROTO(u32 portnum, u32 portsc),
[all …]
H A Dxhci-debugfs.c348 u32 portsc; in xhci_portsc_show() local
351 portsc = readl(port->addr); in xhci_portsc_show()
352 seq_printf(s, "%s\n", xhci_decode_portsc(str, portsc)); in xhci_portsc_show()
369 u32 portsc; in xhci_port_write() local
381 portsc = readl(port->addr); in xhci_port_write()
382 if ((portsc & PORT_PLS_MASK) != XDEV_RXDETECT) { in xhci_port_write()
386 portsc = xhci_port_state_to_neutral(portsc); in xhci_port_write()
387 portsc &= ~PORT_PLS_MASK; in xhci_port_write()
388 portsc |= PORT_LINK_STROBE | XDEV_COMP_MODE; in xhci_port_write()
389 writel(portsc, port->addr); in xhci_port_write()
H A Dxhci.h2613 static inline const char *xhci_portsc_link_state_string(u32 portsc) in xhci_portsc_link_state_string() argument
2615 switch (portsc & PORT_PLS_MASK) { in xhci_portsc_link_state_string()
2648 static inline const char *xhci_decode_portsc(char *str, u32 portsc) in xhci_decode_portsc() argument
2653 portsc & PORT_POWER ? "Powered" : "Powered-off", in xhci_decode_portsc()
2654 portsc & PORT_CONNECT ? "Connected" : "Not-connected", in xhci_decode_portsc()
2655 portsc & PORT_PE ? "Enabled" : "Disabled", in xhci_decode_portsc()
2656 xhci_portsc_link_state_string(portsc), in xhci_decode_portsc()
2657 DEV_PORT_SPEED(portsc)); in xhci_decode_portsc()
2659 if (portsc & PORT_OC) in xhci_decode_portsc()
2661 if (portsc & PORT_RESET) in xhci_decode_portsc()
[all …]
H A Dehci-fsl.c201 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 Dfotg210.h613 fotg210_get_speed(struct fotg210_hcd *fotg210, unsigned int portsc) in fotg210_get_speed() argument
621 fotg210_port_speed(struct fotg210_hcd *fotg210, unsigned int portsc) in fotg210_port_speed() argument
623 switch (fotg210_get_speed(fotg210, portsc)) { in fotg210_port_speed()
H A Dehci-platform.c64 u32 portsc; in ehci_rockchip_relinquish_port() local
66 portsc = ehci_readl(ehci, status_reg); in ehci_rockchip_relinquish_port()
67 portsc &= ~(PORT_OWNER | PORT_RWC_BITS); in ehci_rockchip_relinquish_port()
69 ehci_writel(ehci, portsc, status_reg); in ehci_rockchip_relinquish_port()
H A Dehci.h662 ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc) in ehci_port_speed() argument
665 switch ((portsc >> (ehci->has_hostpc ? 25 : 26)) & 3) { in ehci_port_speed()
682 #define ehci_port_speed(ehci, portsc) USB_PORT_STAT_HIGH_SPEED argument
H A Dxhci-ring.c1898 u32 portsc, cmd_reg; in handle_port_status() local
1939 portsc = readl(port->addr); in handle_port_status()
1942 hcd->self.busnum, hcd_portnum + 1, port_id, portsc); in handle_port_status()
1944 trace_xhci_handle_port_status(hcd_portnum, portsc); in handle_port_status()
1952 (portsc & PORT_PLS_MASK) == XDEV_INACTIVE) { in handle_port_status()
1958 if ((portsc & PORT_PLC) && (portsc & PORT_PLS_MASK) == XDEV_RESUME) { in handle_port_status()
1967 if (DEV_SUPERSPEED_ANY(portsc)) { in handle_port_status()
1999 if ((portsc & PORT_PLC) && in handle_port_status()
2000 DEV_SUPERSPEED_ANY(portsc) && in handle_port_status()
2001 ((portsc & PORT_PLS_MASK) == XDEV_U0 || in handle_port_status()
[all …]
/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Dehci-vf.c184 writel((PORT_PTS_UTMI | PORT_PTS_PTW), &ehci->portsc); in ehci_hcd_init()
185 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init()
188 writel((PORT_PTS_UTMI | PORT_PTS_PTW), &ehci->portsc); in ehci_hcd_init()
189 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init()
284 writel((PORT_PTS_UTMI | PORT_PTS_PTW), &ehci->portsc); in vf_init_after_reset()
285 setbits_le32(&ehci->portsc, USB_EN); in vf_init_after_reset()
330 writel((PORT_PTS_UTMI | PORT_PTS_PTW), &ehci->portsc); in ehci_usb_probe()
331 setbits_le32(&ehci->portsc, USB_EN); in ehci_usb_probe()
H A Dehci-mx6.c404 writel(CONFIG_MXC_USB_PORTSC, &ehci->portsc); in ehci_hcd_init()
405 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init()
452 writel(CONFIG_MXC_USB_PORTSC, &ehci->portsc); in mx6_init_after_reset()
453 setbits_le32(&ehci->portsc, USB_EN); in mx6_init_after_reset()
609 writel(CONFIG_MXC_USB_PORTSC, &ehci->portsc); in ehci_usb_probe()
610 setbits_le32(&ehci->portsc, USB_EN); in ehci_usb_probe()
H A Dehci-mx5.c258 __raw_writel(CONFIG_MXC_USB_PORTSC, &ehci->portsc); in ehci_hcd_init()
259 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init()
346 __raw_writel(CONFIG_MXC_USB_PORTSC, &ehci->portsc); in ehci_usb_probe()
347 setbits_le32(&ehci->portsc, USB_EN); in ehci_usb_probe()
H A Dehci-msm.c66 writel(PORT_PTS_ULPI, &ehci->portsc); in msm_init_after_reset()
/OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/
H A Dmv_udc_core.c1004 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 = readl(&udc->op_regs->portsc); in mv_udc_wakeup()
1137 if (!(portsc & PORTSCX_PORT_SUSPEND)) in mv_udc_wakeup()
1140 portsc |= PORTSCX_PORT_FORCE_RESUME; in mv_udc_wakeup()
[all …]
H A Dtegra-xudc.c2969 u32 portsc, porthalt; in __tegra_xudc_handle_port_status() local
2979 portsc = xudc_readl(xudc, PORTSC); in __tegra_xudc_handle_port_status()
2980 if ((portsc & PORTSC_PRC) && (portsc & PORTSC_PR)) { in __tegra_xudc_handle_port_status()
2981 dev_dbg(xudc->dev, "PRC, PR, PORTSC = %#x\n", portsc); in __tegra_xudc_handle_port_status()
2991 if ((portsc & PORTSC_PRC) && !(portsc & PORTSC_PR)) { in __tegra_xudc_handle_port_status()
2992 dev_dbg(xudc->dev, "PRC, Not PR, PORTSC = %#x\n", portsc); in __tegra_xudc_handle_port_status()
2999 portsc = xudc_readl(xudc, PORTSC); in __tegra_xudc_handle_port_status()
3000 if (portsc & PORTSC_WRC) { in __tegra_xudc_handle_port_status()
3001 dev_dbg(xudc->dev, "WRC, PORTSC = %#x\n", portsc); in __tegra_xudc_handle_port_status()
3007 portsc = xudc_readl(xudc, PORTSC); in __tegra_xudc_handle_port_status()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/phy/
H A Dphy-fsl-usb.c158 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()
H A Dphy-mv-usb.h120 u32 portsc[VUSBHS_MAX_PORTS]; /* Port Status/Control x, x = 1..8 */ member
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Dci_udc.h19 u32 portsc; /* 0x174 */ member
40 u32 portsc; /* 0x184 */ member
/OK3568_Linux_fs/kernel/include/linux/platform_data/
H A Dusb-ehci-mxc.h9 unsigned int portsc; member
/OK3568_Linux_fs/kernel/drivers/usb/chipidea/
H A Dcore.c264 u32 portsc, lpm, sts = 0; in hw_phymode_configure() local
268 portsc = PORTSC_PTS(PTS_UTMI); in hw_phymode_configure()
272 portsc = PORTSC_PTS(PTS_UTMI) | PORTSC_PTW; in hw_phymode_configure()
276 portsc = PORTSC_PTS(PTS_ULPI); in hw_phymode_configure()
280 portsc = PORTSC_PTS(PTS_SERIAL); in hw_phymode_configure()
285 portsc = PORTSC_PTS(PTS_HSIC); in hw_phymode_configure()
297 hw_write(ci, OP_PORTSC, PORTSC_PTS(7) | PORTSC_PTW, portsc); in hw_phymode_configure()
H A Dhost.c323 u32 portsc = ehci_readl(ehci, reg); in ci_ehci_bus_suspend() local
325 if (portsc & PORT_CONNECT) { in ci_ehci_bus_suspend()
/OK3568_Linux_fs/u-boot/arch/arm/mach-rmobile/include/mach/
H A Dehci-rmobile.h144 u32 portsc; /* portsc */ member

12