Lines Matching refs:ifp

150 	struct ifnet *ifp = sc->sc_ifp;
159 if (ifp->if_flags & IFF_PROMISC)
214 struct ifnet *ifp = sc->sc_ifp;
242 if_printf(ifp,
245 if_printf(ifp,
250 if_printf(ifp, "overflow\n");
253 if_printf(ifp,
257 if_printf(ifp, "dropping chained buffer\n");
277 if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
298 (*ifp->if_input)(ifp, m);
301 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
310 struct ifnet *ifp = sc->sc_ifp;
325 if_printf(ifp, "trans tmd: "
335 ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
339 if_printf(ifp, "transmit buffer error\n");
341 if_printf(ifp, "underflow\n");
348 if_link_state_change(ifp,
354 if_printf(ifp, "lost carrier\n");
357 if_inc_counter(ifp, IFCOUNTER_COLLISIONS, 1);
360 if_printf(ifp, "excessive collisions, tdr %d\n",
363 if_inc_counter(ifp, IFCOUNTER_COLLISIONS, 16);
365 if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
368 if_inc_counter(ifp, IFCOUNTER_COLLISIONS, 1);
371 if_inc_counter(ifp, IFCOUNTER_COLLISIONS, 2);
372 if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);
393 struct ifnet *ifp = sc->sc_ifp;
399 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
408 if_printf(ifp, "%s: entering with isr=%04x\n", __func__, isr);
429 if_printf(ifp, "babble\n");
431 if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
435 if_printf(ifp, "collision error\n");
436 if_inc_counter(ifp, IFCOUNTER_COLLISIONS, 1);
441 if_printf(ifp, "missed packet\n");
443 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
446 if_printf(ifp, "memory error\n");
454 if_printf(ifp, "receiver disabled\n");
455 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
461 if_printf(ifp, "transmitter disabled\n");
462 if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
472 if_link_state_change(ifp, LINK_STATE_UP);
483 if (!IFQ_DRV_IS_EMPTY(&ifp->if_snd))
497 struct ifnet *ifp = sc->sc_ifp;
504 if ((ifp->if_drv_flags & (IFF_DRV_RUNNING | IFF_DRV_OACTIVE)) !=
512 !IFQ_DRV_IS_EMPTY(&ifp->if_snd);) {
517 ifp->if_drv_flags |= IFF_DRV_OACTIVE;
518 if_printf(ifp,
523 IFQ_DRV_DEQUEUE(&ifp->if_snd, m);
531 BPF_MTAP(ifp, m);
540 if_printf(ifp, "packet length %d\n", len);
564 ifp->if_drv_flags |= IFF_DRV_OACTIVE;
579 struct ifnet *ifp = sc->sc_ifp;
586 if_printf(ifp, "receive buffer %d, len = %d\n", no, len);
587 if_printf(ifp, "status %04x\n", (*sc->sc_rdcsr)(sc, LE_CSR0));
588 if_printf(ifp,
593 if_printf(ifp, "dst %s", ether_sprintf(eh.ether_dhost));
602 struct ifnet *ifp = sc->sc_ifp;
609 if_printf(ifp, "transmit buffer %d, len = %d\n", no, len);
610 if_printf(ifp, "status %04x\n", (*sc->sc_rdcsr)(sc, LE_CSR0));
611 if_printf(ifp,
616 if_printf(ifp, "dst %s", ether_sprintf(eh.ether_dhost));