Searched refs:port_status (Results 1 - 25 of 38) sorted by relevance

12

/drivers/usb/host/
H A Dehci-lpm.c30 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_num-1]);
33 ehci_writel(ehci, portsc, &ehci->regs->port_status[port_num-1]);
47 portsc = &ehci->regs->port_status[port-1];
61 retval = handshake(ehci, &ehci->regs->port_status[port-1], PORT_SSTS,
H A Dfhci-hub.c86 enum fhci_port_status port_status; local
95 port_status = usb->port_status;
96 usb->port_status = FHCI_PORT_DISABLED;
103 if (port_status == FHCI_PORT_WAITING)
120 fhci_config_transceiver(fhci, usb->port_status);
122 if ((usb->port_status != FHCI_PORT_FULL) &&
123 (usb->port_status != FHCI_PORT_LOW))
213 struct usb_port_status *port_status; local
287 port_status
[all...]
H A Dehci-hub.c65 reg = &ehci->regs->port_status[port];
95 reg = &ehci->regs->port_status[port];
125 if (ehci_readl(ehci, &ehci->regs->port_status[i]) & PORT_CSC)
166 u32 __iomem *reg = &ehci->regs->port_status[port];
254 u32 __iomem *reg = &ehci->regs->port_status [port];
413 temp = ehci_readl(ehci, &ehci->regs->port_status [i]);
420 ehci_writel(ehci, temp, &ehci->regs->port_status [i]);
432 temp = ehci_readl(ehci, &ehci->regs->port_status [i]);
435 ehci_writel(ehci, temp, &ehci->regs->port_status [i]);
477 u32 port_status; local
[all...]
H A Dfhci-sched.c192 if (usb->port_status == FHCI_PORT_FULL)
238 if (usb->port_status != FHCI_PORT_FULL &&
239 usb->port_status != FHCI_PORT_LOW) {
408 if ((usb->port_status == FHCI_PORT_DISABLED) &&
412 usb->port_status = FHCI_PORT_LOW;
414 usb->port_status = FHCI_PORT_FULL;
437 usb->port_status = FHCI_PORT_DISABLED;
475 usb->port_status = FHCI_PORT_LOW;
493 usb->port_status = FHCI_PORT_FULL;
567 if ((usb->port_status
[all...]
H A Dehci-fsl.c220 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_offset]);
239 ehci_writel(ehci, portsc, &ehci->regs->port_status[port_offset]);
424 pdata->pm_portsc = ehci_readl(ehci, &ehci->regs->port_status[0]);
434 tmp = ehci_readl(ehci, &ehci->regs->port_status[0]);
436 ehci_writel(ehci, tmp, &ehci->regs->port_status[0]);
488 ehci_writel(ehci, pdata->pm_portsc, &ehci->regs->port_status[0]);
599 status = readl(&ehci->regs->port_status[port]);
607 &ehci->regs->port_status[port]);
609 writel(PORT_RESET, &ehci->regs->port_status[port]);
H A Dehci-tegra.c147 status_reg = &ehci->regs->port_status[(wIndex & 0xff) - 1];
282 tegra->port_speed = (readl(&hw->port_status[0]) >> 26) & 0x3;
316 val = readl(&hw->port_status[0]);
318 writel(val, &hw->port_status[0]);
325 val = readl(&hw->port_status[0]);
333 writel(val, &hw->port_status[0]);
337 val = readl(&hw->port_status[0]);
339 writel(val, &hw->port_status[0]);
344 if (handshake(ehci, &hw->port_status[0], PORT_CONNECT,
351 if (handshake(ehci, &hw->port_status[
[all...]
H A Dxhci-hub.c170 static unsigned int xhci_port_speed(unsigned int port_status) argument
172 if (DEV_LOWSPEED(port_status))
174 if (DEV_HIGHSPEED(port_status))
335 u16 wIndex, __le32 __iomem *addr, u32 port_status)
345 xhci_writel(xhci, port_status | PORT_PE, addr);
346 port_status = xhci_readl(xhci, addr);
348 wIndex, port_status);
352 u16 wIndex, __le32 __iomem *addr, u32 port_status)
391 xhci_writel(xhci, port_status | status, addr);
392 port_status
334 xhci_disable_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, u16 wIndex, __le32 __iomem *addr, u32 port_status) argument
351 xhci_clear_port_change_bit(struct xhci_hcd *xhci, u16 wValue, u16 wIndex, __le32 __iomem *addr, u32 port_status) argument
[all...]
H A Dehci-mxc.c215 ehci_writel(ehci, pdata->portsc, &ehci->regs->port_status[0]);
H A Dfhci-hcd.c140 if (usb->port_status == FHCI_PORT_FULL ||
141 usb->port_status == FHCI_PORT_LOW)
264 usb->port_status = FHCI_PORT_DISABLED;
484 if (usb->port_status != FHCI_PORT_DISABLED) {
H A Doxu210hp-hcd.c422 u32 __iomem *status_reg, int port_status)
424 if (!(port_status & PORT_CONNECT)) {
426 return port_status;
430 if (!(port_status & PORT_PE)) {
433 return port_status;
437 return port_status;
2360 writel(PORT_RWC_BITS, &oxu->regs->port_status[port]);
2493 int pstatus = readl(&oxu->regs->port_status[i]);
3115 temp = readl(&oxu->regs->port_status[i]);
3161 u32 __iomem *status_reg = &oxu->regs->port_status[wInde
421 check_reset_complete(struct oxu_hcd *oxu, int index, u32 __iomem *status_reg, int port_status) argument
[all...]
/drivers/usb/gadget/
H A Ddummy_hcd.c163 u32 port_status; member in struct:dummy_hcd
282 * This function updates the port_status according to the link state and the
290 if ((dum_hcd->port_status & USB_SS_PORT_STAT_POWER) == 0) {
291 dum_hcd->port_status = 0;
294 dum_hcd->port_status &= ~(USB_PORT_STAT_CONNECTION |
298 dum_hcd->port_status |=
302 dum_hcd->port_status |= (USB_PORT_STAT_CONNECTION |
306 dum_hcd->port_status |=
308 if ((dum_hcd->port_status &
310 (dum_hcd->port_status
[all...]
H A Ds3c2410_udc.h88 u32 port_status; member in struct:s3c2410_udc
/drivers/staging/usbip/
H A Dvhci_hcd.c129 the_controller->port_status[rhport] |= USB_PORT_STAT_CONNECTION
134 the_controller->port_status[rhport] |= USB_PORT_STAT_HIGH_SPEED;
137 the_controller->port_status[rhport] |= USB_PORT_STAT_LOW_SPEED;
160 the_controller->port_status[rhport] &= ~USB_PORT_STAT_CONNECTION;
161 the_controller->port_status[rhport] |=
224 if ((vhci->port_status[rhport] & PORT_C_MASK)) {
290 memcpy(prev_port_status, dum->port_status,
301 if (dum->port_status[rhport] & USB_PORT_STAT_SUSPEND) {
311 dum->port_status[rhport] = 0;
321 dum->port_status[rhpor
[all...]
H A Dvhci.h86 u32 port_status[VHCI_NPORTS]; member in struct:vhci_hcd
/drivers/net/dsa/
H A Dmv88e6060.c227 int uninitialized_var(port_status);
239 port_status = reg_read(ds, REG_PORT(i), 0x00);
240 if (port_status < 0)
243 link = !!(port_status & 0x1000);
254 speed = (port_status & 0x0100) ? 100 : 10;
255 duplex = (port_status & 0x0200) ? 1 : 0;
256 fc = ((port_status & 0xc000) == 0xc000) ? 1 : 0;
H A Dmv88e6xxx.c362 int uninitialized_var(port_status);
374 port_status = mv88e6xxx_reg_read(ds, REG_PORT(i), 0x00);
375 if (port_status < 0)
378 link = !!(port_status & 0x0800);
389 switch (port_status & 0x0300) {
403 duplex = (port_status & 0x0400) ? 1 : 0;
404 fc = (port_status & 0x8000) ? 1 : 0;
/drivers/ata/
H A Dsata_vsc.c228 static inline void vsc_error_intr(u8 port_status, struct ata_port *ap) argument
230 if (port_status & (VSC_SATA_INT_PHY_CHANGE | VSC_SATA_INT_ERROR_M))
236 static void vsc_port_intr(u8 port_status, struct ata_port *ap) argument
241 if (unlikely(port_status & VSC_SATA_INT_ERROR)) {
242 vsc_error_intr(port_status, ap);
284 u8 port_status = (status >> (8 * i)) & 0xff; local
285 if (port_status) {
286 vsc_port_intr(port_status, host->ports[i]);
H A Dsata_promise.c854 u32 port_status, u32 err_mask)
860 ata_ehi_push_desc(ehi, "port_status 0x%08x", port_status);
861 port_status &= err_mask;
863 if (port_status & PDC_DRIVE_ERR)
865 if (port_status & (PDC_OVERRUN_ERR | PDC_UNDERRUN_ERR))
867 if (port_status & (PDC2_ATA_HBA_ERR | PDC2_ATA_DMA_CNT_ERR))
869 if (port_status & (PDC_PH_ERR | PDC_SH_ERR | PDC_DH_ERR | PDC2_HTO_ERR
892 u32 port_status, err_mask; local
899 port_status
853 pdc_error_intr(struct ata_port *ap, struct ata_queued_cmd *qc, u32 port_status, u32 err_mask) argument
[all...]
/drivers/scsi/qla4xxx/
H A Dql4_dbg.c89 printk(KERN_INFO "0x%02X port_status = 0x%08X\n",
90 (uint8_t) offsetof(struct isp_reg, u2.isp4010.port_status),
91 readw(&ha->reg->u2.isp4010.port_status));
112 printk(KERN_INFO "0x%02X port_status = 0x%08X\n", (uint8_t)
113 offsetof(struct isp_reg, u2.isp4022.p0.port_status),
114 readw(&ha->reg->u2.isp4022.p0.port_status));
/drivers/usb/early/
H A Dehci-dbgp.c86 readl(&ehci_regs->port_status[dbgp_phys_port - 1]));
513 portsc = readl(&ehci_regs->port_status[dbg_port - 1]);
522 portsc = readl(&ehci_regs->port_status[dbg_port - 1]);
524 writel(portsc, &ehci_regs->port_status[dbg_port - 1]);
550 portsc = readl(&ehci_regs->port_status[dbg_port - 1]);
552 writel(portsc, &ehci_regs->port_status[dbg_port - 1]);
626 portsc = readl(&ehci_regs->port_status[port - 1]);
629 writel(portsc, &ehci_regs->port_status[port - 1]);
635 portsc = readl(&ehci_regs->port_status[port - 1]);
643 &ehci_regs->port_status[por
[all...]
/drivers/tty/
H A Disicom.c194 unsigned short port_status; /* each bit for each port */ member in struct:isi_board
788 card->port_status |= (1 << channel);
789 outw(card->port_status, base + 0x02);
927 card->port_status &= ~(1 << ip->channel);
928 outw(card->port_status, card->base + 0x02);
1227 card->port_status &= ~(1 << port->channel);
1228 outw(card->port_status, card->base + 0x02);
1241 card->port_status |= (1 << port->channel);
1242 outw(card->port_status, card->base + 0x02);
/drivers/net/ethernet/marvell/
H A Dpxa168_eth.c886 u32 port_status; local
891 port_status = rdl(pep, PORT_STATUS);
892 if (!(port_status & LINK_UP)) {
900 if (port_status & PORT_SPEED_100)
905 duplex = (port_status & FULL_DUPLEX) ? 1 : 0;
906 fc = (port_status & FLOW_CONTROL_ENABLED) ? 1 : 0;
H A Dmv643xx_eth.c1458 u32 port_status; local
1460 port_status = rdlp(mp, PORT_STATUS);
1464 switch (port_status & PORT_SPEED_MASK) {
1478 cmd->duplex = (port_status & FULL_DUPLEX) ? DUPLEX_FULL : DUPLEX_HALF;
2083 u32 port_status; local
2088 port_status = rdlp(mp, PORT_STATUS);
2089 if (!(port_status & LINK_UP)) {
2107 switch (port_status & PORT_SPEED_MASK) {
2121 duplex = (port_status & FULL_DUPLEX) ? 1 : 0;
2122 fc = (port_status
[all...]
/drivers/usb/serial/
H A Ddigi_acceleport.c1422 int port_status = ((unsigned char *)urb->transfer_buffer)[2]; local
1438 port_status);
1453 /* get flag from port_status */
1457 if (port_status & DIGI_OVERRUN_ERROR)
1462 if (port_status & DIGI_BREAK_ERROR)
1464 else if (port_status & DIGI_PARITY_ERROR)
1466 else if (port_status & DIGI_FRAMING_ERROR)
1469 /* data length is len-1 (one byte of len is port_status) */
/drivers/s390/scsi/
H A Dzfcp_dbf.h67 * @port_status: current status of the port
79 u32 port_status; member in struct:zfcp_dbf_rec

Completed in 419 milliseconds

12