Lines Matching refs:if_port

416     unsigned int if_port;  member
1232 tp->if_port = 0; in tulip_probe()
1440 tp->saved_if_port = tp->if_port; in start_link()
1442 tp->if_port = tp->saved_if_port; in start_link()
1509 if (tp->mii_cnt || media_cap[tp->if_port] & MediaIsMII) { in start_link()
1552 tp->if_port = 0; in nway_start()
1587 tp->saved_if_port = tp->if_port; in init_media()
1588 if (tp->if_port == 0) in init_media()
1589 tp->if_port = tp->default_port; in init_media()
1595 if (tp->if_port) { in init_media()
1596 int looking_for = media_cap[tp->if_port] & MediaIsMII ? 11 : in init_media()
1597 (tp->if_port == 12 ? 0 : tp->if_port); in init_media()
1601 tp->nic_name, medianame[tp->if_port]); in init_media()
1624 if (tp->if_port) { in init_media()
1625 if (tp->chip_id == DC21143 && media_cap[tp->if_port] & MediaIsMII) { in init_media()
1649 tp->if_port = 11; in init_media()
1660 tp->if_port = 11; in init_media()
1674 tp->if_port = 0; in init_media()
1680 tp->if_port = 0; in init_media()
1686 tp->if_port = 0; in init_media()
1707 if (phy_reg & 0x20000000) tp->if_port = 5; in pnic_do_nway()
1708 else if (phy_reg & 0x40000000) tp->if_port = 3; in pnic_do_nway()
1709 else if (phy_reg & 0x10000000) tp->if_port = 4; in pnic_do_nway()
1710 else if (phy_reg & 0x08000000) tp->if_port = 0; in pnic_do_nway()
1712 new_csr6 = (tp->if_port & 1) ? 0x01860000 : 0x00420000; in pnic_do_nway()
1713 outl(0x32 | (tp->if_port & 1), ioaddr + CSR12); in pnic_do_nway()
1714 if (tp->if_port & 1) in pnic_do_nway()
1723 tp->nic_name, phy_reg, medianame[tp->if_port]); in pnic_do_nway()
1755 tp->if_port = p[0]; in select_media()
1767 tp->if_port = p[0] & 15; in select_media()
1768 if (media_cap[tp->if_port] & MediaAlwaysFD) in select_media()
1786 tp->nic_name, medianame[tp->if_port], setup[0], setup[1]); in select_media()
1803 if (tp->if_port <= 4) in select_media()
1804 csr14val = t21142_csr14[tp->if_port]; in select_media()
1829 tp->if_port = 11; in select_media()
1875 tp->nic_name, medianame[tp->if_port], in select_media()
1879 int port = tp->if_port <= 4 ? tp->if_port : 0; in select_media()
1893 tp->if_port = tp->mii_cnt ? 11 : 0; in select_media()
1897 tp->nic_name, inl(ioaddr + 0xB8), medianame[tp->if_port]); in select_media()
1909 } else if (tp->if_port == 3 || tp->if_port == 5) { in select_media()
1925 tp->nic_name, medianame[tp->if_port], csr12); in select_media()
1927 if (media_cap[tp->if_port] & MediaAlwaysFD) in select_media()
1933 if (t21040_csr13[tp->if_port] & 8) { in select_media()
1940 outl(0x8f01 | t21040_csr13[tp->if_port], ioaddr + CSR13); in select_media()
1943 tp->if_port = tp->mii_cnt ? 11 : 3; in select_media()
1944 if (media_cap[tp->if_port] & MediaIsMII) { in select_media()
1946 } else if (media_cap[tp->if_port] & MediaIsFx) { in select_media()
1954 tp->nic_name, medianame[tp->if_port], in select_media()