/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | fhci-hub.c | 82 enum fhci_port_status port_status; in fhci_port_disable() local 91 port_status = usb->port_status; in fhci_port_disable() 92 usb->port_status = FHCI_PORT_DISABLED; in fhci_port_disable() 99 if (port_status == FHCI_PORT_WAITING) in fhci_port_disable() 116 fhci_config_transceiver(fhci, usb->port_status); in fhci_port_enable() 118 if ((usb->port_status != FHCI_PORT_FULL) && in fhci_port_enable() 119 (usb->port_status != FHCI_PORT_LOW)) in fhci_port_enable() 208 struct usb_port_status *port_status; in fhci_hub_control() local 279 port_status in fhci_hub_control() [all...] |
H A D | ehci-hub.c | 58 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports() 72 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports() 109 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports() 140 if (ehci_readl(ehci, &ehci->regs->port_status[i]) & PORT_CSC) in ehci_port_change() 178 u32 __iomem *reg = &ehci->regs->port_status[port]; in ehci_adjust_port_wakeup_flags() 257 u32 __iomem *reg = &ehci->regs->port_status [port]; in ehci_bus_suspend() 429 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_bus_resume() 466 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume() 473 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume() 490 temp = ehci_readl(ehci, &ehci->regs->port_status [ in ehci_bus_resume() 540 u32 port_status; set_owner() local [all...] |
H A D | fhci-sched.c | 188 if (usb->port_status == FHCI_PORT_FULL) in add_packet() 234 if (usb->port_status != FHCI_PORT_FULL && in add_packet() 235 usb->port_status != FHCI_PORT_LOW) { in add_packet() 403 if ((usb->port_status == FHCI_PORT_DISABLED) && in sof_interrupt() 407 usb->port_status = FHCI_PORT_LOW; in sof_interrupt() 409 usb->port_status = FHCI_PORT_FULL; in sof_interrupt() 432 usb->port_status = FHCI_PORT_DISABLED; in fhci_device_disconnected_interrupt() 470 usb->port_status = FHCI_PORT_LOW; in fhci_device_connected_interrupt() 488 usb->port_status = FHCI_PORT_FULL; in fhci_device_connected_interrupt() 562 if ((usb->port_status in fhci_irq() [all...] |
H A D | ehci-brcm.c | 66 status_reg = &ehci->regs->port_status[(wIndex & 0xff) - 1]; in ehci_brcm_hub_control() 111 * port_status[0x0f] = Broadcom-proprietary USB_EHCI_INSNREG00 @ 0x90 in ehci_brcm_reset() 113 ehci_writel(ehci, 0x00800040, &ehci->regs->port_status[0x10]); in ehci_brcm_reset() 114 ehci_writel(ehci, 0x00000001, &ehci->regs->port_status[0x12]); in ehci_brcm_reset() 226 * port_status[0x0f] = Broadcom-proprietary USB_EHCI_INSNREG00 in ehci_brcm_resume() 229 ehci_writel(ehci, 0x00800040, &ehci->regs->port_status[0x10]); in ehci_brcm_resume() 230 ehci_writel(ehci, 0x00000001, &ehci->regs->port_status[0x12]); in ehci_brcm_resume()
|
H A D | max3421-hcd.c | 130 u32 port_status; member 470 if (max3421_hcd->port_status & USB_PORT_STAT_LOW_SPEED) { in max3421_set_speed() 1121 old_port_status = max3421_hcd->port_status; in max3421_detect_conn() 1123 max3421_hcd->port_status |= USB_PORT_STAT_CONNECTION; in max3421_detect_conn() 1125 max3421_hcd->port_status &= ~USB_PORT_STAT_CONNECTION; in max3421_detect_conn() 1127 max3421_hcd->port_status |= USB_PORT_STAT_LOW_SPEED; in max3421_detect_conn() 1129 max3421_hcd->port_status &= ~USB_PORT_STAT_LOW_SPEED; in max3421_detect_conn() 1130 chg = (old_port_status ^ max3421_hcd->port_status); in max3421_detect_conn() 1131 max3421_hcd->port_status |= chg << 16; in max3421_detect_conn() 1236 old_port_status = max3421_hcd->port_status; in max3421_handle_irqs() [all...] |
H A D | ehci-fsl.c | 212 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy() 289 ehci_writel(ehci, portsc, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy() 483 pdata->pm_portsc = ehci_readl(ehci, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend() 493 tmp = ehci_readl(ehci, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend() 495 ehci_writel(ehci, tmp, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend() 549 ehci_writel(ehci, pdata->pm_portsc, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_resume() 660 status = readl(&ehci->regs->port_status[port]); in ehci_start_port_reset() 668 &ehci->regs->port_status[port]); in ehci_start_port_reset() 670 writel(PORT_RESET, &ehci->regs->port_status[port]); in ehci_start_port_reset()
|
H A D | ehci-mv.c | 86 status = ehci_readl(ehci, &ehci->regs->port_status[0]); in mv_ehci_reset() 88 ehci_writel(ehci, status, &ehci->regs->port_status[0]); in mv_ehci_reset() 90 ehci_writel(ehci, status, &ehci->regs->port_status[0]); in mv_ehci_reset() 213 status = ehci_readl(ehci, &ehci->regs->port_status[0]); in mv_ehci_probe() 217 ehci_writel(ehci, status, &ehci->regs->port_status[0]); in mv_ehci_probe()
|
H A D | ehci-platform.c | 135 * quirk_poll_check_port_status - Poll port_status if the device sticks 143 * Return: true if the controller's port_status indicated getting stuck 147 u32 port_status = ehci_readl(ehci, &ehci->regs->port_status[0]); in quirk_poll_check_port_status() local 149 if (!(port_status & PORT_OWNER) && in quirk_poll_check_port_status() 150 (port_status & PORT_POWER) && in quirk_poll_check_port_status() 151 !(port_status & PORT_CONNECT) && in quirk_poll_check_port_status() 152 (port_status & PORT_LS_MASK)) in quirk_poll_check_port_status()
|
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | fhci-hub.c | 81 enum fhci_port_status port_status; in fhci_port_disable() local 90 port_status = usb->port_status; in fhci_port_disable() 91 usb->port_status = FHCI_PORT_DISABLED; in fhci_port_disable() 98 if (port_status == FHCI_PORT_WAITING) in fhci_port_disable() 115 fhci_config_transceiver(fhci, usb->port_status); in fhci_port_enable() 117 if ((usb->port_status != FHCI_PORT_FULL) && in fhci_port_enable() 118 (usb->port_status != FHCI_PORT_LOW)) in fhci_port_enable() 207 struct usb_port_status *port_status; in fhci_hub_control() local 278 port_status in fhci_hub_control() [all...] |
H A D | ehci-hub.c | 58 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports() 72 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports() 109 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports() 140 if (ehci_readl(ehci, &ehci->regs->port_status[i]) & PORT_CSC) in ehci_port_change() 178 u32 __iomem *reg = &ehci->regs->port_status[port]; in ehci_adjust_port_wakeup_flags() 257 u32 __iomem *reg = &ehci->regs->port_status [port]; in ehci_bus_suspend() 429 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_bus_resume() 466 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume() 473 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume() 490 temp = ehci_readl(ehci, &ehci->regs->port_status [ in ehci_bus_resume() 540 u32 port_status; set_owner() local [all...] |
H A D | fhci-sched.c | 188 if (usb->port_status == FHCI_PORT_FULL) in add_packet() 234 if (usb->port_status != FHCI_PORT_FULL && in add_packet() 235 usb->port_status != FHCI_PORT_LOW) { in add_packet() 403 if ((usb->port_status == FHCI_PORT_DISABLED) && in sof_interrupt() 407 usb->port_status = FHCI_PORT_LOW; in sof_interrupt() 409 usb->port_status = FHCI_PORT_FULL; in sof_interrupt() 432 usb->port_status = FHCI_PORT_DISABLED; in fhci_device_disconnected_interrupt() 470 usb->port_status = FHCI_PORT_LOW; in fhci_device_connected_interrupt() 488 usb->port_status = FHCI_PORT_FULL; in fhci_device_connected_interrupt() 562 if ((usb->port_status in fhci_irq() [all...] |
H A D | max3421-hcd.c | 124 u32 port_status; member 464 if (max3421_hcd->port_status & USB_PORT_STAT_LOW_SPEED) { in max3421_set_speed() 1112 old_port_status = max3421_hcd->port_status; in max3421_detect_conn() 1114 max3421_hcd->port_status |= USB_PORT_STAT_CONNECTION; in max3421_detect_conn() 1116 max3421_hcd->port_status &= ~USB_PORT_STAT_CONNECTION; in max3421_detect_conn() 1118 max3421_hcd->port_status |= USB_PORT_STAT_LOW_SPEED; in max3421_detect_conn() 1120 max3421_hcd->port_status &= ~USB_PORT_STAT_LOW_SPEED; in max3421_detect_conn() 1121 chg = (old_port_status ^ max3421_hcd->port_status); in max3421_detect_conn() 1122 max3421_hcd->port_status |= chg << 16; in max3421_detect_conn() 1226 old_port_status = max3421_hcd->port_status; in max3421_handle_irqs() [all...] |
H A D | ehci-fsl.c | 206 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy() 283 ehci_writel(ehci, portsc, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy() 477 pdata->pm_portsc = ehci_readl(ehci, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend() 487 tmp = ehci_readl(ehci, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend() 489 ehci_writel(ehci, tmp, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend() 543 ehci_writel(ehci, pdata->pm_portsc, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_resume() 654 status = readl(&ehci->regs->port_status[port]); in ehci_start_port_reset() 662 &ehci->regs->port_status[port]); in ehci_start_port_reset() 664 writel(PORT_RESET, &ehci->regs->port_status[port]); in ehci_start_port_reset()
|
H A D | ehci-mv.c | 86 status = ehci_readl(ehci, &ehci->regs->port_status[0]); in mv_ehci_reset() 88 ehci_writel(ehci, status, &ehci->regs->port_status[0]); in mv_ehci_reset() 90 ehci_writel(ehci, status, &ehci->regs->port_status[0]); in mv_ehci_reset() 212 status = ehci_readl(ehci, &ehci->regs->port_status[0]); in mv_ehci_probe() 216 ehci_writel(ehci, status, &ehci->regs->port_status[0]); in mv_ehci_probe()
|
H A D | ehci-platform.c | 132 * quirk_poll_check_port_status - Poll port_status if the device sticks 140 * Return: true if the controller's port_status indicated getting stuck 144 u32 port_status = ehci_readl(ehci, &ehci->regs->port_status[0]); in quirk_poll_check_port_status() local 146 if (!(port_status & PORT_OWNER) && in quirk_poll_check_port_status() 147 (port_status & PORT_POWER) && in quirk_poll_check_port_status() 148 !(port_status & PORT_CONNECT) && in quirk_poll_check_port_status() 149 (port_status & PORT_LS_MASK)) in quirk_poll_check_port_status()
|
/kernel/linux/linux-5.10/drivers/usb/usbip/ |
H A D | vhci_hcd.c | 165 status = vhci_hcd->port_status[rhport]; in rh_port_connect() 180 vhci_hcd->port_status[rhport] = status; in rh_port_connect() 199 status = vhci_hcd->port_status[rhport]; in rh_port_disconnect() 204 vhci_hcd->port_status[rhport] = status; in rh_port_disconnect() 247 if ((vhci_hcd->port_status[rhport] & PORT_C_MASK)) { in vhci_hub_status() 342 * Reference port_status[] only with valid rhport when in vhci_hub_control() 360 memcpy(prev_port_status, vhci_hcd->port_status, in vhci_hub_control() 382 if (vhci_hcd->port_status[rhport] & USB_PORT_STAT_SUSPEND) { in vhci_hub_control() 392 vhci_hcd->port_status[rhport] &= ~USB_SS_PORT_STAT_POWER; in vhci_hub_control() 394 vhci_hcd->port_status[rhpor in vhci_hub_control() [all...] |
/kernel/linux/linux-6.6/drivers/usb/usbip/ |
H A D | vhci_hcd.c | 165 status = vhci_hcd->port_status[rhport]; in rh_port_connect() 180 vhci_hcd->port_status[rhport] = status; in rh_port_connect() 199 status = vhci_hcd->port_status[rhport]; in rh_port_disconnect() 204 vhci_hcd->port_status[rhport] = status; in rh_port_disconnect() 247 if ((vhci_hcd->port_status[rhport] & PORT_C_MASK)) { in vhci_hub_status() 342 * Reference port_status[] only with valid rhport when in vhci_hub_control() 360 memcpy(prev_port_status, vhci_hcd->port_status, in vhci_hub_control() 382 if (vhci_hcd->port_status[rhport] & USB_PORT_STAT_SUSPEND) { in vhci_hub_control() 392 vhci_hcd->port_status[rhport] &= ~USB_SS_PORT_STAT_POWER; in vhci_hub_control() 394 vhci_hcd->port_status[rhpor in vhci_hub_control() [all...] |
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
H A D | dummy_hcd.c | 244 u32 port_status; member 366 * This function updates the port_status according to the link state and the 374 if ((dum_hcd->port_status & USB_SS_PORT_STAT_POWER) == 0) { in set_link_state_by_speed() 375 dum_hcd->port_status = 0; in set_link_state_by_speed() 378 dum_hcd->port_status &= ~(USB_PORT_STAT_CONNECTION | in set_link_state_by_speed() 382 dum_hcd->port_status |= in set_link_state_by_speed() 386 dum_hcd->port_status |= (USB_PORT_STAT_CONNECTION | in set_link_state_by_speed() 390 dum_hcd->port_status |= in set_link_state_by_speed() 392 if ((dum_hcd->port_status & USB_PORT_STAT_ENABLE) && in set_link_state_by_speed() 393 (dum_hcd->port_status in set_link_state_by_speed() [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/ |
H A D | dummy_hcd.c | 244 u32 port_status; member 366 * This function updates the port_status according to the link state and the 374 if ((dum_hcd->port_status & USB_SS_PORT_STAT_POWER) == 0) { in set_link_state_by_speed() 375 dum_hcd->port_status = 0; in set_link_state_by_speed() 378 dum_hcd->port_status &= ~(USB_PORT_STAT_CONNECTION | in set_link_state_by_speed() 382 dum_hcd->port_status |= in set_link_state_by_speed() 386 dum_hcd->port_status |= (USB_PORT_STAT_CONNECTION | in set_link_state_by_speed() 390 dum_hcd->port_status |= in set_link_state_by_speed() 392 if ((dum_hcd->port_status & USB_PORT_STAT_ENABLE) && in set_link_state_by_speed() 393 (dum_hcd->port_status in set_link_state_by_speed() [all...] |
/kernel/linux/linux-5.10/drivers/ata/ |
H A D | sata_vsc.c | 211 static inline void vsc_error_intr(u8 port_status, struct ata_port *ap) in vsc_error_intr() argument 213 if (port_status & (VSC_SATA_INT_PHY_CHANGE | VSC_SATA_INT_ERROR_M)) in vsc_error_intr() 219 static void vsc_port_intr(u8 port_status, struct ata_port *ap) in vsc_port_intr() argument 224 if (unlikely(port_status & VSC_SATA_INT_ERROR)) { in vsc_port_intr() 225 vsc_error_intr(port_status, ap); in vsc_port_intr() 267 u8 port_status = (status >> (8 * i)) & 0xff; in vsc_sata_interrupt() local 268 if (port_status) { in vsc_sata_interrupt() 269 vsc_port_intr(port_status, host->ports[i]); in vsc_sata_interrupt()
|
/kernel/linux/linux-6.6/drivers/ata/ |
H A D | sata_vsc.c | 211 static inline void vsc_error_intr(u8 port_status, struct ata_port *ap) in vsc_error_intr() argument 213 if (port_status & (VSC_SATA_INT_PHY_CHANGE | VSC_SATA_INT_ERROR_M)) in vsc_error_intr() 219 static void vsc_port_intr(u8 port_status, struct ata_port *ap) in vsc_port_intr() argument 224 if (unlikely(port_status & VSC_SATA_INT_ERROR)) { in vsc_port_intr() 225 vsc_error_intr(port_status, ap); in vsc_port_intr() 267 u8 port_status = (status >> (8 * i)) & 0xff; in vsc_sata_interrupt() local 268 if (port_status) { in vsc_sata_interrupt() 269 vsc_port_intr(port_status, host->ports[i]); in vsc_sata_interrupt()
|
/kernel/linux/linux-5.10/drivers/usb/early/ |
H A D | ehci-dbgp.c | 88 readl(&ehci_regs->port_status[dbgp_phys_port - 1])); in dbgp_ehci_status() 509 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 518 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); 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() 548 writel(portsc, &ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 616 portsc = readl(&ehci_regs->port_status[port - 1]); in ehci_reset_port() 619 writel(portsc, &ehci_regs->port_status[port - 1]); in ehci_reset_port() 625 portsc = readl(&ehci_regs->port_status[port - 1]); in ehci_reset_port() 633 &ehci_regs->port_status[por in ehci_reset_port() [all...] |
/kernel/linux/linux-6.6/drivers/usb/early/ |
H A D | ehci-dbgp.c | 88 readl(&ehci_regs->port_status[dbgp_phys_port - 1])); in dbgp_ehci_status() 509 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 518 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); 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() 548 writel(portsc, &ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 616 portsc = readl(&ehci_regs->port_status[port - 1]); in ehci_reset_port() 619 writel(portsc, &ehci_regs->port_status[port - 1]); in ehci_reset_port() 625 portsc = readl(&ehci_regs->port_status[port - 1]); in ehci_reset_port() 633 &ehci_regs->port_status[por in ehci_reset_port() [all...] |
/kernel/linux/linux-5.10/drivers/usb/misc/ |
H A D | lvstest.c | 37 struct usb_port_status port_status; member 333 struct usb_port_status *port_status = &lvs->port_status; in lvs_rh_work() local 341 port_status, sizeof(*port_status), 1000); in lvs_rh_work() 345 portchange = le16_to_cpu(port_status->wPortChange); in lvs_rh_work() 363 if (le16_to_cpu(port_status->wPortStatus) & in lvs_rh_work()
|
/kernel/linux/linux-6.6/drivers/usb/misc/ |
H A D | lvstest.c | 37 struct usb_port_status port_status; member 333 struct usb_port_status *port_status = &lvs->port_status; in lvs_rh_work() local 341 port_status, sizeof(*port_status), 1000); in lvs_rh_work() 345 portchange = le16_to_cpu(port_status->wPortChange); in lvs_rh_work() 363 if (le16_to_cpu(port_status->wPortStatus) & in lvs_rh_work()
|