Lines Matching refs:n_rdma
1056 BUG_ON(ioctx->n_rdma && !ioctx->rdma_ius); in srpt_unmap_sg_to_ib_sge()
1058 while (ioctx->n_rdma) in srpt_unmap_sg_to_ib_sge()
1059 kfree(ioctx->rdma_ius[--ioctx->n_rdma].sge); in srpt_unmap_sg_to_ib_sge()
1172 ++ioctx->n_rdma; in srpt_map_sg_to_ib_sge()
1186 ++ioctx->n_rdma; in srpt_map_sg_to_ib_sge()
1280 ioctx->n_rdma = 0; in srpt_get_send_ioctx()
1451 WARN_ON(ioctx->n_rdma <= 0); in srpt_handle_rdma_comp()
1452 atomic_add(ioctx->n_rdma, &ch->sq_wr_avail); in srpt_handle_rdma_comp()
1482 if (ioctx->n_rdma <= 0) { in srpt_handle_rdma_err_comp()
1488 atomic_add(ioctx->n_rdma, &ch->sq_wr_avail); in srpt_handle_rdma_err_comp()
2781 const int n_rdma = ioctx->n_rdma; in srpt_perform_rdmas() local
2787 sq_wr_avail = atomic_sub_return(n_rdma, &ch->sq_wr_avail); in srpt_perform_rdmas()
2790 n_rdma); in srpt_perform_rdmas()
2800 for (i = 0; i < n_rdma; ++i, ++riu) { in srpt_perform_rdmas()
2803 wr.wr_id = encode_wr_id(i == n_rdma - 1 ? in srpt_perform_rdmas()
2809 wr.wr_id = encode_wr_id(i == n_rdma - 1 ? in srpt_perform_rdmas()
2821 if (i == (n_rdma - 1) && dir == DMA_TO_DEVICE) in srpt_perform_rdmas()
2831 __func__, __LINE__, ret, i, n_rdma); in srpt_perform_rdmas()
2850 atomic_add(n_rdma, &ch->sq_wr_avail); in srpt_perform_rdmas()