Lines Matching refs:limit
121 int limit = 10000; in __sungem_phy_read() local
130 while (--limit) { in __sungem_phy_read()
138 if (!limit) in __sungem_phy_read()
158 int limit = 10000; in __sungem_phy_write() local
168 while (limit--) { in __sungem_phy_write()
363 int limit, i; in gem_rxmac_reset() local
369 for (limit = 0; limit < 5000; limit++) { in gem_rxmac_reset()
374 if (limit == 5000) { in gem_rxmac_reset()
381 for (limit = 0; limit < 5000; limit++) { in gem_rxmac_reset()
386 if (limit == 5000) { in gem_rxmac_reset()
393 for (limit = 0; limit < 5000; limit++) { in gem_rxmac_reset()
398 if (limit == 5000) { in gem_rxmac_reset()
408 for (limit = 0; limit < 5000; limit++) { in gem_rxmac_reset()
413 if (limit == 5000) { in gem_rxmac_reset()
646 int entry, limit; in gem_tx() local
649 limit = ((gem_status & GREG_STAT_TXNR) >> GREG_STAT_TXNR_SHIFT); in gem_tx()
650 while (entry != limit) { in gem_tx()
669 if (walk == limit) in gem_tx()
714 static __inline__ void gem_post_rxds(struct gem *gp, int limit) in gem_post_rxds() argument
722 while (curr != limit) { in gem_post_rxds()
1118 int limit; in gem_pcs_reset() local
1126 limit = 32; in gem_pcs_reset()
1129 if (limit-- <= 0) in gem_pcs_reset()
1132 if (limit < 0) in gem_pcs_reset()
1183 int limit; in gem_reset() local
1193 limit = STOP_TRIES; in gem_reset()
1198 if (limit-- <= 0) in gem_reset()
1202 if (limit < 0) in gem_reset()
2450 int limit = 10000; in gem_set_multicast() local
2468 if (!limit--) in gem_set_multicast()