Lines Matching refs:sge
61 struct rvt_sge *sge; in qib_ud_loopback() local
172 ssge.sge = *swqe->sg_list; in qib_ud_loopback()
174 sge = &ssge.sge; in qib_ud_loopback()
176 u32 len = rvt_get_sge_length(sge, length); in qib_ud_loopback()
178 rvt_copy_sge(qp, &qp->r_sge, sge->vaddr, len, true, false); in qib_ud_loopback()
179 sge->vaddr += len; in qib_ud_loopback()
180 sge->length -= len; in qib_ud_loopback()
181 sge->sge_length -= len; in qib_ud_loopback()
182 if (sge->sge_length == 0) { in qib_ud_loopback()
184 *sge = *ssge.sg_list++; in qib_ud_loopback()
185 } else if (sge->length == 0 && sge->mr->lkey) { in qib_ud_loopback()
186 if (++sge->n >= RVT_SEGSZ) { in qib_ud_loopback()
187 if (++sge->m >= sge->mr->mapsz) in qib_ud_loopback()
189 sge->n = 0; in qib_ud_loopback()
191 sge->vaddr = in qib_ud_loopback()
192 sge->mr->map[sge->m]->segs[sge->n].vaddr; in qib_ud_loopback()
193 sge->length = in qib_ud_loopback()
194 sge->mr->map[sge->m]->segs[sge->n].length; in qib_ud_loopback()
318 qp->s_sge.sge = wqe->sg_list[0]; in qib_make_ud_req()