Lines Matching refs:nsegs
364 int nsegs, bool writing, in rpcrdma_mr_prepare() argument
377 return frwr_map(r_xprt, seg, nsegs, writing, req->rl_slot.rq_xid, *mr); in rpcrdma_mr_prepare()
410 int nsegs; in rpcrdma_encode_read_list() local
419 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_snd_buf, pos, in rpcrdma_encode_read_list()
421 if (nsegs < 0) in rpcrdma_encode_read_list()
422 return nsegs; in rpcrdma_encode_read_list()
425 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, false, &mr); in rpcrdma_encode_read_list()
432 trace_xprtrdma_chunk_read(rqst->rq_task, pos, mr, nsegs); in rpcrdma_encode_read_list()
434 nsegs -= mr->mr_nents; in rpcrdma_encode_read_list()
435 } while (nsegs); in rpcrdma_encode_read_list()
464 int nsegs, nchunks; in rpcrdma_encode_write_list() local
471 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_rcv_buf, in rpcrdma_encode_write_list()
474 if (nsegs < 0) in rpcrdma_encode_write_list()
475 return nsegs; in rpcrdma_encode_write_list()
486 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, true, &mr); in rpcrdma_encode_write_list()
493 trace_xprtrdma_chunk_write(rqst->rq_task, mr, nsegs); in rpcrdma_encode_write_list()
497 nsegs -= mr->mr_nents; in rpcrdma_encode_write_list()
498 } while (nsegs); in rpcrdma_encode_write_list()
527 int nsegs, nchunks; in rpcrdma_encode_reply_chunk() local
534 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_rcv_buf, 0, wtype, seg); in rpcrdma_encode_reply_chunk()
535 if (nsegs < 0) in rpcrdma_encode_reply_chunk()
536 return nsegs; in rpcrdma_encode_reply_chunk()
547 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, true, &mr); in rpcrdma_encode_reply_chunk()
554 trace_xprtrdma_chunk_reply(rqst->rq_task, mr, nsegs); in rpcrdma_encode_reply_chunk()
558 nsegs -= mr->mr_nents; in rpcrdma_encode_reply_chunk()
559 } while (nsegs); in rpcrdma_encode_reply_chunk()