Lines Matching refs:if_port
151 /* Special hook for setting if_port when module is loaded */
152 INT_MODULE_PARM(if_port, 0);
329 /* The if_port symbol can be set when the module is loaded */
330 if ((if_port >= 0) && (if_port <= 3))
331 dev->if_port = if_port;
333 printk(KERN_ERR "3c589_cs: invalid if_port requested\n");
347 if_names[dev->if_port]);
422 specified in dev->if_port.
424 static void tc589_set_xcvr(struct net_device *dev, int if_port)
430 switch (if_port) {
436 outw((if_port == 2) ? StartCoax : StopCoax, ioaddr + EL3_CMD);
439 outw(MEDIA_LED | ((if_port < 2) ? MEDIA_TP : 0), ioaddr + WN4_MEDIA);
441 if (if_port == 2)
442 lp->media_status = ((dev->if_port == 0) ? 0x8000 : 0x4000);
444 lp->media_status = ((dev->if_port == 0) ? 0x4010 : 0x8800);
476 tc589_set_xcvr(dev, dev->if_port);
516 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) {
518 dev->if_port = map->port;
519 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]);
520 tc589_set_xcvr(dev, dev->if_port);
757 if (dev->if_port == 0) {
919 if (dev->if_port == 2)
922 else if (dev->if_port == 1) {