Searched refs:ubuf (Results 76 - 100 of 210) sorted by relevance

123456789

/linux-master/arch/um/os-Linux/
H A Dfile.c43 int os_stat_fd(const int fd, struct uml_stat *ubuf) argument
52 if (ubuf != NULL)
53 copy_stat(ubuf, &sbuf);
57 int os_stat_file(const char *file_name, struct uml_stat *ubuf) argument
66 if (ubuf != NULL)
67 copy_stat(ubuf, &sbuf);
/linux-master/drivers/usb/mtu3/
H A Dmtu3_debugfs.c314 static ssize_t mtu3_probe_write(struct file *file, const char __user *ubuf, argument
325 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
446 static ssize_t ssusb_mode_write(struct file *file, const char __user *ubuf, argument
453 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
492 static ssize_t ssusb_vbus_write(struct file *file, const char __user *ubuf, argument
501 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
/linux-master/drivers/thermal/intel/int340x_thermal/
H A Dacpi_thermal_rel.c365 static int fill_art(char __user *ubuf) argument
394 if (copy_to_user(ubuf, art_user, art_len))
402 static int fill_trt(char __user *ubuf) argument
429 if (copy_to_user(ubuf, trt_user, trt_len))
437 static int fill_psvt(char __user *ubuf) argument
478 if (copy_to_user(ubuf, psvt_user, psvt_len))
/linux-master/arch/x86/kernel/cpu/mce/
H A Dinject.c352 static ssize_t flags_read(struct file *filp, char __user *ubuf, argument
360 return simple_read_from_buffer(ubuf, cnt, ppos, buf, n);
363 static ssize_t flags_write(struct file *filp, const char __user *ubuf, argument
372 if (copy_from_user(&buf, ubuf, cnt))
683 inj_readme_read(struct file *filp, char __user *ubuf, argument
686 return simple_read_from_buffer(ubuf, cnt, ppos,
/linux-master/drivers/xen/
H A Dmcelog.c106 static ssize_t xen_mce_chrdev_read(struct file *filp, char __user *ubuf, argument
109 char __user *buf = ubuf;
139 return err ? err : buf - ubuf;
/linux-master/drivers/watchdog/
H A Dmei_wdt.c494 static ssize_t mei_dbgfs_read_activation(struct file *file, char __user *ubuf, argument
507 return simple_read_from_buffer(ubuf, cnt, ppos, buf, pos);
516 static ssize_t mei_dbgfs_read_state(struct file *file, char __user *ubuf, argument
526 return simple_read_from_buffer(ubuf, cnt, ppos, buf, pos);
/linux-master/drivers/bus/mhi/host/
H A Ddebugfs.c249 const char __user *ubuf,
258 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
281 const char __user *ubuf,
288 if (kstrtou32_from_user(ubuf, count, 0, &timeout_ms))
248 mhi_debugfs_device_wake_write(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
280 mhi_debugfs_timeout_ms_write(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
/linux-master/drivers/misc/vmw_vmci/
H A Dvmci_host.c438 void __user *ubuf = (void __user *)(uintptr_t)recv_info.addr; local
439 retval = copy_to_user(ubuf, dg, VMCI_DG_SIZE(dg));
730 void __user *ubuf = (void __user *)(uintptr_t)get_info.cpt_buf; local
731 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size);
866 void __user *ubuf; local
895 ubuf = (void __user *)(uintptr_t)info.db_handle_buf_uva;
896 info.result = drv_cp_harray_to_user(ubuf, &info.db_handle_buf_size,
899 ubuf = (void __user *)(uintptr_t)info.qp_handle_buf_uva;
900 info.result = drv_cp_harray_to_user(ubuf,
/linux-master/io_uring/
H A Drsrc.c37 .ubuf = -1UL,
875 struct page **io_pin_pages(unsigned long ubuf, unsigned long len, int *npages) argument
881 end = (ubuf + len + PAGE_SIZE - 1) >> PAGE_SHIFT;
882 start = ubuf >> PAGE_SHIFT;
891 ret = pin_user_pages(ubuf, nr_pages, FOLL_WRITE | FOLL_LONGTERM, pages);
974 imu->ubuf = (unsigned long) iov->iov_base;
975 imu->ubuf_end = imu->ubuf + iov->iov_len;
1071 if (unlikely(buf_addr < imu->ubuf || buf_end > imu->ubuf_end))
1078 offset = buf_addr - imu->ubuf;
/linux-master/include/linux/
H A Dseq_buf.h157 extern int seq_buf_to_user(struct seq_buf *s, char __user *ubuf,
/linux-master/kernel/trace/
H A Dtrace_sched_switch.c598 tracing_saved_cmdlines_size_read(struct file *filp, char __user *ubuf, argument
610 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r);
638 tracing_saved_cmdlines_size_write(struct file *filp, const char __user *ubuf, argument
644 ret = kstrtoul_from_user(ubuf, cnt, 10, &val);
H A Dtrace_seq.c351 * @ubuf: The userspace memory location to copy to
355 * by @ubuf. It starts from the last read position (@s->readpos)
368 int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, int cnt) argument
372 ret = seq_buf_to_user(&s->seq, ubuf, s->readpos, cnt);
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_display_debugfs.c517 const char __user *ubuf,
805 const char __user *ubuf,
821 input_buffer = memdup_user_nul(ubuf, len);
998 const char __user *ubuf,
1006 ret = kstrtobool_from_user(ubuf, cnt, &reset);
1263 const char __user *ubuf,
1280 ret = kstrtobool_from_user(ubuf, len, &dsc_enable);
1339 const char __user *ubuf,
1349 ret = kstrtoint_from_user(ubuf, len, 0, &dsc_bpc);
1420 const char __user *ubuf,
516 crtc_updates_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) argument
804 i915_displayport_test_active_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) argument
997 i915_fifo_underrun_reset_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
1262 i915_dsc_fec_support_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) argument
1338 i915_dsc_bpc_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) argument
1419 i915_dsc_output_format_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) argument
1440 i915_bigjoiner_enable_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) argument
1511 i915_dsc_fractional_bpp_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) argument
[all...]
/linux-master/arch/powerpc/platforms/powernv/
H A Dmemtrace.c40 static ssize_t memtrace_read(struct file *filp, char __user *ubuf, argument
45 return simple_read_from_buffer(ubuf, count, ppos, ent->mem, ent->size);
/linux-master/arch/x86/kernel/
H A Dtls.c269 const void *kbuf, const void __user *ubuf)
282 else if (__copy_from_user(infobuf, ubuf, count))
267 regset_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument
/linux-master/drivers/media/pci/cx18/
H A Dcx18-fileops.c260 struct cx18_buffer *buf, char __user *ubuf, size_t ucount, bool *stop)
351 if (copy_to_user(ubuf, (u8 *)buf->buf + buf->readpos, len)) {
364 struct cx18_mdl *mdl, char __user *ubuf, size_t ucount)
389 rc = cx18_copy_buf_to_user(s, mdl->curr_buf, ubuf + tot_written,
405 static ssize_t cx18_read(struct cx18_stream *s, char __user *ubuf, argument
445 rc = cx18_copy_mdl_to_user(s, mdl, ubuf + tot_written,
470 static ssize_t cx18_read_pos(struct cx18_stream *s, char __user *ubuf, argument
473 ssize_t rc = count ? cx18_read(s, ubuf, count, non_block) : 0;
259 cx18_copy_buf_to_user(struct cx18_stream *s, struct cx18_buffer *buf, char __user *ubuf, size_t ucount, bool *stop) argument
363 cx18_copy_mdl_to_user(struct cx18_stream *s, struct cx18_mdl *mdl, char __user *ubuf, size_t ucount) argument
/linux-master/drivers/usb/dwc3/
H A Ddebugfs.c368 static ssize_t dwc3_lsp_write(struct file *file, const char __user *ubuf, argument
378 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
440 const char __user *ubuf, size_t count, loff_t *ppos)
447 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
526 const char __user *ubuf, size_t count, loff_t *ppos)
535 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
614 const char __user *ubuf, size_t count, loff_t *ppos)
625 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
439 dwc3_mode_write(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
525 dwc3_testmode_write(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
613 dwc3_link_state_write(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
/linux-master/kernel/sched/
H A Ddebug.c124 sched_feat_write(struct file *filp, const char __user *ubuf, argument
135 if (copy_from_user(&buf, ubuf, cnt))
171 static ssize_t sched_scaling_write(struct file *filp, const char __user *ubuf, argument
180 if (copy_from_user(&buf, ubuf, cnt))
221 static ssize_t sched_dynamic_write(struct file *filp, const char __user *ubuf, argument
230 if (copy_from_user(&buf, ubuf, cnt))
287 static ssize_t sched_verbose_write(struct file *filp, const char __user *ubuf, argument
297 result = debugfs_write_file_bool(filp, ubuf, cnt, ppos);
/linux-master/lib/
H A Dseq_buf.c336 * @ubuf: The userspace memory location to copy to
341 * by @ubuf. It starts from @start and writes up to @cnt characters
355 int seq_buf_to_user(struct seq_buf *s, char __user *ubuf, size_t start, int cnt) argument
371 ret = copy_to_user(ubuf, s->buffer + start, cnt);
/linux-master/drivers/gpu/drm/msm/dp/
H A Ddp_debug.c127 const char __user *ubuf,
142 input_buffer = memdup_user_nul(ubuf, len);
126 dp_test_active_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) argument
/linux-master/drivers/s390/char/
H A Dvmur.c214 static struct ccw1 *alloc_chan_prog(const char __user *ubuf, int rec_count, argument
221 TRACE("alloc_chan_prog(%p, %i, %i)\n", ubuf, rec_count, reclen);
243 if (copy_from_user(kbuf, ubuf, reclen)) {
247 ubuf += reclen;
514 static ssize_t diag14_read(struct file *file, char __user *ubuf, size_t count, argument
549 if (copy_to_user(ubuf + copied, buf + res, len)) {
564 static ssize_t ur_read(struct file *file, char __user *ubuf, size_t count, argument
579 rc = diag14_read(file, ubuf, count, offs);
/linux-master/arch/x86/kernel/fpu/
H A Dxstate.c1196 const void *kbuf, const void __user *ubuf)
1201 if (copy_from_user(dst, ubuf + offset, size))
1212 * @ubuf: The UABI format buffer, if it comes from userspace
1237 const void __user *ubuf, u32 *pkru)
1246 if (copy_from_buffer(&hdr, offset, sizeof(hdr), kbuf, ubuf))
1258 if (copy_from_buffer(mxcsr, offset, sizeof(mxcsr), kbuf, ubuf))
1281 if (copy_from_buffer(dst, offset, size, kbuf, ubuf))
1329 const void __user *ubuf)
1331 return copy_uabi_to_xstate(tsk->thread.fpu.fpstate, NULL, ubuf, &tsk->thread.pkru);
1195 copy_from_buffer(void *dst, unsigned int offset, unsigned int size, const void *kbuf, const void __user *ubuf) argument
1236 copy_uabi_to_xstate(struct fpstate *fpstate, const void *kbuf, const void __user *ubuf, u32 *pkru) argument
1328 copy_sigframe_from_user_to_xstate(struct task_struct *tsk, const void __user *ubuf) argument
/linux-master/drivers/net/wireless/ath/ath10k/
H A Ddebug.c1852 const char __user *ubuf,
1859 if (kstrtouint_from_user(ubuf, count, 0, &filter))
1898 static ssize_t ath10k_read_pktlog_filter(struct file *file, char __user *ubuf, argument
1910 return simple_read_from_buffer(ubuf, count, ppos, buf, len);
1920 const char __user *ubuf,
1926 if (kstrtouint_from_user(ubuf, count, 0, &period))
1942 static ssize_t ath10k_read_quiet_period(struct file *file, char __user *ubuf, argument
1954 return simple_read_from_buffer(ubuf, count, ppos, buf, len);
1964 const char __user *ubuf,
1972 ret = kstrtobool_from_user(ubuf, coun
1851 ath10k_write_pktlog_filter(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
1919 ath10k_write_quiet_period(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
1963 ath10k_write_btcoex(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
2019 ath10k_read_btcoex(struct file *file, char __user *ubuf, size_t count, loff_t *ppos) argument
2040 ath10k_write_enable_extd_tx_stats(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
2072 ath10k_read_enable_extd_tx_stats(struct file *file, char __user *ubuf, size_t count, loff_t *ppos) argument
2095 ath10k_write_peer_stats(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
2135 ath10k_read_peer_stats(struct file *file, char __user *ubuf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/block/
H A Dblk-map.c688 struct rq_map_data *map_data, void __user *ubuf,
692 int ret = import_ubuf(rq_data_dir(rq), ubuf, len, &i);
702 void __user *ubuf, unsigned long buf_len, gfp_t gfp_mask,
712 ret = import_iovec(rw, ubuf, iov_count ? iov_count : buf_len,
730 ret = blk_rq_map_user(req->q, req, map_data, ubuf, buf_len,
687 blk_rq_map_user(struct request_queue *q, struct request *rq, struct rq_map_data *map_data, void __user *ubuf, unsigned long len, gfp_t gfp_mask) argument
701 blk_rq_map_user_io(struct request *req, struct rq_map_data *map_data, void __user *ubuf, unsigned long buf_len, gfp_t gfp_mask, bool vec, int iov_count, bool check_iter_count, int rw) argument
/linux-master/drivers/media/pci/saa7164/
H A Dsaa7164-core.c249 struct saa7164_user_buffer *ubuf = NULL; local
305 ubuf = list_first_entry(&port->list_buf_free.list,
308 if (buf->actual_size <= ubuf->actual_size) {
310 memcpy(ubuf->data, buf->cpu, ubuf->actual_size);
314 ubuf->crc = crc32(0, ubuf->data, ubuf->actual_size);
318 ubuf->pos = 0;
320 list_move_tail(&ubuf
[all...]

Completed in 482 milliseconds

123456789