Lines Matching refs:nsegs

310 						 int nsegs, bool writing,  in rpcrdma_mr_prepare()  argument
323 return frwr_map(r_xprt, seg, nsegs, writing, req->rl_slot.rq_xid, *mr); in rpcrdma_mr_prepare()
355 int nsegs; in rpcrdma_encode_read_list() local
364 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_snd_buf, pos, in rpcrdma_encode_read_list()
366 if (nsegs < 0) in rpcrdma_encode_read_list()
367 return nsegs; in rpcrdma_encode_read_list()
370 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, false, &mr); in rpcrdma_encode_read_list()
377 trace_xprtrdma_chunk_read(rqst->rq_task, pos, mr, nsegs); in rpcrdma_encode_read_list()
379 nsegs -= mr->mr_nents; in rpcrdma_encode_read_list()
380 } while (nsegs); in rpcrdma_encode_read_list()
411 int nsegs, nchunks; in rpcrdma_encode_write_list() local
418 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_rcv_buf, in rpcrdma_encode_write_list()
421 if (nsegs < 0) in rpcrdma_encode_write_list()
422 return nsegs; in rpcrdma_encode_write_list()
433 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, true, &mr); in rpcrdma_encode_write_list()
440 trace_xprtrdma_chunk_write(rqst->rq_task, mr, nsegs); in rpcrdma_encode_write_list()
444 nsegs -= mr->mr_nents; in rpcrdma_encode_write_list()
445 } while (nsegs); in rpcrdma_encode_write_list()
476 int nsegs, nchunks; in rpcrdma_encode_reply_chunk() local
486 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_rcv_buf, 0, wtype, seg); in rpcrdma_encode_reply_chunk()
487 if (nsegs < 0) in rpcrdma_encode_reply_chunk()
488 return nsegs; in rpcrdma_encode_reply_chunk()
499 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, true, &mr); in rpcrdma_encode_reply_chunk()
506 trace_xprtrdma_chunk_reply(rqst->rq_task, mr, nsegs); in rpcrdma_encode_reply_chunk()
510 nsegs -= mr->mr_nents; in rpcrdma_encode_reply_chunk()
511 } while (nsegs); in rpcrdma_encode_reply_chunk()