Lines Matching refs:last_sge
878 static inline bool rvt_sge_adjacent(struct rvt_sge *last_sge, in rvt_sge_adjacent() argument
881 if (last_sge && sge->lkey == last_sge->mr->lkey && in rvt_sge_adjacent()
882 ((uint64_t)(last_sge->vaddr + last_sge->length) == sge->addr)) { in rvt_sge_adjacent()
884 if (unlikely((sge->addr - last_sge->mr->user_base + in rvt_sge_adjacent()
885 sge->length > last_sge->mr->length))) in rvt_sge_adjacent()
888 last_sge->length += sge->length; in rvt_sge_adjacent()
890 last_sge->sge_length += sge->length; in rvt_sge_adjacent()
891 trace_rvt_sge_adjacent(last_sge, sge); in rvt_sge_adjacent()
914 struct rvt_sge *isge, struct rvt_sge *last_sge, in rvt_lkey_ok() argument
930 if (rvt_sge_adjacent(last_sge, sge)) in rvt_lkey_ok()
947 if (rvt_sge_adjacent(last_sge, sge)) in rvt_lkey_ok()