Lines Matching refs:kframe
35 struct crunch_sigframe *kframe; in preserve_crunch_context() local
38 kframe = (struct crunch_sigframe *)((unsigned long)(kbuf + 8) & ~7); in preserve_crunch_context()
39 kframe->magic = CRUNCH_MAGIC; in preserve_crunch_context()
40 kframe->size = CRUNCH_STORAGE_SIZE; in preserve_crunch_context()
41 crunch_task_copy(current_thread_info(), &kframe->storage); in preserve_crunch_context()
42 return __copy_to_user(frame, kframe, sizeof(*frame)); in preserve_crunch_context()
50 struct crunch_sigframe *kframe; in restore_crunch_context() local
53 kframe = (struct crunch_sigframe *)((unsigned long)(kbuf + 8) & ~7); in restore_crunch_context()
54 if (__copy_from_user(kframe, frame, sizeof(*frame))) in restore_crunch_context()
56 if (kframe->magic != CRUNCH_MAGIC || in restore_crunch_context()
57 kframe->size != CRUNCH_STORAGE_SIZE) in restore_crunch_context()
60 crunch_task_restore(current_thread_info(), &kframe->storage); in restore_crunch_context()
70 struct iwmmxt_sigframe *kframe; in preserve_iwmmxt_context() local
74 kframe = (struct iwmmxt_sigframe *)((unsigned long)(kbuf + 8) & ~7); in preserve_iwmmxt_context()
77 kframe->magic = IWMMXT_MAGIC; in preserve_iwmmxt_context()
78 kframe->size = IWMMXT_STORAGE_SIZE; in preserve_iwmmxt_context()
79 iwmmxt_task_copy(current_thread_info(), &kframe->storage); in preserve_iwmmxt_context()
81 err = __copy_to_user(frame, kframe, sizeof(*frame)); in preserve_iwmmxt_context()
101 struct iwmmxt_sigframe *kframe; in restore_iwmmxt_context() local
104 kframe = (struct iwmmxt_sigframe *)((unsigned long)(kbuf + 8) & ~7); in restore_iwmmxt_context()
105 if (__copy_from_user(kframe, frame, sizeof(*frame))) in restore_iwmmxt_context()
115 kframe->magic != DUMMY_MAGIC) in restore_iwmmxt_context()
118 if (kframe->size != IWMMXT_STORAGE_SIZE) in restore_iwmmxt_context()
122 if (kframe->magic != IWMMXT_MAGIC) in restore_iwmmxt_context()
125 iwmmxt_task_restore(current_thread_info(), &kframe->storage); in restore_iwmmxt_context()