Lines Matching refs:media
113 struct timer_list media; member
706 lp->media.function = &media_check; in el3_open()
707 lp->media.data = (u_long)lp; in el3_open()
708 lp->media.expires = jiffies + HZ; in el3_open()
709 add_timer(&lp->media); in el3_open()
872 u_short media, errs; in media_check() local
889 lp->media.expires = jiffies + 1; in media_check()
890 add_timer(&lp->media); in media_check()
897 media = inw(ioaddr+WN4_MEDIA) & 0xc810; in media_check()
901 media &= ~0x0010; in media_check()
909 if (errs || (lp->media_status & 0x0010)) media |= 0x0010; in media_check()
912 if (media != lp->media_status) { in media_check()
913 if ((media & lp->media_status & 0x8000) && in media_check()
914 ((lp->media_status ^ media) & 0x0800)) in media_check()
917 else if ((media & lp->media_status & 0x4000) && in media_check()
918 ((lp->media_status ^ media) & 0x0010)) in media_check()
922 if (media & 0x8000) { in media_check()
923 if (media & 0x0800) in media_check()
928 } else if (media & 0x4000) { in media_check()
929 if (media & 0x0010) in media_check()
936 lp->media_status = media; in media_check()
943 lp->media.expires = jiffies + HZ; in media_check()
944 add_timer(&lp->media); in media_check()
1101 del_timer(&lp->media); in el3_close()