Home
last modified time | relevance | path

Searched refs:port_status (Results 1 – 25 of 51) sorted by relevance

123

/linux/drivers/usb/host/
A Dfhci-hub.c82 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 …]
A Dehci-hub.c58 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports()
540 u32 port_status; in set_owner() local
558 port_status ^= PORT_OWNER; in set_owner()
574 int port_status in check_reset_complete() argument
576 if (!(port_status & PORT_CONNECT)) in check_reset_complete()
577 return port_status; in check_reset_complete()
580 if (!(port_status & PORT_PE)) { in check_reset_complete()
587 return port_status; in check_reset_complete()
594 port_status |= PORT_OWNER; in check_reset_complete()
595 port_status &= ~PORT_RWC_BITS; in check_reset_complete()
[all …]
A Dfhci-sched.c188 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()
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()
563 (usb->port_status == FHCI_PORT_LOW)) { in fhci_irq()
[all …]
A Dmax3421-hcd.c130 u32 port_status; member
1121 old_port_status = max3421_hcd->port_status; in max3421_detect_conn()
1131 max3421_hcd->port_status |= chg << 16; in max3421_detect_conn()
1235 old_port_status = max3421_hcd->port_status; in max3421_handle_irqs()
1252 max3421_hcd->port_status |= chg << 16; in max3421_handle_irqs()
1461 max3421_hcd->port_status |= USB_PORT_STAT_RESET; in max3421_reset_port()
1623 max3421_hcd->port_status); in max3421_hub_status_data()
1700 max3421_hcd->port_status &= ~(1 << value); in max3421_hub_control()
1724 cpu_to_le16(max3421_hcd->port_status >> 16); in max3421_hub_control()
1740 max3421_hcd->port_status |= in max3421_hub_control()
[all …]
A Dehci-fsl.c212 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()
A Dehci-mv.c86 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()
A Dehci-platform.c147 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()
A Dxhci-hub.c379 if (DEV_LOWSPEED(port_status)) in xhci_port_speed()
381 if (DEV_HIGHSPEED(port_status)) in xhci_port_speed()
568 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_disable_port() argument
584 writel(port_status | PORT_PE, addr); in xhci_disable_port()
585 port_status = readl(addr); in xhci_disable_port()
587 hcd->self.busnum, wIndex + 1, port_status); in xhci_disable_port()
634 writel(port_status | status, addr); in xhci_clear_port_change_bit()
635 port_status = readl(addr); in xhci_clear_port_change_bit()
638 wIndex + 1, port_change_bit, port_status); in xhci_clear_port_change_bit()
979 int port_status = readl(port->addr); in xhci_handle_usb2_port_link_resume() local
[all …]
A Dfhci-hcd.c138 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()
A Doxu210hp-hcd.c172 u32 port_status[0]; /* up to N_PORTS */ member
848 u32 __iomem *status_reg, int port_status) in check_reset_complete() argument
850 if (!(port_status & PORT_CONNECT)) { in check_reset_complete()
852 return port_status; in check_reset_complete()
856 if (!(port_status & PORT_PE)) { in check_reset_complete()
859 return port_status; in check_reset_complete()
863 return port_status; in check_reset_complete()
3523 temp = readl(&oxu->regs->port_status[i]); in oxu_hub_status_data()
3969 temp = readl(&oxu->regs->port_status[i]); in oxu_bus_resume()
3976 writel(temp, &oxu->regs->port_status[i]); in oxu_bus_resume()
[all …]
/linux/drivers/usb/usbip/
A Dvhci_hcd.c165 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()
470 vhci_hcd->port_status[rhport] |= in vhci_hub_control()
477 vhci_hcd->port_status[rhport] |= in vhci_hub_control()
481 vhci_hcd->port_status[rhport] |= in vhci_hub_control()
582 vhci_hcd->port_status[rhport] = 0; in vhci_hub_control()
583 vhci_hcd->port_status[rhport] = in vhci_hub_control()
606 if ((vhci_hcd->port_status[rhport] & in vhci_hub_control()
[all …]
A Dvhci.h106 u32 port_status[VHCI_HC_PORTS]; member
/linux/drivers/usb/gadget/udc/
A Ddummy_hcd.c244 u32 port_status; member
375 dum_hcd->port_status = 0; in set_link_state_by_speed()
382 dum_hcd->port_status |= in set_link_state_by_speed()
390 dum_hcd->port_status |= in set_link_state_by_speed()
393 (dum_hcd->port_status & in set_link_state_by_speed()
400 dum_hcd->port_status = 0; in set_link_state_by_speed()
410 dum_hcd->port_status |= in set_link_state_by_speed()
416 dum_hcd->port_status |= in set_link_state_by_speed()
2034 dum_hcd->port_status); in dummy_hub_status()
2205 dum_hcd->port_status |= in dummy_hub_control()
[all …]
A Ds3c2410_udc.h83 u32 port_status; member
/linux/drivers/ata/
A Dsata_vsc.c211 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()
A Dsata_promise.c838 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 …]
/linux/drivers/usb/early/
A Dehci-dbgp.c88 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()
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()
636 portsc = readl(&ehci_regs->port_status[port-1]); in ehci_reset_port()
[all …]
/linux/drivers/usb/misc/
A Dlvstest.c37 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()
/linux/drivers/scsi/qla4xxx/
A Dql4_dbg.c89 (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()
/linux/drivers/staging/octeon-usb/
A Docteon-hcd.c374 struct cvmx_usb_port_status port_status; member
3292 struct cvmx_usb_port_status port_status; in octeon_usb_hub_status_data() local
3296 port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_status_data()
3298 buf[0] = port_status.connect_change << 1; in octeon_usb_hub_status_data()
3309 int port_status; in octeon_usb_hub_control() local
3355 usb->port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_control()
3423 port_status = 0; in octeon_usb_hub_control()
3441 port_status |= (1 << USB_PORT_FEAT_ENABLE); in octeon_usb_hub_control()
3451 port_status |= (1 << USB_PORT_FEAT_POWER); in octeon_usb_hub_control()
3456 port_status |= USB_PORT_STAT_HIGH_SPEED; in octeon_usb_hub_control()
[all …]
/linux/drivers/extcon/
A Dextcon-ptn5150.c72 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()
/linux/drivers/usb/serial/
A Ddigi_acceleport.c1361 int port_status; in digi_read_inb_callback() local
1395 port_status = buf[2]; in digi_read_inb_callback()
1402 if (port_status & DIGI_OVERRUN_ERROR) in digi_read_inb_callback()
1407 if (port_status & DIGI_BREAK_ERROR) in digi_read_inb_callback()
1409 else if (port_status & DIGI_PARITY_ERROR) in digi_read_inb_callback()
1411 else if (port_status & DIGI_FRAMING_ERROR) in digi_read_inb_callback()
/linux/drivers/usb/dwc2/
A Dhcd.c3411 u32 port_status; in dwc2_hcd_hub_control() local
3556 port_status = 0; in dwc2_hcd_hub_control()
3564 port_status |= USB_PORT_STAT_C_L1 << 16; in dwc2_hcd_hub_control()
3588 port_status |= USB_PORT_STAT_CONNECTION; in dwc2_hcd_hub_control()
3590 port_status |= USB_PORT_STAT_ENABLE; in dwc2_hcd_hub_control()
3592 port_status |= USB_PORT_STAT_SUSPEND; in dwc2_hcd_hub_control()
3596 port_status |= USB_PORT_STAT_RESET; in dwc2_hcd_hub_control()
3598 port_status |= USB_PORT_STAT_POWER; in dwc2_hcd_hub_control()
3604 port_status |= USB_PORT_STAT_LOW_SPEED; in dwc2_hcd_hub_control()
3607 port_status |= USB_PORT_STAT_TEST; in dwc2_hcd_hub_control()
[all …]
/linux/drivers/net/fddi/
A Ddefxx.c1630 PI_UINT32 port_status; /* PDQ port status register value */ in dfx_int_pr_halt_id() local
1635 dfx_port_read_long(bp, PI_PDQ_K_REG_PORT_STATUS, &port_status); in dfx_int_pr_halt_id()
1639 halt_id = (port_status & PI_PSTATUS_M_HALT_ID) >> PI_PSTATUS_V_HALT_ID; in dfx_int_pr_halt_id()
1880 PI_UINT32 port_status; /* Port Status register */ in dfx_int_common() local
1902 dfx_port_read_long(bp, PI_PDQ_K_REG_PORT_STATUS, &port_status); in dfx_int_common()
1906 if (port_status & PI_PSTATUS_M_TYPE_0_PENDING) in dfx_int_common()
2868 PI_UINT32 port_status; /* Port Status register value */ in dfx_hw_adap_state_rd() local
2870 dfx_port_read_long(bp, PI_PDQ_K_REG_PORT_STATUS, &port_status); in dfx_hw_adap_state_rd()
2871 return (port_status & PI_PSTATUS_M_STATE) >> PI_PSTATUS_V_STATE; in dfx_hw_adap_state_rd()
/linux/include/linux/usb/
A Dehci_def.h132 u32 port_status[HCS_N_PORTS_MAX]; /* up to N_PORTS */ member

Completed in 89 milliseconds

123