Lines Matching refs:nsegs
326 int nsegs, bool writing, in rpcrdma_mr_prepare() argument
339 return frwr_map(r_xprt, seg, nsegs, writing, req->rl_slot.rq_xid, *mr); in rpcrdma_mr_prepare()
371 int nsegs; in rpcrdma_encode_read_list() local
380 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_snd_buf, pos, in rpcrdma_encode_read_list()
382 if (nsegs < 0) in rpcrdma_encode_read_list()
383 return nsegs; in rpcrdma_encode_read_list()
386 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, false, &mr); in rpcrdma_encode_read_list()
393 trace_xprtrdma_chunk_read(rqst->rq_task, pos, mr, nsegs); in rpcrdma_encode_read_list()
395 nsegs -= mr->mr_nents; in rpcrdma_encode_read_list()
396 } while (nsegs); in rpcrdma_encode_read_list()
427 int nsegs, nchunks; in rpcrdma_encode_write_list() local
434 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_rcv_buf, in rpcrdma_encode_write_list()
437 if (nsegs < 0) in rpcrdma_encode_write_list()
438 return nsegs; in rpcrdma_encode_write_list()
449 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, true, &mr); in rpcrdma_encode_write_list()
456 trace_xprtrdma_chunk_write(rqst->rq_task, mr, nsegs); in rpcrdma_encode_write_list()
460 nsegs -= mr->mr_nents; in rpcrdma_encode_write_list()
461 } while (nsegs); in rpcrdma_encode_write_list()
492 int nsegs, nchunks; in rpcrdma_encode_reply_chunk() local
502 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_rcv_buf, 0, wtype, seg); in rpcrdma_encode_reply_chunk()
503 if (nsegs < 0) in rpcrdma_encode_reply_chunk()
504 return nsegs; in rpcrdma_encode_reply_chunk()
515 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, true, &mr); in rpcrdma_encode_reply_chunk()
522 trace_xprtrdma_chunk_reply(rqst->rq_task, mr, nsegs); in rpcrdma_encode_reply_chunk()
526 nsegs -= mr->mr_nents; in rpcrdma_encode_reply_chunk()
527 } while (nsegs); in rpcrdma_encode_reply_chunk()