Home
last modified time | relevance | path

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

12

/linux-3.4.99/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()
213 struct usb_port_status *port_status; in fhci_hub_control() local
287 port_status = (struct usb_port_status *)buf; in fhci_hub_control()
288 port_status->wPortStatus = in fhci_hub_control()
[all …]
Dehci-hub.c65 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports()
95 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports()
125 if (ehci_readl(ehci, &ehci->regs->port_status[i]) & PORT_CSC) in ehci_port_change()
166 u32 __iomem *reg = &ehci->regs->port_status[port]; in ehci_adjust_port_wakeup_flags()
249 u32 __iomem *reg = &ehci->regs->port_status [port]; in ehci_bus_suspend()
408 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
415 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
427 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
430 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
472 u32 port_status; in set_owner() local
[all …]
Dehci-lpm.c30 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_num-1]); in ehci_lpm_set_da()
33 ehci_writel(ehci, portsc, &ehci->regs->port_status[port_num-1]); in ehci_lpm_set_da()
47 portsc = &ehci->regs->port_status[port-1]; in ehci_lpm_check()
61 retval = handshake(ehci, &ehci->regs->port_status[port-1], PORT_SSTS, in ehci_lpm_check()
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()
408 if ((usb->port_status == FHCI_PORT_DISABLED) && in sof_interrupt()
412 usb->port_status = FHCI_PORT_LOW; in sof_interrupt()
414 usb->port_status = FHCI_PORT_FULL; in sof_interrupt()
437 usb->port_status = FHCI_PORT_DISABLED; in fhci_device_disconnected_interrupt()
475 usb->port_status = FHCI_PORT_LOW; in fhci_device_connected_interrupt()
493 usb->port_status = FHCI_PORT_FULL; in fhci_device_connected_interrupt()
567 if ((usb->port_status == FHCI_PORT_FULL) || in fhci_irq()
[all …]
Dehci-tegra.c146 status_reg = &ehci->regs->port_status[(wIndex & 0xff) - 1]; in tegra_ehci_hub_control()
481 tegra->port_speed = (readl(&hw->port_status[0]) >> 26) & 0x3; in controller_suspend()
517 val = readl(&hw->port_status[0]); in controller_resume()
519 writel(val, &hw->port_status[0]); in controller_resume()
526 val = readl(&hw->port_status[0]); in controller_resume()
534 writel(val, &hw->port_status[0]); in controller_resume()
538 val = readl(&hw->port_status[0]); in controller_resume()
540 writel(val, &hw->port_status[0]); in controller_resume()
545 if (handshake(ehci, &hw->port_status[0], PORT_CONNECT, in controller_resume()
552 if (handshake(ehci, &hw->port_status[0], PORT_PE, in controller_resume()
[all …]
Dehci-fsl.c225 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy()
248 ehci_writel(ehci, portsc, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy()
435 pdata->pm_portsc = ehci_readl(ehci, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend()
445 tmp = ehci_readl(ehci, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend()
447 ehci_writel(ehci, tmp, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend()
501 ehci_writel(ehci, pdata->pm_portsc, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_resume()
612 status = readl(&ehci->regs->port_status[port]); in ehci_start_port_reset()
620 &ehci->regs->port_status[port]); in ehci_start_port_reset()
622 writel(PORT_RESET, &ehci->regs->port_status[port]); in ehci_start_port_reset()
Dxhci-hub.c170 static unsigned int xhci_port_speed(unsigned int port_status) in xhci_port_speed() argument
172 if (DEV_LOWSPEED(port_status)) in xhci_port_speed()
174 if (DEV_HIGHSPEED(port_status)) in xhci_port_speed()
335 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_disable_port() argument
345 xhci_writel(xhci, port_status | PORT_PE, addr); in xhci_disable_port()
346 port_status = xhci_readl(xhci, addr); in xhci_disable_port()
348 wIndex, port_status); in xhci_disable_port()
352 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_clear_port_change_bit() argument
391 xhci_writel(xhci, port_status | status, addr); in xhci_clear_port_change_bit()
392 port_status = xhci_readl(xhci, addr); in xhci_clear_port_change_bit()
[all …]
Dfhci-hcd.c140 if (usb->port_status == FHCI_PORT_FULL || in fhci_usb_disable()
141 usb->port_status == FHCI_PORT_LOW) in fhci_usb_disable()
264 usb->port_status = FHCI_PORT_DISABLED; in fhci_usb_init()
484 if (usb->port_status != FHCI_PORT_DISABLED) { in fhci_urb_dequeue()
Doxu210hp-hcd.c421 u32 __iomem *status_reg, int port_status) in check_reset_complete() argument
423 if (!(port_status & PORT_CONNECT)) { in check_reset_complete()
425 return port_status; in check_reset_complete()
429 if (!(port_status & PORT_PE)) { in check_reset_complete()
432 return port_status; in check_reset_complete()
436 return port_status; in check_reset_complete()
2359 writel(PORT_RWC_BITS, &oxu->regs->port_status[port]); in ehci_turn_off_all_ports()
2492 int pstatus = readl(&oxu->regs->port_status[i]); in oxu210_hcd_irq()
3114 temp = readl(&oxu->regs->port_status[i]); in oxu_hub_status_data()
3160 u32 __iomem *status_reg = &oxu->regs->port_status[wIndex - 1]; in oxu_hub_control()
[all …]
/linux-3.4.99/drivers/staging/usbip/
Dvhci_hcd.c129 the_controller->port_status[rhport] |= USB_PORT_STAT_CONNECTION in rh_port_connect()
134 the_controller->port_status[rhport] |= USB_PORT_STAT_HIGH_SPEED; in rh_port_connect()
137 the_controller->port_status[rhport] |= USB_PORT_STAT_LOW_SPEED; in rh_port_connect()
160 the_controller->port_status[rhport] &= ~USB_PORT_STAT_CONNECTION; in rh_port_disconnect()
161 the_controller->port_status[rhport] |= in rh_port_disconnect()
224 if ((vhci->port_status[rhport] & PORT_C_MASK)) { in vhci_hub_status()
290 memcpy(prev_port_status, dum->port_status, in vhci_hub_control()
301 if (dum->port_status[rhport] & USB_PORT_STAT_SUSPEND) { in vhci_hub_control()
311 dum->port_status[rhport] = 0; in vhci_hub_control()
321 dum->port_status[rhport] |= in vhci_hub_control()
[all …]
Dvhci.h86 u32 port_status[VHCI_NPORTS]; member
/linux-3.4.99/drivers/net/dsa/
Dmv88e6060.c227 int uninitialized_var(port_status); in mv88e6060_poll_link()
239 port_status = reg_read(ds, REG_PORT(i), 0x00); in mv88e6060_poll_link()
240 if (port_status < 0) in mv88e6060_poll_link()
243 link = !!(port_status & 0x1000); in mv88e6060_poll_link()
254 speed = (port_status & 0x0100) ? 100 : 10; in mv88e6060_poll_link()
255 duplex = (port_status & 0x0200) ? 1 : 0; in mv88e6060_poll_link()
256 fc = ((port_status & 0xc000) == 0xc000) ? 1 : 0; in mv88e6060_poll_link()
Dmv88e6xxx.c362 int uninitialized_var(port_status); in mv88e6xxx_poll_link()
374 port_status = mv88e6xxx_reg_read(ds, REG_PORT(i), 0x00); in mv88e6xxx_poll_link()
375 if (port_status < 0) in mv88e6xxx_poll_link()
378 link = !!(port_status & 0x0800); in mv88e6xxx_poll_link()
389 switch (port_status & 0x0300) { in mv88e6xxx_poll_link()
403 duplex = (port_status & 0x0400) ? 1 : 0; in mv88e6xxx_poll_link()
404 fc = (port_status & 0x8000) ? 1 : 0; in mv88e6xxx_poll_link()
/linux-3.4.99/drivers/usb/gadget/
Ddummy_hcd.c166 u32 port_status; member
294 if ((dum_hcd->port_status & USB_SS_PORT_STAT_POWER) == 0) { in set_link_state_by_speed()
295 dum_hcd->port_status = 0; in set_link_state_by_speed()
298 dum_hcd->port_status &= ~(USB_PORT_STAT_CONNECTION | in set_link_state_by_speed()
302 dum_hcd->port_status |= in set_link_state_by_speed()
306 dum_hcd->port_status |= (USB_PORT_STAT_CONNECTION | in set_link_state_by_speed()
310 dum_hcd->port_status |= in set_link_state_by_speed()
312 if ((dum_hcd->port_status & in set_link_state_by_speed()
314 (dum_hcd->port_status & in set_link_state_by_speed()
320 if ((dum_hcd->port_status & USB_PORT_STAT_POWER) == 0) { in set_link_state_by_speed()
[all …]
Ds3c2410_udc.h88 u32 port_status; member
/linux-3.4.99/drivers/ata/
Dsata_vsc.c228 static inline void vsc_error_intr(u8 port_status, struct ata_port *ap) in vsc_error_intr() argument
230 if (port_status & (VSC_SATA_INT_PHY_CHANGE | VSC_SATA_INT_ERROR_M)) in vsc_error_intr()
236 static void vsc_port_intr(u8 port_status, struct ata_port *ap) in vsc_port_intr() argument
241 if (unlikely(port_status & VSC_SATA_INT_ERROR)) { in vsc_port_intr()
242 vsc_error_intr(port_status, ap); in vsc_port_intr()
284 u8 port_status = (status >> (8 * i)) & 0xff; in vsc_sata_interrupt() local
285 if (port_status) { in vsc_sata_interrupt()
286 vsc_port_intr(port_status, host->ports[i]); in vsc_sata_interrupt()
Dsata_promise.c859 u32 port_status, u32 err_mask) in pdc_error_intr() argument
865 ata_ehi_push_desc(ehi, "port_status 0x%08x", port_status); in pdc_error_intr()
866 port_status &= err_mask; in pdc_error_intr()
868 if (port_status & PDC_DRIVE_ERR) in pdc_error_intr()
870 if (port_status & (PDC_OVERRUN_ERR | PDC_UNDERRUN_ERR)) in pdc_error_intr()
872 if (port_status & (PDC2_ATA_HBA_ERR | PDC2_ATA_DMA_CNT_ERR)) in pdc_error_intr()
874 if (port_status & (PDC_PH_ERR | PDC_SH_ERR | PDC_DH_ERR | PDC2_HTO_ERR in pdc_error_intr()
897 u32 port_status, err_mask; in pdc_host_intr() local
904 port_status = readl(ata_mmio + PDC_GLOBAL_CTL); in pdc_host_intr()
905 if (unlikely(port_status & err_mask)) { in pdc_host_intr()
[all …]
/linux-3.4.99/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()
626 portsc = readl(&ehci_regs->port_status[port - 1]); in ehci_reset_port()
629 writel(portsc, &ehci_regs->port_status[port - 1]); in ehci_reset_port()
635 portsc = readl(&ehci_regs->port_status[port - 1]); in ehci_reset_port()
643 &ehci_regs->port_status[port - 1]); in ehci_reset_port()
[all …]
/linux-3.4.99/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()
/linux-3.4.99/arch/h8300/kernel/
Dgpio.c121 static char *port_status(int portno) in port_status() function
150 len = sprintf(buf,"P%c: %s\n",port_name[c],port_status(c)); in gpio_proc_read()
/linux-3.4.99/drivers/tty/
Disicom.c193 unsigned short port_status; /* each bit for each port */ member
787 card->port_status |= (1 << channel); in isicom_config_port()
788 outw(card->port_status, base + 0x02); in isicom_config_port()
924 card->port_status &= ~(1 << ip->channel); in isicom_shutdown()
925 outw(card->port_status, card->base + 0x02); in isicom_shutdown()
1224 card->port_status &= ~(1 << port->channel); in isicom_throttle()
1225 outw(card->port_status, card->base + 0x02); in isicom_throttle()
1238 card->port_status |= (1 << port->channel); in isicom_unthrottle()
1239 outw(card->port_status, card->base + 0x02); in isicom_unthrottle()
/linux-3.4.99/drivers/usb/serial/
Ddigi_acceleport.c1422 int port_status = ((unsigned char *)urb->transfer_buffer)[2]; in digi_read_inb_callback() local
1438 port_status); in digi_read_inb_callback()
1457 if (port_status & DIGI_OVERRUN_ERROR) in digi_read_inb_callback()
1462 if (port_status & DIGI_BREAK_ERROR) in digi_read_inb_callback()
1464 else if (port_status & DIGI_PARITY_ERROR) in digi_read_inb_callback()
1466 else if (port_status & DIGI_FRAMING_ERROR) in digi_read_inb_callback()
/linux-3.4.99/include/linux/usb/
Dehci_def.h121 u32 port_status[0]; /* up to N_PORTS */ member
/linux-3.4.99/drivers/net/ethernet/marvell/
Dpxa168_eth.c885 u32 port_status; in handle_link_event() local
890 port_status = rdl(pep, PORT_STATUS); in handle_link_event()
891 if (!(port_status & LINK_UP)) { in handle_link_event()
899 if (port_status & PORT_SPEED_100) in handle_link_event()
904 duplex = (port_status & FULL_DUPLEX) ? 1 : 0; in handle_link_event()
905 fc = (port_status & FLOW_CONTROL_ENABLED) ? 1 : 0; in handle_link_event()
/linux-3.4.99/drivers/net/fddi/
Ddefxx.c1562 PI_UINT32 port_status; /* PDQ port status register value */ in dfx_int_pr_halt_id() local
1567 dfx_port_read_long(bp, PI_PDQ_K_REG_PORT_STATUS, &port_status); in dfx_int_pr_halt_id()
1571 halt_id = (port_status & PI_PSTATUS_M_HALT_ID) >> PI_PSTATUS_V_HALT_ID; in dfx_int_pr_halt_id()
1812 PI_UINT32 port_status; /* Port Status register */ in dfx_int_common() local
1834 dfx_port_read_long(bp, PI_PDQ_K_REG_PORT_STATUS, &port_status); in dfx_int_common()
1838 if (port_status & PI_PSTATUS_M_TYPE_0_PENDING) in dfx_int_common()
2800 PI_UINT32 port_status; /* Port Status register value */ in dfx_hw_adap_state_rd() local
2802 dfx_port_read_long(bp, PI_PDQ_K_REG_PORT_STATUS, &port_status); in dfx_hw_adap_state_rd()
2803 return (port_status & PI_PSTATUS_M_STATE) >> PI_PSTATUS_V_STATE; in dfx_hw_adap_state_rd()

12