Lines Matching refs:n_rdma
1055 BUG_ON(ioctx->n_rdma && !ioctx->rdma_ius); in srpt_unmap_sg_to_ib_sge()
1057 while (ioctx->n_rdma) in srpt_unmap_sg_to_ib_sge()
1058 kfree(ioctx->rdma_ius[--ioctx->n_rdma].sge); in srpt_unmap_sg_to_ib_sge()
1171 ++ioctx->n_rdma; in srpt_map_sg_to_ib_sge()
1185 ++ioctx->n_rdma; in srpt_map_sg_to_ib_sge()
1279 ioctx->n_rdma = 0; in srpt_get_send_ioctx()
1448 WARN_ON(ioctx->n_rdma <= 0); in srpt_handle_rdma_comp()
1449 atomic_add(ioctx->n_rdma, &ch->sq_wr_avail); in srpt_handle_rdma_comp()
1477 if (ioctx->n_rdma <= 0) { in srpt_handle_rdma_err_comp()
1483 atomic_add(ioctx->n_rdma, &ch->sq_wr_avail); in srpt_handle_rdma_err_comp()
2774 const int n_rdma = ioctx->n_rdma; in srpt_perform_rdmas() local
2780 sq_wr_avail = atomic_sub_return(n_rdma, &ch->sq_wr_avail); in srpt_perform_rdmas()
2783 n_rdma); in srpt_perform_rdmas()
2793 for (i = 0; i < n_rdma; ++i, ++riu) { in srpt_perform_rdmas()
2796 wr.wr.wr_id = encode_wr_id(i == n_rdma - 1 ? in srpt_perform_rdmas()
2802 wr.wr.wr_id = encode_wr_id(i == n_rdma - 1 ? in srpt_perform_rdmas()
2814 if (i == (n_rdma - 1) && dir == DMA_TO_DEVICE) in srpt_perform_rdmas()
2824 __func__, __LINE__, ret, i, n_rdma); in srpt_perform_rdmas()
2843 atomic_add(n_rdma, &ch->sq_wr_avail); in srpt_perform_rdmas()