Lines Matching refs:thread

28 		tm_save_sprs(&tsk->thread);  in flush_tmregs_to_thread()
34 return task->thread.ckpt_regs.msr | task->thread.fpexc_mode; in get_user_ckpt_msr()
39 task->thread.ckpt_regs.msr &= ~MSR_DEBUGCHANGE; in set_user_ckpt_msr()
40 task->thread.ckpt_regs.msr |= msr & MSR_DEBUGCHANGE; in set_user_ckpt_msr()
46 set_trap(&task->thread.ckpt_regs, trap); in set_user_ckpt_trap()
63 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cgpr_active()
97 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cgpr_get()
104 membuf_write(&to, &target->thread.ckpt_regs, sizeof(struct user_pt_regs)); in tm_cgpr_get()
144 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cgpr_set()
152 &target->thread.ckpt_regs, in tm_cgpr_set()
168 &target->thread.ckpt_regs.orig_gpr3, in tm_cgpr_set()
205 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cfpr_active()
238 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cfpr_get()
247 buf[i] = target->thread.TS_CKFPR(i); in tm_cfpr_get()
248 buf[32] = target->thread.ckfp_state.fpscr; in tm_cfpr_get()
283 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cfpr_set()
291 buf[i] = target->thread.TS_CKFPR(i); in tm_cfpr_set()
292 buf[32] = target->thread.ckfp_state.fpscr; in tm_cfpr_set()
299 target->thread.TS_CKFPR(i) = buf[i]; in tm_cfpr_set()
300 target->thread.ckfp_state.fpscr = buf[32]; in tm_cfpr_set()
317 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cvmx_active()
354 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cvmx_get()
362 membuf_write(&to, &target->thread.ckvr_state, 33 * sizeof(vector128)); in tm_cvmx_get()
367 vrsave.word = target->thread.ckvrsave; in tm_cvmx_get()
404 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cvmx_set()
411 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &target->thread.ckvr_state, in tm_cvmx_set()
422 vrsave.word = target->thread.ckvrsave; in tm_cvmx_set()
426 target->thread.ckvrsave = vrsave.word; in tm_cvmx_set()
445 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cvsx_active()
449 return target->thread.used_vsr ? regset->n : 0; in tm_cvsx_active()
478 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cvsx_get()
488 buf[i] = target->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET]; in tm_cvsx_get()
522 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cvsx_set()
532 buf[i] = target->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET]; in tm_cvsx_set()
538 target->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET] = buf[i]; in tm_cvsx_set()
591 membuf_write(&to, &target->thread.tm_tfhar, sizeof(u64)); in tm_spr_get()
593 membuf_write(&to, &target->thread.tm_texasr, sizeof(u64)); in tm_spr_get()
595 return membuf_write(&to, &target->thread.tm_tfiar, sizeof(u64)); in tm_spr_get()
637 &target->thread.tm_tfhar, 0, sizeof(u64)); in tm_spr_set()
642 &target->thread.tm_texasr, sizeof(u64), in tm_spr_set()
648 &target->thread.tm_tfiar, in tm_spr_set()
658 if (MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_tar_active()
670 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_tar_get()
673 return membuf_write(&to, &target->thread.tm_tar, sizeof(u64)); in tm_tar_get()
685 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_tar_set()
689 &target->thread.tm_tar, 0, sizeof(u64)); in tm_tar_set()
698 if (MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_ppr_active()
711 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_ppr_get()
714 return membuf_write(&to, &target->thread.tm_ppr, sizeof(u64)); in tm_ppr_get()
726 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_ppr_set()
730 &target->thread.tm_ppr, 0, sizeof(u64)); in tm_ppr_set()
739 if (MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_dscr_active()
751 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_dscr_get()
754 return membuf_write(&to, &target->thread.tm_dscr, sizeof(u64)); in tm_dscr_get()
766 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_dscr_set()
770 &target->thread.tm_dscr, 0, sizeof(u64)); in tm_dscr_set()
778 &target->thread.ckpt_regs.gpr[0]); in tm_cgpr32_get()
787 &target->thread.ckpt_regs.gpr[0]); in tm_cgpr32_set()