Lines Matching defs:if_port
78 INT_MODULE_PARM(if_port, 0);
281 static void smc_set_xcvr(struct net_device *dev, int if_port);
848 if ((if_port >= 0) && (if_port <= 2))
849 dev->if_port = if_port;
851 dev_notice(&link->dev, "invalid if_port requested\n");
935 (smc->cfg & CFG_MII_SELECT) ? "MII" : if_names[dev->if_port]);
1593 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) {
1598 WRITE_ONCE(dev->if_port, map->port);
1599 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]);
1613 specified in dev->if_port.
1615 static void smc_set_xcvr(struct net_device *dev, int if_port)
1623 if (if_port == 2) {
1628 smc->media_status = ((dev->if_port == 0) ? 0x0001 : 0x0002);
1634 smc->media_status = ((dev->if_port == 0) ? 0x0012 : 0x4001);
1665 smc_set_xcvr(dev, dev->if_port);
1668 outw((dev->if_port == 2 ? OSI_AUI_PWR : 0) |
1813 if (dev->if_port == 0) {