Lines Matching refs:sw_index
253 unsigned int sw_index; in ce_sendlist_send_srng() local
260 sw_index = src_ring->sw_index; in ce_sendlist_send_srng()
333 unsigned int sw_index; in ce_recv_buf_enqueue_srng() local
340 sw_index = dest_ring->sw_index; in ce_recv_buf_enqueue_srng()
449 unsigned int sw_index = dest_ring->sw_index; in ce_completed_recv_next_nolock_srng() local
514 dest_ring->per_transfer_context[sw_index]; in ce_completed_recv_next_nolock_srng()
516 dest_ring->per_transfer_context[sw_index] = 0; /* sanity */ in ce_completed_recv_next_nolock_srng()
519 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ce_completed_recv_next_nolock_srng()
520 dest_ring->sw_index = sw_index; in ce_completed_recv_next_nolock_srng()
528 per_transfer_context[sw_index], in ce_completed_recv_next_nolock_srng()
529 dest_ring->sw_index, nbytes, in ce_completed_recv_next_nolock_srng()
550 unsigned int sw_index; in ce_revoke_recv_next_srng() local
555 sw_index = dest_ring->sw_index; in ce_revoke_recv_next_srng()
566 dest_ring->per_transfer_context[sw_index]; in ce_revoke_recv_next_srng()
568 if (!dest_ring->per_transfer_context[sw_index]) in ce_revoke_recv_next_srng()
572 dest_ring->per_transfer_context[sw_index] = NULL; in ce_revoke_recv_next_srng()
575 sw_index = CE_RING_IDX_INCR(dest_ring->nentries_mask, sw_index); in ce_revoke_recv_next_srng()
576 dest_ring->sw_index = sw_index; in ce_revoke_recv_next_srng()
598 unsigned int sw_index = src_ring->sw_index; in ce_completed_send_next_nolock_srng() local
599 unsigned int swi = src_ring->sw_index; in ce_completed_send_next_nolock_srng()
633 src_ring->per_transfer_context[sw_index]; in ce_completed_send_next_nolock_srng()
635 src_ring->per_transfer_context[sw_index] = 0; /* sanity */ in ce_completed_send_next_nolock_srng()
638 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ce_completed_send_next_nolock_srng()
639 src_ring->sw_index = sw_index; in ce_completed_send_next_nolock_srng()
661 unsigned int sw_index; in ce_cancel_send_next_srng() local
671 sw_index = src_ring->sw_index; in ce_cancel_send_next_srng()
697 src_ring->per_transfer_context[sw_index]; in ce_cancel_send_next_srng()
699 src_ring->per_transfer_context[sw_index] = 0; /* sanity */ in ce_cancel_send_next_srng()
702 sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); in ce_cancel_send_next_srng()
703 src_ring->sw_index = sw_index; in ce_cancel_send_next_srng()