Lines Matching refs:nsegs
1484 int *nsegs, int writing, struct rpcrdma_ia *ia, in rpcrdma_register_frmr_external() argument
1501 if (*nsegs > RPCRDMA_MAX_DATA_SEGS) in rpcrdma_register_frmr_external()
1502 *nsegs = RPCRDMA_MAX_DATA_SEGS; in rpcrdma_register_frmr_external()
1503 for (page_no = i = 0; i < *nsegs;) { in rpcrdma_register_frmr_external()
1515 if ((i < *nsegs && offset_in_page(seg->mr_offset)) || in rpcrdma_register_frmr_external()
1573 *nsegs = i; in rpcrdma_register_frmr_external()
1604 int *nsegs, int writing, struct rpcrdma_ia *ia) in rpcrdma_register_fmr_external() argument
1614 if (*nsegs > RPCRDMA_MAX_DATA_SEGS) in rpcrdma_register_fmr_external()
1615 *nsegs = RPCRDMA_MAX_DATA_SEGS; in rpcrdma_register_fmr_external()
1616 for (i = 0; i < *nsegs;) { in rpcrdma_register_fmr_external()
1623 if ((i < *nsegs && offset_in_page(seg->mr_offset)) || in rpcrdma_register_fmr_external()
1642 *nsegs = i; in rpcrdma_register_fmr_external()
1666 int *nsegs, int writing, struct rpcrdma_ia *ia, in rpcrdma_register_memwin_external() argument
1674 *nsegs = 1; in rpcrdma_register_memwin_external()
1734 int *nsegs, int writing, struct rpcrdma_ia *ia) in rpcrdma_register_default_external() argument
1742 if (*nsegs > RPCRDMA_MAX_DATA_SEGS) in rpcrdma_register_default_external()
1743 *nsegs = RPCRDMA_MAX_DATA_SEGS; in rpcrdma_register_default_external()
1744 for (len = 0, i = 0; i < *nsegs;) { in rpcrdma_register_default_external()
1752 if ((i < *nsegs && offset_in_page(seg->mr_offset)) || in rpcrdma_register_default_external()
1772 *nsegs = i; in rpcrdma_register_default_external()
1795 int nsegs, int writing, struct rpcrdma_xprt *r_xprt) in rpcrdma_register_external() argument
1808 nsegs = 1; in rpcrdma_register_external()
1814 rc = rpcrdma_register_frmr_external(seg, &nsegs, writing, ia, r_xprt); in rpcrdma_register_external()
1819 rc = rpcrdma_register_fmr_external(seg, &nsegs, writing, ia); in rpcrdma_register_external()
1825 rc = rpcrdma_register_memwin_external(seg, &nsegs, writing, ia, r_xprt); in rpcrdma_register_external()
1830 rc = rpcrdma_register_default_external(seg, &nsegs, writing, ia); in rpcrdma_register_external()
1836 return nsegs; in rpcrdma_register_external()
1844 int nsegs = seg->mr_nsegs, rc; in rpcrdma_deregister_external() local
1850 BUG_ON(nsegs != 1); in rpcrdma_deregister_external()
1879 return nsegs; in rpcrdma_deregister_external()