Lines Matching refs:if_port
156 INT_MODULE_PARM(if_port, 0);
310 if ((if_port >= 0) && (if_port <= 3)) in tc589_config()
311 dev->if_port = if_port; in tc589_config()
327 if_names[dev->if_port]); in tc589_config()
396 static void tc589_set_xcvr(struct net_device *dev, int if_port) in tc589_set_xcvr() argument
402 switch (if_port) { in tc589_set_xcvr()
415 outw((if_port == 2) ? StartCoax : StopCoax, ioaddr + EL3_CMD); in tc589_set_xcvr()
418 outw(MEDIA_LED | ((if_port < 2) ? MEDIA_TP : 0), ioaddr + WN4_MEDIA); in tc589_set_xcvr()
420 if (if_port == 2) in tc589_set_xcvr()
421 lp->media_status = ((dev->if_port == 0) ? 0x8000 : 0x4000); in tc589_set_xcvr()
423 lp->media_status = ((dev->if_port == 0) ? 0x4010 : 0x8800); in tc589_set_xcvr()
455 tc589_set_xcvr(dev, dev->if_port); in tc589_reset()
496 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in el3_config()
498 dev->if_port = map->port; in el3_config()
499 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]); in el3_config()
500 tc589_set_xcvr(dev, dev->if_port); in el3_config()
742 if (dev->if_port == 0) { in media_check()
921 if (dev->if_port == 2) in el3_close()
924 else if (dev->if_port == 1) { in el3_close()