Lines Matching refs:sw_index
313 unsigned int sw_index; in ath11k_ce_completed_recv_next() local
320 sw_index = pipe->dest_ring->sw_index; in ath11k_ce_completed_recv_next()
341 *skb = pipe->dest_ring->skb[sw_index]; in ath11k_ce_completed_recv_next()
342 pipe->dest_ring->skb[sw_index] = NULL; in ath11k_ce_completed_recv_next()
344 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ath11k_ce_completed_recv_next()
345 pipe->dest_ring->sw_index = sw_index; in ath11k_ce_completed_recv_next()
402 unsigned int sw_index; in ath11k_ce_completed_send_next() local
409 sw_index = pipe->src_ring->sw_index; in ath11k_ce_completed_send_next()
424 skb = pipe->src_ring->skb[sw_index]; in ath11k_ce_completed_send_next()
426 pipe->src_ring->skb[sw_index] = NULL; in ath11k_ce_completed_send_next()
428 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ath11k_ce_completed_send_next()
429 pipe->src_ring->sw_index = sw_index; in ath11k_ce_completed_send_next()
639 unsigned int write_index, sw_index; in ath11k_ce_send() local
653 sw_index = pipe->src_ring->sw_index; in ath11k_ce_send()
655 if (write_index >= sw_index) in ath11k_ce_send()
656 num_used = write_index - sw_index; in ath11k_ce_send()
658 num_used = pipe->src_ring->nentries - sw_index + in ath11k_ce_send()
861 pipe->src_ring->sw_index = 0; in ath11k_ce_init_pipes()
878 pipe->dest_ring->sw_index = 0; in ath11k_ce_init_pipes()
892 pipe->status_ring->sw_index = 0; in ath11k_ce_init_pipes()