Lines Matching refs:write_index
500 unsigned int write_index = src_ring->write_index; in _ath10k_ce_send_nolock() local
510 write_index, sw_index - 1) <= 0)) { in _ath10k_ce_send_nolock()
516 write_index); in _ath10k_ce_send_nolock()
531 src_ring->per_transfer_context[write_index] = per_transfer_context; in _ath10k_ce_send_nolock()
534 write_index = CE_RING_IDX_INCR(nentries_mask, write_index); in _ath10k_ce_send_nolock()
538 ath10k_ce_src_ring_write_index_set(ar, ctrl_addr, write_index); in _ath10k_ce_send_nolock()
540 src_ring->write_index = write_index; in _ath10k_ce_send_nolock()
557 unsigned int write_index = src_ring->write_index; in _ath10k_ce_send_nolock_64() local
576 write_index, sw_index - 1) <= 0)) { in _ath10k_ce_send_nolock_64()
582 write_index); in _ath10k_ce_send_nolock_64()
607 src_ring->per_transfer_context[write_index] = per_transfer_context; in _ath10k_ce_send_nolock_64()
610 write_index = CE_RING_IDX_INCR(nentries_mask, write_index); in _ath10k_ce_send_nolock_64()
615 write_index); in _ath10k_ce_send_nolock_64()
618 write_index); in _ath10k_ce_send_nolock_64()
621 src_ring->write_index = write_index; in _ath10k_ce_send_nolock_64()
652 if (WARN_ON_ONCE(src_ring->write_index == src_ring->sw_index)) in __ath10k_ce_send_revert()
655 if (WARN_ON_ONCE(src_ring->write_index == in __ath10k_ce_send_revert()
659 src_ring->write_index--; in __ath10k_ce_send_revert()
660 src_ring->write_index &= src_ring->nentries_mask; in __ath10k_ce_send_revert()
662 src_ring->per_transfer_context[src_ring->write_index] = NULL; in __ath10k_ce_send_revert()
694 pipe->src_ring->write_index, in ath10k_ce_num_free_src_entries()
708 unsigned int write_index = dest_ring->write_index; in __ath10k_ce_rx_num_free_bufs() local
713 return CE_RING_DELTA(nentries_mask, write_index, sw_index - 1); in __ath10k_ce_rx_num_free_bufs()
724 unsigned int write_index = dest_ring->write_index; in __ath10k_ce_rx_post_buf() local
727 struct ce_desc *desc = CE_DEST_RING_TO_DESC(base, write_index); in __ath10k_ce_rx_post_buf()
733 CE_RING_DELTA(nentries_mask, write_index, sw_index - 1) == 0) in __ath10k_ce_rx_post_buf()
739 dest_ring->per_transfer_context[write_index] = ctx; in __ath10k_ce_rx_post_buf()
740 write_index = CE_RING_IDX_INCR(nentries_mask, write_index); in __ath10k_ce_rx_post_buf()
741 ath10k_ce_dest_ring_write_index_set(ar, ctrl_addr, write_index); in __ath10k_ce_rx_post_buf()
742 dest_ring->write_index = write_index; in __ath10k_ce_rx_post_buf()
755 unsigned int write_index = dest_ring->write_index; in __ath10k_ce_rx_post_buf_64() local
759 CE_DEST_RING_TO_DESC_64(base, write_index); in __ath10k_ce_rx_post_buf_64()
764 if (CE_RING_DELTA(nentries_mask, write_index, sw_index - 1) == 0) in __ath10k_ce_rx_post_buf_64()
772 dest_ring->per_transfer_context[write_index] = ctx; in __ath10k_ce_rx_post_buf_64()
773 write_index = CE_RING_IDX_INCR(nentries_mask, write_index); in __ath10k_ce_rx_post_buf_64()
774 ath10k_ce_dest_ring_write_index_set(ar, ctrl_addr, write_index); in __ath10k_ce_rx_post_buf_64()
775 dest_ring->write_index = write_index; in __ath10k_ce_rx_post_buf_64()
785 unsigned int write_index = dest_ring->write_index; in ath10k_ce_rx_update_write_idx() local
795 write_index = CE_RING_IDX_ADD(nentries_mask, write_index, nentries); in ath10k_ce_rx_update_write_idx()
796 ath10k_ce_dest_ring_write_index_set(ar, ctrl_addr, write_index); in ath10k_ce_rx_update_write_idx()
797 dest_ring->write_index = write_index; in ath10k_ce_rx_update_write_idx()
955 unsigned int write_index; in _ath10k_ce_revoke_recv_next() local
972 write_index = dest_ring->write_index; in _ath10k_ce_revoke_recv_next()
973 if (write_index != sw_index) { in _ath10k_ce_revoke_recv_next()
1008 unsigned int write_index; in _ath10k_ce_revoke_recv_next_64() local
1025 write_index = dest_ring->write_index; in _ath10k_ce_revoke_recv_next_64()
1026 if (write_index != sw_index) { in _ath10k_ce_revoke_recv_next_64()
1228 unsigned int write_index; in ath10k_ce_cancel_send_next() local
1245 write_index = src_ring->write_index; in ath10k_ce_cancel_send_next()
1247 if (write_index != sw_index) { in ath10k_ce_cancel_send_next()
1444 src_ring->write_index = in ath10k_ce_init_src_ring()
1446 src_ring->write_index &= src_ring->nentries_mask; in ath10k_ce_init_src_ring()
1483 dest_ring->write_index = in ath10k_ce_init_dest_ring()
1485 dest_ring->write_index &= dest_ring->nentries_mask; in ath10k_ce_init_dest_ring()