Home
last modified time | relevance | path

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

12

/Linux-v6.6/drivers/usb/host/
Dfhci-hub.c81 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 = (struct usb_port_status *)buf; in fhci_hub_control()
279 port_status->wPortStatus = in fhci_hub_control()
[all …]
Dehci-hub.c58 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 …]
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()
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 …]
Dmax3421-hcd.c124 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 …]
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()
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()
Dehci-fsl.c206 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()
Dehci-platform.c144 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()
Docteon-hcd.c374 struct cvmx_usb_port_status port_status; member
1028 result.connected != usb->port_status.connected; in cvmx_usb_get_status()
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()
3364 usb->port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_control()
3374 usb->port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_control()
3389 usb->port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_control()
[all …]
Dxhci-hub.c377 static unsigned int xhci_port_speed(unsigned int port_status) in xhci_port_speed() argument
379 if (DEV_LOWSPEED(port_status)) in xhci_port_speed()
381 if (DEV_HIGHSPEED(port_status)) in xhci_port_speed()
612 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_clear_port_change_bit() argument
655 writel(port_status | status, addr); in xhci_clear_port_change_bit()
656 port_status = readl(addr); in xhci_clear_port_change_bit()
659 wIndex + 1, port_change_bit, port_status); in xhci_clear_port_change_bit()
997 int port_status = readl(port->addr); in xhci_handle_usb2_port_link_resume() local
1000 hcd->self.busnum, wIndex + 1, port_status); in xhci_handle_usb2_port_link_resume()
Dfhci-hcd.c139 if (usb->port_status == FHCI_PORT_FULL || in fhci_usb_disable()
140 usb->port_status == FHCI_PORT_LOW) in fhci_usb_disable()
263 usb->port_status = FHCI_PORT_DISABLED; in fhci_usb_init()
481 if (usb->port_status != FHCI_PORT_DISABLED) { in fhci_urb_dequeue()
Doxu210hp-hcd.c172 u32 port_status[]; /* 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()
2774 writel(PORT_RWC_BITS, &oxu->regs->port_status[port]); in ehci_turn_off_all_ports()
2911 int pstatus = readl(&oxu->regs->port_status[i]); in oxu210_hcd_irq()
3523 temp = readl(&oxu->regs->port_status[i]); in oxu_hub_status_data()
[all …]
/Linux-v6.6/drivers/usb/usbip/
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()
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 …]
Dvhci.h106 u32 port_status[VHCI_HC_PORTS]; member
/Linux-v6.6/drivers/usb/gadget/udc/
Ddummy_hcd.c244 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 …]
/Linux-v6.6/drivers/ata/
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()
Dsata_promise.c836 u32 port_status, u32 err_mask) in pdc_error_intr() argument
842 ata_ehi_push_desc(ehi, "port_status 0x%08x", port_status); in pdc_error_intr()
843 port_status &= err_mask; in pdc_error_intr()
845 if (port_status & PDC_DRIVE_ERR) in pdc_error_intr()
847 if (port_status & (PDC_OVERRUN_ERR | PDC_UNDERRUN_ERR)) in pdc_error_intr()
849 if (port_status & (PDC2_ATA_HBA_ERR | PDC2_ATA_DMA_CNT_ERR)) in pdc_error_intr()
851 if (port_status & (PDC_PH_ERR | PDC_SH_ERR | PDC_DH_ERR | PDC2_HTO_ERR in pdc_error_intr()
874 u32 port_status, err_mask; in pdc_host_intr() local
881 port_status = readl(ata_mmio + PDC_GLOBAL_CTL); in pdc_host_intr()
882 if (unlikely(port_status & err_mask)) { in pdc_host_intr()
[all …]
/Linux-v6.6/drivers/usb/early/
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()
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 …]
/Linux-v6.6/drivers/usb/misc/
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-v6.6/drivers/scsi/qla4xxx/
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-v6.6/drivers/extcon/
Dextcon-ptn5150.c74 unsigned int port_status, reg_data, vbus; in ptn5150_check_state() local
84 port_status = FIELD_GET(PTN5150_REG_CC_PORT_ATTACHMENT, reg_data); in ptn5150_check_state()
86 switch (port_status) { in ptn5150_check_state()
/Linux-v6.6/drivers/usb/serial/
Ddigi_acceleport.c1364 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()
/Linux-v6.6/drivers/usb/dwc2/
Dhcd.c3382 u32 port_status; in dwc2_hcd_hub_control() local
3527 port_status = 0; in dwc2_hcd_hub_control()
3529 port_status |= USB_PORT_STAT_C_CONNECTION << 16; in dwc2_hcd_hub_control()
3531 port_status |= USB_PORT_STAT_C_ENABLE << 16; in dwc2_hcd_hub_control()
3533 port_status |= USB_PORT_STAT_C_SUSPEND << 16; in dwc2_hcd_hub_control()
3535 port_status |= USB_PORT_STAT_C_L1 << 16; in dwc2_hcd_hub_control()
3537 port_status |= USB_PORT_STAT_C_RESET << 16; in dwc2_hcd_hub_control()
3540 port_status |= USB_PORT_STAT_C_OVERCURRENT << 16; in dwc2_hcd_hub_control()
3551 *(__le32 *)buf = cpu_to_le32(port_status); in dwc2_hcd_hub_control()
3559 port_status |= USB_PORT_STAT_CONNECTION; in dwc2_hcd_hub_control()
[all …]
/Linux-v6.6/include/linux/usb/
Dehci_def.h118 u32 port_status[HCS_N_PORTS_MAX]; /* up to N_PORTS */ member
/Linux-v6.6/drivers/net/fddi/
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-v6.6/drivers/net/wan/
Dwanxl.c65 port_status_t port_status[4]; member
88 return &port->card->status->port_status[port->node]; in get_status()
719 (void *)&card->status->port_status[i] - in wanxl_pci_init_one()

12