Lines Matching refs:saved_msrs
41 struct saved_msr *msr = ctxt->saved_msrs.array; in msr_save_context()
42 struct saved_msr *end = msr + ctxt->saved_msrs.num; in msr_save_context()
53 struct saved_msr *msr = ctxt->saved_msrs.array; in msr_restore_context()
54 struct saved_msr *end = msr + ctxt->saved_msrs.num; in msr_restore_context()
375 struct saved_msrs *saved_msrs = &saved_context.saved_msrs; in msr_build_context() local
380 total_num = saved_msrs->num + num; in msr_build_context()
388 if (saved_msrs->array) { in msr_build_context()
393 memcpy(msr_array, saved_msrs->array, in msr_build_context()
394 sizeof(struct saved_msr) * saved_msrs->num); in msr_build_context()
396 kfree(saved_msrs->array); in msr_build_context()
399 for (i = saved_msrs->num, j = 0; i < total_num; i++, j++) { in msr_build_context()
406 saved_msrs->num = total_num; in msr_build_context()
407 saved_msrs->array = msr_array; in msr_build_context()