Lines Matching refs:ifp

182 	struct ifnet *ifp;
186 ifp = sc->malo_ifp = if_alloc(IFT_IEEE80211);
187 if (ifp == NULL) {
191 ic = ifp->if_l2com;
197 if_initname(ifp, device_get_name(sc->malo_dev),
203 if_printf(ifp, "unable to attach HAL\n");
216 if_printf(ifp, "unable to setup firmware\n");
222 if_printf(ifp, "unable to fetch h/w specs\n");
258 if_printf(ifp, "failed to setup descriptors: %d\n", error);
268 "%s taskq", ifp->if_xname);
273 ifp->if_softc = sc;
274 ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST;
275 ifp->if_start = malo_start;
276 ifp->if_ioctl = malo_ioctl;
277 ifp->if_init = malo_init;
278 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen);
279 ifp->if_snd.ifq_drv_maxlen = ifqmaxlen;
280 IFQ_SET_READY(&ifp->if_snd);
282 ic->ic_ifp = ifp;
340 if_free(ifp);
352 struct ifnet *ifp = ic->ic_ifp;
357 if_printf(ifp, "multiple vaps not supported\n");
368 if_printf(ifp, "%s mode not supported\n",
375 if_printf(ifp, "cannot allocate vap state block\n");
466 struct ifnet *ifp = sc->malo_ifp;
493 if_printf(ifp, "cannot allocate %s DMA tag\n", dd->dd_name);
500 if_printf(ifp, "unable to create dmamap for %s descriptors, "
508 if_printf(ifp, "unable to alloc memory for %u %s descriptors, "
517 if_printf(ifp, "unable to map %s descriptors, error %u\n",
545 struct ifnet *ifp = sc->malo_ifp;
562 if_printf(ifp, "malloc of %u rx buffers failed\n", bsize);
575 if_printf(ifp, "%s: unable to dmamap for rx buffer, "
588 struct ifnet *ifp = sc->malo_ifp;
603 if_printf(ifp, "malloc of %u tx buffers failed\n",
618 if_printf(ifp, "unable to create dmamap for tx "
1065 struct ifnet *ifp = sc->malo_ifp;
1078 ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
1080 malo_start(ifp);
1095 struct ifnet *ifp = sc->malo_ifp;
1096 struct ieee80211com *ic = ifp->if_l2com;
1241 if_printf(ifp, "bogus frame type 0x%x (%s)\n",
1262 ifp->if_opackets++;
1270 malo_start(struct ifnet *ifp)
1272 struct malo_softc *sc = ifp->if_softc;
1279 if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0 || sc->malo_invalid)
1283 IFQ_DRV_DEQUEUE(&ifp->if_snd, m);
1289 IFQ_DRV_PREPEND(&ifp->if_snd, m);
1292 ifp->if_drv_flags |= IFF_DRV_OACTIVE;
1300 ifp->if_oerrors++;
1345 struct ifnet *ifp;
1352 ifp = sc->malo_ifp;
1353 if ((ifp->if_drv_flags & IFF_DRV_RUNNING) && !sc->malo_invalid) {
1354 if_printf(ifp, "watchdog timeout\n");
1358 ifp->if_oerrors++;
1367 struct ifnet *ifp = sc->malo_ifp;
1368 struct ieee80211com *ic = ifp->if_l2com;
1499 struct ifnet *ifp = sc->malo_ifp;
1504 __func__, ifp->if_flags);
1512 malo_stop_locked(ifp, 0);
1518 if_printf(ifp, "%s: unable to reset hardware\n", __func__);
1527 if_printf(ifp, "%s: unable to start recv logic, error %d\n",
1544 ifp->if_drv_flags |= IFF_DRV_RUNNING;
1553 struct ifnet *ifp = sc->malo_ifp;
1554 struct ieee80211com *ic = ifp->if_l2com;
1557 __func__, ifp->if_flags);
1564 if (ifp->if_drv_flags & IFF_DRV_RUNNING)
1574 struct ifnet *ifp = sc->malo_ifp;
1575 struct ieee80211com *ic = ifp->if_l2com;
1585 (ifp->if_flags & (IFF_ALLMULTI | IFF_PROMISC)))
1588 if_maddr_rlock(ifp);
1589 TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) {
1594 ifp->if_flags |= IFF_ALLMULTI;
1595 if_maddr_runlock(ifp);
1603 if_maddr_runlock(ifp);
1618 struct ifnet *ifp = sc->malo_ifp;
1619 struct ieee80211com *ic = ifp->if_l2com;
1628 malo_hal_setpromisc(mh, (ifp->if_flags & IFF_PROMISC) &&
1657 struct ifnet *ifp = sc->malo_ifp;
1658 struct ieee80211com *ic = ifp->if_l2com;
1686 malo_stop_locked(struct ifnet *ifp, int disable)
1688 struct malo_softc *sc = ifp->if_softc;
1693 __func__, sc->malo_invalid, ifp->if_flags);
1697 if (!(ifp->if_drv_flags & IFF_DRV_RUNNING))
1709 ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
1723 malo_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
1725 #define MALO_IS_RUNNING(ifp) \
1726 ((ifp->if_flags & IFF_UP) && (ifp->if_drv_flags & IFF_DRV_RUNNING))
1727 struct malo_softc *sc = ifp->if_softc;
1728 struct ieee80211com *ic = ifp->if_l2com;
1735 if (MALO_IS_RUNNING(ifp)) {
1742 } else if (ifp->if_flags & IFF_UP) {
1757 malo_stop_locked(ifp, 1);
1761 error = ifmedia_ioctl(ifp, ifr, &ic->ic_media, cmd);
1764 error = ether_ioctl(ifp, cmd, data);
1782 malo_updateslot(struct ifnet *ifp)
1784 struct malo_softc *sc = ifp->if_softc;
1785 struct ieee80211com *ic = ifp->if_l2com;
1790 if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0)
1856 struct ifnet *ifp = ic->ic_ifp;
1857 struct malo_softc *sc = ifp->if_softc;
1861 if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0 || sc->malo_invalid) {
1877 ifp->if_drv_flags |= IFF_DRV_OACTIVE;
1887 ifp->if_oerrors++;
1932 struct ifnet *ifp = sc->malo_ifp;
1934 if_printf(ifp, "versions [hw %d fw %d.%d.%d.%d] (regioncode %d)\n",
1943 if_printf(ifp, "using %u rx buffers\n", malo_rxbuf);
1945 if_printf(ifp, "using %u tx buffers\n", malo_txbuf);
2006 struct ifnet *ifp = ic->ic_ifp;
2007 struct malo_softc *sc = ifp->if_softc;
2015 struct ifnet *ifp = ic->ic_ifp;
2016 struct malo_softc *sc = ifp->if_softc;
2024 struct ifnet *ifp = ic->ic_ifp;
2025 struct malo_softc *sc = ifp->if_softc;
2037 struct ifnet *ifp = sc->malo_ifp;
2038 struct ieee80211com *ic = ifp->if_l2com;
2095 ifp->if_ierrors++;
2134 ifp->if_ierrors++;
2145 m->m_pkthdr.rcvif = ifp;
2175 ifp->if_ipackets++;
2194 if ((ifp->if_drv_flags & IFF_DRV_OACTIVE) == 0 &&
2195 !IFQ_IS_EMPTY(&ifp->if_snd))
2196 malo_start(ifp);
2201 malo_stop(struct ifnet *ifp, int disable)
2203 struct malo_softc *sc = ifp->if_softc;
2206 malo_stop_locked(ifp, disable);
2225 struct ifnet *ifp = sc->malo_ifp;
2226 struct ieee80211com *ic = ifp->if_l2com;
2229 __func__, ifp->if_flags);
2231 malo_stop(ifp, 1);
2257 if_free(ifp);
2273 struct ifnet *ifp = sc->malo_ifp;
2276 __func__, ifp->if_flags);
2278 malo_stop(ifp, 1);
2284 struct ifnet *ifp = sc->malo_ifp;
2287 __func__, ifp->if_flags);
2289 if (ifp->if_flags & IFF_UP)