Lines Matching refs:if_port
237 INT_MODULE_PARM(if_port, 0);
888 if (!if_port) { in xirc2ps_config()
889 local->probe_port = dev->if_port = 1; in xirc2ps_config()
890 } else if ((if_port >= 1 && if_port <= 2) || in xirc2ps_config()
891 (local->mohawk && if_port==4)) in xirc2ps_config()
892 dev->if_port = if_port; in xirc2ps_config()
1364 if (map->port != 255 && map->port != dev->if_port) { in do_config()
1369 WRITE_ONCE(dev->if_port, 1); in do_config()
1372 WRITE_ONCE(dev->if_port, map->port); in do_config()
1374 netdev_info(dev, "switching to %s port\n", if_names[dev->if_port]); in do_config()
1502 } else if (dev->if_port == 2) { /* enable 10Base2 */ in do_reset()
1564 if (dev->if_port == 4 || local->dingo || local->new_mii) { in do_reset()
1572 if (dev->if_port == 2) /* enable 10Base2 */ in do_reset()
1583 dev->if_port = (value & MediaSelect) ? 1 : 2; in do_reset()
1588 if (dev->if_port == 1 || dev->if_port == 4) /* TP: Link and Activity */ in do_reset()
1616 if_names[dev->if_port], local->silicon); in do_reset()
1635 if (if_port == 4 || if_port == 1) { /* force 100BaseT or 10BaseT */ in init_mii()
1636 dev->if_port = if_port; in init_mii()
1649 else if (dev->if_port == 4) in init_mii()
1682 dev->if_port = (GetByte(XIRCREG_ESR) & MediaSelect) ? 1 : 2; in init_mii()
1688 dev->if_port = 4; in init_mii()
1690 dev->if_port = 1; in init_mii()
1784 MAYBE_SET(if_port, 3); in setup_xirc2ps_cs()