Lines Matching refs:sts
1540 s32 imr, omr, sts, limit; in de4x5_interrupt() local
1556 sts = inl(DE4X5_STS); /* Read IRQ status */ in de4x5_interrupt()
1557 outl(sts, DE4X5_STS); /* Reset the board interrupts */ in de4x5_interrupt()
1559 if (!(sts & lp->irq_mask)) break;/* All done */ in de4x5_interrupt()
1562 if (sts & (STS_RI | STS_RU)) /* Rx interrupt (packet[s] arrived) */ in de4x5_interrupt()
1565 if (sts & (STS_TI | STS_TU)) /* Tx interrupt (packet sent) */ in de4x5_interrupt()
1568 if (sts & STS_LNF) { /* TP Link has failed */ in de4x5_interrupt()
1572 if (sts & STS_UNF) { /* Transmit underrun */ in de4x5_interrupt()
1576 if (sts & STS_SE) { /* Bus Error */ in de4x5_interrupt()
1579 dev->name, sts); in de4x5_interrupt()
2547 s32 sts, irqs, irq_mask, imr, omr; in dc21041_autoconf() local
2578 sts = test_media(dev, irqs, irq_mask, 0xef01, 0xffff, 0x0008, 2400); in dc21041_autoconf()
2579 if (sts < 0) { in dc21041_autoconf()
2580 next_tick = sts & ~TIMER_CB; in dc21041_autoconf()
2582 if (sts & STS_LNP) { in dc21041_autoconf()
2595 sts = test_ans(dev, irqs, irq_mask, 3000); in dc21041_autoconf()
2596 if (sts < 0) { in dc21041_autoconf()
2597 next_tick = sts & ~TIMER_CB; in dc21041_autoconf()
2599 if (!(sts & STS_LNP) && (lp->autosense == AUTO)) { in dc21041_autoconf()
2625 sts = test_media(dev,irqs, irq_mask, 0xef01, 0xff3f, 0x0008, 2400); in dc21041_autoconf()
2626 if (sts < 0) { in dc21041_autoconf()
2627 next_tick = sts & ~TIMER_CB; in dc21041_autoconf()
2629 if (!(sts & STS_LNP) && (lp->autosense == AUTO)) { in dc21041_autoconf()
2659 sts = test_media(dev,irqs, irq_mask, 0xef09, 0xf73d, 0x000e, 1000); in dc21041_autoconf()
2660 if (sts < 0) { in dc21041_autoconf()
2661 next_tick = sts & ~TIMER_CB; in dc21041_autoconf()
2690 sts = test_media(dev,irqs, irq_mask, 0xef09, 0xf73d, 0x0006, 1000); in dc21041_autoconf()
2691 if (sts < 0) { in dc21041_autoconf()
2692 next_tick = sts & ~TIMER_CB; in dc21041_autoconf()
2701 if ((sts = ping_media(dev, 3000)) < 0) { in dc21041_autoconf()
2702 next_tick = sts & ~TIMER_CB; in dc21041_autoconf()
2704 if (sts) { in dc21041_autoconf()
2933 s32 cr, anlpa, ana, cap, irqs, irq_mask, imr, omr, slnk, sr, sts; in dc2114x_autoconf() local
3038 sts = test_media(dev,irqs, irq_mask, 0, 0, 0, 1000); in dc2114x_autoconf()
3039 if (sts < 0) { in dc2114x_autoconf()
3040 next_tick = sts & ~TIMER_CB; in dc2114x_autoconf()
3069 sts = test_media(dev,irqs, irq_mask, 0, 0, 0, 1000); in dc2114x_autoconf()
3070 if (sts < 0) { in dc2114x_autoconf()
3071 next_tick = sts & ~TIMER_CB; in dc2114x_autoconf()
3080 if ((sts = ping_media(dev, 3000)) < 0) { in dc2114x_autoconf()
3081 next_tick = sts & ~TIMER_CB; in dc2114x_autoconf()
3083 if (sts) { in dc2114x_autoconf()
3329 s32 sts, csr12; in test_media() local
3341 sts = inl(DE4X5_STS); in test_media()
3342 outl(sts, DE4X5_STS); in test_media()
3351 sts = inl(DE4X5_STS) & ~TIMER_CB; in test_media()
3353 if (!(sts & irqs) && --lp->timeout) { in test_media()
3354 sts = 100 | TIMER_CB; in test_media()
3359 return sts; in test_media()
3790 s32 sts, ans; in test_ans() local
3797 sts = inl(DE4X5_STS); in test_ans()
3798 outl(sts, DE4X5_STS); in test_ans()
3802 sts = inl(DE4X5_STS) & ~TIMER_CB; in test_ans()
3804 if (!(sts & irqs) && (ans ^ ANS_NWOK) && --lp->timeout) { in test_ans()
3805 sts = 100 | TIMER_CB; in test_ans()
3810 return sts; in test_ans()
3818 s32 imr, sts; in de4x5_setup_intr() local
3823 sts = inl(DE4X5_STS); /* Reset any pending (stale) interrupts */ in de4x5_setup_intr()
3824 outl(sts, DE4X5_STS); in de4x5_setup_intr()