Lines Matching refs:if_port
155 INT_MODULE_PARM(if_port, 0);
318 if ((if_port >= 0) && (if_port <= 3)) in tc589_config()
319 dev->if_port = if_port; in tc589_config()
335 if_names[dev->if_port]); in tc589_config()
404 static void tc589_set_xcvr(struct net_device *dev, int if_port) in tc589_set_xcvr() argument
410 switch (if_port) { in tc589_set_xcvr()
423 outw((if_port == 2) ? StartCoax : StopCoax, ioaddr + EL3_CMD); in tc589_set_xcvr()
426 outw(MEDIA_LED | ((if_port < 2) ? MEDIA_TP : 0), ioaddr + WN4_MEDIA); in tc589_set_xcvr()
428 if (if_port == 2) in tc589_set_xcvr()
429 lp->media_status = ((dev->if_port == 0) ? 0x8000 : 0x4000); in tc589_set_xcvr()
431 lp->media_status = ((dev->if_port == 0) ? 0x4010 : 0x8800); in tc589_set_xcvr()
463 tc589_set_xcvr(dev, dev->if_port); in tc589_reset()
503 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in el3_config()
505 WRITE_ONCE(dev->if_port, map->port); in el3_config()
506 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]); in el3_config()
507 tc589_set_xcvr(dev, dev->if_port); in el3_config()
749 if (dev->if_port == 0) { in media_check()
928 if (dev->if_port == 2) in el3_close()
931 else if (dev->if_port == 1) { in el3_close()