Lines Matching defs:mtable
426 struct mediatable *mtable;
740 tp->mtable = 0;
811 struct mediatable *mtable;
819 tp->mtable = mtable = (struct mediatable *)&tp->media_table_storage[0];
821 mtable->defaultmedia = media;
822 mtable->leafcount = count;
823 mtable->csr12dir = csr12dir;
824 mtable->has_nonmii = mtable->has_mii = mtable->has_reset = 0;
825 mtable->csr15dir = mtable->csr15val = 0;
831 struct medialeaf *leaf = &mtable->mleaf[i];
838 mtable->has_mii = 1;
843 mtable->has_reset = i;
847 mtable->has_mii = 1;
854 mtable->csr15dir = (get_unaligned(p1 + 0)<<16) + base15;
855 mtable->csr15val = (get_unaligned(p1 + 1)<<16) + base15;
859 mtable->has_nonmii = 1;
965 if (tp->mii_cnt || (tp->mtable && tp->mtable->has_mii)) {
1433 (tp->mtable && tp->mtable->has_mii) ||
1434 ( ! tp->mtable && (tp->flags & HAS_MII))) {
1436 if (tp->mtable && tp->mtable->has_mii) {
1437 for (i = 0; i < tp->mtable->leafcount; i++)
1438 if (tp->mtable->mleaf[i].media == 11) {
1480 if (tp->mtable && tp->mtable->has_mii && phy_idx == 0) {
1504 if (tp->mtable)
1505 outl(tp->mtable->csr12dir | 0x100, ioaddr + CSR12);
1568 if (tp->mtable && tp->mtable->csr15dir) {
1569 outl(tp->mtable->csr15dir, ioaddr + CSR15);
1570 outl(tp->mtable->csr15val, ioaddr + CSR15);
1593 if (tp->mtable == NULL)
1598 for (i = 0; i < tp->mtable->leafcount; i++)
1599 if (tp->mtable->mleaf[i].media == looking_for) {
1605 if ((tp->mtable->defaultmedia & 0x0800) == 0) {
1606 int looking_for = tp->mtable->defaultmedia & 15;
1607 for (i = 0; i < tp->mtable->leafcount; i++)
1608 if (tp->mtable->mleaf[i].media == looking_for) {
1615 for (i = tp->mtable->leafcount - 1;
1616 (media_cap[tp->mtable->mleaf[i].media] & MediaAlwaysFD) && i > 0; i--)
1736 struct mediatable *mtable = tp->mtable;
1744 if (mtable) {
1745 struct medialeaf *mleaf = &mtable->mleaf[tp->cur_index];
1757 outl(mtable->csr12dir | 0x100, ioaddr + CSR12);
1771 if (startup && mtable->has_reset) {
1772 struct medialeaf *rleaf = &mtable->mleaf[mtable->has_reset];
1847 outl(mtable->csr12dir | 0x100, ioaddr + CSR12);