Lines Matching refs:sw_index
366 unsigned int sw_index; in ath11k_ce_completed_recv_next() local
373 sw_index = pipe->dest_ring->sw_index; in ath11k_ce_completed_recv_next()
394 *skb = pipe->dest_ring->skb[sw_index]; in ath11k_ce_completed_recv_next()
395 pipe->dest_ring->skb[sw_index] = NULL; in ath11k_ce_completed_recv_next()
397 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ath11k_ce_completed_recv_next()
398 pipe->dest_ring->sw_index = sw_index; in ath11k_ce_completed_recv_next()
455 unsigned int sw_index; in ath11k_ce_completed_send_next() local
462 sw_index = pipe->src_ring->sw_index; in ath11k_ce_completed_send_next()
477 skb = pipe->src_ring->skb[sw_index]; in ath11k_ce_completed_send_next()
479 pipe->src_ring->skb[sw_index] = NULL; in ath11k_ce_completed_send_next()
481 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ath11k_ce_completed_send_next()
482 pipe->src_ring->sw_index = sw_index; in ath11k_ce_completed_send_next()
693 unsigned int write_index, sw_index; in ath11k_ce_send() local
707 sw_index = pipe->src_ring->sw_index; in ath11k_ce_send()
709 if (write_index >= sw_index) in ath11k_ce_send()
710 num_used = write_index - sw_index; in ath11k_ce_send()
712 num_used = pipe->src_ring->nentries - sw_index + in ath11k_ce_send()
915 pipe->src_ring->sw_index = 0; in ath11k_ce_init_pipes()
932 pipe->dest_ring->sw_index = 0; in ath11k_ce_init_pipes()
946 pipe->status_ring->sw_index = 0; in ath11k_ce_init_pipes()