Lines Matching refs:if_port
155 INT_MODULE_PARM(if_port, 0);
309 if ((if_port >= 0) && (if_port <= 3)) in tc589_config()
310 dev->if_port = if_port; in tc589_config()
326 if_names[dev->if_port]); in tc589_config()
395 static void tc589_set_xcvr(struct net_device *dev, int if_port) in tc589_set_xcvr() argument
401 switch (if_port) { in tc589_set_xcvr()
414 outw((if_port == 2) ? StartCoax : StopCoax, ioaddr + EL3_CMD); in tc589_set_xcvr()
417 outw(MEDIA_LED | ((if_port < 2) ? MEDIA_TP : 0), ioaddr + WN4_MEDIA); in tc589_set_xcvr()
419 if (if_port == 2) in tc589_set_xcvr()
420 lp->media_status = ((dev->if_port == 0) ? 0x8000 : 0x4000); in tc589_set_xcvr()
422 lp->media_status = ((dev->if_port == 0) ? 0x4010 : 0x8800); in tc589_set_xcvr()
454 tc589_set_xcvr(dev, dev->if_port); in tc589_reset()
494 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in el3_config()
496 dev->if_port = map->port; in el3_config()
497 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]); in el3_config()
498 tc589_set_xcvr(dev, dev->if_port); in el3_config()
740 if (dev->if_port == 0) { in media_check()
919 if (dev->if_port == 2) in el3_close()
922 else if (dev->if_port == 1) { in el3_close()