Home
last modified time | relevance | path

Searched refs:xstate_size (Results 1 – 10 of 10) sorted by relevance

/arch/sh/kernel/
Dprocess.c10 unsigned int xstate_size; variable
33 memcpy(dst->thread.xstate, src->thread.xstate, xstate_size); in arch_dup_task_struct()
54 if (!xstate_size) in arch_task_cache_init()
57 task_xstate_cachep = kmem_cache_create("task_xstate", xstate_size, in arch_task_cache_init()
71 xstate_size = sizeof(struct sh_fpu_hard_struct); in init_thread_xstate()
73 xstate_size = sizeof(struct sh_fpu_soft_struct); in init_thread_xstate()
75 xstate_size = 0; in init_thread_xstate()
/arch/x86/kernel/
Dxsave.c118 fx_sw->xstate_size < min_xstate_size || in check_for_xstate()
119 fx_sw->xstate_size > xstate_size || in check_for_xstate()
120 fx_sw->xstate_size > fx_sw->extended_size) in check_for_xstate()
129 if (__get_user(magic2, (__u32 __user *)(fpstate + fx_sw->xstate_size)) in check_for_xstate()
176 err |= __put_user(FP_XSTATE_MAGIC2, (__u32 *)(buf + xstate_size)); in save_xstate_epilog()
213 if (unlikely(err) && __clear_user(buf, xstate_size)) in save_user_xstate()
264 if (__copy_to_user(buf_fx, xsave, xstate_size)) in save_xstate_sig()
337 int state_size = xstate_size; in __restore_xstate_sig()
371 state_size = fx_sw_user.xstate_size; in __restore_xstate_sig()
439 int size = xstate_size + FP_XSTATE_MAGIC2_SIZE; in prepare_fx_sw_frame()
[all …]
Di387.c119 unsigned int xstate_size; variable
120 EXPORT_SYMBOL_GPL(xstate_size);
151 xstate_size = sizeof(struct i387_soft_struct); in init_thread_xstate()
156 xstate_size = sizeof(struct i387_fxsave_struct); in init_thread_xstate()
158 xstate_size = sizeof(struct i387_fsave_struct); in init_thread_xstate()
211 if (xstate_size == 0) in fpu_init()
230 memset(fp, 0, xstate_size); in fpu_finit()
Dprocess.c84 kmem_cache_create("task_xstate", xstate_size, in arch_task_cache_init()
/arch/sh/kernel/cpu/
Dfpu.c27 memset(fp, 0, xstate_size); in init_fpu()
31 memset(fp, 0, xstate_size); in init_fpu()
/arch/x86/include/asm/
Dfpu-internal.h110 memset(fx, 0, xstate_size); in fx_finit()
479 return use_xsave() ? xstate_size + FP_XSTATE_MAGIC2_SIZE : xstate_size; in xstate_sigframe_size()
595 memset(&dst->thread.fpu.state->xsave, 0, xstate_size); in fpu_copy()
602 memcpy(dfpu->state, sfpu->state, xstate_size); in fpu_copy()
Dxsave.h46 extern unsigned int xstate_size;
Dprocessor.h462 extern unsigned int xstate_size;
/arch/sh/include/asm/
Dprocessor.h115 extern unsigned int xstate_size;
/arch/x86/include/uapi/asm/
Dsigcontext.h33 __u32 xstate_size; /* actual xsave state size, based on the member