Lines Matching refs:sw_index
325 unsigned int sw_index; in ath12k_ce_completed_recv_next() local
331 sw_index = pipe->dest_ring->sw_index; in ath12k_ce_completed_recv_next()
352 *skb = pipe->dest_ring->skb[sw_index]; in ath12k_ce_completed_recv_next()
353 pipe->dest_ring->skb[sw_index] = NULL; in ath12k_ce_completed_recv_next()
355 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ath12k_ce_completed_recv_next()
356 pipe->dest_ring->sw_index = sw_index; in ath12k_ce_completed_recv_next()
414 unsigned int sw_index; in ath12k_ce_completed_send_next() local
420 sw_index = pipe->src_ring->sw_index; in ath12k_ce_completed_send_next()
435 skb = pipe->src_ring->skb[sw_index]; in ath12k_ce_completed_send_next()
437 pipe->src_ring->skb[sw_index] = NULL; in ath12k_ce_completed_send_next()
439 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ath12k_ce_completed_send_next()
440 pipe->src_ring->sw_index = sw_index; in ath12k_ce_completed_send_next()
644 unsigned int write_index, sw_index; in ath12k_ce_send() local
658 sw_index = pipe->src_ring->sw_index; in ath12k_ce_send()
660 if (write_index >= sw_index) in ath12k_ce_send()
661 num_used = write_index - sw_index; in ath12k_ce_send()
663 num_used = pipe->src_ring->nentries - sw_index + in ath12k_ce_send()
848 pipe->src_ring->sw_index = 0; in ath12k_ce_init_pipes()
865 pipe->dest_ring->sw_index = 0; in ath12k_ce_init_pipes()
879 pipe->status_ring->sw_index = 0; in ath12k_ce_init_pipes()