Lines Matching refs:kframe
33 struct crunch_sigframe *kframe; in preserve_crunch_context() local
36 kframe = (struct crunch_sigframe *)((unsigned long)(kbuf + 8) & ~7); in preserve_crunch_context()
37 kframe->magic = CRUNCH_MAGIC; in preserve_crunch_context()
38 kframe->size = CRUNCH_STORAGE_SIZE; in preserve_crunch_context()
39 crunch_task_copy(current_thread_info(), &kframe->storage); in preserve_crunch_context()
40 return __copy_to_user(frame, kframe, sizeof(*frame)); in preserve_crunch_context()
46 struct crunch_sigframe *kframe; in restore_crunch_context() local
49 kframe = (struct crunch_sigframe *)((unsigned long)(kbuf + 8) & ~7); in restore_crunch_context()
50 if (__copy_from_user(kframe, frame, sizeof(*frame))) in restore_crunch_context()
52 if (kframe->magic != CRUNCH_MAGIC || in restore_crunch_context()
53 kframe->size != CRUNCH_STORAGE_SIZE) in restore_crunch_context()
55 crunch_task_restore(current_thread_info(), &kframe->storage); in restore_crunch_context()
65 struct iwmmxt_sigframe *kframe; in preserve_iwmmxt_context() local
68 kframe = (struct iwmmxt_sigframe *)((unsigned long)(kbuf + 8) & ~7); in preserve_iwmmxt_context()
69 kframe->magic = IWMMXT_MAGIC; in preserve_iwmmxt_context()
70 kframe->size = IWMMXT_STORAGE_SIZE; in preserve_iwmmxt_context()
71 iwmmxt_task_copy(current_thread_info(), &kframe->storage); in preserve_iwmmxt_context()
72 return __copy_to_user(frame, kframe, sizeof(*frame)); in preserve_iwmmxt_context()
78 struct iwmmxt_sigframe *kframe; in restore_iwmmxt_context() local
81 kframe = (struct iwmmxt_sigframe *)((unsigned long)(kbuf + 8) & ~7); in restore_iwmmxt_context()
82 if (__copy_from_user(kframe, frame, sizeof(*frame))) in restore_iwmmxt_context()
84 if (kframe->magic != IWMMXT_MAGIC || in restore_iwmmxt_context()
85 kframe->size != IWMMXT_STORAGE_SIZE) in restore_iwmmxt_context()
87 iwmmxt_task_restore(current_thread_info(), &kframe->storage); in restore_iwmmxt_context()
97 struct vfp_sigframe kframe; in preserve_vfp_context() local
100 memset(&kframe, 0, sizeof(kframe)); in preserve_vfp_context()
101 kframe.magic = VFP_MAGIC; in preserve_vfp_context()
102 kframe.size = VFP_STORAGE_SIZE; in preserve_vfp_context()
104 err = vfp_preserve_user_clear_hwstate(&kframe.ufp, &kframe.ufp_exc); in preserve_vfp_context()
108 return __copy_to_user(frame, &kframe, sizeof(kframe)); in preserve_vfp_context()