Searched refs:mtable (Results 1 – 6 of 6) sorted by relevance
122 tp->mtable = (struct mediatable *) in tulip_build_fake_mediatable()125 if (tp->mtable == NULL) in tulip_build_fake_mediatable()128 tp->mtable->defaultmedia = 0x800; in tulip_build_fake_mediatable()129 tp->mtable->leafcount = 1; in tulip_build_fake_mediatable()130 tp->mtable->csr12dir = 0x3f; /* inputs on bit7 for hsc-pci, bit6 for pci-fx */ in tulip_build_fake_mediatable()131 tp->mtable->has_nonmii = 0; in tulip_build_fake_mediatable()132 tp->mtable->has_reset = 0; in tulip_build_fake_mediatable()133 tp->mtable->has_mii = 1; in tulip_build_fake_mediatable()134 tp->mtable->csr15dir = tp->mtable->csr15val = 0; in tulip_build_fake_mediatable()135 tp->mtable->mleaf[0].type = 1; in tulip_build_fake_mediatable()[all …]
177 struct mediatable *mtable = tp->mtable; in tulip_select_media() local181 if (mtable) { in tulip_select_media()182 struct medialeaf *mleaf = &mtable->mleaf[tp->cur_index]; in tulip_select_media()192 iowrite32(mtable->csr12dir | 0x100, ioaddr + CSR12); in tulip_select_media()206 if (startup && mtable->has_reset) { in tulip_select_media()207 struct medialeaf *rleaf = &mtable->mleaf[mtable->has_reset]; in tulip_select_media()293 iowrite32(mtable->csr12dir | 0x100, ioaddr + CSR12); in tulip_select_media()336 if (startup && mtable->has_reset) { in tulip_select_media()337 struct medialeaf *rleaf = &mtable->mleaf[mtable->has_reset]; in tulip_select_media()558 if (tp->mtable && tp->mtable->has_mii && phy_idx == 0) { in tulip_find_mii()
46 if (tp->mtable == NULL) { /* No EEPROM info, use generic code. */ in tulip_media_task()56 mleaf = &tp->mtable->mleaf[tp->cur_index]; in tulip_media_task()97 tp->cur_index = tp->mtable->leafcount - 1; in tulip_media_task()99 dev->if_port = tp->mtable->mleaf[tp->cur_index].media; in tulip_media_task()106 medianame[tp->mtable->mleaf[tp->cur_index].media]); in tulip_media_task()
129 if (tp->mtable && tp->mtable->csr15dir) { in t21142_start_nway()130 iowrite32(tp->mtable->csr15dir, ioaddr + CSR15); in t21142_start_nway()131 iowrite32(tp->mtable->csr15val, ioaddr + CSR15); in t21142_start_nway()184 if (tp->mtable) { in t21142_lnk_change()186 for (i = 0; i < tp->mtable->leafcount; i++) in t21142_lnk_change()187 if (tp->mtable->mleaf[i].media == dev->if_port) { in t21142_lnk_change()
305 if (tp->mii_cnt || (tp->mtable && tp->mtable->has_mii)) in tulip_up()375 if (tp->mtable == NULL) in tulip_up()380 for (i = 0; i < tp->mtable->leafcount; i++) in tulip_up()381 if (tp->mtable->mleaf[i].media == looking_for) { in tulip_up()387 if ((tp->mtable->defaultmedia & 0x0800) == 0) { in tulip_up()388 int looking_for = tp->mtable->defaultmedia & MEDIA_MASK; in tulip_up()389 for (i = 0; i < tp->mtable->leafcount; i++) in tulip_up()390 if (tp->mtable->mleaf[i].media == looking_for) { in tulip_up()397 for (i = tp->mtable->leafcount - 1; in tulip_up()398 (tulip_media_cap[tp->mtable->mleaf[i].media] & MediaAlwaysFD) && i > 0; i--) in tulip_up()[all …]
388 struct mediatable *mtable; member