Lines Matching refs:tx_ring
96 struct dp_tx_ring *tx_ring; in ath11k_dp_tx() local
128 tx_ring = &dp->tx_ring[ti.ring_id]; in ath11k_dp_tx()
130 spin_lock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx()
131 ret = idr_alloc(&tx_ring->txbuf_idr, skb, 0, in ath11k_dp_tx()
133 spin_unlock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx()
232 hal_ring_id = tx_ring->tcl_data_ring.ring_id; in ath11k_dp_tx()
283 spin_lock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx()
284 idr_remove(&tx_ring->txbuf_idr, in ath11k_dp_tx()
286 spin_unlock_bh(&tx_ring->tx_idr_lock); in ath11k_dp_tx()
296 struct dp_tx_ring *tx_ring) in ath11k_dp_tx_free_txbuf() argument
302 spin_lock(&tx_ring->tx_idr_lock); in ath11k_dp_tx_free_txbuf()
303 msdu = idr_remove(&tx_ring->txbuf_idr, msdu_id); in ath11k_dp_tx_free_txbuf()
304 spin_unlock(&tx_ring->tx_idr_lock); in ath11k_dp_tx_free_txbuf()
324 struct dp_tx_ring *tx_ring, in ath11k_dp_tx_htt_tx_complete_buf() argument
334 spin_lock(&tx_ring->tx_idr_lock); in ath11k_dp_tx_htt_tx_complete_buf()
335 msdu = idr_remove(&tx_ring->txbuf_idr, ts->msdu_id); in ath11k_dp_tx_htt_tx_complete_buf()
336 spin_unlock(&tx_ring->tx_idr_lock); in ath11k_dp_tx_htt_tx_complete_buf()
399 u32 msdu_id, struct dp_tx_ring *tx_ring) in ath11k_dp_tx_process_htt_tx_complete() argument
428 ath11k_dp_tx_htt_tx_complete_buf(ab, tx_ring, &ts); in ath11k_dp_tx_process_htt_tx_complete()
433 ath11k_dp_tx_free_txbuf(ab, mac_id, msdu_id, tx_ring); in ath11k_dp_tx_process_htt_tx_complete()
698 int hal_ring_id = dp->tx_ring[ring_id].tcl_comp_ring.ring_id; in ath11k_dp_tx_completion_handler()
702 struct dp_tx_ring *tx_ring = &dp->tx_ring[ring_id]; in ath11k_dp_tx_completion_handler() local
711 while ((ATH11K_TX_COMPL_NEXT(tx_ring->tx_status_head) != in ath11k_dp_tx_completion_handler()
712 tx_ring->tx_status_tail) && in ath11k_dp_tx_completion_handler()
714 memcpy(&tx_ring->tx_status[tx_ring->tx_status_head], in ath11k_dp_tx_completion_handler()
716 tx_ring->tx_status_head = in ath11k_dp_tx_completion_handler()
717 ATH11K_TX_COMPL_NEXT(tx_ring->tx_status_head); in ath11k_dp_tx_completion_handler()
721 (ATH11K_TX_COMPL_NEXT(tx_ring->tx_status_head) == in ath11k_dp_tx_completion_handler()
722 tx_ring->tx_status_tail))) { in ath11k_dp_tx_completion_handler()
731 while (ATH11K_TX_COMPL_NEXT(tx_ring->tx_status_tail) != tx_ring->tx_status_head) { in ath11k_dp_tx_completion_handler()
735 tx_ring->tx_status_tail = in ath11k_dp_tx_completion_handler()
736 ATH11K_TX_COMPL_NEXT(tx_ring->tx_status_tail); in ath11k_dp_tx_completion_handler()
737 tx_status = &tx_ring->tx_status[tx_ring->tx_status_tail]; in ath11k_dp_tx_completion_handler()
749 tx_ring); in ath11k_dp_tx_completion_handler()
753 spin_lock(&tx_ring->tx_idr_lock); in ath11k_dp_tx_completion_handler()
754 msdu = idr_remove(&tx_ring->txbuf_idr, msdu_id); in ath11k_dp_tx_completion_handler()
758 spin_unlock(&tx_ring->tx_idr_lock); in ath11k_dp_tx_completion_handler()
762 spin_unlock(&tx_ring->tx_idr_lock); in ath11k_dp_tx_completion_handler()