Lines Matching refs:kframe

32 	struct crunch_sigframe *kframe;  in preserve_crunch_context()  local
35 kframe = (struct crunch_sigframe *)((unsigned long)(kbuf + 8) & ~7); in preserve_crunch_context()
36 kframe->magic = CRUNCH_MAGIC; in preserve_crunch_context()
37 kframe->size = CRUNCH_STORAGE_SIZE; in preserve_crunch_context()
38 crunch_task_copy(current_thread_info(), &kframe->storage); in preserve_crunch_context()
39 return __copy_to_user(frame, kframe, sizeof(*frame)); in preserve_crunch_context()
47 struct crunch_sigframe *kframe; in restore_crunch_context() local
50 kframe = (struct crunch_sigframe *)((unsigned long)(kbuf + 8) & ~7); in restore_crunch_context()
51 if (__copy_from_user(kframe, frame, sizeof(*frame))) in restore_crunch_context()
53 if (kframe->magic != CRUNCH_MAGIC || in restore_crunch_context()
54 kframe->size != CRUNCH_STORAGE_SIZE) in restore_crunch_context()
57 crunch_task_restore(current_thread_info(), &kframe->storage); in restore_crunch_context()
67 struct iwmmxt_sigframe *kframe; in preserve_iwmmxt_context() local
71 kframe = (struct iwmmxt_sigframe *)((unsigned long)(kbuf + 8) & ~7); in preserve_iwmmxt_context()
74 kframe->magic = IWMMXT_MAGIC; in preserve_iwmmxt_context()
75 kframe->size = IWMMXT_STORAGE_SIZE; in preserve_iwmmxt_context()
76 iwmmxt_task_copy(current_thread_info(), &kframe->storage); in preserve_iwmmxt_context()
84 *kframe = (struct iwmmxt_sigframe) { in preserve_iwmmxt_context()
90 err = __copy_to_user(frame, kframe, sizeof(*kframe)); in preserve_iwmmxt_context()
100 struct iwmmxt_sigframe *kframe; in restore_iwmmxt_context() local
103 kframe = (struct iwmmxt_sigframe *)((unsigned long)(kbuf + 8) & ~7); in restore_iwmmxt_context()
104 if (__copy_from_user(kframe, frame, sizeof(*frame))) in restore_iwmmxt_context()
114 kframe->magic != DUMMY_MAGIC) in restore_iwmmxt_context()
117 if (kframe->size != IWMMXT_STORAGE_SIZE) in restore_iwmmxt_context()
121 if (kframe->magic != IWMMXT_MAGIC) in restore_iwmmxt_context()
124 iwmmxt_task_restore(current_thread_info(), &kframe->storage); in restore_iwmmxt_context()
137 struct vfp_sigframe kframe; in preserve_vfp_context() local
140 memset(&kframe, 0, sizeof(kframe)); in preserve_vfp_context()
141 kframe.magic = VFP_MAGIC; in preserve_vfp_context()
142 kframe.size = VFP_STORAGE_SIZE; in preserve_vfp_context()
144 err = vfp_preserve_user_clear_hwstate(&kframe.ufp, &kframe.ufp_exc); in preserve_vfp_context()
148 return __copy_to_user(frame, &kframe, sizeof(kframe)); in preserve_vfp_context()