Home
last modified time | relevance | path

Searched refs:kbuf (Results 1 – 25 of 34) sorted by relevance

12

/arch/metag/kernel/
Dptrace.c29 void *kbuf, void __user *ubuf) in metag_gp_regs_copyout() argument
36 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
41 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
50 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
55 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
60 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
68 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
73 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
78 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
86 const void *kbuf, const void __user *ubuf) in metag_gp_regs_copyin() argument
[all …]
/arch/openrisc/kernel/
Dptrace.c54 void *kbuf, void __user * ubuf) in genregs_get() argument
60 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 0, 4); in genregs_get()
63 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
66 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
69 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
72 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
84 const void *kbuf, const void __user * ubuf) in genregs_set() argument
90 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, 4); in genregs_set()
93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
97 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
[all …]
/arch/sparc/kernel/
Dptrace_64.c121 void *kbuf, int len) in get_from_target() argument
124 if (copy_from_user(kbuf, (void __user *) uaddr, len)) in get_from_target()
127 int len2 = access_process_vm(target, uaddr, kbuf, len, 0); in get_from_target()
135 void *kbuf, int len) in set_to_target() argument
138 if (copy_to_user((void __user *) uaddr, kbuf, len)) in set_to_target()
141 int len2 = access_process_vm(target, uaddr, kbuf, len, 1); in set_to_target()
207 void *kbuf, void __user *ubuf) in genregs64_get() argument
215 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get()
223 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get()
231 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get()
[all …]
Dptrace_32.c49 void *kbuf, void __user *ubuf) in genregs32_get() argument
53 unsigned long *k = kbuf; in genregs32_get()
63 if (kbuf) { in genregs32_get()
109 if (kbuf) in genregs32_get()
120 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs32_get()
127 const void *kbuf, const void __user *ubuf) in genregs32_set() argument
131 const unsigned long *k = kbuf; in genregs32_set()
141 if (kbuf) { in genregs32_set()
169 if (kbuf) in genregs32_set()
204 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs32_set()
[all …]
/arch/metag/include/asm/
Dptrace.h37 void *kbuf, void __user *ubuf);
41 const void *kbuf, const void __user *ubuf);
45 void *kbuf, void __user *ubuf);
49 const void *kbuf, const void __user *ubuf);
53 void *kbuf, void __user *ubuf);
57 const void *kbuf, const void __user *ubuf);
/arch/mips/lasat/
Dpicvue_proc.c68 char kbuf[PVC_LINELEN]; in pvc_line_proc_write() local
73 len = min(count, sizeof(kbuf) - 1); in pvc_line_proc_write()
74 if (copy_from_user(kbuf, buf, len)) in pvc_line_proc_write()
76 kbuf[len] = '\0'; in pvc_line_proc_write()
78 if (len > 0 && kbuf[len - 1] == '\n') in pvc_line_proc_write()
82 strncpy(pvc_lines[lineno], kbuf, len); in pvc_line_proc_write()
103 char kbuf[42]; in pvc_scroll_proc_write() local
107 len = min(count, sizeof(kbuf) - 1); in pvc_scroll_proc_write()
108 if (copy_from_user(kbuf, buf, len)) in pvc_scroll_proc_write()
110 kbuf[len] = '\0'; in pvc_scroll_proc_write()
[all …]
/arch/c6x/kernel/
Dptrace.c63 void *kbuf, void __user *ubuf) in gpr_get() argument
67 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get()
75 const void *kbuf, const void __user *ubuf) in gpr_set() argument
81 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
87 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set()
93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
100 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set()
106 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
/arch/mn10300/kernel/
Dptrace.c84 void *kbuf, void __user *ubuf) in genregs_get() argument
90 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
95 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
101 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
111 const void *kbuf, const void __user *ubuf) in genregs_set() argument
118 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
123 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
131 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
143 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
150 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
[all …]
/arch/frv/kernel/
Dptrace.c43 void *kbuf, void __user *ubuf) in genregs_get() argument
48 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
53 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
63 const void *kbuf, const void __user *ubuf) in genregs_set() argument
81 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
87 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
98 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
108 void *kbuf, void __user *ubuf) in fpmregs_get() argument
113 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in fpmregs_get()
[all …]
/arch/sh/kernel/
Dptrace_32.c145 void *kbuf, void __user *ubuf) in genregs_get() argument
150 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
155 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
160 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
169 const void *kbuf, const void __user *ubuf) in genregs_set() argument
174 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
178 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
183 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
193 void *kbuf, void __user *ubuf) in fpregs_get() argument
202 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in fpregs_get()
[all …]
Dptrace_64.c151 void *kbuf, void __user *ubuf) in genregs_get() argument
157 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
163 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
169 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
175 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
184 const void *kbuf, const void __user *ubuf) in genregs_set() argument
190 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
196 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
203 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
209 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
[all …]
/arch/um/drivers/
Dhostaudio_kern.c74 void *kbuf; in hostaudio_read() local
81 kbuf = kmalloc(count, GFP_KERNEL); in hostaudio_read()
82 if (kbuf == NULL) in hostaudio_read()
85 err = os_read_file(state->fd, kbuf, count); in hostaudio_read()
89 if (copy_to_user(buffer, kbuf, err)) in hostaudio_read()
93 kfree(kbuf); in hostaudio_read()
101 void *kbuf; in hostaudio_write() local
108 kbuf = kmalloc(count, GFP_KERNEL); in hostaudio_write()
109 if (kbuf == NULL) in hostaudio_write()
113 if (copy_from_user(kbuf, buffer, count)) in hostaudio_write()
[all …]
/arch/x86/kernel/
Di387.c254 void *kbuf, void __user *ubuf) in xfpregs_get() argument
267 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in xfpregs_get()
273 const void *kbuf, const void __user *ubuf) in xfpregs_set() argument
286 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in xfpregs_set()
306 void *kbuf, void __user *ubuf) in xstateregs_get() argument
328 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in xstateregs_get()
335 const void *kbuf, const void __user *ubuf) in xstateregs_set() argument
347 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in xstateregs_set()
505 void *kbuf, void __user *ubuf) in fpregs_get() argument
515 return fpregs_soft_get(target, regset, pos, count, kbuf, ubuf); in fpregs_get()
[all …]
Dtls.c175 void *kbuf, void __user *ubuf) in regset_tls_get() argument
189 if (kbuf) { in regset_tls_get()
190 struct user_desc *info = kbuf; in regset_tls_get()
209 const void *kbuf, const void __user *ubuf) in regset_tls_set() argument
220 if (kbuf) in regset_tls_set()
221 info = kbuf; in regset_tls_set()
/arch/powerpc/platforms/pseries/
Dreconfig.c401 char *kbuf; in ofdt_write() local
404 if (!(kbuf = kmalloc(count + 1, GFP_KERNEL))) { in ofdt_write()
408 if (copy_from_user(kbuf, buf, count)) { in ofdt_write()
413 kbuf[count] = '\0'; in ofdt_write()
415 tmp = strchr(kbuf, ' '); in ofdt_write()
423 if (!strcmp(kbuf, "add_node")) in ofdt_write()
424 rv = do_add_node(tmp, count - (tmp - kbuf)); in ofdt_write()
425 else if (!strcmp(kbuf, "remove_node")) in ofdt_write()
427 else if (!strcmp(kbuf, "add_property")) in ofdt_write()
428 rv = do_add_property(tmp, count - (tmp - kbuf)); in ofdt_write()
[all …]
/arch/arm64/kernel/
Dptrace.c366 void *kbuf, void __user *ubuf) in hw_break_get() argument
378 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &info, 0, in hw_break_get()
385 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, offset, in hw_break_get()
397 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &addr, in hw_break_get()
406 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &ctrl, in hw_break_get()
412 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in hw_break_get()
427 const void *kbuf, const void __user *ubuf) in hw_break_set() argument
436 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, offset); in hw_break_set()
443 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &addr, in hw_break_set()
452 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl, in hw_break_set()
[all …]
/arch/hexagon/kernel/
Dptrace.c53 void *kbuf, void __user *ubuf) in genregs_get() argument
69 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
74 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, \ in genregs_get()
101 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
109 const void *kbuf, const void __user *ubuf) in genregs_set() argument
118 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
123 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set()
152 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
/arch/arc/kernel/
Dptrace.c24 void *kbuf, void __user *ubuf) in genregs_get() argument
33 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ in genregs_get()
39 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ in genregs_get()
65 const void *kbuf, const void __user *ubuf) in genregs_set() argument
73 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set()
80 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set()
87 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ in genregs_set()
Dtroubleshoot.c248 static int fill_display_data(char *kbuf) in fill_display_data() argument
251 num += sprintf(kbuf + num, "I-TLB Miss %x\n", numitlb); in fill_display_data()
252 num += sprintf(kbuf + num, "D-TLB Miss %x\n", numdtlb); in fill_display_data()
253 num += sprintf(kbuf + num, "PTE not present %x\n", num_pte_not_present); in fill_display_data()
274 char *kbuf = (char *)file->private_data; in tlb_stats_output() local
280 num = fill_display_data(kbuf); in tlb_stats_output()
287 return simple_read_from_buffer(user_buf, num, offset, kbuf, len); in tlb_stats_output()
/arch/s390/kernel/
Dptrace.c806 void *kbuf, void __user *ubuf) in s390_regs_get() argument
811 if (kbuf) { in s390_regs_get()
812 unsigned long *k = kbuf; in s390_regs_get()
833 const void *kbuf, const void __user *ubuf) in s390_regs_set() argument
840 if (kbuf) { in s390_regs_set()
841 const unsigned long *k = kbuf; in s390_regs_set()
868 unsigned int count, void *kbuf, void __user *ubuf) in s390_fpregs_get() argument
873 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in s390_fpregs_get()
879 unsigned int count, const void *kbuf, in s390_fpregs_set() argument
890 rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &fpc, in s390_fpregs_set()
[all …]
/arch/powerpc/kernel/
Dptrace.c266 void *kbuf, void __user *ubuf) in gpr_get() argument
279 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get()
284 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &msr, in gpr_get()
294 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get()
299 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in gpr_get()
307 const void *kbuf, const void __user *ubuf) in gpr_set() argument
317 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
322 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &reg, in gpr_set()
333 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
340 &pos, &count, &kbuf, &ubuf, in gpr_set()
[all …]
/arch/score/kernel/
Dptrace.c40 void *kbuf, void __user *ubuf) in genregs_get() argument
46 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
50 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
56 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
68 const void *kbuf, const void __user *ubuf) in genregs_set() argument
74 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
78 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
84 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
/arch/arm/kernel/
Dptrace.c588 void *kbuf, void __user *ubuf) in gpr_get() argument
592 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get()
600 const void *kbuf, const void __user *ubuf) in gpr_set() argument
605 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
621 void *kbuf, void __user *ubuf) in fpa_get() argument
623 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in fpa_get()
631 const void *kbuf, const void __user *ubuf) in fpa_set() argument
637 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpa_set()
668 void *kbuf, void __user *ubuf) in vfp_get() argument
678 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in vfp_get()
[all …]
Dsys_oabi-compat.c274 struct epoll_event *kbuf; in sys_oabi_epoll_wait() local
280 kbuf = kmalloc(sizeof(*kbuf) * maxevents, GFP_KERNEL); in sys_oabi_epoll_wait()
281 if (!kbuf) in sys_oabi_epoll_wait()
285 ret = sys_epoll_wait(epfd, kbuf, maxevents, timeout); in sys_oabi_epoll_wait()
289 __put_user_error(kbuf[i].events, &events->events, err); in sys_oabi_epoll_wait()
290 __put_user_error(kbuf[i].data, &events->data, err); in sys_oabi_epoll_wait()
293 kfree(kbuf); in sys_oabi_epoll_wait()
/arch/blackfin/kernel/
Dptrace.c155 void *kbuf, void __user *ubuf) in genregs_get() argument
163 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get()
168 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get()
178 const void *kbuf, const void __user *ubuf) in genregs_set() argument
184 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set()
193 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()

12