Lines Matching refs:saved_msrs
40 struct saved_msr *msr = ctxt->saved_msrs.array; in msr_save_context()
41 struct saved_msr *end = msr + ctxt->saved_msrs.num; in msr_save_context()
52 struct saved_msr *msr = ctxt->saved_msrs.array; in msr_restore_context()
53 struct saved_msr *end = msr + ctxt->saved_msrs.num; in msr_restore_context()
411 struct saved_msrs *saved_msrs = &saved_context.saved_msrs; in msr_build_context() local
416 total_num = saved_msrs->num + num; in msr_build_context()
424 if (saved_msrs->array) { in msr_build_context()
429 memcpy(msr_array, saved_msrs->array, in msr_build_context()
430 sizeof(struct saved_msr) * saved_msrs->num); in msr_build_context()
432 kfree(saved_msrs->array); in msr_build_context()
435 for (i = saved_msrs->num, j = 0; i < total_num; i++, j++) { in msr_build_context()
442 saved_msrs->num = total_num; in msr_build_context()
443 saved_msrs->array = msr_array; in msr_build_context()