Home
last modified time | relevance | path

Searched refs:if_port (Results 1 – 25 of 46) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A D21142.c78 dev->if_port = 0; in t21142_media_task()
86 dev->if_port = 3; in t21142_media_task()
94 medianame[dev->if_port]); in t21142_media_task()
118 dev->if_port = 0; in t21142_start_nway()
169 dev->if_port = 3; in t21142_lnk_change()
215 (dev->if_port == 3 || dev->if_port == 5) && in t21142_lnk_change()
223 } else if (dev->if_port == 3 || dev->if_port == 5) { in t21142_lnk_change()
226 medianame[dev->if_port], in t21142_lnk_change()
235 } else if (dev->if_port == 0 || dev->if_port == 4) { in t21142_lnk_change()
241 dev->if_port = 0; in t21142_lnk_change()
[all …]
H A Dpnic.c27 if (phy_reg & 0x20000000) dev->if_port = 5; in pnic_do_nway()
28 else if (phy_reg & 0x40000000) dev->if_port = 3; in pnic_do_nway()
29 else if (phy_reg & 0x10000000) dev->if_port = 4; in pnic_do_nway()
30 else if (phy_reg & 0x08000000) dev->if_port = 0; in pnic_do_nway()
34 if (dev->if_port & 1) in pnic_do_nway()
42 phy_reg, medianame[dev->if_port]); in pnic_do_nway()
127 medianame[dev->if_port], in pnic_timer()
135 } else if (dev->if_port == 0) { in pnic_timer()
136 dev->if_port = 3; in pnic_timer()
141 dev->if_port = 0; in pnic_timer()
[all …]
H A Dpnic2.c129 dev->if_port = 0; in pnic2_start_nway()
220 dev->if_port = 3; in pnic2_lnk_change()
225 if ((dev->if_port == 4) || (dev->if_port == 5)) in pnic2_lnk_change()
232 medianame[dev->if_port], in pnic2_lnk_change()
300 dev->if_port = 0; in pnic2_lnk_change()
318 (dev->if_port == 3 || dev->if_port == 5) && in pnic2_lnk_change()
335 if (dev->if_port == 3 || dev->if_port == 5) { in pnic2_lnk_change()
341 medianame[dev->if_port], in pnic2_lnk_change()
360 if (dev->if_port == 0 || dev->if_port == 4) { in pnic2_lnk_change()
366 medianame[dev->if_port], in pnic2_lnk_change()
[all …]
H A Dmedia.c183 dev->if_port = p[0]; in tulip_select_media()
195 dev->if_port = p[0] & MEDIA_MASK; in tulip_select_media()
209 medianame[dev->if_port], in tulip_select_media()
226 if (dev->if_port <= 4) in tulip_select_media()
250 dev->if_port = 11; in tulip_select_media()
342 medianame[dev->if_port], in tulip_select_media()
346 dev->if_port = tp->mii_cnt ? 11 : 0; in tulip_select_media()
350 medianame[dev->if_port]); in tulip_select_media()
361 } else if (dev->if_port == 3 || dev->if_port == 5) { in tulip_select_media()
373 dev->if_port = tp->mii_cnt ? 11 : 3; in tulip_select_media()
[all …]
H A Dtulip_core.c367 tp->saved_if_port = dev->if_port; in tulip_up()
368 if (dev->if_port == 0) in tulip_up()
375 if (dev->if_port) { in tulip_up()
377 (dev->if_port == 12 ? 0 : dev->if_port); in tulip_up()
382 medianame[dev->if_port]); in tulip_up()
406 if (dev->if_port) { in tulip_up()
425 dev->if_port = 11; in tulip_up()
439 dev->if_port = 11; in tulip_up()
454 dev->if_port = 0; in tulip_up()
459 dev->if_port = 0; in tulip_up()
[all …]
H A Dtimer.c29 medianame[dev->if_port], in tulip_media_task()
94 dev->if_port = tp->mtable->mleaf[tp->cur_index].media; in tulip_media_task()
95 if (tulip_media_cap[dev->if_port] & MediaIsFD) in tulip_media_task()
/openbmc/linux/drivers/net/ethernet/3com/
H A D3c589_cs.c155 INT_MODULE_PARM(if_port, 0);
318 if ((if_port >= 0) && (if_port <= 3)) in tc589_config()
319 dev->if_port = if_port; in tc589_config()
335 if_names[dev->if_port]); in tc589_config()
410 switch (if_port) { in tc589_set_xcvr()
428 if (if_port == 2) in tc589_set_xcvr()
463 tc589_set_xcvr(dev, dev->if_port); in tc589_reset()
505 dev->if_port = map->port; in el3_config()
749 if (dev->if_port == 0) { in media_check()
928 if (dev->if_port == 2) in el3_close()
[all …]
H A D3c515.c674 dev->if_port = vp->default_media; in corkscrew_setup()
720 dev->if_port = 4; in corkscrew_open()
722 dev->if_port = media_tbl[dev->if_port].next; in corkscrew_open()
729 dev->if_port = vp->default_media; in corkscrew_open()
783 if (dev->if_port == 3) in corkscrew_open()
882 switch (dev->if_port) { in corkscrew_timer()
891 media_tbl[dev->if_port].name, in corkscrew_timer()
896 media_tbl[dev->if_port].name, in corkscrew_timer()
904 media_tbl[dev->if_port].name, in corkscrew_timer()
912 dev->if_port = in corkscrew_timer()
[all …]
H A D3c509.c276 dev->if_port = if_port; in el3_dev_fill()
293 if_port = iobase >> 14; in el3_isa_match()
404 int ioaddr, irq, if_port; in el3_pnp_probe() local
560 int ioaddr, irq, if_port; in el3_eisa_probe() local
577 if_port = inw(ioaddr + 6)>>14; in el3_eisa_probe()
1099 dev->if_port = 0; in el3_netdev_set_ecmd()
1103 dev->if_port = 1; in el3_netdev_set_ecmd()
1107 dev->if_port = 3; in el3_netdev_set_ecmd()
1114 if (dev->if_port == 3) { in el3_netdev_set_ecmd()
1208 if (dev->if_port == 3) in el3_down()
[all …]
H A D3c59x.c1388 dev->if_port == XCVR_MII || dev->if_port == XCVR_NWAY) { in vortex_probe1()
1578 dev->name, dev->if_port); in vortex_up()
1579 dev->if_port = XCVR_NWAY; in vortex_up()
1582 dev->if_port = XCVR_100baseTx; in vortex_up()
1584 dev->if_port = media_tbl[dev->if_port].next; in vortex_up()
1609 if (dev->if_port == XCVR_MII || dev->if_port == XCVR_NWAY) { in vortex_up()
1649 if (dev->if_port == XCVR_10base2) in vortex_up()
1652 if (dev->if_port != XCVR_NWAY) { in vortex_up()
1800 switch (dev->if_port) { in vortex_timer()
1841 dev->if_port = media_tbl[dev->if_port].next; in vortex_timer()
[all …]
/openbmc/linux/drivers/net/ethernet/xircom/
H A Dxirc2ps_cs.c237 INT_MODULE_PARM(if_port, 0);
888 if (!if_port) { in xirc2ps_config()
890 } else if ((if_port >= 1 && if_port <= 2) || in xirc2ps_config()
892 dev->if_port = if_port; in xirc2ps_config()
1371 dev->if_port = 1; in do_config()
1590 if (dev->if_port == 1 || dev->if_port == 4) /* TP: Link and Activity */ in do_reset()
1637 if (if_port == 4 || if_port == 1) { /* force 100BaseT or 10BaseT */ in init_mii()
1638 dev->if_port = if_port; in init_mii()
1690 dev->if_port = 4; in init_mii()
1692 dev->if_port = 1; in init_mii()
[all …]
/openbmc/linux/drivers/net/ethernet/8390/
H A Detherh.c178 switch (dev->if_port) { in etherh_setif()
189 switch (dev->if_port) { in etherh_setif()
218 switch (dev->if_port) { in etherh_getifstat()
229 switch (dev->if_port) { in etherh_getifstat()
261 dev->if_port = map->port; in etherh_set_config()
293 dev->if_port = IF_PORT_10BASE2; in etherh_reset()
295 dev->if_port = IF_PORT_10BASET; in etherh_reset()
472 dev->if_port = IF_PORT_10BASET; in etherh_open()
681 dev->if_port = IF_PORT_10BASET; in etherh_probe()
684 dev->if_port = IF_PORT_10BASE2; in etherh_probe()
[all …]
H A Dpcnet_cs.c79 INT_MODULE_PARM(if_port, 1); /* Transceiver type */
538 if ((if_port == 1) || (if_port == 2)) in pcnet_try_config()
539 dev->if_port = if_port; in pcnet_try_config()
543 dev->if_port = 0; in pcnet_try_config()
640 pr_cont(" %s xcvr,", if_names[dev->if_port]); in pcnet_config()
853 if (dev->if_port == 2) in set_misc_reg()
992 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in set_config()
997 dev->if_port = map->port; in set_config()
998 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]); in set_config()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dcxgb2.c118 struct cmac *mac = adapter->port[dev->if_port].mac; in t1_set_rxmode()
255 __set_bit(dev->if_port, &adapter->open_device_map); in cxgb_open()
256 link_start(&adapter->port[dev->if_port]); in cxgb_open()
269 struct port_info *p = &adapter->port[dev->if_port]; in cxgb_close()
277 clear_bit(dev->if_port, &adapter->open_device_map); in cxgb_close()
295 struct port_info *p = &adapter->port[dev->if_port]; in t1_get_stats()
457 struct cmac *mac = adapter->port[dev->if_port].mac; in get_stats()
571 struct port_info *p = &adapter->port[dev->if_port]; in get_link_ksettings()
636 struct port_info *p = &adapter->port[dev->if_port]; in set_link_ksettings()
676 struct port_info *p = &adapter->port[dev->if_port]; in get_pauseparam()
[all …]
/openbmc/linux/drivers/net/ethernet/smsc/
H A Dsmc91c92_cs.c78 INT_MODULE_PARM(if_port, 0);
281 static void smc_set_xcvr(struct net_device *dev, int if_port);
848 if ((if_port >= 0) && (if_port <= 2)) in smc91c92_config()
849 dev->if_port = if_port; in smc91c92_config()
1598 dev->if_port = map->port; in s9k_config()
1615 static void smc_set_xcvr(struct net_device *dev, int if_port) in smc_set_xcvr() argument
1623 if (if_port == 2) { in smc_set_xcvr()
1628 smc->media_status = ((dev->if_port == 0) ? 0x0001 : 0x0002); in smc_set_xcvr()
1665 smc_set_xcvr(dev, dev->if_port); in smc_reset()
1668 outw((dev->if_port == 2 ? OSI_AUI_PWR : 0) | in smc_reset()
[all …]
H A Dsmc9194.c866 dev->if_port = ifport; in smc_probe()
956 if ( dev->if_port == 0 ) { in smc_probe()
960 dev->if_port = 2; in smc_probe()
962 dev->if_port = 1; in smc_probe()
964 if_string = interfaces[ dev->if_port - 1 ]; in smc_probe()
1065 if ( dev->if_port == 1 ) { in smc_open()
1069 else if ( dev->if_port == 2 ) { in smc_open()
H A Depic100.c479 dev->if_port = ep->default_port = option; in epic_init_one()
677 ew32(MIICfg, dev->if_port == 1 ? 0x13 : 0x12); in epic_open()
701 if (media2miictl[dev->if_port & 15]) { in epic_open()
703 mdio_write(dev, ep->phys[0], MII_BMCR, media2miictl[dev->if_port&15]); in epic_open()
704 if (dev->if_port == 1) { in epic_open()
802 ew32(MIICfg, dev->if_port == 1 ? 0x13 : 0x12); in epic_restart()
/openbmc/linux/drivers/net/ethernet/amd/
H A Dnmclan_cs.c392 INT_MODULE_PARM(if_port, 0);
569 switch (if_port) { in mace_init()
662 if (if_port <= 2) in nmclan_config()
663 dev->if_port = if_port; in nmclan_config()
676 dev->base_addr, dev->irq, if_names[dev->if_port], dev->dev_addr); in nmclan_config()
761 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in mace_config()
763 dev->if_port = map->port; in mace_config()
764 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]); in mace_config()
/openbmc/linux/drivers/media/tuners/
H A Dsi2157.h42 u8 if_port; member
H A Dsi2157_priv.h30 u8 if_port; member
H A Dsi2157.c522 cmd.args[4] = dev->if_port; in si2157_set_params()
688 cmd.args[4] = (dev->if_port == 1) ? 8 : 10; in si2157_set_analog_params()
690 cmd.args[5] = (dev->if_port == 1) ? 2 : 1; in si2157_set_analog_params()
898 dev->if_port = cfg->if_port; in si2157_probe()
/openbmc/linux/drivers/net/ethernet/realtek/
H A Datp.c346 dev->if_port = xcvr[0]; in atp_probe1()
348 dev->if_port = (dev->mem_start & 0xf) ? (dev->mem_start & 0x7) : 4; in atp_probe1()
573 write_packet(ioaddr, length, skb->data, length-skb->len, dev->if_port); in atp_send_packet()
764 read_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port); in net_rx()
794 read_block(ioaddr, pkt_len, skb_put(skb,pkt_len), dev->if_port); in net_rx()
/openbmc/linux/drivers/net/ethernet/natsemi/
H A Dnatsemi.c899 dev->if_port = PORT_MII; in natsemi_probe1()
901 dev->if_port = PORT_TP; in natsemi_probe1()
906 if (dev->if_port != PORT_TP) { in natsemi_probe1()
911 dev->if_port = PORT_TP; in natsemi_probe1()
964 if (dev->if_port == PORT_TP) in natsemi_probe1()
1125 if (dev->if_port == PORT_TP) in mdio_read()
1137 if (dev->if_port == PORT_TP) in mdio_write()
1438 if (dev->if_port == PORT_TP) in natsemi_reset()
1583 if (dev->if_port != PORT_TP) in do_cable_magic()
1628 if (dev->if_port != PORT_TP) in undo_cable_magic()
[all …]
/openbmc/linux/drivers/media/usb/dvb-usb-v2/
H A Ddvbsky.c469 si2157_config.if_port = 1; in dvbsky_t680c_attach()
519 si2157_config.if_port = 1; in dvbsky_t330_attach()
559 si2157_config.if_port = 1; in dvbsky_mygica_t230c_attach()
565 si2157_config.if_port = 0; in dvbsky_mygica_t230c_attach()
/openbmc/linux/drivers/media/usb/cx231xx/
H A Dcx231xx-dvb.c830 si2157_config.if_port = 1; in dvb_init()
875 si2157_config.if_port = 1; in dvb_init()
943 si2157_config.if_port = 1; in dvb_init()
1016 si2157_config.if_port = 1; in dvb_init()
1079 si2157_config.if_port = 1; in dvb_init()

12