Lines Matching full:mr
10 * For Memory Regions. This stuff should probably be moved into rdmavt/mr.h once
11 * drivers no longer need access to the MR directly.
68 struct rvt_mregion *mr; member
72 u16 m; /* current index: mr->map[m] */
73 u16 n; /* current index: mr->map[m]->segs[n] */
83 static inline void rvt_put_mr(struct rvt_mregion *mr) in rvt_put_mr() argument
85 percpu_ref_put(&mr->refcount); in rvt_put_mr()
88 static inline void rvt_get_mr(struct rvt_mregion *mr) in rvt_get_mr() argument
90 percpu_ref_get(&mr->refcount); in rvt_get_mr()
96 rvt_put_mr(ss->sge.mr); in rvt_put_ss()
124 rvt_put_mr(sge->mr); in rvt_update_sge()
127 } else if (sge->length == 0 && sge->mr->lkey) { in rvt_update_sge()
129 if (++sge->m >= sge->mr->mapsz) in rvt_update_sge()
133 sge->vaddr = sge->mr->map[sge->m]->segs[sge->n].vaddr; in rvt_update_sge()
134 sge->length = sge->mr->map[sge->m]->segs[sge->n].length; in rvt_update_sge()
153 bool rvt_mr_has_lkey(struct rvt_mregion *mr, u32 lkey);