/drivers/misc/sgi-gru/ |
D | grukdump.c | 47 void __user *ubuf, int ctxnum, int dsrcnt, in gru_dump_context_data() argument 61 if (gru_user_copy_handle(&ubuf, cb)) in gru_dump_context_data() 63 if (gru_user_copy_handle(&ubuf, tfh + i * GRU_HANDLE_STRIDE)) in gru_dump_context_data() 65 if (gru_user_copy_handle(&ubuf, cbe + i * GRU_HANDLE_STRIDE)) in gru_dump_context_data() 70 memcpy(ubuf, gseg + GRU_DS_BASE, dsrcnt * GRU_HANDLE_STRIDE); in gru_dump_context_data() 78 void __user *ubuf, void __user *ubufend) in gru_dump_tfm() argument 83 if (GRU_NUM_TFM * GRU_CACHE_LINE_BYTES > ubufend - ubuf) in gru_dump_tfm() 88 if (gru_user_copy_handle(&ubuf, tfm)) in gru_dump_tfm() 98 void __user *ubuf, void __user *ubufend) in gru_dump_tgh() argument 103 if (GRU_NUM_TGH * GRU_CACHE_LINE_BYTES > ubufend - ubuf) in gru_dump_tgh() [all …]
|
/drivers/media/pci/saa7164/ |
D | saa7164-vbi.c | 47 struct saa7164_user_buffer *ubuf; in saa7164_vbi_buffers_dealloc() local 61 ubuf = list_entry(p, struct saa7164_user_buffer, list); in saa7164_vbi_buffers_dealloc() 63 saa7164_buffer_dealloc_user(ubuf); in saa7164_vbi_buffers_dealloc() 68 ubuf = list_entry(l, struct saa7164_user_buffer, list); in saa7164_vbi_buffers_dealloc() 70 saa7164_buffer_dealloc_user(ubuf); in saa7164_vbi_buffers_dealloc() 84 struct saa7164_user_buffer *ubuf; in saa7164_vbi_buffers_alloc() local 139 ubuf = saa7164_buffer_alloc_user(dev, len); in saa7164_vbi_buffers_alloc() 140 if (ubuf) { in saa7164_vbi_buffers_alloc() 142 list_add_tail(&ubuf->list, &port->list_buf_free.list); in saa7164_vbi_buffers_alloc() 297 struct saa7164_user_buffer *ubuf; in saa7164_vbi_stop_streaming() local [all …]
|
D | saa7164-encoder.c | 78 struct saa7164_user_buffer *ubuf; in saa7164_encoder_buffers_dealloc() local 92 ubuf = list_entry(p, struct saa7164_user_buffer, list); in saa7164_encoder_buffers_dealloc() 94 saa7164_buffer_dealloc_user(ubuf); in saa7164_encoder_buffers_dealloc() 99 ubuf = list_entry(l, struct saa7164_user_buffer, list); in saa7164_encoder_buffers_dealloc() 101 saa7164_buffer_dealloc_user(ubuf); in saa7164_encoder_buffers_dealloc() 115 struct saa7164_user_buffer *ubuf; in saa7164_encoder_buffers_alloc() local 186 ubuf = saa7164_buffer_alloc_user(dev, len); in saa7164_encoder_buffers_alloc() 187 if (ubuf) { in saa7164_encoder_buffers_alloc() 189 list_add_tail(&ubuf->list, &port->list_buf_free.list); in saa7164_encoder_buffers_alloc() 614 struct saa7164_user_buffer *ubuf; in saa7164_encoder_stop_streaming() local [all …]
|
D | saa7164-core.c | 265 struct saa7164_user_buffer *ubuf = NULL; in saa7164_work_enchandler_helper() local 321 ubuf = list_first_entry(&port->list_buf_free.list, in saa7164_work_enchandler_helper() 324 if (buf->actual_size <= ubuf->actual_size) { in saa7164_work_enchandler_helper() 326 memcpy(ubuf->data, buf->cpu, ubuf->actual_size); in saa7164_work_enchandler_helper() 330 ubuf->crc = crc32(0, ubuf->data, ubuf->actual_size); in saa7164_work_enchandler_helper() 334 ubuf->pos = 0; in saa7164_work_enchandler_helper() 336 list_move_tail(&ubuf->list, in saa7164_work_enchandler_helper()
|
/drivers/ntb/test/ |
D | ntb_tool.c | 189 static ssize_t tool_dbfn_read(struct tool_ctx *tc, char __user *ubuf, in tool_dbfn_read() argument 209 rc = simple_read_from_buffer(ubuf, size, offp, buf, pos); in tool_dbfn_read() 217 const char __user *ubuf, in tool_dbfn_write() argument 231 rc = simple_write_to_buffer(buf, size, offp, ubuf, size); in tool_dbfn_write() 262 static ssize_t tool_spadfn_read(struct tool_ctx *tc, char __user *ubuf, in tool_spadfn_read() argument 294 rc = simple_read_from_buffer(ubuf, size, offp, buf, pos); in tool_spadfn_read() 302 const char __user *ubuf, in tool_spadfn_write() argument 322 rc = simple_write_to_buffer(buf, size, offp, ubuf, size); in tool_spadfn_write() 348 static ssize_t tool_db_read(struct file *filep, char __user *ubuf, in tool_db_read() argument 353 return tool_dbfn_read(tc, ubuf, size, offp, in tool_db_read() [all …]
|
/drivers/net/wireless/marvell/mwifiex/ |
D | debugfs.c | 74 mwifiex_info_read(struct file *file, char __user *ubuf, in mwifiex_info_read() argument 148 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_info_read() 166 mwifiex_device_dump_read(struct file *file, char __user *ubuf, in mwifiex_device_dump_read() argument 201 mwifiex_getlog_read(struct file *file, char __user *ubuf, in mwifiex_getlog_read() argument 258 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_getlog_read() 277 mwifiex_histogram_read(struct file *file, char __user *ubuf, in mwifiex_histogram_read() argument 346 ret = simple_read_from_buffer(ubuf, count, ppos, (char *)page, in mwifiex_histogram_read() 353 mwifiex_histogram_write(struct file *file, const char __user *ubuf, in mwifiex_histogram_write() argument 413 mwifiex_debug_read(struct file *file, char __user *ubuf, in mwifiex_debug_read() argument 431 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_debug_read() [all …]
|
/drivers/scsi/fnic/ |
D | fnic_debugfs.c | 148 char __user *ubuf, in fnic_trace_ctrl_read() argument 165 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); in fnic_trace_ctrl_read() 186 const char __user *ubuf, in fnic_trace_ctrl_write() argument 198 if (copy_from_user(&buf, ubuf, cnt)) in fnic_trace_ctrl_write() 323 char __user *ubuf, in fnic_trace_debugfs_read() argument 329 rc = simple_read_from_buffer(ubuf, nbytes, pos, in fnic_trace_debugfs_read() 564 char __user *ubuf, in fnic_reset_stats_read() argument 574 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); in fnic_reset_stats_read() 592 const char __user *ubuf, in fnic_reset_stats_write() argument 607 if (copy_from_user(&buf, ubuf, cnt)) in fnic_reset_stats_write() [all …]
|
/drivers/bluetooth/ |
D | btmrvl_debugfs.c | 35 const char __user *ubuf, size_t count, loff_t *ppos) in btmrvl_hscfgcmd_write() argument 43 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in btmrvl_hscfgcmd_write() 80 static ssize_t btmrvl_pscmd_write(struct file *file, const char __user *ubuf, in btmrvl_pscmd_write() argument 89 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in btmrvl_pscmd_write() 126 static ssize_t btmrvl_hscmd_write(struct file *file, const char __user *ubuf, in btmrvl_hscmd_write() argument 135 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in btmrvl_hscmd_write() 170 static ssize_t btmrvl_fwdump_write(struct file *file, const char __user *ubuf, in btmrvl_fwdump_write() argument 179 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in btmrvl_fwdump_write()
|
/drivers/s390/char/ |
D | hmcdrv_dev.c | 58 static ssize_t hmcdrv_dev_read(struct file *fp, char __user *ubuf, 60 static ssize_t hmcdrv_dev_write(struct file *fp, const char __user *ubuf, 220 static ssize_t hmcdrv_dev_read(struct file *fp, char __user *ubuf, in hmcdrv_dev_read() argument 231 *pos, ubuf, len); in hmcdrv_dev_read() 245 static ssize_t hmcdrv_dev_write(struct file *fp, const char __user *ubuf, in hmcdrv_dev_write() argument 259 if (!copy_from_user(fp->private_data, ubuf, len)) { in hmcdrv_dev_write() 270 *pos, (char __user *) ubuf, len); in hmcdrv_dev_write()
|
D | vmur.c | 230 static struct ccw1 *alloc_chan_prog(const char __user *ubuf, int rec_count, in alloc_chan_prog() argument 237 TRACE("alloc_chan_prog(%p, %i, %i)\n", ubuf, rec_count, reclen); in alloc_chan_prog() 259 if (copy_from_user(kbuf, ubuf, reclen)) { in alloc_chan_prog() 263 ubuf += reclen; in alloc_chan_prog() 509 static ssize_t diag14_read(struct file *file, char __user *ubuf, size_t count, in diag14_read() argument 544 if (copy_to_user(ubuf + copied, buf + res, len)) { in diag14_read() 559 static ssize_t ur_read(struct file *file, char __user *ubuf, size_t count, in ur_read() argument 574 rc = diag14_read(file, ubuf, count, offs); in ur_read()
|
/drivers/misc/mic/vop/ |
D | vop_vringh.c | 526 static int vop_virtio_copy_to_user(struct vop_vdev *vdev, void __user *ubuf, in vop_virtio_copy_to_user() argument 540 if (copy_to_user(ubuf, (void __force *)dbuf, len)) { in vop_virtio_copy_to_user() 571 if (copy_to_user(ubuf, vvr->buf + dma_offset, in vop_virtio_copy_to_user() 579 ubuf += partlen; in vop_virtio_copy_to_user() 591 __func__, ubuf, dbuf, len, vr_idx); in vop_virtio_copy_to_user() 601 static int vop_virtio_copy_from_user(struct vop_vdev *vdev, void __user *ubuf, in vop_virtio_copy_from_user() argument 637 if (copy_from_user(vvr->buf, ubuf, partlen)) { in vop_virtio_copy_from_user() 651 ubuf += partlen; in vop_virtio_copy_from_user() 662 if (copy_from_user((void __force *)dbuf, ubuf, len)) { in vop_virtio_copy_from_user() 674 __func__, ubuf, dbuf, len, vr_idx); in vop_virtio_copy_from_user() [all …]
|
/drivers/misc/mei/ |
D | debugfs.c | 27 static ssize_t mei_dbgfs_read_meclients(struct file *fp, char __user *ubuf, in mei_dbgfs_read_meclients() argument 78 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); in mei_dbgfs_read_meclients() 89 static ssize_t mei_dbgfs_read_active(struct file *fp, char __user *ubuf, in mei_dbgfs_read_active() argument 140 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); in mei_dbgfs_read_active() 151 static ssize_t mei_dbgfs_read_devstate(struct file *fp, char __user *ubuf, in mei_dbgfs_read_devstate() argument 188 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); in mei_dbgfs_read_devstate()
|
/drivers/macintosh/ |
D | rack-meter.c | 64 u8 *ubuf; member 140 rm->ubuf[i] = (i & 1) * 255; in rackmeter_set_default_pattern() 142 rm->ubuf[i] = ((~i) & 1) * 255; in rackmeter_set_default_pattern() 242 rm->ubuf[i + offset] = ub; in rackmeter_do_timer() 320 sample |= ((rm->ubuf[led] >= 0x80) << 15); in rackmeter_calc_sample() 445 rm->ubuf = (u8 *)__get_free_page(GFP_KERNEL); in rackmeter_probe() 446 if (rm->ubuf == NULL) { in rackmeter_probe() 513 free_page((unsigned long)rm->ubuf); in rackmeter_probe() 553 free_page((unsigned long)rm->ubuf); in rackmeter_remove()
|
/drivers/acpi/apei/ |
D | erst-dbg.c | 90 static ssize_t erst_dbg_read(struct file *filp, char __user *ubuf, in erst_dbg_read() argument 152 if (copy_to_user(ubuf, erst_dbg_buf, len)) in erst_dbg_read() 160 static ssize_t erst_dbg_write(struct file *filp, const char __user *ubuf, in erst_dbg_write() argument 186 rc = copy_from_user(erst_dbg_buf, ubuf, usize); in erst_dbg_write()
|
/drivers/misc/vmw_vmci/ |
D | vmci_host.c | 433 void __user *ubuf = (void __user *)(uintptr_t)recv_info.addr; in vmci_host_do_receive_datagram() local 434 retval = copy_to_user(ubuf, dg, VMCI_DG_SIZE(dg)); in vmci_host_do_receive_datagram() 728 void __user *ubuf = (void __user *)(uintptr_t)get_info.cpt_buf; in vmci_host_do_ctx_get_cpt_state() local 729 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); in vmci_host_do_ctx_get_cpt_state() 874 void __user *ubuf; in vmci_host_do_recv_notifications() local 903 ubuf = (void __user *)(uintptr_t)info.db_handle_buf_uva; in vmci_host_do_recv_notifications() 904 info.result = drv_cp_harray_to_user(ubuf, &info.db_handle_buf_size, in vmci_host_do_recv_notifications() 907 ubuf = (void __user *)(uintptr_t)info.qp_handle_buf_uva; in vmci_host_do_recv_notifications() 908 info.result = drv_cp_harray_to_user(ubuf, in vmci_host_do_recv_notifications()
|
/drivers/usb/musb/ |
D | musb_debugfs.c | 196 const char __user *ubuf, size_t count, loff_t *ppos) in musb_test_mode_write() argument 213 if (copy_from_user(buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in musb_test_mode_write() 290 const char __user *ubuf, size_t count, loff_t *ppos) in musb_softconnect_write() argument 299 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in musb_softconnect_write()
|
/drivers/gpu/drm/ |
D | drm_debugfs.c | 275 static ssize_t connector_write(struct file *file, const char __user *ubuf, in connector_write() argument 285 if (copy_from_user(buf, ubuf, len)) in connector_write() 322 static ssize_t edid_write(struct file *file, const char __user *ubuf, in edid_write() argument 331 buf = memdup_user(ubuf, len); in edid_write()
|
/drivers/media/pci/cx18/ |
D | cx18-fileops.c | 275 struct cx18_buffer *buf, char __user *ubuf, size_t ucount, bool *stop) in cx18_copy_buf_to_user() argument 366 if (copy_to_user(ubuf, (u8 *)buf->buf + buf->readpos, len)) { in cx18_copy_buf_to_user() 379 struct cx18_mdl *mdl, char __user *ubuf, size_t ucount) in cx18_copy_mdl_to_user() argument 404 rc = cx18_copy_buf_to_user(s, mdl->curr_buf, ubuf + tot_written, in cx18_copy_mdl_to_user() 420 static ssize_t cx18_read(struct cx18_stream *s, char __user *ubuf, in cx18_read() argument 460 rc = cx18_copy_mdl_to_user(s, mdl, ubuf + tot_written, in cx18_read() 485 static ssize_t cx18_read_pos(struct cx18_stream *s, char __user *ubuf, in cx18_read_pos() argument 488 ssize_t rc = count ? cx18_read(s, ubuf, count, non_block) : 0; in cx18_read_pos()
|
/drivers/thermal/int340x_thermal/ |
D | acpi_thermal_rel.c | 238 static int fill_art(char __user *ubuf) in fill_art() argument 266 if (copy_to_user(ubuf, art_user, art_len)) in fill_art() 274 static int fill_trt(char __user *ubuf) in fill_trt() argument 301 if (copy_to_user(ubuf, trt_user, trt_len)) in fill_trt()
|
/drivers/tee/ |
D | tee_core.c | 282 struct tee_ioctl_buf_data __user *ubuf) in tee_ioctl_open_session() argument 296 if (copy_from_user(&buf, ubuf, sizeof(buf))) in tee_ioctl_open_session() 354 struct tee_ioctl_buf_data __user *ubuf) in tee_ioctl_invoke() argument 367 if (copy_from_user(&buf, ubuf, sizeof(buf))) in tee_ioctl_invoke() 489 struct tee_ioctl_buf_data __user *ubuf) in tee_ioctl_supp_recv() argument 501 if (copy_from_user(&buf, ubuf, sizeof(buf))) in tee_ioctl_supp_recv() 586 struct tee_ioctl_buf_data __user *ubuf) in tee_ioctl_supp_send() argument 599 if (copy_from_user(&buf, ubuf, sizeof(buf))) in tee_ioctl_supp_send()
|
/drivers/vhost/ |
D | net.c | 265 static void vhost_zerocopy_callback(struct ubuf_info *ubuf, bool success) in vhost_zerocopy_callback() argument 267 struct vhost_net_ubuf_ref *ubufs = ubuf->ctx; in vhost_zerocopy_callback() 274 vq->heads[ubuf->desc].len = success ? in vhost_zerocopy_callback() 440 struct ubuf_info *ubuf; in handle_tx() local 441 ubuf = nvq->ubuf_info + nvq->upend_idx; in handle_tx() 445 ubuf->callback = vhost_zerocopy_callback; in handle_tx() 446 ubuf->ctx = nvq->ubufs; in handle_tx() 447 ubuf->desc = nvq->upend_idx; in handle_tx() 448 msg.msg_control = ubuf; in handle_tx() 449 msg.msg_controllen = sizeof(ubuf); in handle_tx()
|
/drivers/scsi/snic/ |
D | snic_debugfs.c | 107 char __user *ubuf, in snic_reset_stats_read() argument 117 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); in snic_reset_stats_read() 136 const char __user *ubuf, in snic_reset_stats_write() argument 151 if (copy_from_user(&buf, ubuf, cnt)) in snic_reset_stats_write()
|
/drivers/usb/chipidea/ |
D | debug.c | 83 static ssize_t ci_port_test_write(struct file *file, const char __user *ubuf, in ci_port_test_write() argument 94 if (copy_from_user(buf, ubuf, count)) in ci_port_test_write() 303 static ssize_t ci_role_write(struct file *file, const char __user *ubuf, in ci_role_write() argument 312 if (copy_from_user(buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in ci_role_write()
|
/drivers/usb/class/ |
D | cdc-wdm.c | 77 u8 *ubuf; /* buffer for copy to user space */ member 209 memmove(desc->ubuf + desc->length, desc->inbuf, length); in wdm_in_callback() 343 kfree(desc->ubuf); in cleanup() 571 rv = copy_to_user(buffer, desc->ubuf, cntr); in wdm_read() 580 desc->ubuf[i] = desc->ubuf[i + cntr]; in wdm_read() 820 desc->ubuf = kmalloc(desc->wMaxCommand, GFP_KERNEL); in wdm_create() 821 if (!desc->ubuf) in wdm_create()
|
/drivers/xen/ |
D | mcelog.c | 106 static ssize_t xen_mce_chrdev_read(struct file *filp, char __user *ubuf, in xen_mce_chrdev_read() argument 109 char __user *buf = ubuf; in xen_mce_chrdev_read() 139 return err ? err : buf - ubuf; in xen_mce_chrdev_read()
|