Lines Matching refs:sge

176 		srx->ddp_stag = wqe->sqe.sge[0].lkey;  in siw_rresp_check_ntoh()
177 srx->ddp_to = wqe->sqe.sge[0].laddr; in siw_rresp_check_ntoh()
367 wqe->rqe.sge[i].laddr = rqe->sge[i].laddr; in siw_rqe_get()
368 wqe->rqe.sge[i].lkey = rqe->sge[i].lkey; in siw_rqe_get()
369 wqe->rqe.sge[i].length = rqe->sge[i].length; in siw_rqe_get()
370 wqe->bytes += wqe->rqe.sge[i].length; in siw_rqe_get()
457 struct siw_sge *sge; in siw_proc_send() local
460 sge = &wqe->rqe.sge[frx->sge_idx]; in siw_proc_send()
462 if (!sge->length) { in siw_proc_send()
469 sge_bytes = min(data_bytes, sge->length - frx->sge_off); in siw_proc_send()
477 rv = siw_check_sge(pd, sge, mem, IB_ACCESS_LOCAL_WRITE, in siw_proc_send()
490 (void *)(uintptr_t)(sge->laddr + frx->sge_off), in siw_proc_send()
494 sge->laddr + frx->sge_off, sge_bytes); in siw_proc_send()
497 sge->laddr + frx->sge_off, sge_bytes); in siw_proc_send()
509 if (frx->sge_off == sge->length) { in siw_proc_send()
703 resp->sge[0].length = length; in siw_init_rresp()
704 resp->sge[0].laddr = laddr; in siw_init_rresp()
705 resp->sge[0].lkey = lkey; in siw_init_rresp()
710 resp->sge[1].length = msn; in siw_init_rresp()
760 wqe->sqe.sge[0].laddr = orqe->sge[0].laddr; in siw_orqe_start_rx()
761 wqe->sqe.sge[0].lkey = orqe->sge[0].lkey; in siw_orqe_start_rx()
762 wqe->sqe.sge[0].length = orqe->sge[0].length; in siw_orqe_start_rx()
765 wqe->bytes = orqe->sge[0].length; in siw_orqe_start_rx()
792 struct siw_sge *sge; in siw_proc_rresp() local
827 sge = wqe->sqe.sge; /* there is only one */ in siw_proc_rresp()
834 rv = siw_check_sge(qp->pd, sge, mem, IB_ACCESS_LOCAL_WRITE, 0, in siw_proc_rresp()
855 (void *)(uintptr_t)(sge->laddr + wqe->processed), in siw_proc_rresp()
858 rv = siw_rx_umem(srx, mem_p->umem, sge->laddr + wqe->processed, in siw_proc_rresp()
862 sge->laddr + wqe->processed, bytes); in siw_proc_rresp()
1286 rv = siw_invalidate_stag(qp->pd, wqe->sqe.sge[0].lkey); in siw_rdmap_complete()