Lines Matching refs:media
108 struct timer_list media; member
1073 timer_setup(&smc->media, media_check, 0); in smc_open()
1074 mod_timer(&smc->media, jiffies + HZ); in smc_open()
1105 del_timer_sync(&smc->media); in smc_close()
1713 struct smc_private *smc = from_timer(smc, t, media); in media_check()
1716 u_short i, media, saved_bank; in media_check() local
1736 media = inw(ioaddr + EPH) & EPH_LINK_OK; in media_check()
1738 media |= (inw(ioaddr + CONFIG) & CFG_AUI_SELECT) ? 2 : 1; in media_check()
1755 smc->media.expires = jiffies + HZ/100; in media_check()
1756 add_timer(&smc->media); in media_check()
1797 media |= EPH_16COL; in media_check()
1801 if (media != smc->media_status) { in media_check()
1802 if ((media & smc->media_status & 1) && in media_check()
1803 ((smc->media_status ^ media) & EPH_LINK_OK)) in media_check()
1806 else if ((media & smc->media_status & 2) && in media_check()
1807 ((smc->media_status ^ media) & EPH_16COL)) in media_check()
1809 media & EPH_16COL ? "problem" : "ok"); in media_check()
1811 if (media & 1) { in media_check()
1812 if (media & EPH_LINK_OK) in media_check()
1817 if (media & EPH_16COL) in media_check()
1823 smc->media_status = media; in media_check()
1827 smc->media.expires = jiffies + HZ; in media_check()
1828 add_timer(&smc->media); in media_check()