Lines Matching defs:ifp

441 	struct ifnet		*ifp = &sc->sc_arpcom.ac_if;
452 ifp->if_flags &= ~IFF_ALLMULTI;
460 if (ifp->if_flags & IFF_PROMISC || ac->ac_multirangecnt > 0) {
461 ifp ->if_flags |= IFF_ALLMULTI;
463 if (ifp->if_flags & IFF_PROMISC)
558 struct ifnet *ifp = &sc->sc_arpcom.ac_if;
605 ifp->if_ierrors++;
670 ifp->if_ierrors++;
680 if_input(ifp, &ml);
690 struct ifnet *ifp = &sc->sc_arpcom.ac_if;
705 ifp->if_collisions += (txstat & RL_TXSTAT_COLLCNT) >> 24;
724 ifp->if_oerrors++;
736 ifq_clr_oactive(&ifp->if_snd);
740 ifp->if_timer = 0;
741 else if (ifp->if_timer == 0)
742 ifp->if_timer = 5;
749 struct ifnet *ifp = &sc->sc_arpcom.ac_if;
777 if (!ifq_empty(&ifp->if_snd))
778 rl_start(ifp);
846 rl_start(struct ifnet *ifp)
848 struct rl_softc *sc = ifp->if_softc;
853 m_head = ifq_dequeue(&ifp->if_snd);
867 if (ifp->if_bpf)
868 bpf_mtap(ifp->if_bpf, RL_CUR_TXMBUF(sc),
885 ifp->if_timer = 5;
897 ifq_set_oactive(&ifp->if_snd);
904 struct ifnet *ifp = &sc->sc_arpcom.ac_if;
969 ifp->if_flags |= IFF_RUNNING;
970 ifq_clr_oactive(&ifp->if_snd);
981 rl_ifmedia_upd(struct ifnet *ifp)
983 struct rl_softc *sc = (struct rl_softc *)ifp->if_softc;
993 rl_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
995 struct rl_softc *sc = ifp->if_softc;
1003 rl_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
1005 struct rl_softc *sc = ifp->if_softc;
1013 ifp->if_flags |= IFF_UP;
1014 if (!(ifp->if_flags & IFF_RUNNING))
1019 if (ifp->if_flags & IFF_UP) {
1020 if (ifp->if_flags & IFF_RUNNING)
1025 if (ifp->if_flags & IFF_RUNNING)
1032 error = ifmedia_ioctl(ifp, ifr, &sc->sc_mii.mii_media, command);
1036 error = ether_ioctl(ifp, &sc->sc_arpcom, command, data);
1040 if (ifp->if_flags & IFF_RUNNING)
1050 rl_watchdog(struct ifnet *ifp)
1052 struct rl_softc *sc = ifp->if_softc;
1055 ifp->if_oerrors++;
1068 struct ifnet *ifp = &sc->sc_arpcom.ac_if;
1071 ifp->if_timer = 0;
1075 ifp->if_flags &= ~IFF_RUNNING;
1076 ifq_clr_oactive(&ifp->if_snd);
1103 struct ifnet *ifp = &sc->sc_arpcom.ac_if;
1183 ifp->if_softc = sc;
1184 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
1185 ifp->if_ioctl = rl_ioctl;
1186 ifp->if_start = rl_start;
1187 ifp->if_watchdog = rl_watchdog;
1189 bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ);
1191 ifp->if_capabilities = IFCAP_VLAN_MTU;
1198 sc->sc_mii.mii_ifp = ifp;
1214 if_attach(ifp);
1215 ether_ifattach(ifp);
1224 struct ifnet *ifp = &sc->sc_arpcom.ac_if;
1228 if (ifp->if_flags & IFF_RUNNING)
1232 if (ifp->if_flags & IFF_UP)
1352 struct ifnet *ifp = &sc->sc_arpcom.ac_if;
1364 ether_ifdetach(ifp);
1365 if_detach(ifp);