Lines Matching refs:nsegs

298 						 int nsegs, bool writing,  in rpcrdma_mr_prepare()  argument
310 return frwr_map(r_xprt, seg, nsegs, writing, req->rl_slot.rq_xid, *mr); in rpcrdma_mr_prepare()
342 int nsegs; in rpcrdma_encode_read_list() local
351 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_snd_buf, pos, in rpcrdma_encode_read_list()
353 if (nsegs < 0) in rpcrdma_encode_read_list()
354 return nsegs; in rpcrdma_encode_read_list()
357 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, false, &mr); in rpcrdma_encode_read_list()
364 trace_xprtrdma_chunk_read(rqst->rq_task, pos, mr, nsegs); in rpcrdma_encode_read_list()
366 nsegs -= mr->mr_nents; in rpcrdma_encode_read_list()
367 } while (nsegs); in rpcrdma_encode_read_list()
399 int nsegs, nchunks; in rpcrdma_encode_write_list() local
406 nsegs = rpcrdma_convert_iovs(r_xprt, &rqst->rq_rcv_buf, in rpcrdma_encode_write_list()
409 if (nsegs < 0) in rpcrdma_encode_write_list()
410 return nsegs; in rpcrdma_encode_write_list()
421 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, true, &mr); in rpcrdma_encode_write_list()
428 trace_xprtrdma_chunk_write(rqst->rq_task, mr, nsegs); in rpcrdma_encode_write_list()
432 nsegs -= mr->mr_nents; in rpcrdma_encode_write_list()
433 } while (nsegs); in rpcrdma_encode_write_list()
440 nsegs); in rpcrdma_encode_write_list()
444 nsegs -= mr->mr_nents; 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()