Lines Matching refs:sge_no
76 int sge_no; in fast_reg_xdr() local
90 sge_no = 1; in fast_reg_xdr()
94 vec->sge[sge_no].iov_base = xdr->head[0].iov_base; in fast_reg_xdr()
95 vec->sge[sge_no].iov_len = xdr->head[0].iov_len; in fast_reg_xdr()
97 sge_no++; in fast_reg_xdr()
124 vec->sge[sge_no].iov_base = frva + frmr->map_len + page_off; in fast_reg_xdr()
125 vec->sge[sge_no].iov_len = page_bytes; in fast_reg_xdr()
126 sge_no++; in fast_reg_xdr()
155 vec->sge[sge_no].iov_len = xdr->tail[0].iov_len; in fast_reg_xdr()
163 vec->sge[sge_no].iov_base = xdr->tail[0].iov_base; in fast_reg_xdr()
170 vec->sge[sge_no].iov_base = frva + frmr->map_len + page_off; in fast_reg_xdr()
202 int sge_no; in map_xdr() local
215 sge_no = 1; in map_xdr()
218 vec->sge[sge_no].iov_base = xdr->head[0].iov_base; in map_xdr()
219 vec->sge[sge_no].iov_len = xdr->head[0].iov_len; in map_xdr()
220 sge_no++; in map_xdr()
227 vec->sge[sge_no].iov_base = in map_xdr()
231 vec->sge[sge_no].iov_len = sge_bytes; in map_xdr()
233 sge_no++; in map_xdr()
240 vec->sge[sge_no].iov_base = xdr->tail[0].iov_base; in map_xdr()
241 vec->sge[sge_no].iov_len = xdr->tail[0].iov_len; in map_xdr()
242 sge_no++; in map_xdr()
247 sge_no, page_no, xdr->page_base, xdr->page_len, in map_xdr()
250 vec->count = sge_no; in map_xdr()
296 int sge_no; in send_write() local
322 sge_no = 0; in send_write()
328 sge[sge_no].length = sge_bytes; in send_write()
330 sge[sge_no].addr = in send_write()
335 sge[sge_no].addr)) in send_write()
338 sge[sge_no].lkey = xprt->sc_dma_lkey; in send_write()
340 sge[sge_no].addr = (unsigned long) in send_write()
342 sge[sge_no].lkey = vec->frmr->mr->lkey; in send_write()
347 sge_no++; in send_write()
358 write_wr.num_sge = sge_no; in send_write()
548 int sge_no; in send_reply() local
587 for (sge_no = 1; byte_count && sge_no < vec->count; sge_no++) { in send_reply()
589 sge_bytes = min_t(size_t, vec->sge[sge_no].iov_len, byte_count); in send_reply()
592 ctxt->sge[sge_no].addr = in send_reply()
597 ctxt->sge[sge_no].addr)) in send_reply()
600 ctxt->sge[sge_no].lkey = rdma->sc_dma_lkey; in send_reply()
602 ctxt->sge[sge_no].addr = (unsigned long) in send_reply()
603 vec->sge[sge_no].iov_base; in send_reply()
604 ctxt->sge[sge_no].lkey = vec->frmr->mr->lkey; in send_reply()
606 ctxt->sge[sge_no].length = sge_bytes; in send_reply()
623 if (page_no+1 >= sge_no) in send_reply()
626 BUG_ON(sge_no > rdma->sc_max_sge); in send_reply()
631 send_wr.num_sge = sge_no; in send_reply()