Lines Matching defs:if_port
131 /* Special hook for setting if_port when module is loaded */
132 INT_MODULE_PARM(if_port, 0);
317 /* The if_port symbol can be set when the module is loaded */
318 if ((if_port >= 0) && (if_port <= 3))
319 dev->if_port = if_port;
321 printk(KERN_ERR "3c589_cs: invalid if_port requested\n");
341 if_names[dev->if_port]);
419 specified in dev->if_port.
421 static void tc589_set_xcvr(struct net_device *dev, int if_port)
427 switch (if_port) {
433 outw((if_port == 2) ? StartCoax : StopCoax, ioaddr + EL3_CMD);
436 outw(MEDIA_LED | ((if_port < 2) ? MEDIA_TP : 0), ioaddr + WN4_MEDIA);
438 if (if_port == 2)
439 lp->media_status = ((dev->if_port == 0) ? 0x8000 : 0x4000);
441 lp->media_status = ((dev->if_port == 0) ? 0x4010 : 0x8800);
474 tc589_set_xcvr(dev, dev->if_port);
531 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) {
533 dev->if_port = map->port;
535 dev->name, if_names[dev->if_port]);
536 tc589_set_xcvr(dev, dev->if_port);
780 if (dev->if_port == 0) {
939 if (dev->if_port == 2)
942 else if (dev->if_port == 1) {