Lines Matching refs:nsegs

302 						 int nsegs, bool writing,  in rpcrdma_mr_prepare()  argument
314 return frwr_map(r_xprt, seg, nsegs, writing, req->rl_slot.rq_xid, *mr); in rpcrdma_mr_prepare()
346 int nsegs; in rpcrdma_encode_read_list() local
355 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_snd_buf, pos, in rpcrdma_encode_read_list()
357 if (nsegs < 0) in rpcrdma_encode_read_list()
358 return nsegs; in rpcrdma_encode_read_list()
361 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, false, &mr); in rpcrdma_encode_read_list()
368 trace_xprtrdma_chunk_read(rqst->rq_task, pos, mr, nsegs); in rpcrdma_encode_read_list()
370 nsegs -= mr->mr_nents; in rpcrdma_encode_read_list()
371 } while (nsegs); in rpcrdma_encode_read_list()
403 int nsegs, nchunks; in rpcrdma_encode_write_list() local
410 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_rcv_buf, in rpcrdma_encode_write_list()
413 if (nsegs < 0) in rpcrdma_encode_write_list()
414 return nsegs; in rpcrdma_encode_write_list()
425 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, true, &mr); in rpcrdma_encode_write_list()
432 trace_xprtrdma_chunk_write(rqst->rq_task, mr, nsegs); in rpcrdma_encode_write_list()
436 nsegs -= mr->mr_nents; in rpcrdma_encode_write_list()
437 } while (nsegs); in rpcrdma_encode_write_list()
444 nsegs); in rpcrdma_encode_write_list()
448 nsegs -= mr->mr_nents; in rpcrdma_encode_write_list()
480 int nsegs, nchunks; in rpcrdma_encode_reply_chunk() local
490 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_rcv_buf, 0, wtype, seg); in rpcrdma_encode_reply_chunk()
491 if (nsegs < 0) in rpcrdma_encode_reply_chunk()
492 return nsegs; in rpcrdma_encode_reply_chunk()
503 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, true, &mr); in rpcrdma_encode_reply_chunk()
510 trace_xprtrdma_chunk_reply(rqst->rq_task, mr, nsegs); in rpcrdma_encode_reply_chunk()
514 nsegs -= mr->mr_nents; in rpcrdma_encode_reply_chunk()
515 } while (nsegs); in rpcrdma_encode_reply_chunk()