Lines Matching defs:ifp
291 struct ifnet *ifp = bp->bp_ifp;
300 if ((ifp->if_flags & IFF_RUNNING) == 0)
307 m->m_pkthdr.rcvif = ifp;
313 memcpy(eh->ether_shost, ifnet_lladdr(ifp), ETHER_ADDR_LEN);
326 bstp_enqueue(ifp, m);
406 struct ifnet *ifp;
412 ifp = bp->bp_ifp;
414 if ((ifp->if_flags & IFF_RUNNING) == 0)
427 memcpy(eh->ether_shost, ifnet_lladdr(ifp), ETHER_ADDR_LEN);
451 m->m_pkthdr.rcvif = ifp;
455 bstp_enqueue(ifp, m);
532 bstp_input(struct bstp_port *bp, __unused struct ifnet *ifp, struct mbuf *m)
1779 struct ifnet *ifp = bp->bp_ifp;
1792 if (ifp->if_baudrate < 1000)
1796 path_cost = 20000000000ULL / (ifp->if_baudrate / 1000);
1856 bstp_linkstate(struct ifnet *ifp, __unused int state)
1866 if (bp->bp_ifp == ifp) {
1883 struct ifnet *ifp = bp->bp_ifp;
1890 error = (*ifp->if_ioctl)(ifp, SIOCGIFMEDIA, (caddr_t)&ifmr);
1892 if ((error == 0) && (ifp->if_flags & IFF_UP)) {
2099 struct ifnet *ifp, *mif;
2113 TAILQ_FOREACH(ifp, &ifnet_head, if_link) {
2114 if (ifp->if_type != IFT_ETHER)
2117 if (bstp_addr_cmp(ifnet_lladdr(ifp), llzero) == 0)
2121 mif = ifp;
2124 if (bstp_addr_cmp(ifnet_lladdr(ifp), ifnet_lladdr(mif)) < 0) {
2125 mif = ifp;
2242 bstp_create(struct bstp_state *bs, struct bstp_port *bp, struct ifnet *ifp)
2247 bp->bp_ifp = ifp;
2269 struct ifnet *ifp = bp->bp_ifp;
2273 switch (ifp->if_type) {