Lines Matching refs:bf
248 ath_legacy_rxbuf_init(struct ath_softc *sc, struct ath_buf *bf) in ath_legacy_rxbuf_init() argument
257 m = bf->bf_m; in ath_legacy_rxbuf_init()
276 bf->bf_dmamap, m, in ath_legacy_rxbuf_init()
277 bf->bf_segs, &bf->bf_nseg, in ath_legacy_rxbuf_init()
287 KASSERT(bf->bf_nseg == 1, in ath_legacy_rxbuf_init()
288 ("multi-segment packet; nseg %u", bf->bf_nseg)); in ath_legacy_rxbuf_init()
289 bf->bf_m = m; in ath_legacy_rxbuf_init()
291 bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap, BUS_DMASYNC_PREREAD); in ath_legacy_rxbuf_init()
314 ds = bf->bf_desc; in ath_legacy_rxbuf_init()
316 ds->ds_link = bf->bf_daddr; /* link to self */ in ath_legacy_rxbuf_init()
319 ds->ds_data = bf->bf_segs[0].ds_addr; in ath_legacy_rxbuf_init()
326 *sc->sc_rxlink = bf->bf_daddr; in ath_legacy_rxbuf_init()
659 uint64_t tsf, int nf, HAL_RX_QUEUE qtype, struct ath_buf *bf, in ath_rx_pkt() argument
845 ath_printrxbuf(sc, bf, 0, status == HAL_OK); in ath_rx_pkt()
1078 struct ath_buf *bf; in ath_rx_proc() local
1124 bf = TAILQ_FIRST(&sc->sc_rxbuf); in ath_rx_proc()
1125 if (sc->sc_rxslink && bf == NULL) { /* NB: shouldn't happen */ in ath_rx_proc()
1128 } else if (bf == NULL) { in ath_rx_proc()
1136 m = bf->bf_m; in ath_rx_proc()
1144 TAILQ_REMOVE(&sc->sc_rxbuf, bf, bf_list); in ath_rx_proc()
1147 ds = bf->bf_desc; in ath_rx_proc()
1148 if (ds->ds_link == bf->bf_daddr) { in ath_rx_proc()
1165 rs = &bf->bf_status.ds_rxstat; in ath_rx_proc()
1167 bf->bf_daddr, PA2DESC(sc, ds->ds_link), rs); in ath_rx_proc()
1170 ath_printrxbuf(sc, bf, 0, status == HAL_OK); in ath_rx_proc()
1182 TAILQ_REMOVE(&sc->sc_rxbuf, bf, bf_list); in ath_rx_proc()
1188 bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap, BUS_DMASYNC_POSTREAD); in ath_rx_proc()
1189 bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap); in ath_rx_proc()
1190 bf->bf_m = NULL; in ath_rx_proc()
1191 if (ath_rx_pkt(sc, rs, status, tsf, nf, HAL_RX_QUEUE_HP, bf, m)) in ath_rx_proc()
1212 sc->sc_rxedma[HAL_RX_QUEUE_HP].m_holdbf = bf; in ath_rx_proc()
1266 bf = TAILQ_FIRST(&sc->sc_rxbuf); in ath_rx_proc()
1267 ath_hal_putrxbuf(ah, bf->bf_daddr, HAL_RX_QUEUE_HP); in ath_rx_proc()
1361 struct ath_buf *bf; in ath_legacy_flush_rxholdbf() local
1371 bf = sc->sc_rxedma[HAL_RX_QUEUE_HP].m_holdbf; in ath_legacy_flush_rxholdbf()
1372 if (bf != NULL) { in ath_legacy_flush_rxholdbf()
1373 if (bf->bf_m != NULL) in ath_legacy_flush_rxholdbf()
1374 m_freem(bf->bf_m); in ath_legacy_flush_rxholdbf()
1375 bf->bf_m = NULL; in ath_legacy_flush_rxholdbf()
1376 TAILQ_INSERT_TAIL(&sc->sc_rxbuf, bf, bf_list); in ath_legacy_flush_rxholdbf()
1377 (void) ath_rxbuf_init(sc, bf); in ath_legacy_flush_rxholdbf()
1381 bf = sc->sc_rxedma[HAL_RX_QUEUE_LP].m_holdbf; in ath_legacy_flush_rxholdbf()
1382 if (bf != NULL) { in ath_legacy_flush_rxholdbf()
1383 if (bf->bf_m != NULL) in ath_legacy_flush_rxholdbf()
1384 m_freem(bf->bf_m); in ath_legacy_flush_rxholdbf()
1385 bf->bf_m = NULL; in ath_legacy_flush_rxholdbf()
1386 TAILQ_INSERT_TAIL(&sc->sc_rxbuf, bf, bf_list); in ath_legacy_flush_rxholdbf()
1387 (void) ath_rxbuf_init(sc, bf); in ath_legacy_flush_rxholdbf()
1420 struct ath_buf *bf; in ath_legacy_stoprecv() local
1429 TAILQ_FOREACH(bf, &sc->sc_rxbuf, bf_list) { in ath_legacy_stoprecv()
1430 struct ath_desc *ds = bf->bf_desc; in ath_legacy_stoprecv()
1431 struct ath_rx_status *rs = &bf->bf_status.ds_rxstat; in ath_legacy_stoprecv()
1433 bf->bf_daddr, PA2DESC(sc, ds->ds_link), rs); in ath_legacy_stoprecv()
1435 ath_printrxbuf(sc, bf, ix, status == HAL_OK); in ath_legacy_stoprecv()
1463 struct ath_buf *bf; in ath_legacy_startrecv() local
1477 TAILQ_FOREACH(bf, &sc->sc_rxbuf, bf_list) { in ath_legacy_startrecv()
1478 int error = ath_rxbuf_init(sc, bf); in ath_legacy_startrecv()
1487 bf = TAILQ_FIRST(&sc->sc_rxbuf); in ath_legacy_startrecv()
1488 ath_hal_putrxbuf(ah, bf->bf_daddr, HAL_RX_QUEUE_HP); in ath_legacy_startrecv()