Lines Matching defs:sts

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