Home
last modified time | relevance | path

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

12

/drivers/usb/host/
Dfhci-hub.c86 enum fhci_port_status port_status; in fhci_port_disable() local
95 port_status = usb->port_status; in fhci_port_disable()
96 usb->port_status = FHCI_PORT_DISABLED; in fhci_port_disable()
103 if (port_status == FHCI_PORT_WAITING) in fhci_port_disable()
120 fhci_config_transceiver(fhci, usb->port_status); in fhci_port_enable()
122 if ((usb->port_status != FHCI_PORT_FULL) && in fhci_port_enable()
123 (usb->port_status != FHCI_PORT_LOW)) in fhci_port_enable()
212 struct usb_port_status *port_status; in fhci_hub_control() local
283 port_status = (struct usb_port_status *)buf; in fhci_hub_control()
284 port_status->wPortStatus = in fhci_hub_control()
[all …]
Dehci-hub.c72 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports()
86 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports()
123 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports()
154 if (ehci_readl(ehci, &ehci->regs->port_status[i]) & PORT_CSC) in ehci_port_change()
192 u32 __iomem *reg = &ehci->regs->port_status[port]; in ehci_adjust_port_wakeup_flags()
271 u32 __iomem *reg = &ehci->regs->port_status [port]; in ehci_bus_suspend()
440 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_bus_resume()
477 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
484 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
501 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
[all …]
Dmax3421-hcd.c128 u32 port_status; member
472 if (max3421_hcd->port_status & USB_PORT_STAT_LOW_SPEED) { in max3421_set_speed()
1147 old_port_status = max3421_hcd->port_status; in max3421_detect_conn()
1149 max3421_hcd->port_status |= USB_PORT_STAT_CONNECTION; in max3421_detect_conn()
1151 max3421_hcd->port_status &= ~USB_PORT_STAT_CONNECTION; in max3421_detect_conn()
1153 max3421_hcd->port_status |= USB_PORT_STAT_LOW_SPEED; in max3421_detect_conn()
1155 max3421_hcd->port_status &= ~USB_PORT_STAT_LOW_SPEED; in max3421_detect_conn()
1156 chg = (old_port_status ^ max3421_hcd->port_status); in max3421_detect_conn()
1157 max3421_hcd->port_status |= chg << 16; in max3421_detect_conn()
1262 old_port_status = max3421_hcd->port_status; in max3421_handle_irqs()
[all …]
Dfhci-sched.c192 if (usb->port_status == FHCI_PORT_FULL) in add_packet()
238 if (usb->port_status != FHCI_PORT_FULL && in add_packet()
239 usb->port_status != FHCI_PORT_LOW) { in add_packet()
407 if ((usb->port_status == FHCI_PORT_DISABLED) && in sof_interrupt()
411 usb->port_status = FHCI_PORT_LOW; in sof_interrupt()
413 usb->port_status = FHCI_PORT_FULL; in sof_interrupt()
436 usb->port_status = FHCI_PORT_DISABLED; in fhci_device_disconnected_interrupt()
474 usb->port_status = FHCI_PORT_LOW; in fhci_device_connected_interrupt()
492 usb->port_status = FHCI_PORT_FULL; in fhci_device_connected_interrupt()
566 if ((usb->port_status == FHCI_PORT_FULL) || in fhci_irq()
[all …]
Dehci-fsl.c199 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy()
253 ehci_writel(ehci, portsc, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy()
449 pdata->pm_portsc = ehci_readl(ehci, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend()
459 tmp = ehci_readl(ehci, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend()
461 ehci_writel(ehci, tmp, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend()
515 ehci_writel(ehci, pdata->pm_portsc, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_resume()
626 status = readl(&ehci->regs->port_status[port]); in ehci_start_port_reset()
634 &ehci->regs->port_status[port]); in ehci_start_port_reset()
636 writel(PORT_RESET, &ehci->regs->port_status[port]); in ehci_start_port_reset()
Dxhci-hub.c290 static unsigned int xhci_port_speed(unsigned int port_status) in xhci_port_speed() argument
292 if (DEV_LOWSPEED(port_status)) in xhci_port_speed()
294 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 wIndex, 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 …]
Dfhci-hcd.c142 if (usb->port_status == FHCI_PORT_FULL || in fhci_usb_disable()
143 usb->port_status == FHCI_PORT_LOW) in fhci_usb_disable()
266 usb->port_status = FHCI_PORT_DISABLED; in fhci_usb_init()
484 if (usb->port_status != FHCI_PORT_DISABLED) { in fhci_urb_dequeue()
Doxu210hp-hcd.c423 u32 __iomem *status_reg, int port_status) in check_reset_complete() argument
425 if (!(port_status & PORT_CONNECT)) { in check_reset_complete()
427 return port_status; in check_reset_complete()
431 if (!(port_status & PORT_PE)) { in check_reset_complete()
434 return port_status; in check_reset_complete()
438 return port_status; in check_reset_complete()
2353 writel(PORT_RWC_BITS, &oxu->regs->port_status[port]); in ehci_turn_off_all_ports()
2486 int pstatus = readl(&oxu->regs->port_status[i]); in oxu210_hcd_irq()
3103 temp = readl(&oxu->regs->port_status[i]); in oxu_hub_status_data()
3149 u32 __iomem *status_reg = &oxu->regs->port_status[wIndex - 1]; in oxu_hub_control()
[all …]
/drivers/usb/usbip/
Dvhci_hcd.c179 status = vhci_hcd->port_status[rhport]; in rh_port_connect()
194 vhci_hcd->port_status[rhport] = status; in rh_port_connect()
213 status = vhci_hcd->port_status[rhport]; in rh_port_disconnect()
218 vhci_hcd->port_status[rhport] = status; in rh_port_disconnect()
261 if ((vhci_hcd->port_status[rhport] & PORT_C_MASK)) { in vhci_hub_status()
374 memcpy(prev_port_status, vhci_hcd->port_status, in vhci_hub_control()
396 if (vhci_hcd->port_status[rhport] & USB_PORT_STAT_SUSPEND) { in vhci_hub_control()
406 vhci_hcd->port_status[rhport] &= ~USB_SS_PORT_STAT_POWER; in vhci_hub_control()
408 vhci_hcd->port_status[rhport] &= ~USB_PORT_STAT_POWER; in vhci_hub_control()
413 vhci_hcd->port_status[rhport] &= ~(1 << wValue); in vhci_hub_control()
[all …]
Dvhci.h111 u32 port_status[VHCI_HC_PORTS]; member
/drivers/usb/gadget/udc/
Ddummy_hcd.c235 u32 port_status; member
365 if ((dum_hcd->port_status & USB_SS_PORT_STAT_POWER) == 0) { in set_link_state_by_speed()
366 dum_hcd->port_status = 0; in set_link_state_by_speed()
369 dum_hcd->port_status &= ~(USB_PORT_STAT_CONNECTION | in set_link_state_by_speed()
373 dum_hcd->port_status |= in set_link_state_by_speed()
377 dum_hcd->port_status |= (USB_PORT_STAT_CONNECTION | in set_link_state_by_speed()
381 dum_hcd->port_status |= in set_link_state_by_speed()
383 if ((dum_hcd->port_status & USB_PORT_STAT_ENABLE) && in set_link_state_by_speed()
384 (dum_hcd->port_status & in set_link_state_by_speed()
390 if ((dum_hcd->port_status & USB_PORT_STAT_POWER) == 0) { in set_link_state_by_speed()
[all …]
Ds3c2410_udc.h87 u32 port_status; member
/drivers/ata/
Dsata_vsc.c227 static inline void vsc_error_intr(u8 port_status, struct ata_port *ap) in vsc_error_intr() argument
229 if (port_status & (VSC_SATA_INT_PHY_CHANGE | VSC_SATA_INT_ERROR_M)) in vsc_error_intr()
235 static void vsc_port_intr(u8 port_status, struct ata_port *ap) in vsc_port_intr() argument
240 if (unlikely(port_status & VSC_SATA_INT_ERROR)) { in vsc_port_intr()
241 vsc_error_intr(port_status, ap); in vsc_port_intr()
283 u8 port_status = (status >> (8 * i)) & 0xff; in vsc_sata_interrupt() local
284 if (port_status) { in vsc_sata_interrupt()
285 vsc_port_intr(port_status, host->ports[i]); in vsc_sata_interrupt()
Dsata_promise.c858 u32 port_status, u32 err_mask) in pdc_error_intr() argument
864 ata_ehi_push_desc(ehi, "port_status 0x%08x", port_status); in pdc_error_intr()
865 port_status &= err_mask; in pdc_error_intr()
867 if (port_status & PDC_DRIVE_ERR) in pdc_error_intr()
869 if (port_status & (PDC_OVERRUN_ERR | PDC_UNDERRUN_ERR)) in pdc_error_intr()
871 if (port_status & (PDC2_ATA_HBA_ERR | PDC2_ATA_DMA_CNT_ERR)) in pdc_error_intr()
873 if (port_status & (PDC_PH_ERR | PDC_SH_ERR | PDC_DH_ERR | PDC2_HTO_ERR in pdc_error_intr()
896 u32 port_status, err_mask; in pdc_host_intr() local
903 port_status = readl(ata_mmio + PDC_GLOBAL_CTL); in pdc_host_intr()
904 if (unlikely(port_status & err_mask)) { in pdc_host_intr()
[all …]
/drivers/usb/early/
Dehci-dbgp.c86 readl(&ehci_regs->port_status[dbgp_phys_port - 1])); in dbgp_ehci_status()
513 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
522 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
524 writel(portsc, &ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
550 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
552 writel(portsc, &ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
620 portsc = readl(&ehci_regs->port_status[port - 1]); in ehci_reset_port()
623 writel(portsc, &ehci_regs->port_status[port - 1]); in ehci_reset_port()
629 portsc = readl(&ehci_regs->port_status[port - 1]); in ehci_reset_port()
637 &ehci_regs->port_status[port - 1]); in ehci_reset_port()
[all …]
/drivers/usb/misc/
Dlvstest.c40 struct usb_port_status port_status; member
339 struct usb_port_status *port_status = &lvs->port_status; in lvs_rh_work() local
347 port_status, sizeof(*port_status), 1000); in lvs_rh_work()
351 portchange = le16_to_cpu(port_status->wPortChange); in lvs_rh_work()
369 if (le16_to_cpu(port_status->wPortStatus) & in lvs_rh_work()
/drivers/scsi/qla4xxx/
Dql4_dbg.c90 (uint8_t) offsetof(struct isp_reg, u2.isp4010.port_status), in qla4xxx_dump_registers()
91 readw(&ha->reg->u2.isp4010.port_status)); in qla4xxx_dump_registers()
113 offsetof(struct isp_reg, u2.isp4022.p0.port_status), in qla4xxx_dump_registers()
114 readw(&ha->reg->u2.isp4022.p0.port_status)); in qla4xxx_dump_registers()
/drivers/staging/octeon-usb/
Docteon-hcd.c370 struct cvmx_usb_port_status port_status; member
1023 result.connected != usb->port_status.connected; in cvmx_usb_get_status()
3289 struct cvmx_usb_port_status port_status; in octeon_usb_hub_status_data() local
3293 port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_status_data()
3295 buf[0] = port_status.connect_change << 1; in octeon_usb_hub_status_data()
3306 int port_status; in octeon_usb_hub_control() local
3352 usb->port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_control()
3361 usb->port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_control()
3371 usb->port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_control()
3386 usb->port_status = cvmx_usb_get_status(usb); in octeon_usb_hub_control()
[all …]
/drivers/tty/
Disicom.c193 unsigned short port_status; /* each bit for each port */ member
782 card->port_status |= (1 << channel); in isicom_config_port()
783 outw(card->port_status, base + 0x02); in isicom_config_port()
919 card->port_status &= ~(1 << ip->channel); in isicom_shutdown()
920 outw(card->port_status, card->base + 0x02); in isicom_shutdown()
1218 card->port_status &= ~(1 << port->channel); in isicom_throttle()
1219 outw(card->port_status, card->base + 0x02); in isicom_throttle()
1232 card->port_status |= (1 << port->channel); in isicom_unthrottle()
1233 outw(card->port_status, card->base + 0x02); in isicom_unthrottle()
/drivers/usb/serial/
Ddigi_acceleport.c1390 int port_status; in digi_read_inb_callback() local
1424 port_status = buf[2]; in digi_read_inb_callback()
1431 if (port_status & DIGI_OVERRUN_ERROR) in digi_read_inb_callback()
1436 if (port_status & DIGI_BREAK_ERROR) in digi_read_inb_callback()
1438 else if (port_status & DIGI_PARITY_ERROR) in digi_read_inb_callback()
1440 else if (port_status & DIGI_FRAMING_ERROR) in digi_read_inb_callback()
/drivers/usb/dwc2/
Dhcd.c3539 u32 port_status; in dwc2_hcd_hub_control() local
3680 port_status = 0; in dwc2_hcd_hub_control()
3682 port_status |= USB_PORT_STAT_C_CONNECTION << 16; in dwc2_hcd_hub_control()
3684 port_status |= USB_PORT_STAT_C_ENABLE << 16; in dwc2_hcd_hub_control()
3686 port_status |= USB_PORT_STAT_C_SUSPEND << 16; in dwc2_hcd_hub_control()
3688 port_status |= USB_PORT_STAT_C_L1 << 16; in dwc2_hcd_hub_control()
3690 port_status |= USB_PORT_STAT_C_RESET << 16; in dwc2_hcd_hub_control()
3693 port_status |= USB_PORT_STAT_C_OVERCURRENT << 16; in dwc2_hcd_hub_control()
3704 *(__le32 *)buf = cpu_to_le32(port_status); in dwc2_hcd_hub_control()
3712 port_status |= USB_PORT_STAT_CONNECTION; in dwc2_hcd_hub_control()
[all …]
/drivers/usb/isp1760/
Disp1760-hcd.c1787 int port_status) in check_reset_complete() argument
1789 if (!(port_status & PORT_CONNECT)) in check_reset_complete()
1790 return port_status; in check_reset_complete()
1793 if (!(port_status & PORT_PE)) { in check_reset_complete()
1799 port_status |= PORT_OWNER; in check_reset_complete()
1800 port_status &= ~PORT_RWC_BITS; in check_reset_complete()
1801 reg_write32(hcd->regs, HC_PORTSC1, port_status); in check_reset_complete()
1807 return port_status; in check_reset_complete()
/drivers/net/fddi/
Ddefxx.c1628 PI_UINT32 port_status; /* PDQ port status register value */ in dfx_int_pr_halt_id() local
1633 dfx_port_read_long(bp, PI_PDQ_K_REG_PORT_STATUS, &port_status); in dfx_int_pr_halt_id()
1637 halt_id = (port_status & PI_PSTATUS_M_HALT_ID) >> PI_PSTATUS_V_HALT_ID; in dfx_int_pr_halt_id()
1878 PI_UINT32 port_status; /* Port Status register */ in dfx_int_common() local
1900 dfx_port_read_long(bp, PI_PDQ_K_REG_PORT_STATUS, &port_status); in dfx_int_common()
1904 if (port_status & PI_PSTATUS_M_TYPE_0_PENDING) in dfx_int_common()
2866 PI_UINT32 port_status; /* Port Status register value */ in dfx_hw_adap_state_rd() local
2868 dfx_port_read_long(bp, PI_PDQ_K_REG_PORT_STATUS, &port_status); in dfx_hw_adap_state_rd()
2869 return (port_status & PI_PSTATUS_M_STATE) >> PI_PSTATUS_V_STATE; in dfx_hw_adap_state_rd()
/drivers/net/wan/
Dwanxl.c70 port_status_t port_status[4]; member
97 return &port->card->status->port_status[port->node]; in get_status()
723 (void *)&card->status->port_status[i] - in wanxl_pci_init_one()
/drivers/net/ethernet/marvell/
Dmv643xx_eth.c1527 u32 port_status; in mv643xx_eth_get_link_ksettings_phyless() local
1530 port_status = rdlp(mp, PORT_STATUS); in mv643xx_eth_get_link_ksettings_phyless()
1534 switch (port_status & PORT_SPEED_MASK) { in mv643xx_eth_get_link_ksettings_phyless()
1548 cmd->base.duplex = (port_status & FULL_DUPLEX) ? in mv643xx_eth_get_link_ksettings_phyless()
2210 u32 port_status; in handle_link_event() local
2215 port_status = rdlp(mp, PORT_STATUS); in handle_link_event()
2216 if (!(port_status & LINK_UP)) { in handle_link_event()
2234 switch (port_status & PORT_SPEED_MASK) { in handle_link_event()
2248 duplex = (port_status & FULL_DUPLEX) ? 1 : 0; in handle_link_event()
2249 fc = (port_status & FLOW_CONTROL_ENABLED) ? 1 : 0; in handle_link_event()

12