Searched refs:sge_no (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.4/net/sunrpc/xprtrdma/ |
D | rpc_rdma.c | 619 unsigned int sge_no, page_base, len, remaining; in rpcrdma_prepare_msg_sges() local 630 sge_no = 1; in rpcrdma_prepare_msg_sges() 631 sge[sge_no].addr = rdmab_addr(rb); in rpcrdma_prepare_msg_sges() 632 sge[sge_no].length = xdr->head[0].iov_len; in rpcrdma_prepare_msg_sges() 633 sge[sge_no].lkey = rdmab_lkey(rb); in rpcrdma_prepare_msg_sges() 634 ib_dma_sync_single_for_device(rdmab_device(rb), sge[sge_no].addr, in rpcrdma_prepare_msg_sges() 635 sge[sge_no].length, DMA_TO_DEVICE); in rpcrdma_prepare_msg_sges() 671 sge_no++; in rpcrdma_prepare_msg_sges() 672 if (sge_no > RPCRDMA_MAX_SEND_SGES - 2) in rpcrdma_prepare_msg_sges() 676 sge[sge_no].addr = in rpcrdma_prepare_msg_sges() [all …]
|
D | svc_rdma_rw.c | 371 unsigned int sge_no, sge_bytes, page_off, page_no; in svc_rdma_pagelist_to_sg() local 382 sge_no = 0; in svc_rdma_pagelist_to_sg() 391 sge_no++; in svc_rdma_pagelist_to_sg() 395 ctxt->rw_nents = sge_no; in svc_rdma_pagelist_to_sg() 606 unsigned int sge_no, seg_len; in svc_rdma_build_read_segment() local 610 sge_no = PAGE_ALIGN(info->ri_pageoff + len) >> PAGE_SHIFT; in svc_rdma_build_read_segment() 611 ctxt = svc_rdma_get_rw_ctxt(cc->cc_rdma, sge_no); in svc_rdma_build_read_segment() 614 ctxt->rw_nents = sge_no; in svc_rdma_build_read_segment() 617 for (sge_no = 0; sge_no < ctxt->rw_nents; sge_no++) { in svc_rdma_build_read_segment()
|