Home
last modified time | relevance | path

Searched refs:mtable (Results 1 – 9 of 9) sorted by relevance

/linux-3.4.99/drivers/net/ethernet/dec/tulip/
Deeprom.c121 tp->mtable = kmalloc(sizeof(struct mediatable) + in tulip_build_fake_mediatable()
124 if (tp->mtable == NULL) in tulip_build_fake_mediatable()
127 tp->mtable->defaultmedia = 0x800; in tulip_build_fake_mediatable()
128 tp->mtable->leafcount = 1; in tulip_build_fake_mediatable()
129 tp->mtable->csr12dir = 0x3f; /* inputs on bit7 for hsc-pci, bit6 for pci-fx */ in tulip_build_fake_mediatable()
130 tp->mtable->has_nonmii = 0; in tulip_build_fake_mediatable()
131 tp->mtable->has_reset = 0; in tulip_build_fake_mediatable()
132 tp->mtable->has_mii = 1; in tulip_build_fake_mediatable()
133 tp->mtable->csr15dir = tp->mtable->csr15val = 0; in tulip_build_fake_mediatable()
134 tp->mtable->mleaf[0].type = 1; in tulip_build_fake_mediatable()
[all …]
Dmedia.c172 struct mediatable *mtable = tp->mtable; in tulip_select_media() local
176 if (mtable) { in tulip_select_media()
177 struct medialeaf *mleaf = &mtable->mleaf[tp->cur_index]; in tulip_select_media()
186 iowrite32(mtable->csr12dir | 0x100, ioaddr + CSR12); in tulip_select_media()
200 if (startup && mtable->has_reset) { in tulip_select_media()
201 struct medialeaf *rleaf = &mtable->mleaf[mtable->has_reset]; in tulip_select_media()
286 iowrite32(mtable->csr12dir | 0x100, ioaddr + CSR12); in tulip_select_media()
330 if (startup && mtable->has_reset) { in tulip_select_media()
331 struct medialeaf *rleaf = &mtable->mleaf[mtable->has_reset]; in tulip_select_media()
548 if (tp->mtable && tp->mtable->has_mii && phy_idx == 0) { in tulip_find_mii()
Dtimer.c43 if (tp->mtable == NULL) { /* No EEPROM info, use generic code. */ in tulip_media_task()
53 mleaf = &tp->mtable->mleaf[tp->cur_index]; in tulip_media_task()
92 tp->cur_index = tp->mtable->leafcount - 1; in tulip_media_task()
94 dev->if_port = tp->mtable->mleaf[tp->cur_index].media; in tulip_media_task()
100 medianame[tp->mtable->mleaf[tp->cur_index].media]); in tulip_media_task()
D21142.c129 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()
186 if (tp->mtable) { in t21142_lnk_change()
188 for (i = 0; i < tp->mtable->leafcount; i++) in t21142_lnk_change()
189 if (tp->mtable->mleaf[i].media == dev->if_port) { in t21142_lnk_change()
Dtulip_core.c315 if (tp->mii_cnt || (tp->mtable && tp->mtable->has_mii)) in tulip_up()
385 if (tp->mtable == NULL) in tulip_up()
390 for (i = 0; i < tp->mtable->leafcount; i++) in tulip_up()
391 if (tp->mtable->mleaf[i].media == looking_for) { in tulip_up()
398 if ((tp->mtable->defaultmedia & 0x0800) == 0) { in tulip_up()
399 int looking_for = tp->mtable->defaultmedia & MEDIA_MASK; in tulip_up()
400 for (i = 0; i < tp->mtable->leafcount; i++) in tulip_up()
401 if (tp->mtable->mleaf[i].media == looking_for) { in tulip_up()
409 for (i = tp->mtable->leafcount - 1; in tulip_up()
410 (tulip_media_cap[tp->mtable->mleaf[i].media] & MediaAlwaysFD) && i > 0; i--) in tulip_up()
[all …]
Dtulip.h446 struct mediatable *mtable; member
/linux-3.4.99/drivers/net/ethernet/neterion/vxge/
Dvxge-config.c3817 u8 *mtable, in vxge_hw_vpath_rts_rth_itable_set() argument
3866 vpath_handles[mtable[itable[j]]], action, in vxge_hw_vpath_rts_rth_itable_set()
3884 if (mtable[itable[j]] != i) { in vxge_hw_vpath_rts_rth_itable_set()
3895 if (mtable[itable[j]] != i) { in vxge_hw_vpath_rts_rth_itable_set()
3906 if (mtable[itable[j]] != i) { in vxge_hw_vpath_rts_rth_itable_set()
3917 if (mtable[itable[j]] != i) { in vxge_hw_vpath_rts_rth_itable_set()
Dvxge-config.h2077 u8 *mtable,
Dvxge-main.c1916 u8 mtable[256] = {0}; /* CPU to vpath mapping */ in vxge_rth_configure() local
1926 mtable[index] = index % vdev->no_of_vpath; in vxge_rth_configure()
1932 mtable, itable, in vxge_rth_configure()