/linux-2.4.37.9/drivers/net/tulip/ |
D | 21142.c | 40 dev->name, csr12, medianame[dev->if_port]); in t21142_timer() 41 if (tulip_media_cap[dev->if_port] & MediaIsMII) { in t21142_timer() 48 dev->name, medianame[dev->if_port], csr12); in t21142_timer() 51 } else if (dev->if_port == 3) { in t21142_timer() 66 dev->if_port = 0; in t21142_timer() 69 outw(t21142_csr15[dev->if_port], ioaddr + CSR15); in t21142_timer() 70 outl(t21142_csr13[dev->if_port], ioaddr + CSR13); in t21142_timer() 74 dev->if_port = 3; in t21142_timer() 82 dev->name, medianame[dev->if_port]); in t21142_timer() 106 dev->if_port = 0; in t21142_start_nway() [all …]
|
D | pnic2.c | 134 dev->if_port = 0; in pnic2_start_nway() 214 if (negotiated & 0x0100) dev->if_port = 5; in pnic2_lnk_change() 215 else if (negotiated & 0x0080) dev->if_port = 3; in pnic2_lnk_change() 216 else if (negotiated & 0x0040) dev->if_port = 4; in pnic2_lnk_change() 217 else if (negotiated & 0x0020) dev->if_port = 0; in pnic2_lnk_change() 226 dev->if_port = 3; in pnic2_lnk_change() 231 if ((dev->if_port == 4) || (dev->if_port == 5)) in pnic2_lnk_change() 238 dev->name, medianame[dev->if_port], in pnic2_lnk_change() 266 if (dev->if_port & 1) tp->csr6 |= 0x01840000; in pnic2_lnk_change() 289 dev->name, medianame[dev->if_port], csr12); in pnic2_lnk_change() [all …]
|
D | pnic.c | 30 if (phy_reg & 0x20000000) dev->if_port = 5; in pnic_do_nway() 31 else if (phy_reg & 0x40000000) dev->if_port = 3; in pnic_do_nway() 32 else if (phy_reg & 0x10000000) dev->if_port = 4; in pnic_do_nway() 33 else if (phy_reg & 0x08000000) dev->if_port = 0; in pnic_do_nway() 35 new_csr6 = (dev->if_port & 1) ? 0x01860000 : 0x00420000; in pnic_do_nway() 36 outl(0x32 | (dev->if_port & 1), ioaddr + CSR12); in pnic_do_nway() 37 if (dev->if_port & 1) in pnic_do_nway() 45 dev->name, phy_reg, medianame[dev->if_port]); in pnic_do_nway() 69 if (tulip_media_cap[dev->if_port] & MediaIsMII) in pnic_lnk_change() 79 if (tulip_media_cap[dev->if_port] & MediaIsMII) { in pnic_lnk_change() [all …]
|
D | timer.c | 32 dev->name, medianame[dev->if_port], inl(ioaddr + CSR5), in tulip_timer() 41 dev->if_port = (dev->if_port == 2 ? 0 : 2); in tulip_timer() 51 switch (dev->if_port) { in tulip_timer() 57 dev->if_port = 2; in tulip_timer() 59 dev->if_port = 1; in tulip_timer() 61 dev->name, medianame[dev->if_port]); in tulip_timer() 63 outl(t21041_csr14[dev->if_port], ioaddr + CSR14); in tulip_timer() 64 outl(t21041_csr15[dev->if_port], ioaddr + CSR15); in tulip_timer() 65 outl(t21041_csr13[dev->if_port], ioaddr + CSR13); in tulip_timer() 78 dev->if_port = 0; in tulip_timer() [all …]
|
D | media.c | 195 dev->if_port = p[0]; in tulip_select_media() 207 dev->if_port = p[0] & MEDIA_MASK; in tulip_select_media() 208 if (tulip_media_cap[dev->if_port] & MediaAlwaysFD) in tulip_select_media() 223 dev->name, medianame[dev->if_port], setup[0], setup[1]); in tulip_select_media() 239 if (dev->if_port <= 4) in tulip_select_media() 240 csr14val = t21142_csr14[dev->if_port]; in tulip_select_media() 263 dev->if_port = 11; in tulip_select_media() 328 dev->name, medianame[dev->if_port], in tulip_select_media() 331 int port = dev->if_port <= 4 ? dev->if_port : 0; in tulip_select_media() 343 dev->if_port = tp->mii_cnt ? 11 : 0; in tulip_select_media() [all …]
|
D | tulip_core.c | 364 tp->saved_if_port = dev->if_port; in tulip_up() 365 if (dev->if_port == 0) in tulip_up() 366 dev->if_port = tp->default_port; in tulip_up() 372 if (dev->if_port) { in tulip_up() 373 int looking_for = tulip_media_cap[dev->if_port] & MediaIsMII ? 11 : in tulip_up() 374 (dev->if_port == 12 ? 0 : dev->if_port); in tulip_up() 378 dev->name, medianame[dev->if_port]); in tulip_up() 401 if (dev->if_port) { in tulip_up() 403 (tulip_media_cap[dev->if_port] & MediaIsMII)) { in tulip_up() 411 dev->if_port = 0; in tulip_up() [all …]
|
/linux-2.4.37.9/drivers/net/ |
D | au1000_eth.c | 210 dev->if_port = IF_PORT_100BASEFX; in bcm_5201_status() 214 dev->if_port = IF_PORT_100BASETX; in bcm_5201_status() 219 dev->if_port = IF_PORT_10BASET; in bcm_5201_status() 226 dev->if_port = IF_PORT_UNKNOWN; in bcm_5201_status() 297 dev->if_port = IF_PORT_100BASEFX; in lsi_80227_status() 301 dev->if_port = IF_PORT_100BASETX; in lsi_80227_status() 306 dev->if_port = IF_PORT_10BASET; in lsi_80227_status() 313 dev->if_port = IF_PORT_UNKNOWN; in lsi_80227_status() 408 dev->if_port = IF_PORT_100BASEFX; in am79c874_status() 412 dev->if_port = IF_PORT_100BASETX; in am79c874_status() [all …]
|
D | 3c515.c | 711 dev->if_port = config.u.xcvr; in corkscrew_probe1() 719 dev->if_port = vp->media_override; in corkscrew_probe1() 764 dev->if_port = vp->media_override; in corkscrew_open() 767 dev->if_port = 4; in corkscrew_open() 768 while (!(vp->available_media & media_tbl[dev->if_port].mask)) in corkscrew_open() 769 dev->if_port = media_tbl[dev->if_port].next; in corkscrew_open() 773 dev->name, media_tbl[dev->if_port].name); in corkscrew_open() 776 vp->timer.expires = RUN_AT(media_tbl[dev->if_port].wait); in corkscrew_open() 781 dev->if_port = vp->default_media; in corkscrew_open() 783 config.u.xcvr = dev->if_port; in corkscrew_open() [all …]
|
D | 3c509.c | 246 int ioaddr, irq, if_port; in el3_probe() local 280 if_port = inw(ioaddr + 6)>>14; in el3_probe() 337 if_port = pos4 & 0x03; in el3_probe() 339 printk("3c529: irq %d ioaddr 0x%x ifport %d\n", irq, ioaddr, if_port); in el3_probe() 386 if_port = read_eeprom(ioaddr, 8) >> 14; in el3_probe() 462 if_port = iobase >> 14; in el3_probe() 511 dev->if_port = (dev->mem_start & 0x0f); in el3_probe() 514 dev->if_port = (if_port | (dev->mem_start & 0x08) ); in el3_probe() 520 dev->name, dev->base_addr, if_names[(dev->if_port & 0x03)]); in el3_probe() 1066 dev->if_port = 0; in el3_netdev_set_ecmd() [all …]
|
D | 3c59x.c | 1326 dev->if_port = vp->media_override; in vortex_probe1() 1328 dev->if_port = vp->default_media; in vortex_probe1() 1331 dev->if_port == XCVR_MII || dev->if_port == XCVR_NWAY) { in vortex_probe1() 1490 dev->if_port = vp->media_override; in vortex_up() 1495 dev->name, dev->if_port); in vortex_up() 1496 dev->if_port = XCVR_NWAY; in vortex_up() 1499 dev->if_port = XCVR_100baseTx; in vortex_up() 1500 while (! (vp->available_media & media_tbl[dev->if_port].mask)) in vortex_up() 1501 dev->if_port = media_tbl[dev->if_port].next; in vortex_up() 1504 dev->name, media_tbl[dev->if_port].name); in vortex_up() [all …]
|
D | e2100.c | 217 dev->if_port = dev->mem_end & 7; in e21_probe1() 219 dev->if_port = 0; in e21_probe1() 223 dev->if_port = 1; in e21_probe1() 242 dev->if_port ? "secondary" : "primary", dev->mem_start); in e21_probe1() 272 + (dev->if_port ? E21_ALT_IFPORT : 0)); in e21_open()
|
D | fmv18x.c | 234 case 0x02 /* 10base2 */: dev->if_port = 0x18; break; in fmv18x_probe1() 235 case 0x04 /* 10baseT */: dev->if_port = 0x08; break; in fmv18x_probe1() 236 default /* auto-sense*/: dev->if_port = 0x00; break; in fmv18x_probe1() 238 printk(" %s interface.\n", porttype[(dev->if_port>>3) & 3]); in fmv18x_probe1() 262 outb(dev->if_port, ioaddr + MODE13); in fmv18x_probe1()
|
D | smc9194.c | 925 if ( dev->if_port == 0 ) { in smc_probe() 929 dev->if_port = 2; in smc_probe() 931 dev->if_port = 1; in smc_probe() 933 if_string = interfaces[ dev->if_port - 1 ]; in smc_probe() 1085 if ( dev->if_port == 1 ) { in smc_open() 1089 else if ( dev->if_port == 2 ) { in smc_open() 1562 devSMC9194.if_port = ifport; in init_module()
|
D | at1700.c | 376 dev->if_port = setup_value >> 8; in at1700_probe1() 382 dev->if_port = 0x18; break; in at1700_probe1() 384 dev->if_port = 0x08; break; in at1700_probe1() 386 dev->if_port = 0x00; break; in at1700_probe1() 389 printk(" %s interface.\n", porttype[(dev->if_port>>3) & 3]); in at1700_probe1() 410 outb(dev->if_port, ioaddr + MODE13); in at1700_probe1()
|
D | eth16i.c | 633 dev->if_port = (dev->mem_start < E_PORT_FROM_EPROM) ? in eth16i_initialize() 641 switch(dev->if_port) in eth16i_initialize() 645 dev->if_port = eth16i_read_eeprom(ioaddr, E_PORT_SELECT); in eth16i_initialize() 649 dev->if_port = eth16i_probe_port(ioaddr); in eth16i_initialize() 658 printk(" %s interface.\n", porttype[dev->if_port]); in eth16i_initialize() 660 eth16i_set_port(ioaddr, dev->if_port); in eth16i_initialize() 1452 dev->if_port = eth16i_parse_mediatype(mediatype[this_dev]); in init_module()
|
D | eexpress.c | 349 dev->if_port = 0xff; /* not set */ in express_probe() 382 dev->if_port = AUI; in express_probe() 385 dev->if_port = BNC; in express_probe() 387 dev->if_port = TPE; in express_probe() 882 switch (dev->if_port) { in eexp_hw_set_interface() 1108 if (dev->if_port == 0xff) { in eexp_hw_probe() 1109 dev->if_port = !(setupval & 0x1000) ? AUI : in eexp_hw_probe() 1124 eexp_ifmap[dev->if_port], buswidth?8:16); in eexp_hw_probe()
|
D | atp.c | 355 dev->if_port = xcvr[0]; in atp_probe1() 357 dev->if_port = (dev->mem_start & 0xf) ? (dev->mem_start & 0x7) : 4; in atp_probe1() 578 write_packet(ioaddr, length, skb->data, length-skb->len, dev->if_port); in atp_send_packet() 768 read_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port); in net_rx() 801 read_block(ioaddr, pkt_len, skb_put(skb,pkt_len), dev->if_port); in net_rx()
|
D | ac3200.c | 182 printk(" IRQ %d, %s port\n", dev->irq, port_name[dev->if_port]); in ac_probe1() 197 dev->if_port = inb(ioaddr + AC_CONFIG) >> 6; in ac_probe1()
|
D | epic100.c | 533 dev->if_port = ep->default_port = option; in epic_init_one() 695 outl(dev->if_port == 1 ? 0x13 : 0x12, ioaddr + MIICfg); in epic_open() 718 if (media2miictl[dev->if_port & 15]) { in epic_open() 720 mdio_write(dev, ep->phys[0], MII_BMCR, media2miictl[dev->if_port&15]); in epic_open() 721 if (dev->if_port == 1) { in epic_open() 822 outl(dev->if_port == 1 ? 0x13 : 0x12, ioaddr + MIICfg); in epic_restart()
|
/linux-2.4.37.9/drivers/acorn/net/ |
D | etherh.c | 165 switch (dev->if_port) { in etherh_setif() 176 switch (dev->if_port) { in etherh_setif() 204 switch (dev->if_port) { in etherh_getifstat() 215 switch (dev->if_port) { in etherh_getifstat() 247 dev->if_port = map->port; in etherh_set_config() 277 if (dev->if_port == IF_PORT_10BASET) in etherh_reset() 278 dev->if_port = IF_PORT_10BASE2; in etherh_reset() 280 dev->if_port = IF_PORT_10BASET; in etherh_reset() 464 dev->if_port = IF_PORT_10BASET; in etherh_open() 468 dev->if_port = IF_PORT_10BASE2; in etherh_open() [all …]
|
/linux-2.4.37.9/drivers/net/pcmcia/ |
D | 3c589_cs.c | 132 INT_MODULE_PARM(if_port, 0); 427 if ((if_port >= 0) && (if_port <= 3)) in tc589_config() 428 dev->if_port = if_port; in tc589_config() 440 if_names[dev->if_port]); in tc589_config() 571 static void tc589_set_xcvr(struct net_device *dev, int if_port) in tc589_set_xcvr() argument 577 switch (if_port) { in tc589_set_xcvr() 583 outw((if_port == 2) ? StartCoax : StopCoax, ioaddr + EL3_CMD); in tc589_set_xcvr() 586 outw(MEDIA_LED | ((if_port < 2) ? MEDIA_TP : 0), ioaddr + WN4_MEDIA); in tc589_set_xcvr() 588 if (if_port == 2) in tc589_set_xcvr() 589 lp->media_status = ((dev->if_port == 0) ? 0x8000 : 0x4000); in tc589_set_xcvr() [all …]
|
D | xirc2ps_cs.c | 266 INT_MODULE_PARM(if_port, 0); 1154 if (!if_port) { in xirc2ps_config() 1155 local->probe_port = dev->if_port = 1; in xirc2ps_config() 1156 } else if ((if_port >= 1 && if_port <= 2) || in xirc2ps_config() 1157 (local->mohawk && if_port==4)) in xirc2ps_config() 1158 dev->if_port = if_port; in xirc2ps_config() 1684 if (map->port != 255 && map->port != dev->if_port) { in do_config() 1689 dev->if_port = 1; in do_config() 1692 dev->if_port = map->port; in do_config() 1695 dev->name, if_names[dev->if_port]); in do_config() [all …]
|
D | smc91c92_cs.c | 78 INT_MODULE_PARM(if_port, 0); 302 static void smc_set_xcvr(struct net_device *dev, int if_port); 985 if ((if_port >= 0) && (if_port <= 2)) in smc91c92_config() 986 dev->if_port = if_port; in smc91c92_config() 1058 "MII" : if_names[dev->if_port]); in smc91c92_config() 1849 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in s9k_config() 1854 dev->if_port = map->port; in s9k_config() 1856 dev->name, if_names[dev->if_port]); in s9k_config() 1872 static void smc_set_xcvr(struct net_device *dev, int if_port) in smc_set_xcvr() argument 1880 if (if_port == 2) { in smc_set_xcvr() [all …]
|
D | nmclan_cs.c | 410 INT_MODULE_PARM(if_port, 0); 683 switch (if_port) { in mace_init() 790 if (if_port <= 2) in nmclan_config() 791 dev->if_port = if_port; in nmclan_config() 800 dev->name, dev->base_addr, dev->irq, if_names[dev->if_port]); in nmclan_config() 954 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in mace_config() 956 dev->if_port = map->port; in mace_config() 958 if_names[dev->if_port]); in mace_config()
|
D | pcnet_cs.c | 98 INT_MODULE_PARM(if_port, 1); /* Transceiver type */ 710 if ((if_port == 1) || (if_port == 2)) in pcnet_config() 711 dev->if_port = if_port; in pcnet_config() 715 dev->if_port = 0; in pcnet_config() 790 printk(" %s xcvr,", if_names[dev->if_port]); in pcnet_config() 1072 if (dev->if_port == 2) in set_misc_reg() 1205 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in set_config() 1210 dev->if_port = map->port; in set_config() 1212 dev->name, if_names[dev->if_port]); in set_config()
|