Home
last modified time | relevance | path

Searched refs:mtrr_seg (Results 1 – 1 of 1) sorted by relevance

/arch/x86/kvm/
Dmtrr.c210 struct fixed_mtrr_segment *mtrr_seg = &fixed_seg_table[seg]; in fixed_mtrr_seg_unit_range() local
213 *start = mtrr_seg->start + unit * unit_size; in fixed_mtrr_seg_unit_range()
215 WARN_ON(*end > mtrr_seg->end); in fixed_mtrr_seg_unit_range()
220 struct fixed_mtrr_segment *mtrr_seg = &fixed_seg_table[seg]; in fixed_mtrr_seg_unit_range_index() local
222 WARN_ON(mtrr_seg->start + unit * fixed_mtrr_seg_unit_size(seg) in fixed_mtrr_seg_unit_range_index()
223 > mtrr_seg->end); in fixed_mtrr_seg_unit_range_index()
226 return mtrr_seg->range_start + 8 * unit; in fixed_mtrr_seg_unit_range_index()
231 struct fixed_mtrr_segment *mtrr_seg = &fixed_seg_table[seg]; in fixed_mtrr_seg_end_range_index() local
234 n = (mtrr_seg->end - mtrr_seg->start) >> mtrr_seg->range_shift; in fixed_mtrr_seg_end_range_index()
235 return mtrr_seg->range_start + n - 1; in fixed_mtrr_seg_end_range_index()
[all …]