Lines Matching refs:media
135 struct timer_list media; member
527 timer_setup(&lp->media, media_check, 0); in el3_open()
528 mod_timer(&lp->media, jiffies + HZ); in el3_open()
688 struct el3_private *lp = from_timer(lp, t, media); in media_check()
691 u16 media, errs; in media_check() local
713 lp->media.expires = jiffies + HZ/100; in media_check()
714 add_timer(&lp->media); in media_check()
724 media = inw(ioaddr+WN4_MEDIA) & 0xc810; in media_check()
728 media &= ~0x0010; in media_check()
737 media |= 0x0010; in media_check()
740 if (media != lp->media_status) { in media_check()
741 if ((media & lp->media_status & 0x8000) && in media_check()
742 ((lp->media_status ^ media) & 0x0800)) in media_check()
745 else if ((media & lp->media_status & 0x4000) && in media_check()
746 ((lp->media_status ^ media) & 0x0010)) in media_check()
750 if (media & 0x8000) { in media_check()
751 if (media & 0x0800) in media_check()
755 } else if (media & 0x4000) { in media_check()
756 if (media & 0x0010) in media_check()
762 lp->media_status = media; in media_check()
769 lp->media.expires = jiffies + HZ; in media_check()
770 add_timer(&lp->media); in media_check()
949 del_timer_sync(&lp->media); in el3_close()