Home | History | Annotate | Download | only in ofw

Lines Matching refs:ifp

108 	struct ifnet *ifp = &of->sc_ethercom.ec_if;
130 strlcpy(ifp->if_xname, device_xname(of->sc_dev), IFNAMSIZ);
131 ifp->if_softc = of;
132 ifp->if_start = ofnet_start;
133 ifp->if_ioctl = ofnet_ioctl;
134 ifp->if_watchdog = ofnet_watchdog;
135 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX;
136 IFQ_SET_READY(&ifp->if_snd);
138 if_attach(ifp);
139 ether_ifattach(ifp, myaddr);
147 struct ifnet *ifp = &of->sc_ethercom.ec_if;
159 if_statinc(ifp, if_ierrors);
178 if_statinc(ifp, if_ierrors);
181 m_set_rcvif(m, ifp);
192 if_statinc(ifp, if_ierrors);
202 if_statinc(ifp, if_ierrors);
236 if_percpuq_enqueue(ifp->if_percpuq, head);
253 struct ifnet *ifp = &of->sc_ethercom.ec_if;
255 if (ifp->if_flags & IFF_RUNNING)
258 ifp->if_flags |= IFF_RUNNING;
262 ofnet_start(ifp);
273 ofnet_start(struct ifnet *ifp)
275 struct ofnet_softc *of = ifp->if_softc;
280 if (!(ifp->if_flags & IFF_RUNNING))
288 IFQ_DEQUEUE(&ifp->if_snd, m0);
296 bpf_mtap(ifp, m0, BPF_D_OUT);
300 if_statinc(ifp, if_oerrors);
324 if_statinc(ifp, if_oerrors);
326 if_statinc(ifp, if_opackets);
331 ofnet_ioctl(struct ifnet *ifp, u_long cmd, void *data)
333 struct ofnet_softc *of = ifp->if_softc;
340 ifp->if_flags |= IFF_UP;
345 arp_ifinit(ifp, ifa);
354 if ((error = ifioctl_common(ifp, cmd, data)) != 0)
357 switch (ifp->if_flags & (IFF_UP|IFF_RUNNING)) {
372 error = ether_ioctl(ifp, cmd, data);
379 ofnet_watchdog(struct ifnet *ifp)
381 struct ofnet_softc *of = ifp->if_softc;
384 if_statinc(ifp, if_oerrors);