Searched refs:sc_ifp (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-13-stable/sys/dev/ppbus/
H A Dif_plip.c153 struct ifnet *sc_ifp; member in struct:lp_data
255 ifp = lp->sc_ifp = if_alloc(IFT_PARA);
299 bpfdetach(sc->sc_ifp);
300 if_detach(sc->sc_ifp);
358 sc->sc_ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE);
387 sc->sc_ifbuf = malloc(sc->sc_ifp->if_mtu + MLPIPHDRLEN,
448 sc->sc_ifp->if_mtu = ifr->ifr_mtu;
453 ifr->ifr_mtu = sc->sc_ifp->if_mtu;
541 if (sc->sc_ifp->if_flags & IFF_LINK0) {
554 if (len > sc->sc_ifp
[all...]
/freebsd-13-stable/sys/dev/gxemul/ether/
H A Dif_gx.c66 struct ifnet *sc_ifp; member in struct:gx_softc
182 sc->sc_ifp = ifp;
225 ifp = sc->sc_ifp;
371 if_inc_counter(sc->sc_ifp, IFCOUNTER_IERRORS, 1);
378 if_inc_counter(sc->sc_ifp, IFCOUNTER_IQDROPS, 1);
388 m->m_pkthdr.rcvif = sc->sc_ifp;
391 if_inc_counter(sc->sc_ifp, IFCOUNTER_IPACKETS, 1);
395 (*sc->sc_ifp->if_input)(sc->sc_ifp, m);
/freebsd-13-stable/sys/powerpc/ps3/
H A Dif_glc.c149 sc->sc_ifp = if_alloc(IFT_ETHER);
150 sc->sc_ifp->if_softc = sc;
257 if_initname(sc->sc_ifp, device_get_name(dev), device_get_unit(dev));
258 sc->sc_ifp->if_mtu = ETHERMTU;
259 sc->sc_ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
260 sc->sc_ifp->if_hwassist = CSUM_TCP | CSUM_UDP;
261 sc->sc_ifp->if_capabilities = IFCAP_HWCSUM | IFCAP_RXCSUM;
262 sc->sc_ifp->if_capenable = IFCAP_HWCSUM | IFCAP_RXCSUM;
263 sc->sc_ifp->if_start = glc_start;
264 sc->sc_ifp
[all...]
H A Dif_glcreg.h68 struct ifnet *sc_ifp; member in struct:glc_softc
/freebsd-13-stable/sys/net/
H A Dif_lagg.c368 if_printf(sc->sc_ifp, "using proto %u\n", pr);
536 ifp = sc->sc_ifp = if_alloc(if_type);
707 if (sc->sc_ifp->if_capabilities != cap ||
708 sc->sc_ifp->if_capenable != ena ||
709 sc->sc_ifp->if_hwassist != hwa ||
710 if_hw_tsomax_update(sc->sc_ifp, &hw_tsomax) != 0) {
711 sc->sc_ifp->if_capabilities = cap;
712 sc->sc_ifp->if_capenable = ena;
713 sc->sc_ifp->if_hwassist = hwa;
714 getmicrotime(&sc->sc_ifp
[all...]
H A Dif_edsc.c64 struct ifnet *sc_ifp; /* ptr to generic interface configuration */ member in struct:edsc_softc
107 ifp = sc->sc_ifp = if_alloc(IFT_ETHER);
200 struct ifnet *ifp = sc->sc_ifp;
H A Dif_disc.c67 struct ifnet *sc_ifp; member in struct:disc_softc
89 ifp = sc->sc_ifp = if_alloc(IFT_LOOP);
H A Dif_lagg.h215 #define sc_ifflags sc_ifp->if_flags /* flags */
216 #define sc_ifname sc_ifp->if_xname /* name */
235 struct ifnet *sc_ifp; /* virtual interface */ member in struct:lagg_softc
H A Dif_bridge.c260 struct ifnet *sc_ifp; /* make this an interface */ member in struct:bridge_softc
707 ifp = sc->sc_ifp = if_alloc(IFT_ETHER);
925 sc->sc_ifp->if_mtu = ifr->ifr_mtu;
931 " != %d\n", sc->sc_ifp->if_xname,
939 sc->sc_ifp->if_mtu = ifr->ifr_mtu;
1001 if_printf(sc->sc_ifp,
1007 if_printf(sc->sc_ifp,
1094 IF_LLADDR(sc->sc_ifp), ETHER_ADDR_LEN);
1100 IF_LLADDR(sc->sc_ifp), ETHER_ADDR_LEN);
1103 EVENTHANDLER_INVOKE(iflladdr_event, sc->sc_ifp);
[all...]
H A Dif_enc.c88 struct ifnet *sc_ifp; member in struct:enc_softc
166 ifp = sc->sc_ifp = if_alloc(IFT_ENC);
252 ifp = sc->sc_ifp;
399 enc_clone_destroy(V_enc_sc->sc_ifp);
H A Dieee8023ad_lacp.c345 IF_LLADDR(sc->sc_ifp), ETHER_ADDR_LEN);
716 if_link_state_change(sc->sc_ifp,
753 if_link_state_change(sc->sc_ifp,
764 CURVNET_SET(lsc->lsc_softc->sc_ifp->if_vnet);
792 if (sc->sc_ifp->if_drv_flags & IFF_DRV_RUNNING)
1090 sc->sc_ifp->if_baudrate = speed;
1272 key |= 0x7fe0 & ((sc->sc_ifp->if_index) << 5);
/freebsd-13-stable/sys/mips/cavium/
H A Dif_octm.c70 struct ifnet *sc_ifp; member in struct:octm_softc
230 sc->sc_ifp = ifp;
294 ifp = sc->sc_ifp;
517 m->m_pkthdr.rcvif = sc->sc_ifp;
520 if_inc_counter(sc->sc_ifp, IFCOUNTER_IPACKETS, 1);
522 (*sc->sc_ifp->if_input)(sc->sc_ifp, m);
532 if_inc_counter(sc->sc_ifp, IFCOUNTER_IERRORS, 1);
/freebsd-13-stable/sys/dev/le/
H A Dlance.c116 ifp = sc->sc_ifp = if_alloc(IFT_ETHER);
196 struct ifnet *ifp = sc->sc_ifp;
210 struct ifnet *ifp = sc->sc_ifp;
234 if (sc->sc_ifp->if_flags & IFF_UP)
252 struct ifnet *ifp = sc->sc_ifp;
283 struct ifnet *ifp = sc->sc_ifp;
382 struct ifnet *ifp = sc->sc_ifp;
441 struct ifnet *ifp = sc->sc_ifp;
607 struct ifnet *ifp = sc->sc_ifp;
H A Dam7990.c150 struct ifnet *ifp = sc->sc_ifp;
214 struct ifnet *ifp = sc->sc_ifp;
310 struct ifnet *ifp = sc->sc_ifp;
393 struct ifnet *ifp = sc->sc_ifp;
497 struct ifnet *ifp = sc->sc_ifp;
579 struct ifnet *ifp = sc->sc_ifp;
602 struct ifnet *ifp = sc->sc_ifp;
H A Dam79900.c188 struct ifnet *ifp = sc->sc_ifp;
254 struct ifnet *ifp = sc->sc_ifp;
347 struct ifnet *ifp = sc->sc_ifp;
431 struct ifnet *ifp = sc->sc_ifp;
535 struct ifnet *ifp = sc->sc_ifp;
618 struct ifnet *ifp = sc->sc_ifp;
640 struct ifnet *ifp = sc->sc_ifp;
H A Dlancevar.h43 struct ifnet *sc_ifp; member in struct:lance_softc
/freebsd-13-stable/sys/dev/usb/net/
H A Duhso.c98 struct ifnet *sc_ifp; member in struct:uhso_softc
689 if (sc->sc_ifp != NULL) {
691 free_unr(uhso_ifnet_unit, sc->sc_ifp->if_dunit);
695 bpfdetach(sc->sc_ifp);
696 if_detach(sc->sc_ifp);
697 if_free(sc->sc_ifp);
1571 sc->sc_ifp = ifp = if_alloc(IFT_OTHER);
1572 if (sc->sc_ifp == NULL) {
1627 if (actlen > 0 && (sc->sc_ifp->if_drv_flags & IFF_DRV_RUNNING)) {
1668 struct ifnet *ifp = sc->sc_ifp;
[all...]
H A Dif_usie.c436 sc->sc_ifp = ifp = if_alloc(IFT_OTHER);
481 if (sc->sc_ifp != NULL) {
484 bpfdetach(sc->sc_ifp);
485 if_detach(sc->sc_ifp);
486 if_free(sc->sc_ifp);
487 sc->sc_ifp = NULL;
776 struct ifnet *ifp = sc->sc_ifp;
899 BPF_MTAP(sc->sc_ifp, m);
915 BPF_MTAP(sc->sc_ifp, m0);
934 struct ifnet *ifp = sc->sc_ifp;
[all...]
H A Dif_usievar.h232 struct ifnet *sc_ifp; member in struct:usie_softc
/freebsd-13-stable/sys/netpfil/pf/
H A Dif_pfsync.c213 struct ifnet *sc_ifp; member in struct:pfsync_softc
341 ifp = sc->sc_ifp = if_alloc(IFT_PFSYNC);
660 (sc->sc_ifp->if_drv_flags & IFF_DRV_RUNNING) == 0)
669 if_inc_counter(sc->sc_ifp, IFCOUNTER_IPACKETS, 1);
670 if_inc_counter(sc->sc_ifp, IFCOUNTER_IBYTES, m->m_pkthdr.len);
1202 ((sc->sc_ifp->if_mtu - PFSYNC_MINPKT) /
1435 (sifp->if_mtu < sc->sc_ifp->if_mtu ||
1574 struct ifnet *ifp = sc->sc_ifp;
1597 if_inc_counter(sc->sc_ifp, IFCOUNTER_OERRORS, 1);
1704 if_inc_counter(sc->sc_ifp, IFCOUNTER_OPACKET
[all...]
/freebsd-13-stable/sys/dev/gem/
H A Dif_gem.c162 ifp = sc->sc_ifp = if_alloc(IFT_ETHER);
428 struct ifnet *ifp = sc->sc_ifp;
463 struct ifnet *ifp = sc->sc_ifp;
473 struct ifnet *ifp = sc->sc_ifp;
565 struct ifnet *ifp = sc->sc_ifp;
759 sc->sc_ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
948 struct ifnet *ifp = sc->sc_ifp;
1252 const u_char *laddr = IF_LLADDR(sc->sc_ifp);
1413 struct ifnet *ifp = sc->sc_ifp;
1538 struct ifnet *ifp = sc->sc_ifp;
[all...]
H A Dif_gemvar.h109 struct ifnet *sc_ifp; member in struct:gem_softc
/freebsd-13-stable/sys/dev/stge/
H A Dif_stge.c566 ifp = sc->sc_ifp = if_alloc(IFT_ETHER);
651 sc->sc_ifp = NULL;
670 ifp = sc->sc_ifp;
695 sc->sc_ifp = NULL;
991 ifp = sc->sc_ifp;
1042 ifp = sc->sc_ifp;
1239 ifp = sc->sc_ifp;
1240 if_printf(sc->sc_ifp, "device timeout\n");
1462 ifp = sc->sc_ifp;
1539 ifp = sc->sc_ifp;
[all...]
/freebsd-13-stable/sys/dev/cas/
H A Dif_cas.c194 ifp = sc->sc_ifp = if_alloc(IFT_ETHER);
480 struct ifnet *ifp = sc->sc_ifp;
526 struct ifnet *ifp = sc->sc_ifp;
536 struct ifnet *ifp = sc->sc_ifp;
639 struct ifnet *ifp = sc->sc_ifp;
972 struct ifnet *ifp = sc->sc_ifp;
1331 const u_char *laddr = IF_LLADDR(sc->sc_ifp);
1505 struct ifnet *ifp = sc->sc_ifp;
1625 struct ifnet *ifp = sc->sc_ifp;
1923 struct ifnet *ifp = sc->sc_ifp;
[all...]
H A Dif_casvar.h131 struct ifnet *sc_ifp; member in struct:cas_softc

Completed in 210 milliseconds

12