Home
last modified time | relevance | path

Searched refs:sc_ethercom (Results 1 – 25 of 111) sorted by relevance

12345

/netbsd-src/sys/arch/amiga/dev/
H A Dif_qn.c132 struct ethercom sc_ethercom; /* Common ethernet structures */ member
194 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in qnattach()
258 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in qninit()
265 if (sc->sc_ethercom.ec_if.if_flags & IFF_PROMISC) { in qninit()
527 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in qn_get_packet()
543 m_set_rcvif(m, &sc->sc_ethercom.ec_if); in qn_get_packet()
616 if_statinc(&sc->sc_ethercom.ec_if, if_ierrors); in qn_rint()
622 if_statinc(&sc->sc_ethercom.ec_if, if_ierrors); in qn_rint()
628 if_statinc(&sc->sc_ethercom.ec_if, if_ierrors); in qn_rint()
638 if_statinc(&sc->sc_ethercom.ec_if, if_ierrors); in qn_rint()
[all …]
H A Dif_es.c84 struct ethercom sc_ethercom; /* common Ethernet structures */ member
148 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in esattach()
181 sc->sc_ethercom.ec_ifmedia = &sc->sc_media; in esattach()
250 sc->sc_ethercom.ec_if.if_timer = 0; in esstop()
256 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in esinit()
305 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in esintr()
557 ifp = &sc->sc_ethercom.ec_if; in esrint()
736 esstart(&sc->sc_ethercom.ec_if); in estint()
761 if ((sc->sc_ethercom.ec_if.if_flags & IFF_RUNNING) == 0) in esstart()
783 IF_POLL(&sc->sc_ethercom.ec_if.if_snd, m); in esstart()
[all …]
H A Dzz9k_if.c79 struct ethercom sc_ethercom; member
128 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in zzif_attach()
203 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in zzif_init()
216 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in zzif_stop()
295 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in zzif_intr()
/netbsd-src/sys/dev/pcmcia/
H A Dif_cnw.c184 struct ethercom sc_ethercom; /* Ethernet common part */ member
330 if (sc->sc_ethercom.ec_if.if_flags & IFF_DEBUG) in cnw_reset()
357 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in cnw_init()
413 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in cnw_enable()
441 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in cnw_disable()
480 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in cnw_attach()
598 if (sc->sc_ethercom.ec_if.if_flags & IFF_DEBUG) in cnw_start()
640 if (sc->sc_ethercom.ec_if.if_flags & IFF_DEBUG) in cnw_start()
656 if (sc->sc_ethercom.ec_if.if_flags & IFF_DEBUG) in cnw_start()
696 if (sc->sc_ethercom.ec_if.if_flags & IFF_DEBUG) in cnw_transmit()
[all …]
/netbsd-src/sys/dev/ic/
H A Dhme.c116 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in hme_config()
245 sc->sc_ethercom.ec_mii = mii; in hme_config()
298 sc->sc_ethercom.ec_capabilities |= ETHERCAP_VLAN_MTU; in hme_config()
346 (void)hme_init(&sc->sc_ethercom.ec_if); in hme_reset()
514 (sc->sc_ethercom.ec_capenable & ETHERCAP_VLAN_MTU) ? in hme_init()
516 sc->sc_ec_capenable = sc->sc_ethercom.ec_capenable; in hme_init()
544 (sc->sc_ethercom.ec_capenable & ETHERCAP_VLAN_MTU) ? in hme_init()
692 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in hme_get()
704 MCLAIM(m0, &sc->sc_ethercom.ec_rx_mowner); in hme_get()
860 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in hme_read()
[all …]
H A Delink3.c319 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in epconfig()
437 sc->sc_ethercom.ec_mii = mii; in epconfig()
546 ether_sprintf(CLLADDR(sc->sc_ethercom.ec_if.if_sadl)), in ep_internalconfig()
854 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in epsetfilter()
1290 if (sc->sc_ethercom.ec_if.if_flags & IFF_DEBUG) in epstatus()
1297 if (sc->sc_ethercom.ec_if.if_flags & IFF_DEBUG) in epstatus()
1303 if (sc->sc_ethercom.ec_if.if_flags & IFF_DEBUG) in epstatus()
1309 if (sc->sc_ethercom.ec_if.if_flags & IFF_DEBUG) in epstatus()
1324 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in eptxstat()
1338 if (sc->sc_ethercom.ec_if.if_flags & IFF_DEBUG) in eptxstat()
[all …]
H A Dcs89x0.c330 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in cs_attach()
402 sc->sc_ethercom.ec_ifmedia = &sc->sc_media; in cs_attach()
514 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in cs_detach()
1151 cs_set_ladr_filt(sc, &sc->sc_ethercom); in cs_initChip()
1179 sc->sc_ethercom.ec_if.if_flags &= ~(IFF_UP | IFF_RUNNING); in cs_init()
1184 sc->sc_ethercom.ec_if.if_flags |= IFF_DEBUG; in cs_init()
1193 sc->sc_ethercom.ec_if.if_flags |= IFF_RUNNING; in cs_init()
1194 sc->sc_ethercom.ec_if.if_timer = 0; in cs_init()
1312 sc->sc_ethercom.ec_if.if_flags &= ~IFF_RUNNING; in cs_reset()
1338 cs_set_ladr_filt(sc, &sc->sc_ethercom); in cs_ioctl()
[all...]
H A Di82586.c235 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in i82586_attach()
248 sc->sc_ethercom.ec_ifmedia = &sc->sc_media; in i82586_attach()
404 if_statadd(&sc->sc_ethercom.ec_if, if_ierrors, in i82586_count_errors()
591 if_statinc(&sc->sc_ethercom.ec_if, if_ierrors); in i82586_rint()
641 if_statinc(&sc->sc_ethercom.ec_if, if_ierrors); in i82586_rint()
647 if_statinc(&sc->sc_ethercom.ec_if, if_ierrors); in i82586_rint()
662 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in i82586_tint()
709 if_statadd(&sc->sc_ethercom.ec_if, if_collisions, 16); in i82586_tint()
902 m_set_rcvif(m0, &sc->sc_ethercom.ec_if); in ieget()
1010 if_statinc(&sc->sc_ethercom.ec_if, if_ierrors); in ie_readframe()
[all …]
H A Dlance.c168 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in lance_config()
185 sc->sc_ethercom.ec_ifmedia = &sc->sc_media; in lance_config()
238 sc->sc_ethercom.ec_capabilities |= ETHERCAP_VLAN_MTU; in lance_config()
264 lance_init(&sc->sc_ethercom.ec_if); in lance_reset()
373 MCLAIM(m0, &sc->sc_ethercom.ec_rx_mowner); in lance_get()
374 m_set_rcvif(m0, &sc->sc_ethercom.ec_if); in lance_get()
404 MCLAIM(newm, &sc->sc_ethercom.ec_rx_mowner); in lance_get()
424 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in lance_read()
428 len > ((sc->sc_ethercom.ec_capenable & ETHERCAP_VLAN_MTU) ? in lance_read()
552 struct ifnet *ifp = &sc->sc_ethercom in lance_shutdown()
[all...]
H A Di82557.c355 ifp = &sc->sc_ethercom.ec_if; in fxp_attach()
395 sc->sc_ethercom.ec_capabilities |= ETHERCAP_VLAN_HWTAGGING; in fxp_attach()
396 sc->sc_ethercom.ec_capenable |= ETHERCAP_VLAN_HWTAGGING; in fxp_attach()
406 sc->sc_ethercom.ec_capabilities |= ETHERCAP_VLAN_MTU; in fxp_attach()
472 mii->mii_ifp = &sc->sc_ethercom.ec_if; in fxp_mii_initmedia()
477 sc->sc_ethercom.ec_mii = mii; in fxp_mii_initmedia()
872 MCLAIM(m, &sc->sc_ethercom.ec_tx_mowner); in fxp_start()
1074 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in fxp_intr()
1160 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in fxp_txintr()
1242 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in fxp_rx_hwcksum()
[all …]
H A Dgem.c137 #define DPRINTF(sc, x) if ((sc)->sc_ethercom.ec_if.if_flags & IFF_DEBUG) \
149 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in gem_detach()
162 gem_stop(&sc->sc_ethercom.ec_if, 1); in gem_detach()
246 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in gem_attach()
375 sc->sc_ethercom.ec_mii = mii; in gem_attach()
569 sc->sc_ethercom.ec_capabilities in gem_attach()
577 sc->sc_ethercom.ec_capabilities |= ETHERCAP_VLAN_MTU; in gem_attach()
583 ether_set_ifflags_cb(&sc->sc_ethercom, gem_ifflags_cb); in gem_attach()
644 gem_init(&sc->sc_ethercom.ec_if); in gem_tick()
804 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in gem_reset_rxdma()
[all …]
H A Dtulip.c162 #define DPRINTF(sc, x) if ((sc)->sc_ethercom.ec_if.if_flags & IFF_DEBUG) \
186 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in tlp_attach()
523 sc->sc_ethercom.ec_capabilities |= ETHERCAP_VLAN_MTU; in tlp_attach()
531 ether_set_ifflags_cb(&sc->sc_ethercom, tlp_ifflags_cb); in tlp_attach()
583 if_deactivate(&sc->sc_ethercom.ec_if); in tlp_activate()
598 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in tlp_detach()
746 MCLAIM(m, &sc->sc_ethercom.ec_tx_mowner); in tlp_start()
1015 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in tlp_intr()
1207 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in tlp_rxintr()
1260 if ((sc->sc_ethercom.ec_capenable & ETHERCAP_VLAN_MTU) != 0) in tlp_rxintr()
[all …]
H A Daic6915.c138 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in sf_attach()
262 sc->sc_ethercom.ec_mii = mii; in sf_attach()
339 sf_stop(&sc->sc_ethercom.ec_if, 1); in sf_shutdown()
406 MCLAIM(m, &sc->sc_ethercom.ec_tx_mowner); in sf_start()
603 sf_init(&sc->sc_ethercom.ec_if); in sf_intr()
606 if_schedule_deferred_start(&sc->sc_ethercom.ec_if); in sf_intr()
620 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in sf_txintr()
686 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in sf_rxintr()
765 MCLAIM(m, &sc->sc_ethercom.ec_rx_mowner); in sf_rxintr()
833 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in sf_stats_update()
[all …]
/netbsd-src/sys/arch/mips/adm5120/dev/
H A Dif_admsw.c456 sc->sc_ethercom[i].ec_ifmedia = &sc->sc_ifmedia[i]; in admsw_attach()
465 ifp = &sc->sc_ethercom[i].ec_if; in admsw_attach()
526 admsw_stop(&sc->sc_ethercom[i].ec_if, 1); in admsw_shutdown()
557 ifp = &sc->sc_ethercom[i].ec_if; in admsw_start()
681 sc->sc_ethercom[0].ec_if.if_timer = 5; in admsw_start()
702 if (sc->sc_ethercom[0].ec_if.if_timer != 0) in admsw_watchdog()
704 sc->sc_ethercom[0].ec_if.if_timer); in admsw_watchdog()
711 if (sc->sc_ethercom[0].ec_if.if_timer != 0) { in admsw_watchdog()
721 admsw_stop(&sc->sc_ethercom[vlan].ec_if, 0); in admsw_watchdog()
723 (void)admsw_init(&sc->sc_ethercom[vlan].ec_if); in admsw_watchdog()
[all …]
/netbsd-src/sys/arch/next68k/dev/
H A Dmb8795.c100 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in mb8795_config()
113 sc->sc_ethercom.ec_ifmedia = &sc->sc_media; in mb8795_config()
246 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in mb8795_rint()
363 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in mb8795_tint()
435 sc->sc_ethercom.ec_if.if_flags &= ~IFF_RUNNING; in mb8795_reset()
436 sc->sc_ethercom.ec_if.if_timer = 0; in mb8795_reset()
442 mb8795_mediachange(&sc->sc_ethercom.ec_if); in mb8795_reset()
501 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in mb8795_init()
704 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in mb8795_start_dma()
/netbsd-src/sys/arch/mips/atheros/dev/
H A Dif_ae.c182 #define DPRINTF(sc, x) if ((sc)->sc_ethercom.ec_if.if_flags & IFF_DEBUG) \
224 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in ae_attach()
352 sc->sc_ethercom.ec_mii = mii; in ae_attach()
379 sc->sc_ethercom.ec_capabilities |= ETHERCAP_VLAN_MTU; in ae_attach()
387 ether_set_ifflags_cb(&sc->sc_ethercom, ae_ifflags_cb); in ae_attach()
453 if_deactivate(&sc->sc_ethercom.ec_if); in ae_activate()
469 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in ae_detach()
537 ae_stop(&sc->sc_ethercom.ec_if, 1); in ae_shutdown()
603 MCLAIM(m, &sc->sc_ethercom.ec_tx_mowner); in ae_start()
851 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in ae_intr()
[all …]
/netbsd-src/sys/arch/emips/ebus/
H A Dif_le_ebus.c75 struct ethercom sc_ethercom; /* Ethernet common part */ member
159 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in enic_attach()
197 sc->sc_ethercom.ec_ifmedia = &sc->sc_media; in enic_attach()
212 sc->sc_ethercom.ec_capabilities |= ETHERCAP_VLAN_MTU; in enic_attach()
453 m_set_rcvif(m, &sc->sc_ethercom.ec_if); in enic_post_recv()
499 m_set_rcvif(m, &sc->sc_ethercom.ec_if); in enic_refill()
639 enic_reset(&sc->sc_ethercom.ec_if); in enic_intr()
681 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in enic_rint()
713 len > ((sc->sc_ethercom.ec_capenable & ETHERCAP_VLAN_MTU) ? in enic_rint()
737 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in enic_tint()
[all …]
/netbsd-src/sys/dev/pci/
H A Dif_ste.c123 struct ethercom sc_ethercom; /* ethernet common data */ member
342 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in ste_attach()
515 sc->sc_ethercom.ec_mii = mii; in ste_attach()
538 ifp = &sc->sc_ethercom.ec_if; in ste_attach()
564 sc->sc_ethercom.ec_capabilities |= ETHERCAP_VLAN_MTU; in ste_attach()
622 ste_stop(&sc->sc_ethercom.ec_if, 1); in ste_shutdown()
705 MCLAIM(m, &sc->sc_ethercom.ec_tx_mowner); in ste_start()
890 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in ste_intr()
988 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in ste_txintr()
1034 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in ste_rxintr()
[all …]
H A Dif_stge.c135 struct ethercom sc_ethercom; /* ethernet common data */ member
393 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in stge_attach()
638 sc->sc_ethercom.ec_mii = mii; in stge_attach()
649 ifp = &sc->sc_ethercom.ec_if; in stge_attach()
682 sc->sc_ethercom.ec_capabilities |= in stge_attach()
685 sc->sc_ethercom.ec_capenable |= ETHERCAP_VLAN_HWTAGGING; in stge_attach()
690 sc->sc_ethercom.ec_if.if_capabilities |= in stge_attach()
791 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in stge_shutdown()
1097 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in stge_intr()
1190 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in stge_txintr()
[all …]
H A Dif_sip.c213 struct ethercom sc_ethercom; /* ethernet common data */ member
957 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in sipcom_do_detach()
1060 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in sipcom_attach()
1327 sc->sc_ethercom.ec_mii = mii; in sipcom_attach()
1346 ifp = &sc->sc_ethercom.ec_if; in sipcom_attach()
1361 sc->sc_ethercom.ec_capabilities |= ETHERCAP_VLAN_MTU; in sipcom_attach()
1368 sc->sc_ethercom.ec_capabilities |= in sipcom_attach()
1370 sc->sc_ethercom.ec_capenable |= ETHERCAP_VLAN_HWTAGGING; in sipcom_attach()
1388 ether_set_ifflags_cb(&sc->sc_ethercom, sip_ifflags_cb); in sipcom_attach()
1389 sc->sc_prev.ec_capenable = sc->sc_ethercom.ec_capenable; in sipcom_attach()
[all …]
/netbsd-src/sys/dev/ofw/
H A Dofnet.c65 struct ethercom sc_ethercom; member
108 struct ifnet *ifp = &of->sc_ethercom.ec_if; in ofnet_attach()
147 struct ifnet *ifp = &of->sc_ethercom.ec_if; in ofnet_read()
253 struct ifnet *ifp = &of->sc_ethercom.ec_if; in ofnet_init()
269 of->sc_ethercom.ec_if.if_flags &= ~IFF_RUNNING; in ofnet_stop()
/netbsd-src/sys/arch/sun2/dev/
H A Dif_ec.c83 struct ethercom sc_ethercom; /* ethernet common */ member
189 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in ec_attach()
227 sc->sc_ethercom.ec_ifmedia = &sc->sc_media; in ec_attach()
274 ECREG_ARAM, CLLADDR(sc->sc_ethercom.ec_if.if_sadl), ETHER_ADDR_LEN); in ec_init()
351 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in ec_intr()
454 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in ec_recv()
628 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in ec_coll()
/netbsd-src/sys/dev/isa/
H A Dcs89x0isa.c180 ifp = &sc->sc_ethercom.ec_if; in cs_process_rx_dma()
235 cs_init(&sc->sc_ethercom.ec_if); in cs_process_rx_dma()
262 cs_init(&sc->sc_ethercom.ec_if); in cs_process_rx_dma()
285 cs_init(&sc->sc_ethercom.ec_if); in cs_process_rx_dma()
H A Dif_el.c72 struct ethercom sc_ethercom; /* ethernet common */ member
201 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in elattach()
303 CLLADDR(sc->sc_ethercom.ec_if.if_sadl)[i]); in el_hardreset()
312 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in elinit()
524 if (sc->sc_ethercom.ec_if.if_flags & IFF_PROMISC) in elintr()
566 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in elread()
595 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in elget()
/netbsd-src/sys/arch/mips/alchemy/dev/
H A Dif_aumac.c122 struct ethercom sc_ethercom; /* Ethernet common data */ member
221 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in aumac_attach()
316 sc->sc_ethercom.ec_mii = mii; in aumac_attach()
376 aumac_stop(&sc->sc_ethercom.ec_if, 1); in aumac_shutdown()
528 if ((sc->sc_ethercom.ec_if.if_flags & IFF_RUNNING) == 0) in aumac_intr()
547 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in aumac_txintr()
612 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in aumac_rxintr()
892 struct ethercom *ec = &sc->sc_ethercom; in aumac_set_filter()
893 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in aumac_set_filter()

12345