Lines Matching refs:n_rdma
1057 BUG_ON(ioctx->n_rdma && !ioctx->rdma_ius);
1059 while (ioctx->n_rdma)
1060 kfree(ioctx->rdma_ius[--ioctx->n_rdma].sge);
1173 ++ioctx->n_rdma;
1187 ++ioctx->n_rdma;
1281 ioctx->n_rdma = 0;
1452 WARN_ON(ioctx->n_rdma <= 0);
1453 atomic_add(ioctx->n_rdma, &ch->sq_wr_avail);
1483 if (ioctx->n_rdma <= 0) {
1489 atomic_add(ioctx->n_rdma, &ch->sq_wr_avail);
2843 const int n_rdma = ioctx->n_rdma;
2849 sq_wr_avail = atomic_sub_return(n_rdma, &ch->sq_wr_avail);
2852 n_rdma);
2862 for (i = 0; i < n_rdma; ++i, ++riu) {
2865 wr.wr_id = encode_wr_id(i == n_rdma - 1 ?
2871 wr.wr_id = encode_wr_id(i == n_rdma - 1 ?
2883 if (i == (n_rdma - 1) && dir == DMA_TO_DEVICE)
2893 __func__, __LINE__, ret, i, n_rdma);
2912 atomic_add(n_rdma, &ch->sq_wr_avail);