/Linux-v4.19/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-v4.19/drivers/net/ethernet/3com/ |
D | 3c589_cs.c | 156 INT_MODULE_PARM(if_port, 0); 310 if ((if_port >= 0) && (if_port <= 3)) in tc589_config() 311 dev->if_port = if_port; in tc589_config() 327 if_names[dev->if_port]); in tc589_config() 396 static void tc589_set_xcvr(struct net_device *dev, int if_port) in tc589_set_xcvr() argument 402 switch (if_port) { in tc589_set_xcvr() 415 outw((if_port == 2) ? StartCoax : StopCoax, ioaddr + EL3_CMD); in tc589_set_xcvr() 418 outw(MEDIA_LED | ((if_port < 2) ? MEDIA_TP : 0), ioaddr + WN4_MEDIA); in tc589_set_xcvr() 420 if (if_port == 2) in tc589_set_xcvr() 421 lp->media_status = ((dev->if_port == 0) ? 0x8000 : 0x4000); in tc589_set_xcvr() [all …]
|
D | 3c515.c | 684 dev->if_port = vp->default_media; in corkscrew_setup() 690 dev->if_port = vp->media_override; in corkscrew_setup() 727 dev->if_port = vp->media_override; in corkscrew_open() 730 dev->if_port = 4; in corkscrew_open() 731 while (!(vp->available_media & media_tbl[dev->if_port].mask)) in corkscrew_open() 732 dev->if_port = media_tbl[dev->if_port].next; in corkscrew_open() 736 dev->name, media_tbl[dev->if_port].name); in corkscrew_open() 739 dev->if_port = vp->default_media; in corkscrew_open() 741 config = (config & ~Xcvr) | (dev->if_port << Xcvr_shift); in corkscrew_open() 778 mod_timer(&vp->timer, jiffies + media_tbl[dev->if_port].wait); 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() 527 dev->if_port = (dev->mem_start & 0x0f); in el3_common_init() 530 dev->if_port |= (dev->mem_start & 0x08); in el3_common_init() [all …]
|
D | 3c59x.c | 1383 dev->if_port = vp->media_override; in vortex_probe1() 1385 dev->if_port = vp->default_media; in vortex_probe1() 1388 dev->if_port == XCVR_MII || dev->if_port == XCVR_NWAY) { in vortex_probe1() 1573 dev->if_port = vp->media_override; in vortex_up() 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() 1583 while (! (vp->available_media & media_tbl[dev->if_port].mask)) in vortex_up() 1584 dev->if_port = media_tbl[dev->if_port].next; in vortex_up() 1587 dev->name, media_tbl[dev->if_port].name); in vortex_up() [all …]
|
/Linux-v4.19/drivers/net/ethernet/xircom/ |
D | xirc2ps_cs.c | 237 INT_MODULE_PARM(if_port, 0); 889 if (!if_port) { in xirc2ps_config() 890 local->probe_port = dev->if_port = 1; in xirc2ps_config() 891 } else if ((if_port >= 1 && if_port <= 2) || in xirc2ps_config() 892 (local->mohawk && if_port==4)) in xirc2ps_config() 893 dev->if_port = if_port; in xirc2ps_config() 1367 if (map->port != 255 && map->port != dev->if_port) { in do_config() 1372 dev->if_port = 1; in do_config() 1375 dev->if_port = map->port; in do_config() 1377 netdev_info(dev, "switching to %s port\n", if_names[dev->if_port]); in do_config() [all …]
|
/Linux-v4.19/drivers/net/ethernet/8390/ |
D | etherh.c | 181 switch (dev->if_port) { in etherh_setif() 192 switch (dev->if_port) { in etherh_setif() 221 switch (dev->if_port) { in etherh_getifstat() 232 switch (dev->if_port) { in etherh_getifstat() 264 dev->if_port = map->port; in etherh_set_config() 295 if (dev->if_port == IF_PORT_10BASET) in etherh_reset() 296 dev->if_port = IF_PORT_10BASE2; in etherh_reset() 298 dev->if_port = IF_PORT_10BASET; in etherh_reset() 475 dev->if_port = IF_PORT_10BASET; in etherh_open() 479 dev->if_port = IF_PORT_10BASE2; in etherh_open() [all …]
|
D | pcnet_cs.c | 80 INT_MODULE_PARM(if_port, 1); /* Transceiver type */ 524 if ((if_port == 1) || (if_port == 2)) in pcnet_try_config() 525 dev->if_port = if_port; in pcnet_try_config() 529 dev->if_port = 0; in pcnet_try_config() 626 pr_cont(" %s xcvr,", if_names[dev->if_port]); in pcnet_config() 839 if (dev->if_port == 2) in set_misc_reg() 978 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in set_config() 983 dev->if_port = map->port; in set_config() 984 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]); in set_config()
|
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb/ |
D | cxgb2.c | 118 struct cmac *mac = adapter->port[dev->if_port].mac; in t1_set_rxmode() 254 __set_bit(dev->if_port, &adapter->open_device_map); in cxgb_open() 255 link_start(&adapter->port[dev->if_port]); in cxgb_open() 268 struct port_info *p = &adapter->port[dev->if_port]; in cxgb_close() 276 clear_bit(dev->if_port, &adapter->open_device_map); in cxgb_close() 294 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() 464 t1_sge_get_port_stats(adapter->sge, dev->if_port, &ss); 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() [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() 1680 set_bit(dev->if_port, &sge->stopped_tx_queues); in t1_sge_tx() 1691 set_bit(dev->if_port, &sge->stopped_tx_queues); in t1_sge_tx() 1775 struct sge_port_stats *st = this_cpu_ptr(sge->port_stats[dev->if_port]); in t1_start_xmit() 1840 if ((unlikely(!adapter->sge->espibug_skb[dev->if_port]))) { in t1_start_xmit() 1843 adapter->sge->espibug_skb[dev->if_port] = skb; in t1_start_xmit() 1860 cpl->iff = dev->if_port; in t1_start_xmit()
|
/Linux-v4.19/drivers/net/ethernet/smsc/ |
D | smc91c92_cs.c | 78 INT_MODULE_PARM(if_port, 0); 281 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() 1590 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in s9k_config() 1595 dev->if_port = map->port; in s9k_config() 1596 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]); in s9k_config() 1612 static void smc_set_xcvr(struct net_device *dev, int if_port) in smc_set_xcvr() argument 1620 if (if_port == 2) { in smc_set_xcvr() [all …]
|
D | smc9194.c | 865 dev->if_port = ifport; in smc_probe() 954 if ( dev->if_port == 0 ) { in smc_probe() 958 dev->if_port = 2; in smc_probe() 960 dev->if_port = 1; in smc_probe() 962 if_string = interfaces[ dev->if_port - 1 ]; in smc_probe() 1063 if ( dev->if_port == 1 ) { in smc_open() 1067 else if ( dev->if_port == 2 ) { in smc_open()
|
/Linux-v4.19/drivers/net/ethernet/amd/ |
D | nmclan_cs.c | 394 INT_MODULE_PARM(if_port, 0); 570 switch (if_port) { in mace_init() 663 if (if_port <= 2) in nmclan_config() 664 dev->if_port = if_port; in nmclan_config() 677 dev->base_addr, dev->irq, if_names[dev->if_port], dev->dev_addr); in nmclan_config() 762 if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { in mace_config() 764 dev->if_port = map->port; in mace_config() 765 netdev_info(dev, "switched to %s port\n", if_names[dev->if_port]); in mace_config()
|
/Linux-v4.19/drivers/media/tuners/ |
D | si2157.h | 46 u8 if_port; member
|
D | si2157_priv.h | 31 u8 if_port; member
|
D | si2157.c | 340 cmd.args[4] = dev->if_port; in si2157_set_params() 448 dev->if_port = cfg->if_port; in si2157_probe()
|
/Linux-v4.19/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() 571 write_packet(ioaddr, length, skb->data, length-skb->len, dev->if_port); in atp_send_packet() 759 read_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port); in net_rx() 789 read_block(ioaddr, pkt_len, skb_put(skb,pkt_len), dev->if_port); in net_rx()
|
/Linux-v4.19/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 897 dev->if_port = PORT_MII; in natsemi_probe1() 899 dev->if_port = PORT_TP; in natsemi_probe1() 904 if (dev->if_port != PORT_TP) { in natsemi_probe1() 909 dev->if_port = PORT_TP; in natsemi_probe1() 962 if (dev->if_port == PORT_TP) in natsemi_probe1() 1128 if (dev->if_port == PORT_TP) in mdio_read() 1140 if (dev->if_port == PORT_TP) in mdio_write() 1194 if (dev->if_port == PORT_FIBRE) in init_phy_fixup() 1441 if (dev->if_port == PORT_TP) in natsemi_reset() 1586 if (dev->if_port != PORT_TP) in do_cable_magic() [all …]
|
/Linux-v4.19/drivers/media/usb/cx231xx/ |
D | cx231xx-dvb.c | 842 si2157_config.if_port = 1; in dvb_init() 887 si2157_config.if_port = 1; in dvb_init() 955 si2157_config.if_port = 1; in dvb_init() 1028 si2157_config.if_port = 1; in dvb_init() 1091 si2157_config.if_port = 1; in dvb_init()
|
/Linux-v4.19/drivers/media/usb/dvb-usb-v2/ |
D | dvbsky.c | 486 si2157_config.if_port = 1; in dvbsky_t680c_attach() 536 si2157_config.if_port = 1; in dvbsky_t330_attach() 571 si2157_config.if_port = 0; in dvbsky_mygica_t230c_attach()
|