Home
last modified time | relevance | path

Searched refs:fpr (Results 1 – 25 of 40) sorted by relevance

12

/Linux-v5.4/arch/mips/kernel/
Dasm-offsets.c142 OFFSET(THREAD_FPR0, task_struct, thread.fpu.fpr[0]); in output_thread_fpu_defines()
143 OFFSET(THREAD_FPR1, task_struct, thread.fpu.fpr[1]); in output_thread_fpu_defines()
144 OFFSET(THREAD_FPR2, task_struct, thread.fpu.fpr[2]); in output_thread_fpu_defines()
145 OFFSET(THREAD_FPR3, task_struct, thread.fpu.fpr[3]); in output_thread_fpu_defines()
146 OFFSET(THREAD_FPR4, task_struct, thread.fpu.fpr[4]); in output_thread_fpu_defines()
147 OFFSET(THREAD_FPR5, task_struct, thread.fpu.fpr[5]); in output_thread_fpu_defines()
148 OFFSET(THREAD_FPR6, task_struct, thread.fpu.fpr[6]); in output_thread_fpu_defines()
149 OFFSET(THREAD_FPR7, task_struct, thread.fpu.fpr[7]); in output_thread_fpu_defines()
150 OFFSET(THREAD_FPR8, task_struct, thread.fpu.fpr[8]); in output_thread_fpu_defines()
151 OFFSET(THREAD_FPR9, task_struct, thread.fpu.fpr[9]); in output_thread_fpu_defines()
[all …]
Dptrace.c437 fpr_val = get_fpr64(&target->thread.fpu.fpr[i], 0); in fpr_get_msa()
462 if (sizeof(target->thread.fpu.fpr[0]) == sizeof(elf_fpreg_t)) in fpr_get()
517 set_fpr64(&target->thread.fpu.fpr[i], 0, fpr_val); in fpr_set_msa()
552 if (sizeof(target->thread.fpu.fpr[0]) == sizeof(elf_fpreg_t)) in fpr_set()
651 &target->thread.fpu.fpr[i], in copy_pad_fprs()
688 } else if (sizeof(target->thread.fpu.fpr[0]) == regset->size) { in msa_get()
691 &target->thread.fpu.fpr, in msa_get()
697 sizeof(target->thread.fpu.fpr[0])); in msa_get()
718 if (sizeof(target->thread.fpu.fpr[0]) == regset->size) { in msa_set()
721 &target->thread.fpu.fpr, in msa_set()
[all …]
Dunaligned.c1240 union fpureg *fpr; in emulate_load_store_insn() local
1254 fpr = &current->thread.fpu.fpr[wd]; in emulate_load_store_insn()
1258 if (!access_ok(addr, sizeof(*fpr))) in emulate_load_store_insn()
1273 res = __copy_from_user_inatomic(fpr, addr, in emulate_load_store_insn()
1274 sizeof(*fpr)); in emulate_load_store_insn()
1286 write_msa_wr(wd, fpr, df); in emulate_load_store_insn()
1294 if (!access_ok(addr, sizeof(*fpr))) in emulate_load_store_insn()
1304 read_msa_wr(wd, fpr, df); in emulate_load_store_insn()
1307 res = __copy_to_user_inatomic(addr, fpr, sizeof(*fpr)); in emulate_load_store_insn()
Dkgdb.c155 memcpy((void *)&current->thread.fpu.fpr[fp_reg], mem, in dbg_set_reg()
191 memcpy(mem, (void *)&current->thread.fpu.fpr[fp_reg], in dbg_get_reg()
Dsignal.c82 __put_user(get_fpr64(&current->thread.fpu.fpr[i], 0), in copy_fp_to_sigcontext()
102 set_fpr64(&current->thread.fpu.fpr[i], 0, fpr_val); in copy_fp_from_sigcontext()
198 val = get_fpr64(&current->thread.fpu.fpr[i], 1); in save_msa_extcontext()
245 set_fpr64(&current->thread.fpu.fpr[i], 1, val); in restore_msa_extcontext()
/Linux-v5.4/tools/testing/selftests/powerpc/ptrace/
Dptrace-gpr.h39 int validate_fpr(unsigned long *fpr, unsigned long val) in validate_fpr() argument
44 if (fpr[i] != val) { in validate_fpr()
45 printf("FPR[%d]: %lx Expected: %lx\n", i, fpr[i], val); in validate_fpr()
56 int validate_fpr_float(float *fpr, float val) in validate_fpr_float() argument
61 if (fpr[i] != val) { in validate_fpr_float()
62 printf("FPR[%d]: %f Expected: %f\n", i, fpr[i], val); in validate_fpr_float()
Dptrace-tm-gpr.c90 unsigned long fpr[32]; in trace_tm_gpr() local
95 FAIL_IF(show_fpr(child, fpr)); in trace_tm_gpr()
96 FAIL_IF(validate_fpr(fpr, FPR_2_REP)); in trace_tm_gpr()
97 FAIL_IF(show_ckpt_fpr(child, fpr)); in trace_tm_gpr()
98 FAIL_IF(validate_fpr(fpr, FPR_1_REP)); in trace_tm_gpr()
Dptrace-tm-spd-gpr.c96 unsigned long fpr[32]; in trace_tm_spd_gpr() local
101 FAIL_IF(show_fpr(child, fpr)); in trace_tm_spd_gpr()
102 FAIL_IF(validate_fpr(fpr, FPR_4_REP)); in trace_tm_spd_gpr()
103 FAIL_IF(show_ckpt_fpr(child, fpr)); in trace_tm_spd_gpr()
104 FAIL_IF(validate_fpr(fpr, FPR_1_REP)); in trace_tm_spd_gpr()
Dptrace.h33 unsigned long fpr[32]; member
321 int show_fpr(pid_t child, unsigned long *fpr) in show_fpr() argument
333 if (fpr) { in show_fpr()
335 fpr[i] = regs->fpr[i]; in show_fpr()
353 regs->fpr[i] = val; in write_fpr()
363 int show_ckpt_fpr(pid_t child, unsigned long *fpr) in show_ckpt_fpr() argument
379 if (fpr) { in show_ckpt_fpr()
381 fpr[i] = regs->fpr[i]; in show_ckpt_fpr()
404 regs->fpr[i] = val; in write_ckpt_fpr()
Dptrace-gpr.c58 unsigned long fpr[32]; in trace_gpr() local
63 FAIL_IF(show_fpr(child, fpr)); in trace_gpr()
64 FAIL_IF(validate_fpr(fpr, FPR_1_REP)); in trace_gpr()
/Linux-v5.4/arch/mips/include/asm/
Dprocessor.h106 static inline u##width get_fpr##width(union fpureg *fpr, unsigned idx) \
108 return fpr->val##width[FPR_IDX(width, idx)]; \
111 static inline void set_fpr##width(union fpureg *fpr, unsigned idx, \
114 fpr->val##width[FPR_IDX(width, idx)] = val; \
127 union fpureg fpr[NUM_FPU_REGS]; member
302 .fpr = {{{0,},},}, \
Dfpu.h213 memset(&target->thread.fpu.fpr, ~0, sizeof(target->thread.fpu.fpr)); in init_fp_ctx()
248 return tsk->thread.fpu.fpr; in get_fpu_regs()
/Linux-v5.4/arch/powerpc/kernel/
Dptrace32.c107 tmp = ((unsigned int *)child->thread.fp_state.fpr) in compat_arch_ptrace()
149 tmp = child->thread.fp_state.fpr[numReg - PT_FPR0][0]; in compat_arch_ptrace()
209 ((unsigned int *)child->thread.fp_state.fpr) in compat_arch_ptrace()
253 tmp = &child->thread.fp_state.fpr[numReg - PT_FPR0][0]; in compat_arch_ptrace()
Dsignal_32.c275 buf[i] = task->thread.fp_state.fpr[i][TS_VSRLOWOFFSET]; in copy_vsx_to_user()
288 task->thread.fp_state.fpr[i][TS_VSRLOWOFFSET] = buf[i]; in copy_vsx_from_user()
329 buf[i] = task->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET]; in copy_ckvsx_to_user()
342 task->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET] = buf[i]; in copy_ckvsx_from_user()
350 return __copy_to_user(to, task->thread.fp_state.fpr, in copy_fpr_to_user()
357 return __copy_from_user(task->thread.fp_state.fpr, from, in copy_fpr_from_user()
365 return __copy_to_user(to, task->thread.ckfp_state.fpr, in copy_ckfpr_to_user()
372 return __copy_from_user(task->thread.ckfp_state.fpr, from, in copy_ckfpr_from_user()
703 current->thread.fp_state.fpr[i][TS_VSRLOWOFFSET] = 0; in restore_user_regs()
816 current->thread.fp_state.fpr[i][TS_VSRLOWOFFSET] = 0; in restore_tm_user_regs()
[all …]
Dsignal_64.c414 tsk->thread.fp_state.fpr[i][TS_VSRLOWOFFSET] = 0; in restore_sigcontext()
548 tsk->thread.fp_state.fpr[i][TS_VSRLOWOFFSET] = 0; in restore_tm_sigcontexts()
549 tsk->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET] = 0; in restore_tm_sigcontexts()
Dasm-offsets.c111 OFFSET(THREAD_FPSTATE, thread_struct, fp_state.fpr); in main()
161 OFFSET(THREAD_CKFPSTATE, thread_struct, ckfp_state.fpr); in main()
439 OFFSET(VCPU_FPRS, kvm_vcpu, arch.fp.fpr); in main()
590 OFFSET(VCPU_FPRS_TM, kvm_vcpu, arch.fp_tm.fpr); in main()
Dptrace.c462 offsetof(struct thread_fp_state, fpr[32])); in fpr_get()
509 offsetof(struct thread_fp_state, fpr[32])); in fpr_set()
681 buf[i] = target->thread.fp_state.fpr[i][TS_VSRLOWOFFSET]; in vsr_get()
714 buf[i] = target->thread.fp_state.fpr[i][TS_VSRLOWOFFSET]; in vsr_set()
720 target->thread.fp_state.fpr[i][TS_VSRLOWOFFSET] = buf[i]; in vsr_set()
1284 buf[i] = target->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET]; in tm_cvsx_get()
1332 buf[i] = target->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET]; in tm_cvsx_set()
1338 target->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET] = buf[i]; in tm_cvsx_set()
/Linux-v5.4/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c630 u32 fcr = 0x0, fpr = FPR_FILER_MASK; in ethflow_to_filer_rules() local
635 priv->ftp_rqfpr[priv->cur_filer_idx] = fpr; in ethflow_to_filer_rules()
637 gfar_write_filer(priv, priv->cur_filer_idx, fcr, fpr); in ethflow_to_filer_rules()
642 priv->ftp_rqfpr[priv->cur_filer_idx] = fpr; in ethflow_to_filer_rules()
644 gfar_write_filer(priv, priv->cur_filer_idx, fcr, fpr); in ethflow_to_filer_rules()
651 gfar_write_filer(priv, priv->cur_filer_idx, fcr, fpr); in ethflow_to_filer_rules()
652 priv->ftp_rqfpr[priv->cur_filer_idx] = fpr; in ethflow_to_filer_rules()
660 priv->ftp_rqfpr[priv->cur_filer_idx] = fpr; in ethflow_to_filer_rules()
662 gfar_write_filer(priv, priv->cur_filer_idx, fcr, fpr); in ethflow_to_filer_rules()
669 priv->ftp_rqfpr[priv->cur_filer_idx] = fpr; in ethflow_to_filer_rules()
[all …]
Dgianfar.h1193 unsigned int far, unsigned int fcr, unsigned int fpr) in gfar_write_filer() argument
1199 gfar_write(&regs->rqfpr, fpr); in gfar_write_filer()
1203 unsigned int far, unsigned int *fcr, unsigned int *fpr) in gfar_read_filer() argument
1209 *fpr = gfar_read(&regs->rqfpr); in gfar_read_filer()
/Linux-v5.4/arch/mips/math-emu/
Dcp1emu.c431 union fpureg *fpr; in isBranchInstr() local
706 fpr = &current->thread.fpu.fpr[insn.i_format.rt]; in isBranchInstr()
707 bit0 = get_fpr32(fpr, 0) & 0x1; in isBranchInstr()
801 (si) = (int)get_fpr32(&ctx->fpr[x], 0); \
803 (si) = (int)get_fpr32(&ctx->fpr[(x) & ~1], (x) & 1); \
810 set_fpr32(&ctx->fpr[x], 0, si); \
811 for (i = 1; i < ARRAY_SIZE(ctx->fpr[x].val32); i++) \
812 set_fpr32(&ctx->fpr[x], i, 0); \
814 set_fpr32(&ctx->fpr[(x) & ~1], (x) & 1, si); \
818 #define SIFROMHREG(si, x) ((si) = (int)get_fpr32(&ctx->fpr[x], 1))
[all …]
/Linux-v5.4/arch/mips/kvm/
Dmips.c678 v = get_fpr32(&fpu->fpr[idx], 0); in kvm_mips_get_reg()
680 v = get_fpr32(&fpu->fpr[idx & ~1], idx & 1); in kvm_mips_get_reg()
689 v = get_fpr64(&fpu->fpr[idx], 0); in kvm_mips_get_reg()
712 vs[0] = get_fpr64(&fpu->fpr[idx], 0); in kvm_mips_get_reg()
713 vs[1] = get_fpr64(&fpu->fpr[idx], 1); in kvm_mips_get_reg()
716 vs[0] = get_fpr64(&fpu->fpr[idx], 1); in kvm_mips_get_reg()
717 vs[1] = get_fpr64(&fpu->fpr[idx], 0); in kvm_mips_get_reg()
812 set_fpr32(&fpu->fpr[idx], 0, v); in kvm_mips_set_reg()
814 set_fpr32(&fpu->fpr[idx & ~1], idx & 1, v); in kvm_mips_set_reg()
823 set_fpr64(&fpu->fpr[idx], 0, v); in kvm_mips_set_reg()
[all …]
/Linux-v5.4/arch/powerpc/include/asm/
Dprocessor.h90 #define TS_FPR(i) fp_state.fpr[i][TS_FPROFFSET]
91 #define TS_CKFPR(i) ckfp_state.fpr[i][TS_FPROFFSET]
95 u64 fpr[32][TS_FPRWIDTH] __attribute__((aligned(16))); member
/Linux-v5.4/Documentation/translations/it_IT/process/
Dmaintainer-pgp-guide.rst209 negli esempi che seguono, quando vedere ``[fpr]`` ci si riferisce a questa
224 $ gpg --change-passphrase [fpr]
233 $ gpg --quick-add-key [fpr] ed25519 sign
238 $ gpg --send-key [fpr]
272 $ gpg --export-secret-key [fpr] | paperkey -o /tmp/key-backup.txt
323 $ gpg --homedir=/media/disk/foo/gnupg-backup --list-key [fpr]
361 $ gpg --with-keygrip --list-key [fpr]
526 $ gpg --edit-key [fpr]
661 $ gpg --quick-set-expire [fpr] 1y
666 $ gpg --quick-set-expire [fpr] 2020-07-01
[all …]
/Linux-v5.4/Documentation/process/
Dmaintainer-pgp-guide.rst199 whenever you see ``[fpr]`` in the examples below, that 40-character
213 $ gpg --change-passphrase [fpr]
222 $ gpg --quick-addkey [fpr] ed25519 sign
227 $ gpg --send-key [fpr]
263 $ gpg --export-secret-key [fpr] | paperkey -o /tmp/key-backup.txt
313 $ gpg --homedir=/media/disk/foo/gnupg-backup --list-key [fpr]
348 $ gpg --with-keygrip --list-key [fpr]
520 $ gpg --edit-key [fpr]
654 $ gpg --quick-set-expire [fpr] 1y
659 $ gpg --quick-set-expire [fpr] 2020-07-01
[all …]
/Linux-v5.4/arch/powerpc/kvm/
Dbook3s.c629 val->vsxval[0] = vcpu->arch.fp.fpr[i][0]; in kvmppc_get_one_reg()
630 val->vsxval[1] = vcpu->arch.fp.fpr[i][1]; in kvmppc_get_one_reg()
717 vcpu->arch.fp.fpr[i][0] = val->vsxval[0]; in kvmppc_set_one_reg()
718 vcpu->arch.fp.fpr[i][1] = val->vsxval[1]; in kvmppc_set_one_reg()

12