Lines Matching refs:i_send_ring
133 for (i = 0, send = ic->i_sends; i < ic->i_send_ring.w_nr; i++, send++) { in rds_iw_send_init_ring()
176 for (i = 0, send = ic->i_sends; i < ic->i_send_ring.w_nr; i++, send++) { in rds_iw_send_clear_ring()
241 oldest = rds_iw_ring_oldest(&ic->i_send_ring); in rds_iw_send_cq_comp_handler()
243 completed = rds_iw_ring_completed(&ic->i_send_ring, wc.wr_id, oldest); in rds_iw_send_cq_comp_handler()
285 oldest = (oldest + 1) % ic->i_send_ring.w_nr; in rds_iw_send_cq_comp_handler()
288 rds_iw_ring_free(&ic->i_send_ring, completed); in rds_iw_send_cq_comp_handler()
532 work_alloc = rds_iw_ring_alloc(&ic->i_send_ring, i, &pos); in rds_iw_xmit()
545 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc - credit_alloc); in rds_iw_xmit()
573 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_iw_xmit()
723 pos = (pos + 1) % ic->i_send_ring.w_nr; in rds_iw_xmit()
739 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc - i); in rds_iw_xmit()
754 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_iw_xmit()
826 work_alloc = rds_iw_ring_alloc(&ic->i_send_ring, 1, &fr_pos); in rds_iw_xmit_rdma()
828 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_iw_xmit_rdma()
841 work_alloc = rds_iw_ring_alloc(&ic->i_send_ring, i, &pos); in rds_iw_xmit_rdma()
843 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_iw_xmit_rdma()
926 if (++send == &ic->i_sends[ic->i_send_ring.w_nr]) in rds_iw_xmit_rdma()
935 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc - i); in rds_iw_xmit_rdma()
959 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_iw_xmit_rdma()