Lines Matching refs:sge_no
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()
680 sge[sge_no].addr)) in rpcrdma_prepare_msg_sges()
682 sge[sge_no].length = len; in rpcrdma_prepare_msg_sges()
683 sge[sge_no].lkey = rdmab_lkey(rb); in rpcrdma_prepare_msg_sges()
703 sge_no++; in rpcrdma_prepare_msg_sges()
704 sge[sge_no].addr = in rpcrdma_prepare_msg_sges()
707 if (ib_dma_mapping_error(rdmab_device(rb), sge[sge_no].addr)) in rpcrdma_prepare_msg_sges()
709 sge[sge_no].length = len; in rpcrdma_prepare_msg_sges()
710 sge[sge_no].lkey = rdmab_lkey(rb); in rpcrdma_prepare_msg_sges()
715 sc->sc_wr.num_sge += sge_no; in rpcrdma_prepare_msg_sges()
726 pr_err("rpcrdma: too many Send SGEs (%u)\n", sge_no); in rpcrdma_prepare_msg_sges()
731 trace_xprtrdma_dma_maperr(sge[sge_no].addr); in rpcrdma_prepare_msg_sges()