Lines Matching refs:write_index
280 unsigned int write_index = src_ring->write_index; in ath10k_ce_send_nolock() local
290 write_index, sw_index - 1) <= 0)) { in ath10k_ce_send_nolock()
296 write_index); in ath10k_ce_send_nolock()
311 src_ring->per_transfer_context[write_index] = per_transfer_context; in ath10k_ce_send_nolock()
314 write_index = CE_RING_IDX_INCR(nentries_mask, write_index); in ath10k_ce_send_nolock()
318 ath10k_ce_src_ring_write_index_set(ar, ctrl_addr, write_index); in ath10k_ce_send_nolock()
320 src_ring->write_index = write_index; in ath10k_ce_send_nolock()
339 if (WARN_ON_ONCE(src_ring->write_index == src_ring->sw_index)) in __ath10k_ce_send_revert()
342 if (WARN_ON_ONCE(src_ring->write_index == in __ath10k_ce_send_revert()
346 src_ring->write_index--; in __ath10k_ce_send_revert()
347 src_ring->write_index &= src_ring->nentries_mask; in __ath10k_ce_send_revert()
349 src_ring->per_transfer_context[src_ring->write_index] = NULL; in __ath10k_ce_send_revert()
379 pipe->src_ring->write_index, in ath10k_ce_num_free_src_entries()
392 unsigned int write_index = dest_ring->write_index; in __ath10k_ce_rx_num_free_bufs() local
397 return CE_RING_DELTA(nentries_mask, write_index, sw_index - 1); in __ath10k_ce_rx_num_free_bufs()
406 unsigned int write_index = dest_ring->write_index; in __ath10k_ce_rx_post_buf() local
409 struct ce_desc *desc = CE_DEST_RING_TO_DESC(base, write_index); in __ath10k_ce_rx_post_buf()
414 if (CE_RING_DELTA(nentries_mask, write_index, sw_index - 1) == 0) in __ath10k_ce_rx_post_buf()
420 dest_ring->per_transfer_context[write_index] = ctx; in __ath10k_ce_rx_post_buf()
421 write_index = CE_RING_IDX_INCR(nentries_mask, write_index); in __ath10k_ce_rx_post_buf()
422 ath10k_ce_dest_ring_write_index_set(ar, ctrl_addr, write_index); in __ath10k_ce_rx_post_buf()
423 dest_ring->write_index = write_index; in __ath10k_ce_rx_post_buf()
530 unsigned int write_index; in ath10k_ce_revoke_recv_next() local
547 write_index = dest_ring->write_index; in ath10k_ce_revoke_recv_next()
548 if (write_index != sw_index) { in ath10k_ce_revoke_recv_next()
636 unsigned int write_index; in ath10k_ce_cancel_send_next() local
653 write_index = src_ring->write_index; in ath10k_ce_cancel_send_next()
655 if (write_index != sw_index) { in ath10k_ce_cancel_send_next()
828 src_ring->write_index = in ath10k_ce_init_src_ring()
830 src_ring->write_index &= src_ring->nentries_mask; in ath10k_ce_init_src_ring()
863 dest_ring->write_index = in ath10k_ce_init_dest_ring()
865 dest_ring->write_index &= dest_ring->nentries_mask; in ath10k_ce_init_dest_ring()