Lines Matching refs:tx_ring
90 struct dp_tx_ring *tx_ring; in ath11k_dp_tx() local
126 tx_ring = &dp->tx_ring[ti.ring_id]; in ath11k_dp_tx()
128 spin_lock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx()
129 ret = idr_alloc(&tx_ring->txbuf_idr, skb, 0, in ath11k_dp_tx()
131 spin_unlock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx()
221 hal_ring_id = tx_ring->tcl_data_ring.ring_id; in ath11k_dp_tx()
272 spin_lock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx()
273 idr_remove(&tx_ring->txbuf_idr, in ath11k_dp_tx()
275 spin_unlock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx()
285 struct dp_tx_ring *tx_ring) in ath11k_dp_tx_free_txbuf() argument
291 spin_lock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx_free_txbuf()
292 msdu = idr_find(&tx_ring->txbuf_idr, msdu_id); in ath11k_dp_tx_free_txbuf()
296 spin_unlock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx_free_txbuf()
302 idr_remove(&tx_ring->txbuf_idr, msdu_id); in ath11k_dp_tx_free_txbuf()
303 spin_unlock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx_free_txbuf()
315 struct dp_tx_ring *tx_ring, in ath11k_dp_tx_htt_tx_complete_buf() argument
323 spin_lock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx_htt_tx_complete_buf()
324 msdu = idr_find(&tx_ring->txbuf_idr, ts->msdu_id); in ath11k_dp_tx_htt_tx_complete_buf()
328 spin_unlock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx_htt_tx_complete_buf()
337 idr_remove(&tx_ring->txbuf_idr, ts->msdu_id); in ath11k_dp_tx_htt_tx_complete_buf()
338 spin_unlock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx_htt_tx_complete_buf()
364 u32 msdu_id, struct dp_tx_ring *tx_ring) in ath11k_dp_tx_process_htt_tx_complete() argument
382 ath11k_dp_tx_htt_tx_complete_buf(ab, tx_ring, &ts); in ath11k_dp_tx_process_htt_tx_complete()
386 ath11k_dp_tx_free_txbuf(ab, mac_id, msdu_id, tx_ring); in ath11k_dp_tx_process_htt_tx_complete()
532 int hal_ring_id = dp->tx_ring[ring_id].tcl_comp_ring.ring_id; in ath11k_dp_tx_completion_handler()
536 struct dp_tx_ring *tx_ring = &dp->tx_ring[ring_id]; in ath11k_dp_tx_completion_handler() local
545 while ((ATH11K_TX_COMPL_NEXT(tx_ring->tx_status_head) != in ath11k_dp_tx_completion_handler()
546 tx_ring->tx_status_tail) && in ath11k_dp_tx_completion_handler()
548 memcpy(&tx_ring->tx_status[tx_ring->tx_status_head], in ath11k_dp_tx_completion_handler()
550 tx_ring->tx_status_head = in ath11k_dp_tx_completion_handler()
551 ATH11K_TX_COMPL_NEXT(tx_ring->tx_status_head); in ath11k_dp_tx_completion_handler()
555 (ATH11K_TX_COMPL_NEXT(tx_ring->tx_status_head) == tx_ring->tx_status_tail)) { in ath11k_dp_tx_completion_handler()
564 while (ATH11K_TX_COMPL_NEXT(tx_ring->tx_status_tail) != tx_ring->tx_status_head) { in ath11k_dp_tx_completion_handler()
568 tx_ring->tx_status_tail = in ath11k_dp_tx_completion_handler()
569 ATH11K_TX_COMPL_NEXT(tx_ring->tx_status_tail); in ath11k_dp_tx_completion_handler()
570 tx_status = &tx_ring->tx_status[tx_ring->tx_status_tail]; in ath11k_dp_tx_completion_handler()
582 tx_ring); in ath11k_dp_tx_completion_handler()
586 spin_lock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx_completion_handler()
587 msdu = idr_find(&tx_ring->txbuf_idr, msdu_id); in ath11k_dp_tx_completion_handler()
591 spin_unlock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx_completion_handler()
594 idr_remove(&tx_ring->txbuf_idr, msdu_id); in ath11k_dp_tx_completion_handler()
595 spin_unlock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx_completion_handler()