Lines Matching full:bf
174 struct ath_buf *bf, *bf_last; in ath_tx_edma_push_staging_list() local
206 bf = ATH_TXQ_FIRST(txq); in ath_tx_edma_push_staging_list()
207 if (bf == NULL) in ath_tx_edma_push_staging_list()
209 ATH_TXQ_REMOVE(txq, bf, bf_list); in ath_tx_edma_push_staging_list()
212 TAILQ_INSERT_TAIL(&sq, bf, bf_list); in ath_tx_edma_push_staging_list()
215 bf->bf_flags &= ~(ATH_BUF_FIFOPTR | ATH_BUF_FIFOEND); in ath_tx_edma_push_staging_list()
226 bf = TAILQ_FIRST(&sq); in ath_tx_edma_push_staging_list()
237 bf->bf_flags |= ATH_BUF_FIFOPTR; in ath_tx_edma_push_staging_list()
283 ath_hal_puttxbuf(sc->sc_ah, txq->axq_qnum, bf->bf_daddr); in ath_tx_edma_push_staging_list()
404 struct ath_buf *bf; in ath_edma_dma_restart() local
430 TAILQ_FOREACH(bf, &txq->fifo.axq_q, bf_list) { in ath_edma_dma_restart()
440 ath_printtxbuf(sc, bf, txq->axq_qnum, i, 0); in ath_edma_dma_restart()
444 ath_tx_alq_post(sc, bf); in ath_edma_dma_restart()
448 if (bf->bf_flags & ATH_BUF_FIFOEND) in ath_edma_dma_restart()
464 "%s: Q%d: depth=%d: pushing bf=%p; start=%d, end=%d\n", in ath_edma_dma_restart()
468 bf, in ath_edma_dma_restart()
469 !! (bf->bf_flags & ATH_BUF_FIFOPTR), in ath_edma_dma_restart()
470 !! (bf->bf_flags & ATH_BUF_FIFOEND)); in ath_edma_dma_restart()
478 bf->bf_flags |= ATH_BUF_FIFOPTR; in ath_edma_dma_restart()
481 ath_hal_puttxbuf(sc->sc_ah, txq->axq_qnum, bf->bf_daddr); in ath_edma_dma_restart()
489 if (! (bf->bf_flags & ATH_BUF_FIFOEND)) in ath_edma_dma_restart()
529 struct ath_buf *bf) in ath_edma_xmit_handoff_hw() argument
534 KASSERT((bf->bf_flags & ATH_BUF_BUSY) == 0, in ath_edma_xmit_handoff_hw()
535 ("%s: busy status 0x%x", __func__, bf->bf_flags)); in ath_edma_xmit_handoff_hw()
543 if (bf->bf_state.bfs_aggr) in ath_edma_xmit_handoff_hw()
547 ATH_TXQ_INSERT_TAIL(txq, bf, bf_list); in ath_edma_xmit_handoff_hw()
566 struct ath_buf *bf) in ath_edma_xmit_handoff_mcast() argument
570 KASSERT((bf->bf_flags & ATH_BUF_BUSY) == 0, in ath_edma_xmit_handoff_mcast()
571 ("%s: busy status 0x%x", __func__, bf->bf_flags)); in ath_edma_xmit_handoff_mcast()
592 bf->bf_daddr); in ath_edma_xmit_handoff_mcast()
596 ath_tx_alq_post(sc, bf); in ath_edma_xmit_handoff_mcast()
598 ATH_TXQ_INSERT_TAIL(txq, bf, bf_list); in ath_edma_xmit_handoff_mcast()
621 struct ath_buf *bf) in ath_edma_xmit_handoff() argument
625 "%s: called; bf=%p, txq=%p, qnum=%d\n", in ath_edma_xmit_handoff()
627 bf, in ath_edma_xmit_handoff()
632 ath_edma_xmit_handoff_mcast(sc, txq, bf); in ath_edma_xmit_handoff()
634 ath_edma_xmit_handoff_hw(sc, txq, bf); in ath_edma_xmit_handoff()
800 struct ath_buf *bf; in ath_edma_tx_processq() local
879 bf = ATH_TXQ_FIRST(&txq->fifo); in ath_edma_tx_processq()
886 if (bf == NULL) { in ath_edma_tx_processq()
894 DPRINTF(sc, ATH_DEBUG_TX_PROC, "%s: Q%d, bf=%p, start=%d, end=%d\n", in ath_edma_tx_processq()
896 ts.ts_queue_id, bf, in ath_edma_tx_processq()
897 !! (bf->bf_flags & ATH_BUF_FIFOPTR), in ath_edma_tx_processq()
898 !! (bf->bf_flags & ATH_BUF_FIFOEND)); in ath_edma_tx_processq()
904 if (ts.ts_desc_id != bf->bf_descid) { in ath_edma_tx_processq()
911 bf->bf_descid); in ath_edma_tx_processq()
916 ATH_TXQ_REMOVE(&txq->fifo, bf, bf_list); in ath_edma_tx_processq()
917 if (bf->bf_state.bfs_aggr) in ath_edma_tx_processq()
923 if (bf->bf_flags & ATH_BUF_FIFOEND) in ath_edma_tx_processq()
930 if (! (bf->bf_flags & ATH_BUF_FIFOEND)) in ath_edma_tx_processq()
931 bf->bf_flags |= ATH_BUF_BUSY; in ath_edma_tx_processq()
947 if (bf->bf_flags & ATH_BUF_FIFOEND) { in ath_edma_tx_processq()
973 bf->bf_state.bfs_rc[ts.ts_finaltsi].ratecode; in ath_edma_tx_processq()
976 bf->bf_state.bfs_rc[2].tries; in ath_edma_tx_processq()
978 bf->bf_state.bfs_rc[1].tries; in ath_edma_tx_processq()
980 bf->bf_state.bfs_rc[0].tries; in ath_edma_tx_processq()
986 ts.ts_rate = bf->bf_state.bfs_rc[0].ratecode; in ath_edma_tx_processq()
1000 memcpy(&bf->bf_status, &ts, sizeof(ts)); in ath_edma_tx_processq()
1002 ni = bf->bf_node; in ath_edma_tx_processq()
1007 ((bf->bf_state.bfs_txflags & HAL_TXDESC_NOACK) == 0)) { in ath_edma_tx_processq()
1017 ath_tx_process_buf_completion(sc, txq, &ts, bf); in ath_edma_tx_processq()
1019 /* NB: bf is invalid at this point */ in ath_edma_tx_processq()