Lines Matching refs:sts
1542 s32 imr, omr, sts, limit; in de4x5_interrupt() local
1558 sts = inl(DE4X5_STS); /* Read IRQ status */ in de4x5_interrupt()
1559 outl(sts, DE4X5_STS); /* Reset the board interrupts */ in de4x5_interrupt()
1561 if (!(sts & lp->irq_mask)) break;/* All done */ in de4x5_interrupt()
1564 if (sts & (STS_RI | STS_RU)) /* Rx interrupt (packet[s] arrived) */ in de4x5_interrupt()
1567 if (sts & (STS_TI | STS_TU)) /* Tx interrupt (packet sent) */ in de4x5_interrupt()
1570 if (sts & STS_LNF) { /* TP Link has failed */ in de4x5_interrupt()
1574 if (sts & STS_UNF) { /* Transmit underrun */ in de4x5_interrupt()
1578 if (sts & STS_SE) { /* Bus Error */ in de4x5_interrupt()
1581 dev->name, sts); in de4x5_interrupt()
2549 s32 sts, irqs, irq_mask, imr, omr; in dc21041_autoconf() local
2580 sts = test_media(dev, irqs, irq_mask, 0xef01, 0xffff, 0x0008, 2400); in dc21041_autoconf()
2581 if (sts < 0) { in dc21041_autoconf()
2582 next_tick = sts & ~TIMER_CB; in dc21041_autoconf()
2584 if (sts & STS_LNP) { in dc21041_autoconf()
2597 sts = test_ans(dev, irqs, irq_mask, 3000); in dc21041_autoconf()
2598 if (sts < 0) { in dc21041_autoconf()
2599 next_tick = sts & ~TIMER_CB; in dc21041_autoconf()
2601 if (!(sts & STS_LNP) && (lp->autosense == AUTO)) { in dc21041_autoconf()
2627 sts = test_media(dev,irqs, irq_mask, 0xef01, 0xff3f, 0x0008, 2400); in dc21041_autoconf()
2628 if (sts < 0) { in dc21041_autoconf()
2629 next_tick = sts & ~TIMER_CB; in dc21041_autoconf()
2631 if (!(sts & STS_LNP) && (lp->autosense == AUTO)) { in dc21041_autoconf()
2661 sts = test_media(dev,irqs, irq_mask, 0xef09, 0xf73d, 0x000e, 1000); in dc21041_autoconf()
2662 if (sts < 0) { in dc21041_autoconf()
2663 next_tick = sts & ~TIMER_CB; in dc21041_autoconf()
2692 sts = test_media(dev,irqs, irq_mask, 0xef09, 0xf73d, 0x0006, 1000); in dc21041_autoconf()
2693 if (sts < 0) { in dc21041_autoconf()
2694 next_tick = sts & ~TIMER_CB; in dc21041_autoconf()
2703 if ((sts = ping_media(dev, 3000)) < 0) { in dc21041_autoconf()
2704 next_tick = sts & ~TIMER_CB; in dc21041_autoconf()
2706 if (sts) { in dc21041_autoconf()
2935 s32 cr, anlpa, ana, cap, irqs, irq_mask, imr, omr, slnk, sr, sts; in dc2114x_autoconf() local
3040 sts = test_media(dev,irqs, irq_mask, 0, 0, 0, 1000); in dc2114x_autoconf()
3041 if (sts < 0) { in dc2114x_autoconf()
3042 next_tick = sts & ~TIMER_CB; in dc2114x_autoconf()
3071 sts = test_media(dev,irqs, irq_mask, 0, 0, 0, 1000); in dc2114x_autoconf()
3072 if (sts < 0) { in dc2114x_autoconf()
3073 next_tick = sts & ~TIMER_CB; in dc2114x_autoconf()
3082 if ((sts = ping_media(dev, 3000)) < 0) { in dc2114x_autoconf()
3083 next_tick = sts & ~TIMER_CB; in dc2114x_autoconf()
3085 if (sts) { in dc2114x_autoconf()
3331 s32 sts, csr12; in test_media() local
3343 sts = inl(DE4X5_STS); in test_media()
3344 outl(sts, DE4X5_STS); in test_media()
3353 sts = inl(DE4X5_STS) & ~TIMER_CB; in test_media()
3355 if (!(sts & irqs) && --lp->timeout) { in test_media()
3356 sts = 100 | TIMER_CB; in test_media()
3361 return sts; in test_media()
3792 s32 sts, ans; in test_ans() local
3799 sts = inl(DE4X5_STS); in test_ans()
3800 outl(sts, DE4X5_STS); in test_ans()
3804 sts = inl(DE4X5_STS) & ~TIMER_CB; in test_ans()
3806 if (!(sts & irqs) && (ans ^ ANS_NWOK) && --lp->timeout) { in test_ans()
3807 sts = 100 | TIMER_CB; in test_ans()
3812 return sts; in test_ans()
3820 s32 imr, sts; in de4x5_setup_intr() local
3825 sts = inl(DE4X5_STS); /* Reset any pending (stale) interrupts */ in de4x5_setup_intr()
3826 outl(sts, DE4X5_STS); in de4x5_setup_intr()