| /NextBSD/sys/dev/ppbus/ |
| HD | if_plip.c | 151 struct ifnet *sc_ifp; member 253 ifp = lp->sc_ifp = if_alloc(IFT_PARA); in lp_attach() 297 bpfdetach(sc->sc_ifp); in lp_detach() 298 if_detach(sc->sc_ifp); in lp_detach() 356 sc->sc_ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); in lpstop() 385 sc->sc_ifbuf = malloc(sc->sc_ifp->if_mtu + MLPIPHDRLEN, in lpinit_locked() 446 sc->sc_ifp->if_mtu = ifr->ifr_mtu; in lpioctl() 451 ifr->ifr_mtu = sc->sc_ifp->if_mtu; in lpioctl() 539 if (sc->sc_ifp->if_flags & IFF_LINK0) { in lp_intr() 553 if (len > sc->sc_ifp->if_mtu + MLPIPHDRLEN) in lp_intr() [all …]
|
| /NextBSD/sys/powerpc/ps3/ |
| HD | if_glc.c | 149 sc->sc_ifp = if_alloc(IFT_ETHER); in glc_attach() 150 sc->sc_ifp->if_softc = sc; in glc_attach() 257 if_initname(sc->sc_ifp, device_get_name(dev), device_get_unit(dev)); in glc_attach() 258 sc->sc_ifp->if_mtu = ETHERMTU; in glc_attach() 259 sc->sc_ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; in glc_attach() 260 sc->sc_ifp->if_hwassist = CSUM_TCP | CSUM_UDP; in glc_attach() 261 sc->sc_ifp->if_capabilities = IFCAP_HWCSUM | IFCAP_RXCSUM; in glc_attach() 262 sc->sc_ifp->if_capenable = IFCAP_HWCSUM | IFCAP_RXCSUM; in glc_attach() 263 sc->sc_ifp->if_start = glc_start; in glc_attach() 264 sc->sc_ifp->if_ioctl = glc_ioctl; in glc_attach() [all …]
|
| /NextBSD/sys/dev/gxemul/ether/ |
| HD | if_gx.c | 64 struct ifnet *sc_ifp; member 180 sc->sc_ifp = ifp; in gx_attach() 223 ifp = sc->sc_ifp; in gx_init() 369 if_inc_counter(sc->sc_ifp, IFCOUNTER_IERRORS, 1); in gx_rx_intr() 376 if_inc_counter(sc->sc_ifp, IFCOUNTER_IQDROPS, 1); in gx_rx_intr() 386 m->m_pkthdr.rcvif = sc->sc_ifp; in gx_rx_intr() 389 if_inc_counter(sc->sc_ifp, IFCOUNTER_IPACKETS, 1); in gx_rx_intr() 393 (*sc->sc_ifp->if_input)(sc->sc_ifp, m); in gx_rx_intr()
|
| /NextBSD/sys/net/ |
| HD | if_lagg.c | 318 if_printf(sc->sc_ifp, "using proto %u\n", pr); in lagg_proto_attach() 473 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); in lagg_clone_create() 569 struct ifnet *ifp = sc->sc_ifp; in lagg_lladdr() 591 lp.lp_ifp = sc->sc_ifp; in lagg_lladdr() 621 if (sc->sc_ifp->if_capabilities != cap || in lagg_capabilities() 622 sc->sc_ifp->if_capenable != ena || in lagg_capabilities() 623 sc->sc_ifp->if_hwassist != hwa || in lagg_capabilities() 624 if_hw_tsomax_update(sc->sc_ifp, &hw_tsomax) != 0) { in lagg_capabilities() 625 sc->sc_ifp->if_capabilities = cap; in lagg_capabilities() 626 sc->sc_ifp->if_capenable = ena; in lagg_capabilities() [all …]
|
| HD | if_bridge.c | 208 struct ifnet *sc_ifp; /* make this an interface */ member 637 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); in bridge_clone_create() 692 bifp = sc2->sc_ifp; in bridge_clone_create() 862 sc->sc_ifp->if_mtu = ifr->ifr_mtu; in bridge_ioctl() 869 " != %d\n", sc->sc_ifp->if_xname, in bridge_ioctl() 877 sc->sc_ifp->if_mtu = ifr->ifr_mtu; in bridge_ioctl() 935 if_printf(sc->sc_ifp, in bridge_set_ifcap() 1013 IF_LLADDR(sc->sc_ifp), ETHER_ADDR_LEN); in bridge_delete_member() 1018 IF_LLADDR(sc->sc_ifp), ETHER_ADDR_LEN); in bridge_delete_member() 1021 EVENTHANDLER_INVOKE(iflladdr_event, sc->sc_ifp); in bridge_delete_member() [all …]
|
| HD | if_lagg.h | 185 #define sc_ifflags sc_ifp->if_flags /* flags */ 186 #define sc_ifname sc_ifp->if_xname /* name */ 187 #define sc_capabilities sc_ifp->if_capabilities /* capabilities */ 222 struct ifnet *sc_ifp; /* virtual interface */ member
|
| HD | if_edsc.c | 62 struct ifnet *sc_ifp; /* ptr to generic interface configuration */ member 105 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); in edsc_clone_create() 194 struct ifnet *ifp = sc->sc_ifp; in edsc_init()
|
| HD | if_disc.c | 65 struct ifnet *sc_ifp; member 87 ifp = sc->sc_ifp = if_alloc(IFT_LOOP); in disc_clone_create()
|
| HD | if_enc.c | 85 struct ifnet *sc_ifp; member 155 ifp = sc->sc_ifp = if_alloc(IFT_ENC); in enc_clone_create() 222 ifp = sc->sc_ifp; in enc_hhook()
|
| /NextBSD/sys/mips/cavium/ |
| HD | if_octm.c | 68 struct ifnet *sc_ifp; member 229 sc->sc_ifp = ifp; in octm_attach() 293 ifp = sc->sc_ifp; in octm_init() 517 m->m_pkthdr.rcvif = sc->sc_ifp; in octm_rx_intr() 520 if_inc_counter(sc->sc_ifp, IFCOUNTER_IPACKETS, 1); in octm_rx_intr() 522 (*sc->sc_ifp->if_input)(sc->sc_ifp, m); in octm_rx_intr() 532 if_inc_counter(sc->sc_ifp, IFCOUNTER_IERRORS, 1); in octm_rx_intr()
|
| /NextBSD/sys/dev/snc/ |
| HD | dp83932.c | 158 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); in sncconfig() 404 if (sc->sc_ifp->if_drv_flags & IFF_DRV_RUNNING) in sncinit_locked() 416 if (sc->sc_ifp->if_flags & IFF_PROMISC) in sncinit_locked() 418 if (sc->sc_ifp->if_flags & IFF_ALLMULTI) in sncinit_locked() 454 sc->sc_ifp->if_drv_flags |= IFF_DRV_RUNNING; in sncinit_locked() 455 sc->sc_ifp->if_drv_flags &= ~IFF_DRV_OACTIVE; in sncinit_locked() 489 sc->sc_ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); in sncstop() 662 ifp = sc->sc_ifp; in camprogram() 665 camentry (sc, mcount, IF_LLADDR(sc->sc_ifp)); in camprogram() 879 sncstart_locked(sc->sc_ifp); in sncintr() [all …]
|
| HD | if_snc.c | 155 if (sc->sc_ifp) { in snc_release_resources() 156 if_free(sc->sc_ifp); in snc_release_resources() 157 sc->sc_ifp = 0; in snc_release_resources() 232 ether_ifdetach(sc->sc_ifp); in snc_attach()
|
| /NextBSD/sys/dev/le/ |
| HD | lance.c | 113 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); in lance_config() 193 struct ifnet *ifp = sc->sc_ifp; in lance_attach() 207 struct ifnet *ifp = sc->sc_ifp; in lance_detach() 231 if (sc->sc_ifp->if_flags & IFF_UP) in lance_resume() 249 struct ifnet *ifp = sc->sc_ifp; in lance_stop() 280 struct ifnet *ifp = sc->sc_ifp; in lance_init_locked() 379 struct ifnet *ifp = sc->sc_ifp; in lance_get() 438 struct ifnet *ifp = sc->sc_ifp; in lance_watchdog() 583 struct ifnet *ifp = sc->sc_ifp; in lance_setladrf()
|
| HD | am7990.c | 148 struct ifnet *ifp = sc->sc_ifp; in am7990_meminit() 212 struct ifnet *ifp = sc->sc_ifp; in am7990_rint() 308 struct ifnet *ifp = sc->sc_ifp; in am7990_tint() 391 struct ifnet *ifp = sc->sc_ifp; in am7990_intr() 495 struct ifnet *ifp = sc->sc_ifp; in am7990_start_locked() 577 struct ifnet *ifp = sc->sc_ifp; in am7990_recv_print() 600 struct ifnet *ifp = sc->sc_ifp; in am7990_xmit_print()
|
| HD | am79900.c | 186 struct ifnet *ifp = sc->sc_ifp; in am79900_meminit() 252 struct ifnet *ifp = sc->sc_ifp; in am79900_rint() 345 struct ifnet *ifp = sc->sc_ifp; in am79900_tint() 429 struct ifnet *ifp = sc->sc_ifp; in am79900_intr() 533 struct ifnet *ifp = sc->sc_ifp; in am79900_start_locked() 616 struct ifnet *ifp = sc->sc_ifp; in am79900_recv_print() 638 struct ifnet *ifp = sc->sc_ifp; in am79900_xmit_print()
|
| /NextBSD/sys/netpfil/pf/ |
| HD | if_pfsync.c | 185 struct ifnet *sc_ifp; member 312 ifp = sc->sc_ifp = if_alloc(IFT_PFSYNC); in pfsync_clone_create() 592 (sc->sc_ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) in pfsync_input() 601 if_inc_counter(sc->sc_ifp, IFCOUNTER_IPACKETS, 1); in pfsync_input() 602 if_inc_counter(sc->sc_ifp, IFCOUNTER_IBYTES, m->m_pkthdr.len); in pfsync_input() 1144 ((sc->sc_ifp->if_mtu - PFSYNC_MINPKT) / in pfsync_in_bus() 1375 (sifp->if_mtu < sc->sc_ifp->if_mtu || in pfsyncioctl() 1506 struct ifnet *ifp = sc->sc_ifp; in pfsync_sendout() 1528 if_inc_counter(sc->sc_ifp, IFCOUNTER_OERRORS, 1); in pfsync_sendout() 1635 if_inc_counter(sc->sc_ifp, IFCOUNTER_OPACKETS, 1); in pfsync_sendout() [all …]
|
| /NextBSD/sys/dev/bm/ |
| HD | if_bm.c | 307 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); in bm_attach() 497 ether_ifdetach(sc->sc_ifp); in bm_detach() 516 if_free(sc->sc_ifp); in bm_detach() 541 ifp = sc->sc_ifp; in bm_dummypacket() 565 struct ifnet *ifp = sc->sc_ifp; in bm_rxintr() 656 struct ifnet *ifp = sc->sc_ifp; in bm_txintr() 907 struct ifnet *ifp = sc->sc_ifp; in bm_setladrf() 1055 sc->sc_ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); in bm_stop() 1179 sc->sc_ifp->if_drv_flags |= IFF_DRV_RUNNING; in bm_init_locked() 1180 sc->sc_ifp->if_drv_flags &= ~IFF_DRV_OACTIVE; in bm_init_locked() [all …]
|
| /NextBSD/sys/dev/cm/ |
| HD | smc90cx6.c | 160 ifp = sc->sc_ifp = if_alloc(IFT_ARCNET); 229 struct ifnet *ifp = sc->sc_ifp; in cm_init_locked() 249 ifp = sc->sc_ifp; 501 ifp = sc->sc_ifp; 609 ifp = sc->sc_ifp; 690 struct ifnet *ifp = sc->sc_ifp; 834 struct ifnet *ifp = sc->sc_ifp;
|
| /NextBSD/sys/dev/usb/net/ |
| HD | if_usie.c | 432 sc->sc_ifp = ifp = if_alloc(IFT_OTHER); in usie_attach() 477 if (sc->sc_ifp != NULL) { in usie_detach() 480 bpfdetach(sc->sc_ifp); in usie_detach() 481 if_detach(sc->sc_ifp); in usie_detach() 482 if_free(sc->sc_ifp); in usie_detach() 483 sc->sc_ifp = NULL; in usie_detach() 774 struct ifnet *ifp = sc->sc_ifp; in usie_if_rx_callback() 896 BPF_MTAP(sc->sc_ifp, m); in usie_if_rx_callback() 912 BPF_MTAP(sc->sc_ifp, m0); in usie_if_rx_callback() 930 struct ifnet *ifp = sc->sc_ifp; in usie_if_tx_callback() [all …]
|
| HD | uhso.c | 96 struct ifnet *sc_ifp; member 684 if (sc->sc_ifp != NULL) { in uhso_detach() 686 free_unr(uhso_ifnet_unit, sc->sc_ifp->if_dunit); in uhso_detach() 689 bpfdetach(sc->sc_ifp); in uhso_detach() 690 if_detach(sc->sc_ifp); in uhso_detach() 691 if_free(sc->sc_ifp); in uhso_detach() 1567 sc->sc_ifp = ifp = if_alloc(IFT_OTHER); in uhso_attach_ifnet() 1568 if (sc->sc_ifp == NULL) { in uhso_attach_ifnet() 1623 if (actlen > 0 && (sc->sc_ifp->if_drv_flags & IFF_DRV_RUNNING)) { in uhso_ifnet_read_callback() 1661 struct ifnet *ifp = sc->sc_ifp; in uhso_if_rxflush() [all …]
|
| /NextBSD/sys/dev/hme/ |
| HD | if_hme.c | 195 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); in hme_config() 406 struct ifnet *ifp = sc->sc_ifp; in hme_detach() 448 struct ifnet *ifp = sc->sc_ifp; in hme_resume() 476 ifp = sc->sc_ifp; in hme_tick() 510 sc->sc_ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); in hme_stop() 741 struct ifnet *ifp = sc->sc_ifp; in hme_init_locked() 1066 struct ifnet *ifp = sc->sc_ifp; in hme_read() 1161 struct ifnet *ifp = sc->sc_ifp; in hme_tint() 1283 struct ifnet *ifp = sc->sc_ifp; in hme_rint() 1332 sc->sc_ifp->if_drv_flags &= ~IFF_DRV_RUNNING; in hme_eint() [all …]
|
| /NextBSD/sys/dev/gem/ |
| HD | if_gem.c | 160 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); in gem_attach() 426 struct ifnet *ifp = sc->sc_ifp; in gem_detach() 461 struct ifnet *ifp = sc->sc_ifp; in gem_suspend() 471 struct ifnet *ifp = sc->sc_ifp; in gem_resume() 563 struct ifnet *ifp = sc->sc_ifp; in gem_tick() 757 sc->sc_ifp->if_drv_flags &= ~IFF_DRV_RUNNING; in gem_reset_rxdma() 946 struct ifnet *ifp = sc->sc_ifp; in gem_init_locked() 1250 const u_char *laddr = IF_LLADDR(sc->sc_ifp); in gem_init_regs() 1411 struct ifnet *ifp = sc->sc_ifp; in gem_tint() 1536 struct ifnet *ifp = sc->sc_ifp; in gem_rint() [all …]
|
| /NextBSD/sys/dev/stge/ |
| HD | if_stge.c | 564 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); in stge_attach() 649 sc->sc_ifp = NULL; in stge_attach() 668 ifp = sc->sc_ifp; in stge_detach() 693 sc->sc_ifp = NULL; in stge_detach() 989 ifp = sc->sc_ifp; in stge_setwol() 1040 ifp = sc->sc_ifp; in stge_resume() 1237 ifp = sc->sc_ifp; in stge_watchdog() 1238 if_printf(sc->sc_ifp, "device timeout\n"); in stge_watchdog() 1460 ifp = sc->sc_ifp; in stge_intr() 1537 ifp = sc->sc_ifp; in stge_txeof() [all …]
|
| /NextBSD/sys/dev/txp/ |
| HD | if_txp.c | 362 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); in txp_attach() 490 ifp = sc->sc_ifp; in txp_detach() 510 if (sc->sc_ifp != NULL) { in txp_detach() 511 if_free(sc->sc_ifp); in txp_detach() 512 sc->sc_ifp = NULL; in txp_detach() 825 ifp = sc->sc_ifp; in txp_int_task() 864 txp_start_locked(sc->sc_ifp); in txp_int_task() 905 ifp = sc->sc_ifp; in txp_rx_reclaim() 1071 ifp = sc->sc_ifp; in txp_tx_reclaim() 1133 ifp = sc->sc_ifp; in txp_suspend() [all …]
|
| /NextBSD/sys/arm/xscale/ixp425/ |
| HD | if_npe.c | 120 struct ifnet *sc_ifp; /* ifnet pointer */ member 343 sc->sc_ifp = ifp; in npe_attach() 393 struct ifnet *ifp = sc->sc_ifp; in npe_detach() 415 struct ifnet *ifp = sc->sc_ifp; in npe_setmcast() 723 error = mii_attach(dev, &sc->sc_mii, sc->sc_ifp, npe_ifmedia_update, in npe_activate() 876 struct ifnet *ifp = sc->sc_ifp; in npe_addstats() 991 struct ifnet *ifp = sc->sc_ifp; in npe_txdone_finish() 1128 struct ifnet *ifp = sc->sc_ifp; in npe_rxdone() 1217 struct ifnet *ifp = sc->sc_ifp; in npeinit_locked() 1430 struct ifnet *ifp = sc->sc_ifp; in npestop() [all …]
|