Lines Matching refs:nentries_mask

431 	unsigned int nentries_mask = src_ring->nentries_mask;  in _ath10k_ce_send_nolock()  local
442 if (unlikely(CE_RING_DELTA(nentries_mask, in _ath10k_ce_send_nolock()
467 write_index = CE_RING_IDX_INCR(nentries_mask, write_index); in _ath10k_ce_send_nolock()
488 unsigned int nentries_mask = src_ring->nentries_mask; in _ath10k_ce_send_nolock_64() local
508 if (unlikely(CE_RING_DELTA(nentries_mask, in _ath10k_ce_send_nolock_64()
543 write_index = CE_RING_IDX_INCR(nentries_mask, write_index); in _ath10k_ce_send_nolock_64()
593 src_ring->write_index &= src_ring->nentries_mask; in __ath10k_ce_send_revert()
626 delta = CE_RING_DELTA(pipe->src_ring->nentries_mask, in ath10k_ce_num_free_src_entries()
640 unsigned int nentries_mask = dest_ring->nentries_mask; in __ath10k_ce_rx_num_free_bufs() local
646 return CE_RING_DELTA(nentries_mask, write_index, sw_index - 1); in __ath10k_ce_rx_num_free_bufs()
656 unsigned int nentries_mask = dest_ring->nentries_mask; in __ath10k_ce_rx_post_buf() local
666 CE_RING_DELTA(nentries_mask, write_index, sw_index - 1) == 0) in __ath10k_ce_rx_post_buf()
673 write_index = CE_RING_IDX_INCR(nentries_mask, write_index); in __ath10k_ce_rx_post_buf()
687 unsigned int nentries_mask = dest_ring->nentries_mask; in __ath10k_ce_rx_post_buf_64() local
697 if (CE_RING_DELTA(nentries_mask, write_index, sw_index - 1) == 0) in __ath10k_ce_rx_post_buf_64()
706 write_index = CE_RING_IDX_INCR(nentries_mask, write_index); in __ath10k_ce_rx_post_buf_64()
717 unsigned int nentries_mask = dest_ring->nentries_mask; in ath10k_ce_rx_update_write_idx() local
725 if (((cur_write_idx + nentries) & nentries_mask) == dest_ring->sw_index) in ath10k_ce_rx_update_write_idx()
728 write_index = CE_RING_IDX_ADD(nentries_mask, write_index, nentries); in ath10k_ce_rx_update_write_idx()
759 unsigned int nentries_mask = dest_ring->nentries_mask; in _ath10k_ce_completed_recv_next_nolock() local
797 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in _ath10k_ce_completed_recv_next_nolock()
809 unsigned int nentries_mask = dest_ring->nentries_mask; in _ath10k_ce_completed_recv_next_nolock_64() local
846 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in _ath10k_ce_completed_recv_next_nolock_64()
886 unsigned int nentries_mask; in _ath10k_ce_revoke_recv_next() local
903 nentries_mask = dest_ring->nentries_mask; in _ath10k_ce_revoke_recv_next()
922 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in _ath10k_ce_revoke_recv_next()
939 unsigned int nentries_mask; in _ath10k_ce_revoke_recv_next_64() local
956 nentries_mask = dest_ring->nentries_mask; in _ath10k_ce_revoke_recv_next_64()
976 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in _ath10k_ce_revoke_recv_next_64()
1008 unsigned int nentries_mask = src_ring->nentries_mask; in _ath10k_ce_completed_send_next_nolock() local
1026 read_index &= nentries_mask; in _ath10k_ce_completed_send_next_nolock()
1049 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in _ath10k_ce_completed_send_next_nolock()
1061 unsigned int nentries_mask = src_ring->nentries_mask; in _ath10k_ce_completed_send_next_nolock_64() local
1079 read_index &= nentries_mask; in _ath10k_ce_completed_send_next_nolock_64()
1102 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in _ath10k_ce_completed_send_next_nolock_64()
1159 unsigned int nentries_mask; in ath10k_ce_cancel_send_next() local
1176 nentries_mask = src_ring->nentries_mask; in ath10k_ce_cancel_send_next()
1193 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ath10k_ce_cancel_send_next()
1374 src_ring->sw_index &= src_ring->nentries_mask; in ath10k_ce_init_src_ring()
1379 src_ring->write_index &= src_ring->nentries_mask; in ath10k_ce_init_src_ring()
1415 dest_ring->sw_index &= dest_ring->nentries_mask; in ath10k_ce_init_dest_ring()
1418 dest_ring->write_index &= dest_ring->nentries_mask; in ath10k_ce_init_dest_ring()
1467 src_ring->nentries_mask = nentries - 1; in ath10k_ce_alloc_src_ring()
1525 src_ring->nentries_mask = nentries - 1; in ath10k_ce_alloc_src_ring_64()
1581 dest_ring->nentries_mask = nentries - 1; in ath10k_ce_alloc_dest_ring()
1625 dest_ring->nentries_mask = nentries - 1; in ath10k_ce_alloc_dest_ring_64()