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()
170 for (i = 0, send = ic->i_sends; i < ic->i_send_ring.w_nr; i++, send++) { in rds_iw_send_clear_ring()
233 oldest = rds_iw_ring_oldest(&ic->i_send_ring); in rds_iw_send_cq_comp_handler()
235 completed = rds_iw_ring_completed(&ic->i_send_ring, wc.wr_id, oldest); in rds_iw_send_cq_comp_handler()
277 oldest = (oldest + 1) % ic->i_send_ring.w_nr; in rds_iw_send_cq_comp_handler()
280 rds_iw_ring_free(&ic->i_send_ring, completed); in rds_iw_send_cq_comp_handler()
524 work_alloc = rds_iw_ring_alloc(&ic->i_send_ring, i, &pos); in rds_iw_xmit()
537 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc - credit_alloc); in rds_iw_xmit()
565 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_iw_xmit()
719 pos = (pos + 1) % ic->i_send_ring.w_nr; in rds_iw_xmit()
735 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc - i); in rds_iw_xmit()
750 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_iw_xmit()
825 work_alloc = rds_iw_ring_alloc(&ic->i_send_ring, 1, &fr_pos); in rds_iw_xmit_rdma()
827 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_iw_xmit_rdma()
840 work_alloc = rds_iw_ring_alloc(&ic->i_send_ring, i, &pos); in rds_iw_xmit_rdma()
842 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_iw_xmit_rdma()
929 if (++send == &ic->i_sends[ic->i_send_ring.w_nr]) in rds_iw_xmit_rdma()
938 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc - i); in rds_iw_xmit_rdma()
966 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_iw_xmit_rdma()