Lines Matching refs:status

759     volatile __le32 status;
984 static int test_bad_enet(struct net_device *dev, int status);
1099 int i, status=0;
1135 status = get_hw_addr(dev);
1138 if (status != 0) {
1186 lp->rx_ring[i].status = 0;
1203 lp->rx_ring[i].status = 0;
1275 if ((status = register_netdev (dev))) {
1278 return status;
1284 return status;
1293 int i, status = 0;
1312 status = de4x5_init(dev);
1353 return status;
1383 int i, j, status = 0;
1418 lp->rx_ring[i].status = cpu_to_le32(R_OWN);
1422 lp->tx_ring[i].status = cpu_to_le32(0);
1437 if ((s32)le32_to_cpu(lp->tx_ring[lp->tx_new].status) >= 0) j=1;
1442 printk("%s: Setup frame timed out, status %08x\n", dev->name,
1444 status = -EIO;
1450 return status;
1469 ** interrupts are lost by delayed descriptor status updates relative to
1532 ** is high and descriptor status bits cannot be set before the associated
1556 sts = inl(DE4X5_STS); /* Read IRQ status */
1606 s32 status;
1608 for (entry=lp->rx_new; (s32)le32_to_cpu(lp->rx_ring[entry].status)>=0;
1610 status = (s32)le32_to_cpu(lp->rx_ring[entry].status);
1619 if (status & RD_FS) { /* Remember the start of frame */
1623 if (status & RD_LS) { /* Valid frame status */
1625 if (status & RD_ES) { /* There was an error. */
1627 if (status & (RD_RF | RD_TL)) lp->stats.rx_frame_errors++;
1628 if (status & RD_CE) lp->stats.rx_crc_errors++;
1629 if (status & RD_OF) lp->stats.rx_fifo_errors++;
1630 if (status & RD_TL) lp->stats.rx_length_errors++;
1631 if (status & RD_RF) lp->pktStats.rx_runt_frames++;
1632 if (status & RD_CS) lp->pktStats.rx_collision++;
1633 if (status & RD_DB) lp->pktStats.rx_dribble++;
1634 if (status & RD_OF) lp->pktStats.rx_overflow++;
1637 short pkt_len = (short)(le32_to_cpu(lp->rx_ring[entry].status)
1660 lp->rx_ring[lp->rx_old].status = cpu_to_le32(R_OWN);
1663 lp->rx_ring[entry].status = cpu_to_le32(R_OWN);
1696 s32 status;
1699 status = (s32)le32_to_cpu(lp->tx_ring[entry].status);
1700 if (status < 0) { /* Buffer not sent yet */
1702 } else if (status != 0x7fffffff) { /* Not setup frame */
1703 if (status & TD_ES) { /* An error happened */
1705 if (status & TD_NC) lp->stats.tx_carrier_errors++;
1706 if (status & TD_LC) lp->stats.tx_window_errors++;
1707 if (status & TD_UF) lp->stats.tx_fifo_errors++;
1708 if (status & TD_EC) lp->pktStats.excessive_collisions++;
1709 if (status & TD_DE) lp->stats.tx_aborted_errors++;
1719 lp->stats.collisions += ((status & TD_EC) ? 16 :
1720 ((status & TD_CC) >> 3));
1802 for (; (s32)le32_to_cpu(lp->rx_ring[lp->rx_new].status)>=0;) {
1803 lp->rx_ring[lp->rx_new].status = cpu_to_le32(R_OWN);
1824 printk("%s: Shutting down ethercard, status was %8.8x.\n",
1909 lp->tx_ring[lp->tx_new].status = cpu_to_le32(T_OWN);
2001 int status, device;
2013 status = -EBUSY;
2018 status = -ENOMEM;
2067 if (!(status = de4x5_hw_init (dev, iobase, gendev))) {
2077 return status;
2124 u_short vendor, status;
2158 pci_read_config_word(this_dev, PCI_COMMAND, &status);
2159 if (!(status & PCI_COMMAND_IO)) continue;
2198 u_short vendor, status;
2263 pci_read_config_word(pdev, PCI_COMMAND, &status);
2265 if (!(status & PCI_COMMAND_IO)) {
2266 status |= PCI_COMMAND_IO;
2267 pci_write_config_word(pdev, PCI_COMMAND, status);
2268 pci_read_config_word(pdev, PCI_COMMAND, &status);
2271 if (!(status & PCI_COMMAND_IO)) {
2276 if (!(status & PCI_COMMAND_MASTER)) {
2277 status |= PCI_COMMAND_MASTER;
2278 pci_write_config_word(pdev, PCI_COMMAND, status);
2279 pci_read_config_word(pdev, PCI_COMMAND, &status);
2281 if (!(status & PCI_COMMAND_MASTER)) {
3573 ((s32)le32_to_cpu(lp->tx_ring[lp->tmp].status) < 0) &&
3578 !(le32_to_cpu(lp->tx_ring[lp->tmp].status) & (T_OWN | TD_ES)) &&
3651 lp->rx_ring[i].status = 0;
3665 lp->tx_ring[i].status = 0;
3716 lp->rx_ring[i].status = cpu_to_le32(R_OWN);
3720 lp->tx_ring[i].status = cpu_to_le32(0);
3783 ** is received and the auto-negotiation status is NWAY OK.
3887 int i, status = 0, siglen = ARRAY_SIZE(de4x5_signatures);
3896 status = 1;
3899 return status; /* return the device name string */
4020 ** For the bad status case and no SROM, then add one to the previous
4029 int broken, i, k, tmp, status = 0;
4071 if ((k != chksum) && (dec_only)) status = -1;
4076 if ((k != chksum) && (dec_only)) status = -1;
4102 status = test_bad_enet(dev, status);
4104 return status;
4113 int i, status = 0;
4119 status = SMC;
4121 status = ACCTON;
4127 return status;
4150 test_bad_enet(struct net_device *dev, int status)
4169 status = 0;
4171 } else if (!status) {
4178 return status;
5240 printk("0x%8.8lx ",(u_long)&lp->rx_ring[i].status);
5243 printk("...0x%8.8lx\n",(u_long)&lp->rx_ring[i].status);
5247 printk("0x%8.8lx ", (u_long)&lp->tx_ring[i].status);
5250 printk("...0x%8.8lx\n", (u_long)&lp->tx_ring[i].status);
5373 int i, j, status = 0;
5479 tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4;
5482 tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4;
5485 tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4;
5488 tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4;
5504 tmp.lval[j>>2] = le32_to_cpu(lp->rx_ring[i].status); j+=4;
5507 tmp.lval[j>>2] = le32_to_cpu(lp->tx_ring[i].status); j+=4;
5559 return status;