Lines Matching refs:rid
36 static int __is_tr_translated(struct thash_data *trp, u64 rid, u64 va) in __is_tr_translated() argument
38 return ((trp->p) && (trp->rid == rid) in __is_tr_translated()
45 static int __is_tr_overlap(struct thash_data *trp, u64 rid, u64 sva, u64 eva) in __is_tr_overlap() argument
49 if (!trp->p || trp->rid != rid) in __is_tr_overlap()
118 u64 index, pfn, rid, pfn_bits; in vsa_thash() local
122 rid = _REGION_ID(vrr); in vsa_thash()
123 index = ((rid & 0xff) << pfn_bits)|(pfn & ((1UL << pfn_bits) - 1)); in vsa_thash()
124 *tag = ((rid >> 8) & 0xffff) | ((pfn >> pfn_bits) << 16); in vsa_thash()
135 u64 rid; in __vtr_lookup() local
137 rid = vcpu_get_rr(vcpu, va); in __vtr_lookup()
138 rid = rid & RR_RID_MASK; in __vtr_lookup()
143 if (__is_tr_translated(trp, rid, va)) in __vtr_lookup()
151 if (__is_tr_translated(trp, rid, va)) in __vtr_lookup()
349 u64 end, rid; in vtr_find_overlap() local
351 rid = vcpu_get_rr(vcpu, va); in vtr_find_overlap()
352 rid = rid & RR_RID_MASK; in vtr_find_overlap()
358 if (__is_tr_overlap(trp, rid, va, end)) in vtr_find_overlap()
366 if (__is_tr_overlap(trp, rid, va, end)) in vtr_find_overlap()