Lines Matching defs:last_sge
674 * @last_sge: last outgoing SGE written
677 * If adjacent will update last_sge to add length.
681 static inline bool rvt_sge_adjacent(struct rvt_sge *last_sge,
684 if (last_sge && sge->lkey == last_sge->mr->lkey &&
685 ((uint64_t)(last_sge->vaddr + last_sge->length) == sge->addr)) {
687 if (unlikely((sge->addr - last_sge->mr->user_base +
688 sge->length > last_sge->mr->length)))
691 last_sge->length += sge->length;
693 last_sge->sge_length += sge->length;
694 trace_rvt_sge_adjacent(last_sge, sge);
705 * @last_sge: last outgoing SGE written
717 struct rvt_sge *isge, struct rvt_sge *last_sge,
733 if (rvt_sge_adjacent(last_sge, sge))
750 if (rvt_sge_adjacent(last_sge, sge))