Lines Matching defs:media

132     pause whilst the   driver figures out   where its media went).  My tests
142 while autosensing the media should be gone. A bonus for the DC21040
143 auto media sense algorithm is that it can now use one that is more in
191 Where SROM media detection is used and full duplex is specified in the
201 and media. The only lexical constraints are: the board name (dev->name)
207 autosense to set the media/speed; with the following
223 lack of commas to separate items. ALSO, you must get the requested media
248 0.21 19-Jan-95 Added auto media detection.
259 Change media autodetection to allow manual setting.
283 Add new autosense algorithms for media/mode
301 Change sk_buff handling during media disconnects to
306 0.43 21-Jun-96 Fix unconnected media TX retry bug.
321 0.441 9-Sep-96 Change dc21041_autoconf() to probe quiet BNC media
323 0.442 9-Sep-96 Include AUI in dc21041 media printout. Bug reported
419 when media is unconnected.
515 u_int fdx; /* Full DupleX capabilities for each media */
516 u_int ttm; /* Transmit Threshold Mode for each media */
810 int media; /* Media (eg TP), mode (eg 100B)*/
811 int c_media; /* Remember the last media conn */
812 bool fdx; /* media full duplex flag */
817 int local_state; /* State within a 'media' state */
851 int infoblock_media; /* infoblock media */
1027 MODULE_PARM_DESC(args, "de4x5 full duplex and media type settings; see de4x5.c for details");
1236 /* Create a loopback packet frame for later media probing */
1492 printk("%s: transmit busy, lost media or stale skb found:\n STS:%08x\n tbusy:%d\n IMR:%08x\n OMR:%08x\n Stale skb: %s\n",dev->name, inl(DE4X5_STS), netif_queue_stopped(dev), inl(DE4X5_IMR), inl(DE4X5_OMR), ((u_long) lp->tx_skb[lp->tx_new] > 1) ? "YES" : "NO");
2353 ** Auto configure the media here rather than setting the port at compile
2354 ** time. This routine is called by de4x5_init() and when a loss of media is
2367 lp->c_media = AUTO; /* Bogus last media */
2369 lp->media = INIT;
2374 return lp->media;
2378 ** Autoconfigure the media when using the DC21040. AUI cannot be distinguished
2384 ** be queued to the hardware. Re-enable everything only when the media is
2397 switch (lp->media) {
2404 lp->media = TP;
2406 lp->media = BNC_AUI;
2408 lp->media = EXT_SIA;
2410 lp->media = NC;
2448 if (lp->media != lp->c_media) {
2450 lp->c_media = lp->media;
2452 lp->media = INIT;
2484 lp->media = next_state;
2490 lp->media = suspect_state;
2511 lp->media = prev_state;
2524 lp->media = prev_state;
2526 lp->media = INIT;
2535 ** Autoconfigure the media when using the DC21041. AUI needs to be tested
2541 ** when the media is found.
2551 switch (lp->media) {
2558 lp->media = TP; /* On chip auto negotiation is broken */
2560 lp->media = TP;
2562 lp->media = BNC;
2564 lp->media = AUI;
2566 lp->media = NC;
2584 lp->media = ANS;
2586 lp->media = AUI;
2601 lp->media = TP;
2609 lp->media = ANS_SUSPECT;
2632 lp->media = AUI; /* Non selected port activity */
2634 lp->media = BNC;
2643 lp->media = TP_SUSPECT;
2665 lp->media = BNC;
2673 lp->media = AUI_SUSPECT;
2695 lp->local_state++; /* Ensure media connected */
2707 lp->media = NC;
2713 lp->media = BNC_SUSPECT;
2728 if (lp->media != lp->c_media) {
2730 lp->c_media = lp->media;
2732 lp->media = INIT;
2753 switch(lp->media) {
2778 lp->media = _100Mb;
2780 lp->media = _10Mb;
2786 lp->media = ANS;
2788 lp->media = SPD_DET;
2790 lp->media = _100Mb;
2792 lp->media = NC;
2812 lp->media = SPD_DET;
2824 lp->media = SPD_DET;
2834 lp->media = _100Mb;
2838 lp->media = _10Mb;
2858 lp->media = _100Mb;
2860 lp->media = _10Mb;
2862 lp->media = NC;
2876 lp->media = INIT;
2894 lp->media = INIT;
2903 if (lp->media != lp->c_media) {
2905 lp->c_media = lp->media;
2907 lp->media = INIT;
2917 ** changing how I figure out the media - but trying to keep it backwards
2937 switch (lp->media) {
2946 srom_map_media(dev); /* Fixed media requested */
2947 if (lp->media != lp->params.autosense) {
2949 lp->media = INIT;
2952 lp->media = INIT;
2959 lp->media = _100Mb;
2961 lp->media = _10Mb;
2963 lp->media = TP;
2965 lp->media = BNC;
2967 lp->media = AUI;
2969 lp->media = SPD_DET;
2975 lp->media = ANS;
2995 lp->media = SPD_DET;
3008 lp->media = SPD_DET;
3018 lp->media = _100Mb;
3021 lp->media = _10Mb;
3044 lp->media = BNC;
3052 lp->media = AUI_SUSPECT;
3074 lp->local_state++; /* Ensure media connected */
3087 lp->media = INIT;
3093 lp->media = BNC_SUSPECT;
3107 lp->media = INIT;
3110 if (lp->media == _100Mb) {
3112 lp->media = SPD_DET;
3117 lp->media = SPD_DET;
3121 if (lp->media == ANS) { /* Do MII parallel detection */
3123 lp->media = _100Mb;
3125 lp->media = _10Mb;
3128 } else if (((lp->media == _100Mb) && is_100_up(dev)) ||
3129 (((lp->media == _10Mb) || (lp->media == TP) ||
3130 (lp->media == BNC) || (lp->media == AUI)) &&
3135 lp->media = INIT;
3147 lp->media = INIT;
3163 lp->media = INIT;
3173 printk("Huh?: media:%02x\n", lp->media);
3174 lp->media = INIT;
3190 ** This mapping keeps the original media codes and FDX flag unchanged.
3192 ** The early return avoids a media state / SROM media space clash.
3200 if (lp->infoblock_media == lp->media)
3210 lp->media = _10Mb;
3212 lp->media = TP;
3217 lp->media = BNC;
3221 lp->media = AUI;
3229 lp->media = _100Mb;
3233 lp->media = _100Mb;
3241 lp->media = _100Mb;
3245 lp->media = ANS;
3250 printk("%s: Bad media code [%d] detected in SROM!\n", dev->name,
3266 if (lp->media != lp->c_media) {
3268 lp->c_media = lp->media; /* Stop scrolling media messages */
3547 ** Send a packet onto the media and watch for send errors that indicate the
3548 ** media is bad or unconnected.
3672 ** the hardware and software and make any media probes using a loopback
4454 lp->media = NC;
4455 if (lp->media != lp->c_media) {
4457 lp->c_media = lp->media;
4459 lp->media = INIT;
4489 lp->media = NC;
4490 if (lp->media != lp->c_media) {
4492 lp->c_media = lp->media;
4494 lp->media = INIT;
4523 lp->media = NC;
4524 if (lp->media != lp->c_media) {
4526 lp->c_media = lp->media;
4528 lp->media = INIT;
4538 ** we'll reuse the dc21140m_autoconf function. Non MII media only.
4555 if ((lp->media == INIT) && (lp->timeout < 0)) {
4578 ** This block describes non MII media for the DC21140[A] only.
4595 if ((lp->media == INIT) && (lp->timeout < 0)) {
4646 } else if ((lp->media == INIT) && (lp->timeout < 0)) {
4674 if ((lp->media == INIT) && (lp->timeout < 0)) {
4728 } else if ((lp->media == INIT) && (lp->timeout < 0)) {
4757 if ((lp->media == INIT) && (lp->timeout < 0)) {
4803 if ((lp->state == INITIALISED) || (lp->media == INIT)) {
5305 if (lp->media != lp->c_media) {
5307 printk("%s: media is %s%s\n", dev->name,
5308 (lp->media == NC ? "unconnected, link down or incompatible connection" :
5309 (lp->media == TP ? "TP" :
5310 (lp->media == ANS ? "TP/Nway" :
5311 (lp->media == BNC ? "BNC" :
5312 (lp->media == AUI ? "AUI" :
5313 (lp->media == BNC_AUI ? "BNC/AUI" :
5314 (lp->media == EXT_SIA ? "EXT SIA" :
5315 (lp->media == _100Mb ? "100Mb/s" :
5316 (lp->media == _10Mb ? "10Mb/s" :
5320 lp->c_media = lp->media;