/linux-4.4.14/drivers/net/ethernet/dec/tulip/ |
D | 21142.c | 44 csr12, medianame[dev->if_port]); in t21142_media_task() 45 if (tulip_media_cap[dev->if_port] & MediaIsMII) { in t21142_media_task() 58 medianame[dev->if_port], csr12); in t21142_media_task() 61 } else if (dev->if_port == 3) { in t21142_media_task() 78 dev->if_port = 0; in t21142_media_task() 81 iowrite16(t21142_csr15[dev->if_port], ioaddr + CSR15); in t21142_media_task() 82 iowrite32(t21142_csr13[dev->if_port], ioaddr + CSR13); 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() [all …]
|
D | pnic2.c | 129 dev->if_port = 0; in pnic2_start_nway() 208 if (negotiated & 0x0100) dev->if_port = 5; in pnic2_lnk_change() 209 else if (negotiated & 0x0080) dev->if_port = 3; in pnic2_lnk_change() 210 else if (negotiated & 0x0040) dev->if_port = 4; in pnic2_lnk_change() 211 else if (negotiated & 0x0020) dev->if_port = 0; in pnic2_lnk_change() 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() 261 if (dev->if_port & 1) tp->csr6 |= 0x01840000; in pnic2_lnk_change() 285 medianame[dev->if_port], csr12); in pnic2_lnk_change() [all …]
|
D | pnic.c | 27 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() 32 new_csr6 = (dev->if_port & 1) ? 0x01860000 : 0x00420000; in pnic_do_nway() 33 iowrite32(0x32 | (dev->if_port & 1), ioaddr + CSR12); 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() 66 if (tulip_media_cap[dev->if_port] & MediaIsMII) in pnic_lnk_change() 76 if (tulip_media_cap[dev->if_port] & MediaIsMII) { in pnic_lnk_change() [all …]
|
D | media.c | 183 dev->if_port = p[0]; in tulip_select_media() 195 dev->if_port = p[0] & MEDIA_MASK; in tulip_select_media() 196 if (tulip_media_cap[dev->if_port] & MediaAlwaysFD) in tulip_select_media() 209 medianame[dev->if_port], in tulip_select_media() 226 if (dev->if_port <= 4) in tulip_select_media() 227 csr14val = t21142_csr14[dev->if_port]; in tulip_select_media() 250 dev->if_port = 11; in tulip_select_media() 347 medianame[dev->if_port], in tulip_select_media() 351 dev->if_port = tp->mii_cnt ? 11 : 0; in tulip_select_media() 355 medianame[dev->if_port]); in tulip_select_media() [all …]
|
D | tulip_core.c | 378 tp->saved_if_port = dev->if_port; in tulip_up() 379 if (dev->if_port == 0) in tulip_up() 380 dev->if_port = tp->default_port; in tulip_up() 386 if (dev->if_port) { in tulip_up() 387 int looking_for = tulip_media_cap[dev->if_port] & MediaIsMII ? 11 : in tulip_up() 388 (dev->if_port == 12 ? 0 : dev->if_port); in tulip_up() 393 medianame[dev->if_port]); in tulip_up() 417 if (dev->if_port) { in tulip_up() 419 (tulip_media_cap[dev->if_port] & MediaIsMII)) { in tulip_up() 436 dev->if_port = 11; in tulip_up() [all …]
|
D | timer.c | 29 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()
|
/linux-4.4.14/drivers/net/ethernet/3com/ |
D | 3c589_cs.c | 156 INT_MODULE_PARM(if_port, 0); 311 if ((if_port >= 0) && (if_port <= 3)) in tc589_config() 312 dev->if_port = if_port; in tc589_config() 328 if_names[dev->if_port]); in tc589_config() 397 static void tc589_set_xcvr(struct net_device *dev, int if_port) in tc589_set_xcvr() argument 403 switch (if_port) { in tc589_set_xcvr() 416 outw((if_port == 2) ? StartCoax : StopCoax, ioaddr + EL3_CMD); in tc589_set_xcvr() 419 outw(MEDIA_LED | ((if_port < 2) ? MEDIA_TP : 0), ioaddr + WN4_MEDIA); in tc589_set_xcvr() 421 if (if_port == 2) in tc589_set_xcvr() 422 lp->media_status = ((dev->if_port == 0) ? 0x8000 : 0x4000); in tc589_set_xcvr() [all …]
|
D | 3c515.c | 683 dev->if_port = vp->default_media; in corkscrew_setup() 689 dev->if_port = vp->media_override; in corkscrew_setup() 725 dev->if_port = vp->media_override; in corkscrew_open() 728 dev->if_port = 4; in corkscrew_open() 729 while (!(vp->available_media & media_tbl[dev->if_port].mask)) in corkscrew_open() 730 dev->if_port = media_tbl[dev->if_port].next; in corkscrew_open() 734 dev->name, media_tbl[dev->if_port].name); in corkscrew_open() 737 vp->timer.expires = jiffies + media_tbl[dev->if_port].wait; in corkscrew_open() 742 dev->if_port = vp->default_media; in corkscrew_open() 744 config = (config & ~Xcvr) | (dev->if_port << Xcvr_shift); in corkscrew_open() [all …]
|
D | 3c509.c | 273 int irq, int if_port, enum el3_cardtype type) in el3_dev_fill() argument 280 dev->if_port = if_port; in el3_dev_fill() 287 int ioaddr, isa_irq, if_port, err; in el3_isa_match() local 297 if_port = iobase >> 14; in el3_isa_match() 331 el3_dev_fill(dev, phys_addr, ioaddr, isa_irq, if_port, EL3_ISA); in el3_isa_match() 410 int ioaddr, irq, if_port; in el3_pnp_probe() local 422 if_port = read_eeprom(ioaddr, 8) >> 14; in el3_pnp_probe() 431 el3_dev_fill(dev, phys_addr, ioaddr, irq, if_port, EL3_PNP); in el3_pnp_probe() 528 dev->if_port = (dev->mem_start & 0x0f); in el3_common_init() 531 dev->if_port |= (dev->mem_start & 0x08); in el3_common_init() [all …]
|
D | 3c59x.c | 1390 dev->if_port = vp->media_override; in vortex_probe1() 1392 dev->if_port = vp->default_media; in vortex_probe1() 1395 dev->if_port == XCVR_MII || dev->if_port == XCVR_NWAY) { in vortex_probe1() 1581 dev->if_port = vp->media_override; in vortex_up() 1586 dev->name, dev->if_port); in vortex_up() 1587 dev->if_port = XCVR_NWAY; in vortex_up() 1590 dev->if_port = XCVR_100baseTx; in vortex_up() 1591 while (! (vp->available_media & media_tbl[dev->if_port].mask)) in vortex_up() 1592 dev->if_port = media_tbl[dev->if_port].next; in vortex_up() 1595 dev->name, media_tbl[dev->if_port].name); in vortex_up() [all …]
|
/linux-4.4.14/drivers/net/ethernet/xircom/ |
D | xirc2ps_cs.c | 237 INT_MODULE_PARM(if_port, 0); 890 if (!if_port) { in xirc2ps_config() 891 local->probe_port = dev->if_port = 1; in xirc2ps_config() 892 } else if ((if_port >= 1 && if_port <= 2) || in xirc2ps_config() 893 (local->mohawk && if_port==4)) in xirc2ps_config() 894 dev->if_port = if_port; in xirc2ps_config() 1368 if (map->port != 255 && map->port != dev->if_port) { in do_config() 1373 dev->if_port = 1; in do_config() 1376 dev->if_port = map->port; in do_config() 1378 netdev_info(dev, "switching to %s port\n", if_names[dev->if_port]); in do_config() [all …]
|
/linux-4.4.14/drivers/net/ethernet/8390/ |
D | etherh.c | 183 switch (dev->if_port) { in etherh_setif() 194 switch (dev->if_port) { in etherh_setif() 223 switch (dev->if_port) { in etherh_getifstat() 234 switch (dev->if_port) { in etherh_getifstat() 266 dev->if_port = map->port; in etherh_set_config() 297 if (dev->if_port == IF_PORT_10BASET) in etherh_reset() 298 dev->if_port = IF_PORT_10BASE2; in etherh_reset() 300 dev->if_port = IF_PORT_10BASET; in etherh_reset() 477 dev->if_port = IF_PORT_10BASET; in etherh_open() 481 dev->if_port = IF_PORT_10BASE2; in etherh_open() [all …]
|
D | pcnet_cs.c | 81 INT_MODULE_PARM(if_port, 1); /* Transceiver type */ 526 if ((if_port == 1) || (if_port == 2)) in pcnet_try_config() 527 dev->if_port = if_port; in pcnet_try_config() 531 dev->if_port = 0; in pcnet_try_config() 631 pr_cont(" %s xcvr,", if_names[dev->if_port]); in pcnet_config() 844 if (dev->if_port == 2) in set_misc_reg() 983 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in set_config() 988 dev->if_port = map->port; in set_config() 989 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]); in set_config()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/ |
D | cxgb2.c | 122 struct cmac *mac = adapter->port[dev->if_port].mac; in t1_set_rxmode() 258 __set_bit(dev->if_port, &adapter->open_device_map); in cxgb_open() 259 link_start(&adapter->port[dev->if_port]); in cxgb_open() 272 struct port_info *p = &adapter->port[dev->if_port]; in cxgb_close() 280 clear_bit(dev->if_port, &adapter->open_device_map); in cxgb_close() 298 struct port_info *p = &adapter->port[dev->if_port]; in t1_get_stats() 461 struct cmac *mac = adapter->port[dev->if_port].mac; in get_stats() 468 t1_sge_get_port_stats(adapter->sge, dev->if_port, &ss); in get_stats() 574 struct port_info *p = &adapter->port[dev->if_port]; in get_settings() 634 struct port_info *p = &adapter->port[dev->if_port]; in set_settings() [all …]
|
D | sge.c | 443 skbq = &s->p[skb->dev->if_port].skbq; in sched_skb() 1419 if (test_and_clear_bit(nd->if_port, &sge->stopped_tx_queues) && in restart_tx_queues() 1681 set_bit(dev->if_port, &sge->stopped_tx_queues); in t1_sge_tx() 1692 set_bit(dev->if_port, &sge->stopped_tx_queues); in t1_sge_tx() 1776 struct sge_port_stats *st = this_cpu_ptr(sge->port_stats[dev->if_port]); in t1_start_xmit() 1841 if ((unlikely(!adapter->sge->espibug_skb[dev->if_port]))) { in t1_start_xmit() 1844 adapter->sge->espibug_skb[dev->if_port] = skb; in t1_start_xmit() 1861 cpl->iff = dev->if_port; in t1_start_xmit()
|
/linux-4.4.14/drivers/net/ethernet/smsc/ |
D | smc91c92_cs.c | 78 INT_MODULE_PARM(if_port, 0); 280 static void smc_set_xcvr(struct net_device *dev, int if_port); 845 if ((if_port >= 0) && (if_port <= 2)) in smc91c92_config() 846 dev->if_port = if_port; in smc91c92_config() 932 (smc->cfg & CFG_MII_SELECT) ? "MII" : if_names[dev->if_port]); in smc91c92_config() 1589 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in s9k_config() 1594 dev->if_port = map->port; in s9k_config() 1595 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]); in s9k_config() 1611 static void smc_set_xcvr(struct net_device *dev, int if_port) in smc_set_xcvr() argument 1619 if (if_port == 2) { in smc_set_xcvr() [all …]
|
D | smc9194.c | 866 dev->if_port = ifport; in smc_probe() 955 if ( dev->if_port == 0 ) { in smc_probe() 959 dev->if_port = 2; in smc_probe() 961 dev->if_port = 1; in smc_probe() 963 if_string = interfaces[ dev->if_port - 1 ]; in smc_probe() 1064 if ( dev->if_port == 1 ) { in smc_open() 1068 else if ( dev->if_port == 2 ) { in smc_open()
|
D | epic100.c | 479 dev->if_port = ep->default_port = option; in epic_init_one() 675 ew32(MIICfg, dev->if_port == 1 ? 0x13 : 0x12); in epic_open() 699 if (media2miictl[dev->if_port & 15]) { in epic_open() 701 mdio_write(dev, ep->phys[0], MII_BMCR, media2miictl[dev->if_port&15]); in epic_open() 702 if (dev->if_port == 1) { in epic_open() 802 ew32(MIICfg, dev->if_port == 1 ? 0x13 : 0x12); in epic_restart()
|
/linux-4.4.14/drivers/media/tuners/ |
D | si2157.h | 42 u8 if_port; member
|
D | si2157_priv.h | 31 u8 if_port; member
|
D | si2157.c | 316 cmd.args[4] = dev->if_port; in si2157_set_params() 424 dev->if_port = cfg->if_port; in si2157_probe()
|
/linux-4.4.14/drivers/net/ethernet/amd/ |
D | nmclan_cs.c | 395 INT_MODULE_PARM(if_port, 0); 572 switch (if_port) { in mace_init() 665 if (if_port <= 2) in nmclan_config() 666 dev->if_port = if_port; in nmclan_config() 679 dev->base_addr, dev->irq, if_names[dev->if_port], dev->dev_addr); in nmclan_config() 764 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in mace_config() 766 dev->if_port = map->port; in mace_config() 767 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]); in mace_config()
|
/linux-4.4.14/drivers/net/ethernet/realtek/ |
D | atp.c | 346 dev->if_port = xcvr[0]; in atp_probe1() 348 dev->if_port = (dev->mem_start & 0xf) ? (dev->mem_start & 0x7) : 4; in atp_probe1() 572 write_packet(ioaddr, length, skb->data, length-skb->len, dev->if_port); in atp_send_packet() 760 read_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port); in net_rx() 790 read_block(ioaddr, pkt_len, skb_put(skb,pkt_len), dev->if_port); in net_rx()
|
/linux-4.4.14/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 895 dev->if_port = PORT_MII; in natsemi_probe1() 897 dev->if_port = PORT_TP; in natsemi_probe1() 902 if (dev->if_port != PORT_TP) { in natsemi_probe1() 907 dev->if_port = PORT_TP; in natsemi_probe1() 956 if (dev->if_port == PORT_TP) in natsemi_probe1() 1122 if (dev->if_port == PORT_TP) in mdio_read() 1134 if (dev->if_port == PORT_TP) in mdio_write() 1188 if (dev->if_port == PORT_FIBRE) in init_phy_fixup() 1435 if (dev->if_port == PORT_TP) in natsemi_reset() 1582 if (dev->if_port != PORT_TP) in do_cable_magic() [all …]
|
/linux-4.4.14/drivers/media/pci/saa7164/ |
D | saa7164-dvb.c | 114 .if_port = 1, 669 si2157_config.if_port = 1; in saa7164_dvb_register() 715 si2157_config.if_port = 1; in saa7164_dvb_register()
|
/linux-4.4.14/drivers/media/usb/cx231xx/ |
D | cx231xx-dvb.c | 800 si2157_config.if_port = 1; in dvb_init() 856 si2157_config.if_port = 1; in dvb_init()
|
/linux-4.4.14/drivers/media/usb/dvb-usb-v2/ |
D | dvbsky.c | 555 si2157_config.if_port = 1; in dvbsky_t680c_attach() 640 si2157_config.if_port = 1; in dvbsky_t330_attach()
|
D | rtl28xxu.c | 1274 .if_port = 0, in rtl2832u_tuner_attach()
|
D | af9035.c | 1583 si2157_config.if_port = 1; in it930x_tuner_attach()
|
/linux-4.4.14/drivers/net/ethernet/packetengines/ |
D | yellowfin.c | 608 if (dev->if_port == 0) in yellowfin_open() 609 dev->if_port = yp->default_port; in yellowfin_open() 710 dev->if_port = 0; in yellowfin_tx_timeout()
|
D | hamachi.c | 912 if (dev->if_port == 0) in hamachi_open() 913 dev->if_port = hmp->default_port; in hamachi_open() 1073 dev->if_port = 0; in hamachi_tx_timeout()
|
/linux-4.4.14/net/core/ |
D | dev_ioctl.c | 164 ifr->ifr_map.port = dev->if_port; in dev_ifsioc_locked()
|
D | rtnetlink.c | 1186 map.port = dev->if_port; in rtnl_fill_link_ifmap()
|
/linux-4.4.14/drivers/net/ethernet/sis/ |
D | sis900.c | 2188 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in sis900_set_config() 2197 dev->if_port = map->port; in sis900_set_config() 2218 dev->if_port = map->port; in sis900_set_config() 2239 dev->if_port = map->port; in sis900_set_config()
|
/linux-4.4.14/drivers/media/pci/cx23885/ |
D | cx23885-dvb.c | 1970 si2157_config.if_port = 1; in dvb_register() 2016 si2157_config.if_port = 1; in dvb_register() 2155 si2157_config.if_port = 1; in dvb_register() 2246 si2157_config.if_port = 1; in dvb_register()
|
/linux-4.4.14/drivers/net/ethernet/dlink/ |
D | sundance.c | 880 if (dev->if_port == 0) in netdev_open() 881 dev->if_port = np->default_port; in netdev_open() 1012 dev->if_port = 0; in tx_timeout()
|
D | dl2k.c | 585 dev->if_port = 0; in rio_tx_timeout()
|
/linux-4.4.14/drivers/media/usb/em28xx/ |
D | em28xx-dvb.c | 1643 si2157_config.if_port = 1; in em28xx_dvb_init() 1704 si2157_config.if_port = 0; in em28xx_dvb_init()
|
/linux-4.4.14/drivers/net/ethernet/ |
D | fealnx.c | 890 if (dev->if_port == 0) in netdev_open() 891 dev->if_port = np->default_port; in netdev_open()
|
/linux-4.4.14/drivers/net/ethernet/tehuti/ |
D | tehuti.c | 127 BDX_NIC_NAME, (ndev->if_port == 0) ? 'A' : 'B'); in print_eth_id() 2018 ndev->if_port = port; in bdx_probe()
|
/linux-4.4.14/drivers/media/pci/smipcie/ |
D | smipcie-main.c | 664 si2157_config.if_port = 1; in smi_dvbsky_sit2_fe_attach()
|
/linux-4.4.14/drivers/net/ethernet/i825xx/ |
D | sun3_82586.c | 396 dev->if_port = 0; in sun3_82586_probe1()
|
/linux-4.4.14/drivers/net/ethernet/micrel/ |
D | ks8851.c | 1519 ndev->if_port = IF_PORT_100BASET; in ks8851_probe()
|
/linux-4.4.14/drivers/net/ethernet/microchip/ |
D | enc28j60.c | 1592 dev->if_port = IF_PORT_10BASET; in enc28j60_probe()
|
/linux-4.4.14/drivers/net/irda/ |
D | vlsi_ir.c | 1594 ndev->if_port = IF_PORT_UNKNOWN; in vlsi_irda_init()
|
/linux-4.4.14/drivers/media/usb/dvb-usb/ |
D | cxusb.c | 1353 si2157_config.if_port = 1; in cxusb_mygica_t230_frontend_attach()
|
/linux-4.4.14/include/linux/ |
D | netdevice.h | 1617 unsigned char if_port; member
|