Lines Matching refs:state

27 void vfp_lazy_save_state_init(struct vfp_state *state)  in vfp_lazy_save_state_init()  argument
31 state->fpexc = fpexc; in vfp_lazy_save_state_init()
35 void vfp_lazy_save_state_final(struct vfp_state *state, bool force_save) in vfp_lazy_save_state_final() argument
37 if ((state->fpexc & FPEXC_EN) || force_save) { in vfp_lazy_save_state_final()
42 state->fpscr = vfp_read_fpscr(); in vfp_lazy_save_state_final()
43 vfp_save_extension_regs(state->reg); in vfp_lazy_save_state_final()
48 void vfp_lazy_restore_state(struct vfp_state *state, bool full_state) in vfp_lazy_restore_state() argument
60 vfp_write_fpscr(state->fpscr); in vfp_lazy_restore_state()
61 vfp_restore_extension_regs(state->reg); in vfp_lazy_restore_state()
63 vfp_write_fpexc(state->fpexc); in vfp_lazy_restore_state()
91 void vfp_lazy_save_state_init(struct vfp_state *state) in vfp_lazy_save_state_init() argument
93 state->cpacr_el1 = read_cpacr_el1(); in vfp_lazy_save_state_init()
97 void vfp_lazy_save_state_final(struct vfp_state *state, bool force_save) in vfp_lazy_save_state_final() argument
99 if ((CPACR_EL1_FPEN(state->cpacr_el1) & CPACR_EL1_FPEN_EL0EL1) || in vfp_lazy_save_state_final()
103 state->fpcr = read_fpcr(); in vfp_lazy_save_state_final()
104 state->fpsr = read_fpsr(); in vfp_lazy_save_state_final()
105 vfp_save_extension_regs(state->reg); in vfp_lazy_save_state_final()
110 void vfp_lazy_restore_state(struct vfp_state *state, bool full_state) in vfp_lazy_restore_state() argument
120 write_fpcr(state->fpcr); in vfp_lazy_restore_state()
121 write_fpsr(state->fpsr); in vfp_lazy_restore_state()
122 vfp_restore_extension_regs(state->reg); in vfp_lazy_restore_state()
124 write_cpacr_el1(state->cpacr_el1); in vfp_lazy_restore_state()