/kernel/linux/linux-5.10/drivers/usb/host/ |
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 = (struct usb_port_status *)buf; in fhci_hub_control() 280 port_status->wPortStatus = in fhci_hub_control() [all …]
|
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 [i]); in ehci_bus_resume() [all …]
|
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 == FHCI_PORT_FULL) || in fhci_irq() [all …]
|
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 …]
|
D | ehci-brcm.c | 66 status_reg = &ehci->regs->port_status[(wIndex & 0xff) - 1]; in ehci_brcm_hub_control() 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() 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()
|
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()
|
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()
|
D | ehci-platform.c | 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()
|
D | xhci-hub.c | 291 static unsigned int xhci_port_speed(unsigned int port_status) in xhci_port_speed() argument 293 if (DEV_LOWSPEED(port_status)) in xhci_port_speed() 295 if (DEV_HIGHSPEED(port_status)) in xhci_port_speed() 482 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_disable_port() argument 498 writel(port_status | PORT_PE, addr); in xhci_disable_port() 499 port_status = readl(addr); in xhci_disable_port() 501 hcd->self.busnum, wIndex + 1, port_status); in xhci_disable_port() 505 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_clear_port_change_bit() argument 548 writel(port_status | status, addr); in xhci_clear_port_change_bit() 549 port_status = readl(addr); in xhci_clear_port_change_bit() [all …]
|
D | fhci-hcd.c | 138 if (usb->port_status == FHCI_PORT_FULL || in fhci_usb_disable() 139 usb->port_status == FHCI_PORT_LOW) in fhci_usb_disable() 262 usb->port_status = FHCI_PORT_DISABLED; in fhci_usb_init() 481 if (usb->port_status != FHCI_PORT_DISABLED) { in fhci_urb_dequeue()
|
/kernel/linux/linux-5.10/drivers/usb/usbip/ |
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() 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[rhport] &= ~USB_PORT_STAT_POWER; in vhci_hub_control() 401 vhci_hcd->port_status[rhport] &= ~(1 << wValue); in vhci_hub_control() [all …]
|
D | vhci.h | 106 u32 port_status[VHCI_HC_PORTS]; member
|
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
D | dummy_hcd.c | 244 u32 port_status; member 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() 399 if ((dum_hcd->port_status & USB_PORT_STAT_POWER) == 0) { in set_link_state_by_speed() [all …]
|
D | s3c2410_udc.h | 83 u32 port_status; member
|
/kernel/linux/linux-5.10/drivers/ata/ |
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()
|
D | sata_promise.c | 838 u32 port_status, u32 err_mask) in pdc_error_intr() argument 844 ata_ehi_push_desc(ehi, "port_status 0x%08x", port_status); in pdc_error_intr() 845 port_status &= err_mask; in pdc_error_intr() 847 if (port_status & PDC_DRIVE_ERR) in pdc_error_intr() 849 if (port_status & (PDC_OVERRUN_ERR | PDC_UNDERRUN_ERR)) in pdc_error_intr() 851 if (port_status & (PDC2_ATA_HBA_ERR | PDC2_ATA_DMA_CNT_ERR)) in pdc_error_intr() 853 if (port_status & (PDC_PH_ERR | PDC_SH_ERR | PDC_DH_ERR | PDC2_HTO_ERR in pdc_error_intr() 876 u32 port_status, err_mask; in pdc_host_intr() local 883 port_status = readl(ata_mmio + PDC_GLOBAL_CTL); in pdc_host_intr() 884 if (unlikely(port_status & err_mask)) { in pdc_host_intr() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/early/ |
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[port - 1]); in ehci_reset_port() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/misc/ |
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-5.10/drivers/scsi/qla4xxx/ |
D | ql4_dbg.c | 89 (uint8_t) offsetof(struct isp_reg, u2.isp4010.port_status), in qla4xxx_dump_registers() 90 readw(&ha->reg->u2.isp4010.port_status)); in qla4xxx_dump_registers() 112 offsetof(struct isp_reg, u2.isp4022.p0.port_status), in qla4xxx_dump_registers() 113 readw(&ha->reg->u2.isp4022.p0.port_status)); in qla4xxx_dump_registers()
|
/kernel/linux/linux-5.10/drivers/staging/octeon-usb/ |
D | octeon-hcd.c | 372 struct cvmx_usb_port_status port_status; member 1026 result.connected != usb->port_status.connected; in cvmx_usb_get_status() 3288 struct cvmx_usb_port_status port_status; in octeon_usb_hub_status_data() local 3292 port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_status_data() 3294 buf[0] = port_status.connect_change << 1; in octeon_usb_hub_status_data() 3305 int port_status; in octeon_usb_hub_control() local 3351 usb->port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_control() 3360 usb->port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_control() 3370 usb->port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_control() 3385 usb->port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_control() [all …]
|
/kernel/linux/linux-5.10/drivers/extcon/ |
D | extcon-ptn5150.c | 72 unsigned int port_status, reg_data, vbus; in ptn5150_check_state() local 81 port_status = FIELD_GET(PTN5150_REG_CC_PORT_ATTACHMENT, reg_data); in ptn5150_check_state() 83 switch (port_status) { in ptn5150_check_state()
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | isicom.c | 189 unsigned short port_status; /* each bit for each port */ member 773 card->port_status |= (1 << channel); in isicom_config_port() 774 outw(card->port_status, base + 0x02); in isicom_config_port() 910 card->port_status &= ~(1 << ip->channel); in isicom_shutdown() 911 outw(card->port_status, card->base + 0x02); in isicom_shutdown() 1186 card->port_status &= ~(1 << port->channel); in isicom_throttle() 1187 outw(card->port_status, card->base + 0x02); in isicom_throttle() 1200 card->port_status |= (1 << port->channel); in isicom_unthrottle() 1201 outw(card->port_status, card->base + 0x02); in isicom_unthrottle()
|
/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
D | hcd.c | 3376 u32 port_status; in dwc2_hcd_hub_control() local 3525 port_status = 0; in dwc2_hcd_hub_control() 3527 port_status |= USB_PORT_STAT_C_CONNECTION << 16; in dwc2_hcd_hub_control() 3529 port_status |= USB_PORT_STAT_C_ENABLE << 16; in dwc2_hcd_hub_control() 3531 port_status |= USB_PORT_STAT_C_SUSPEND << 16; in dwc2_hcd_hub_control() 3533 port_status |= USB_PORT_STAT_C_L1 << 16; in dwc2_hcd_hub_control() 3535 port_status |= USB_PORT_STAT_C_RESET << 16; in dwc2_hcd_hub_control() 3538 port_status |= USB_PORT_STAT_C_OVERCURRENT << 16; in dwc2_hcd_hub_control() 3549 *(__le32 *)buf = cpu_to_le32(port_status); in dwc2_hcd_hub_control() 3557 port_status |= USB_PORT_STAT_CONNECTION; in dwc2_hcd_hub_control() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/serial/ |
D | digi_acceleport.c | 1364 int port_status; in digi_read_inb_callback() local 1398 port_status = buf[2]; in digi_read_inb_callback() 1405 if (port_status & DIGI_OVERRUN_ERROR) in digi_read_inb_callback() 1410 if (port_status & DIGI_BREAK_ERROR) in digi_read_inb_callback() 1412 else if (port_status & DIGI_PARITY_ERROR) in digi_read_inb_callback() 1414 else if (port_status & DIGI_FRAMING_ERROR) in digi_read_inb_callback()
|
/kernel/linux/linux-5.10/include/linux/usb/ |
D | ehci_def.h | 130 u32 port_status[0]; /* up to N_PORTS */ member
|