/linux-6.1.9/drivers/dma-buf/ |
D | udmabuf.c | 34 struct udmabuf *ubuf = vma->vm_private_data; in udmabuf_vm_fault() local 37 if (pgoff >= ubuf->pagecount) in udmabuf_vm_fault() 39 vmf->page = ubuf->pages[pgoff]; in udmabuf_vm_fault() 50 struct udmabuf *ubuf = buf->priv; in mmap_udmabuf() local 56 vma->vm_private_data = ubuf; in mmap_udmabuf() 63 struct udmabuf *ubuf = buf->priv; in get_sg_table() local 70 ret = sg_alloc_table_from_pages(sg, ubuf->pages, ubuf->pagecount, in get_sg_table() 71 0, ubuf->pagecount << PAGE_SHIFT, in get_sg_table() 109 struct udmabuf *ubuf = buf->priv; in release_udmabuf() local 110 struct device *dev = ubuf->device->this_device; in release_udmabuf() [all …]
|
/linux-6.1.9/drivers/misc/sgi-gru/ |
D | grukdump.c | 37 void __user *ubuf, int ctxnum, int dsrcnt, in gru_dump_context_data() argument 51 if (gru_user_copy_handle(&ubuf, cb)) in gru_dump_context_data() 53 if (gru_user_copy_handle(&ubuf, tfh + i * GRU_HANDLE_STRIDE)) in gru_dump_context_data() 55 if (gru_user_copy_handle(&ubuf, cbe + i * GRU_HANDLE_STRIDE)) in gru_dump_context_data() 60 memcpy(ubuf, gseg + GRU_DS_BASE, dsrcnt * GRU_HANDLE_STRIDE); in gru_dump_context_data() 68 void __user *ubuf, void __user *ubufend) in gru_dump_tfm() argument 73 if (GRU_NUM_TFM * GRU_CACHE_LINE_BYTES > ubufend - ubuf) in gru_dump_tfm() 78 if (gru_user_copy_handle(&ubuf, tfm)) in gru_dump_tfm() 88 void __user *ubuf, void __user *ubufend) in gru_dump_tgh() argument 93 if (GRU_NUM_TGH * GRU_CACHE_LINE_BYTES > ubufend - ubuf) in gru_dump_tgh() [all …]
|
/linux-6.1.9/arch/x86/kernel/ |
D | sys_ia32.c | 68 SYSCALL_DEFINE5(ia32_pread64, unsigned int, fd, char __user *, ubuf, in SYSCALL_DEFINE5() argument 71 return ksys_pread64(fd, ubuf, count, in SYSCALL_DEFINE5() 75 SYSCALL_DEFINE5(ia32_pwrite64, unsigned int, fd, const char __user *, ubuf, in SYSCALL_DEFINE5() argument 78 return ksys_pwrite64(fd, ubuf, count, in SYSCALL_DEFINE5() 132 static int cp_stat64(struct stat64 __user *ubuf, struct kstat *stat) in cp_stat64() argument 134 typeof(ubuf->st_uid) uid = 0; in cp_stat64() 135 typeof(ubuf->st_gid) gid = 0; in cp_stat64() 138 if (!user_write_access_begin(ubuf, sizeof(struct stat64))) in cp_stat64() 140 unsafe_put_user(huge_encode_dev(stat->dev), &ubuf->st_dev, Efault); in cp_stat64() 141 unsafe_put_user(stat->ino, &ubuf->__st_ino, Efault); in cp_stat64() [all …]
|
/linux-6.1.9/drivers/media/pci/saa7164/ |
D | saa7164-vbi.c | 33 struct saa7164_user_buffer *ubuf; in saa7164_vbi_buffers_dealloc() local 47 ubuf = list_entry(p, struct saa7164_user_buffer, list); in saa7164_vbi_buffers_dealloc() 49 saa7164_buffer_dealloc_user(ubuf); in saa7164_vbi_buffers_dealloc() 54 ubuf = list_entry(l, struct saa7164_user_buffer, list); in saa7164_vbi_buffers_dealloc() 56 saa7164_buffer_dealloc_user(ubuf); in saa7164_vbi_buffers_dealloc() 70 struct saa7164_user_buffer *ubuf; in saa7164_vbi_buffers_alloc() local 124 ubuf = saa7164_buffer_alloc_user(dev, len); in saa7164_vbi_buffers_alloc() 125 if (ubuf) { in saa7164_vbi_buffers_alloc() 127 list_add_tail(&ubuf->list, &port->list_buf_free.list); in saa7164_vbi_buffers_alloc() 274 struct saa7164_user_buffer *ubuf; in saa7164_vbi_stop_streaming() local [all …]
|
D | saa7164-encoder.c | 64 struct saa7164_user_buffer *ubuf; in saa7164_encoder_buffers_dealloc() local 78 ubuf = list_entry(p, struct saa7164_user_buffer, list); in saa7164_encoder_buffers_dealloc() 80 saa7164_buffer_dealloc_user(ubuf); in saa7164_encoder_buffers_dealloc() 85 ubuf = list_entry(l, struct saa7164_user_buffer, list); in saa7164_encoder_buffers_dealloc() 87 saa7164_buffer_dealloc_user(ubuf); in saa7164_encoder_buffers_dealloc() 101 struct saa7164_user_buffer *ubuf; in saa7164_encoder_buffers_alloc() local 171 ubuf = saa7164_buffer_alloc_user(dev, len); in saa7164_encoder_buffers_alloc() 172 if (ubuf) { in saa7164_encoder_buffers_alloc() 174 list_add_tail(&ubuf->list, &port->list_buf_free.list); in saa7164_encoder_buffers_alloc() 590 struct saa7164_user_buffer *ubuf; in saa7164_encoder_stop_streaming() local [all …]
|
/linux-6.1.9/arch/powerpc/kernel/ptrace/ |
D | ptrace-decl.h | 69 const void *kbuf, const void __user *ubuf); 77 const void *kbuf, const void __user *ubuf); 85 const void *kbuf, const void __user *ubuf); 93 const void *kbuf, const void __user *ubuf); 104 const void *kbuf, const void __user *ubuf, 119 const void *kbuf, const void __user *ubuf); 124 const void *kbuf, const void __user *ubuf); 129 const void *kbuf, const void __user *ubuf); 134 const void *kbuf, const void __user *ubuf); 139 const void *kbuf, const void __user *ubuf); [all …]
|
D | ptrace-tm.c | 136 const void *kbuf, const void __user *ubuf) in tm_cgpr_set() argument 151 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 156 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in tm_cgpr_set() 167 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 173 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 178 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in tm_cgpr_set() 186 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 275 const void *kbuf, const void __user *ubuf) in tm_cfpr_set() argument 295 i = user_regset_copyin(&pos, &count, &kbuf, &ubuf, buf, 0, -1); in tm_cfpr_set() 395 const void *kbuf, const void __user *ubuf) in tm_cvmx_set() argument [all …]
|
D | ptrace-view.c | 240 const void __user *ubuf) in gpr_set() argument 248 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 253 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in gpr_set() 264 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 270 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set() 275 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in gpr_set() 283 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set() 298 const void __user *ubuf) in ppr_set() argument 300 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in ppr_set() 311 const void __user *ubuf) in dscr_set() argument [all …]
|
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/ |
D | debugfs.c | 62 mwifiex_info_read(struct file *file, char __user *ubuf, in mwifiex_info_read() argument 136 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_info_read() 166 mwifiex_getlog_read(struct file *file, char __user *ubuf, in mwifiex_getlog_read() argument 223 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_getlog_read() 242 mwifiex_histogram_read(struct file *file, char __user *ubuf, in mwifiex_histogram_read() argument 309 ret = simple_read_from_buffer(ubuf, count, ppos, (char *)page, in mwifiex_histogram_read() 316 mwifiex_histogram_write(struct file *file, const char __user *ubuf, in mwifiex_histogram_write() argument 376 mwifiex_debug_read(struct file *file, char __user *ubuf, in mwifiex_debug_read() argument 394 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_debug_read() 413 const char __user *ubuf, size_t count, loff_t *ppos) in mwifiex_regrdwr_write() argument [all …]
|
/linux-6.1.9/drivers/ntb/test/ |
D | ntb_tool.c | 341 static ssize_t tool_fn_read(struct tool_ctx *tc, char __user *ubuf, in tool_fn_read() argument 356 return simple_read_from_buffer(ubuf, size, offp, buf, pos); in tool_fn_read() 360 const char __user *ubuf, in tool_fn_write() argument 377 if (copy_from_user(buf, ubuf, size)) { in tool_fn_write() 412 static ssize_t tool_port_read(struct file *filep, char __user *ubuf, in tool_port_read() argument 421 return simple_read_from_buffer(ubuf, size, offp, buf, pos); in tool_port_read() 428 static ssize_t tool_peer_port_read(struct file *filep, char __user *ubuf, in tool_peer_port_read() argument 439 return simple_read_from_buffer(ubuf, size, offp, buf, pos); in tool_peer_port_read() 469 static ssize_t tool_link_write(struct file *filep, const char __user *ubuf, in tool_link_write() argument 476 ret = kstrtobool_from_user(ubuf, size, &val); in tool_link_write() [all …]
|
/linux-6.1.9/arch/sparc/kernel/ |
D | ptrace_32.c | 109 const void *kbuf, const void __user *ubuf) in genregs32_set() argument 119 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 127 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 137 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 146 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 151 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 156 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 161 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs32_set() 184 const void *kbuf, const void __user *ubuf) in fpregs32_set() argument 193 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpregs32_set() [all …]
|
D | ptrace_64.c | 270 const void *kbuf, const void __user *ubuf) in genregs64_set() argument 278 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 287 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 301 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 317 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 326 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 335 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs64_set() 374 const void *kbuf, const void __user *ubuf) in fpregs64_set() argument 383 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpregs64_set() 387 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpregs64_set() [all …]
|
/linux-6.1.9/arch/loongarch/kernel/ |
D | ptrace.c | 88 const void *kbuf, const void __user *ubuf) in gpr_set() argument 96 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 99 err |= user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 102 err |= user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 105 err |= user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 159 const void **kbuf, const void __user **ubuf) in gfpr_set() argument 161 return user_regset_copyin(pos, count, kbuf, ubuf, in gfpr_set() 168 const void **kbuf, const void __user **ubuf) in gfpr_set_simd() argument 175 err = user_regset_copyin(pos, count, kbuf, ubuf, in gfpr_set_simd() 193 const void *kbuf, const void __user *ubuf) in fpr_set() argument [all …]
|
/linux-6.1.9/arch/powerpc/platforms/powernv/ |
D | opal-lpc.c | 184 static ssize_t lpc_debug_read(struct file *filp, char __user *ubuf, in lpc_debug_read() argument 191 if (!access_ok(ubuf, count)) in lpc_debug_read() 250 rc = __put_user((u32)data, (u32 __user *)ubuf); in lpc_debug_read() 256 rc = __put_user((u16)data, (u16 __user *)ubuf); in lpc_debug_read() 262 rc = __put_user((u8)data, (u8 __user *)ubuf); in lpc_debug_read() 268 ubuf += len; in lpc_debug_read() 275 static ssize_t lpc_debug_write(struct file *filp, const char __user *ubuf, in lpc_debug_write() argument 282 if (!access_ok(ubuf, count)) in lpc_debug_write() 320 rc = __get_user(data, (u32 __user *)ubuf); in lpc_debug_write() 324 rc = __get_user(data, (u16 __user *)ubuf); in lpc_debug_write() [all …]
|
/linux-6.1.9/drivers/crypto/xilinx/ |
D | zynqmp-sha.c | 45 static char *ubuf, *fbuf; variable 139 memzero_explicit(ubuf, ZYNQMP_DMA_ALLOC_FIXED_SIZE); in zynqmp_sha_digest() 147 memcpy(ubuf, data, update_size); in zynqmp_sha_digest() 148 flush_icache_range((unsigned long)ubuf, (unsigned long)ubuf + update_size); in zynqmp_sha_digest() 219 ubuf = dma_alloc_coherent(dev, ZYNQMP_DMA_ALLOC_FIXED_SIZE, &update_dma_addr, GFP_KERNEL); in zynqmp_sha_probe() 220 if (!ubuf) { in zynqmp_sha_probe() 234 dma_free_coherent(sha3_drv_ctx.dev, ZYNQMP_DMA_ALLOC_FIXED_SIZE, ubuf, update_dma_addr); in zynqmp_sha_probe() 246 dma_free_coherent(sha3_drv_ctx.dev, ZYNQMP_DMA_ALLOC_FIXED_SIZE, ubuf, update_dma_addr); in zynqmp_sha_remove()
|
/linux-6.1.9/arch/x86/kernel/cpu/mce/ |
D | dev-mcelog.c | 163 static int __mce_read_apei(char __user **ubuf, size_t usize) in __mce_read_apei() argument 185 if (copy_to_user(*ubuf, &m, sizeof(struct mce))) in __mce_read_apei() 198 *ubuf += sizeof(struct mce); in __mce_read_apei() 203 static ssize_t mce_chrdev_read(struct file *filp, char __user *ubuf, in mce_chrdev_read() argument 206 char __user *buf = ubuf; in mce_chrdev_read() 214 if (err || buf != ubuf) in mce_chrdev_read() 242 return err ? err : buf - ubuf; in mce_chrdev_read() 294 static ssize_t mce_chrdev_write(struct file *filp, const char __user *ubuf, in mce_chrdev_write() argument 310 if (copy_from_user(&m, ubuf, usize)) in mce_chrdev_write()
|
/linux-6.1.9/drivers/scsi/fnic/ |
D | fnic_debugfs.c | 98 char __user *ubuf, in fnic_trace_ctrl_read() argument 115 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); in fnic_trace_ctrl_read() 136 const char __user *ubuf, in fnic_trace_ctrl_write() argument 148 if (copy_from_user(&buf, ubuf, cnt)) in fnic_trace_ctrl_write() 274 char __user *ubuf, in fnic_trace_debugfs_read() argument 280 rc = simple_read_from_buffer(ubuf, nbytes, pos, in fnic_trace_debugfs_read() 466 char __user *ubuf, in fnic_reset_stats_read() argument 476 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); in fnic_reset_stats_read() 494 const char __user *ubuf, in fnic_reset_stats_write() argument 509 if (copy_from_user(&buf, ubuf, cnt)) in fnic_reset_stats_write() [all …]
|
/linux-6.1.9/arch/openrisc/kernel/ |
D | ptrace.c | 63 const void *kbuf, const void __user * ubuf) in genregs_set() argument 69 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, 4); in genregs_set() 72 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 76 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 83 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
|
/linux-6.1.9/arch/arm64/kernel/ |
D | ptrace.c | 508 const void *kbuf, const void __user *ubuf) in hw_break_set() argument 517 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, offset); in hw_break_set() 526 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &addr, in hw_break_set() 537 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl, in hw_break_set() 546 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in hw_break_set() 569 const void *kbuf, const void __user *ubuf) in gpr_set() argument 574 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); in gpr_set() 623 const void *kbuf, const void __user *ubuf, in __fpr_set() argument 637 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newstate, in __fpr_set() 649 const void *kbuf, const void __user *ubuf) in fpr_set() argument [all …]
|
/linux-6.1.9/drivers/gpu/drm/i915/ |
D | i915_debugfs_params.c | 50 const char __user *ubuf, size_t len, in i915_param_int_write() argument 57 ret = kstrtoint_from_user(ubuf, len, 0, value); in i915_param_int_write() 62 ret = kstrtobool_from_user(ubuf, len, &b); in i915_param_int_write() 103 const char __user *ubuf, size_t len, in i915_param_uint_write() argument 112 ret = kstrtouint_from_user(ubuf, len, 0, value); in i915_param_uint_write() 117 ret = kstrtobool_from_user(ubuf, len, &b); in i915_param_uint_write() 166 const char __user *ubuf, size_t len, in i915_param_charp_write() argument 174 new = strndup_user(ubuf, PAGE_SIZE); in i915_param_charp_write()
|
/linux-6.1.9/include/linux/ |
D | regset.h | 120 const void *kbuf, const void __user *ubuf); 255 const void __user **ubuf, void *data, in user_regset_copyin() argument 268 } else if (__copy_from_user(data, *ubuf, copy)) in user_regset_copyin() 271 *ubuf += copy; in user_regset_copyin() 281 const void __user **ubuf, in user_regset_copyin_ignore() argument 294 *ubuf += copy; in user_regset_copyin_ignore()
|
/linux-6.1.9/drivers/s390/char/ |
D | hmcdrv_dev.c | 59 static ssize_t hmcdrv_dev_read(struct file *fp, char __user *ubuf, 61 static ssize_t hmcdrv_dev_write(struct file *fp, const char __user *ubuf, 221 static ssize_t hmcdrv_dev_read(struct file *fp, char __user *ubuf, in hmcdrv_dev_read() argument 232 *pos, ubuf, len); in hmcdrv_dev_read() 246 static ssize_t hmcdrv_dev_write(struct file *fp, const char __user *ubuf, in hmcdrv_dev_write() argument 260 if (!copy_from_user(fp->private_data, ubuf, len)) { in hmcdrv_dev_write() 271 *pos, (char __user *) ubuf, len); in hmcdrv_dev_write()
|
/linux-6.1.9/arch/sh/kernel/ |
D | ptrace_32.c | 146 const void *kbuf, const void __user *ubuf) in genregs_set() argument 151 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 155 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 160 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set() 184 const void *kbuf, const void __user *ubuf) in fpregs_set() argument 195 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpregs_set() 198 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpregs_set() 223 const void *kbuf, const void __user *ubuf) in dspregs_set() argument 229 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, in dspregs_set() 232 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in dspregs_set()
|
/linux-6.1.9/drivers/bluetooth/ |
D | btmrvl_debugfs.c | 22 const char __user *ubuf, size_t count, loff_t *ppos) in btmrvl_hscfgcmd_write() argument 27 ret = kstrtol_from_user(ubuf, count, 10, &result); in btmrvl_hscfgcmd_write() 61 static ssize_t btmrvl_pscmd_write(struct file *file, const char __user *ubuf, in btmrvl_pscmd_write() argument 67 ret = kstrtol_from_user(ubuf, count, 10, &result); in btmrvl_pscmd_write() 101 static ssize_t btmrvl_hscmd_write(struct file *file, const char __user *ubuf, in btmrvl_hscmd_write() argument 107 ret = kstrtol_from_user(ubuf, count, 10, &result); in btmrvl_hscmd_write()
|
/linux-6.1.9/drivers/crypto/ccp/ |
D | ccp-debugfs.c | 42 static ssize_t ccp5_debugfs_info_read(struct file *filp, char __user *ubuf, in ccp5_debugfs_info_read() argument 88 ret = simple_read_from_buffer(ubuf, count, offp, obuf, oboff); in ccp5_debugfs_info_read() 97 static ssize_t ccp5_debugfs_stats_read(struct file *filp, char __user *ubuf, in ccp5_debugfs_stats_read() argument 150 ret = simple_read_from_buffer(ubuf, count, offp, obuf, oboff); in ccp5_debugfs_stats_read() 175 const char __user *ubuf, in ccp5_debugfs_stats_write() argument 191 static ssize_t ccp5_debugfs_queue_read(struct file *filp, char __user *ubuf, in ccp5_debugfs_queue_read() argument 236 ret = simple_read_from_buffer(ubuf, count, offp, obuf, oboff); in ccp5_debugfs_queue_read() 246 const char __user *ubuf, in ccp5_debugfs_queue_write() argument
|