Home
last modified time | relevance | path

Searched refs:ubuf (Results 1 – 25 of 39) sorted by relevance

12

/drivers/misc/sgi-gru/
Dgrukdump.c47 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
84 if (bytes > ubufend - ubuf) in gru_dump_tfm()
89 if (gru_user_copy_handle(&ubuf, tfm)) in gru_dump_tfm()
99 void __user *ubuf, void __user *ubufend) in gru_dump_tgh() argument
105 if (bytes > ubufend - ubuf) in gru_dump_tgh()
[all …]
/drivers/media/video/saa7164/
Dsaa7164-vbi.c71 struct saa7164_user_buffer *ubuf; in saa7164_vbi_buffers_dealloc() local
85 ubuf = list_entry(p, struct saa7164_user_buffer, list); in saa7164_vbi_buffers_dealloc()
87 saa7164_buffer_dealloc_user(ubuf); in saa7164_vbi_buffers_dealloc()
92 ubuf = list_entry(l, struct saa7164_user_buffer, list); in saa7164_vbi_buffers_dealloc()
94 saa7164_buffer_dealloc_user(ubuf); in saa7164_vbi_buffers_dealloc()
108 struct saa7164_user_buffer *ubuf; in saa7164_vbi_buffers_alloc() local
163 ubuf = saa7164_buffer_alloc_user(dev, len); in saa7164_vbi_buffers_alloc()
164 if (ubuf) { in saa7164_vbi_buffers_alloc()
166 list_add_tail(&ubuf->list, &port->list_buf_free.list); in saa7164_vbi_buffers_alloc()
866 struct saa7164_user_buffer *ubuf; in saa7164_vbi_stop_streaming() local
[all …]
Dsaa7164-encoder.c84 struct saa7164_user_buffer *ubuf; in saa7164_encoder_buffers_dealloc() local
98 ubuf = list_entry(p, struct saa7164_user_buffer, list); in saa7164_encoder_buffers_dealloc()
100 saa7164_buffer_dealloc_user(ubuf); in saa7164_encoder_buffers_dealloc()
105 ubuf = list_entry(l, struct saa7164_user_buffer, list); in saa7164_encoder_buffers_dealloc()
107 saa7164_buffer_dealloc_user(ubuf); in saa7164_encoder_buffers_dealloc()
121 struct saa7164_user_buffer *ubuf; in saa7164_encoder_buffers_alloc() local
192 ubuf = saa7164_buffer_alloc_user(dev, len); in saa7164_encoder_buffers_alloc()
193 if (ubuf) { in saa7164_encoder_buffers_alloc()
195 list_add_tail(&ubuf->list, &port->list_buf_free.list); in saa7164_encoder_buffers_alloc()
940 struct saa7164_user_buffer *ubuf; in saa7164_encoder_stop_streaming() local
[all …]
Dsaa7164-core.c281 struct saa7164_user_buffer *ubuf = NULL; in saa7164_work_enchandler_helper() local
336 ubuf = list_first_entry(&port->list_buf_free.list, in saa7164_work_enchandler_helper()
339 if (buf->actual_size <= ubuf->actual_size) { in saa7164_work_enchandler_helper()
341 memcpy_fromio(ubuf->data, buf->cpu, in saa7164_work_enchandler_helper()
342 ubuf->actual_size); in saa7164_work_enchandler_helper()
346 ubuf->crc = crc32(0, ubuf->data, ubuf->actual_size); in saa7164_work_enchandler_helper()
350 ubuf->pos = 0; in saa7164_work_enchandler_helper()
352 list_move_tail(&ubuf->list, in saa7164_work_enchandler_helper()
/drivers/net/wireless/mwifiex/
Ddebugfs.c174 mwifiex_info_read(struct file *file, char __user *ubuf, in mwifiex_info_read() argument
235 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_info_read()
263 mwifiex_getlog_read(struct file *file, char __user *ubuf, in mwifiex_getlog_read() argument
316 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_getlog_read()
374 mwifiex_debug_read(struct file *file, char __user *ubuf, in mwifiex_debug_read() argument
457 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_debug_read()
476 const char __user *ubuf, size_t count, loff_t *ppos) in mwifiex_regrdwr_write() argument
488 if (copy_from_user(buf, ubuf, buf_size)) { in mwifiex_regrdwr_write()
517 mwifiex_regrdwr_read(struct file *file, char __user *ubuf, in mwifiex_regrdwr_read() argument
544 ret = simple_read_from_buffer(ubuf, count, ppos, buf, pos); in mwifiex_regrdwr_read()
[all …]
/drivers/bluetooth/
Dbtmrvl_debugfs.c49 const char __user *ubuf, size_t count, loff_t *ppos) in btmrvl_hscfgcmd_write() argument
57 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in btmrvl_hscfgcmd_write()
94 static ssize_t btmrvl_psmode_write(struct file *file, const char __user *ubuf, in btmrvl_psmode_write() argument
103 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in btmrvl_psmode_write()
135 static ssize_t btmrvl_pscmd_write(struct file *file, const char __user *ubuf, in btmrvl_pscmd_write() argument
144 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in btmrvl_pscmd_write()
181 static ssize_t btmrvl_gpiogap_write(struct file *file, const char __user *ubuf, in btmrvl_gpiogap_write() argument
190 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in btmrvl_gpiogap_write()
222 static ssize_t btmrvl_hscmd_write(struct file *file, const char __user *ubuf, in btmrvl_hscmd_write() argument
231 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in btmrvl_hscmd_write()
[all …]
/drivers/macintosh/
Drack-meter.c62 u8 *ubuf; member
138 rm->ubuf[i] = (i & 1) * 255; in rackmeter_set_default_pattern()
140 rm->ubuf[i] = ((~i) & 1) * 255; in rackmeter_set_default_pattern()
239 rm->ubuf[i + offset] = ub; in rackmeter_do_timer()
317 sample |= ((rm->ubuf[led] >= 0x80) << 15); in rackmeter_calc_sample()
442 rm->ubuf = (u8 *)__get_free_page(GFP_KERNEL); in rackmeter_probe()
443 if (rm->ubuf == NULL) { in rackmeter_probe()
510 free_page((unsigned long)rm->ubuf); in rackmeter_probe()
550 free_page((unsigned long)rm->ubuf); in rackmeter_remove()
/drivers/acpi/apei/
Derst-dbg.c94 static ssize_t erst_dbg_read(struct file *filp, char __user *ubuf, in erst_dbg_read() argument
147 if (copy_to_user(ubuf, erst_dbg_buf, len)) in erst_dbg_read()
155 static ssize_t erst_dbg_write(struct file *filp, const char __user *ubuf, in erst_dbg_write() argument
181 rc = copy_from_user(erst_dbg_buf, ubuf, usize); in erst_dbg_write()
/drivers/media/video/cx18/
Dcx18-fileops.c274 struct cx18_buffer *buf, char __user *ubuf, size_t ucount, bool *stop) in cx18_copy_buf_to_user() argument
365 if (copy_to_user(ubuf, (u8 *)buf->buf + buf->readpos, len)) { in cx18_copy_buf_to_user()
378 struct cx18_mdl *mdl, char __user *ubuf, size_t ucount) in cx18_copy_mdl_to_user() argument
403 rc = cx18_copy_buf_to_user(s, mdl->curr_buf, ubuf + tot_written, in cx18_copy_mdl_to_user()
419 static ssize_t cx18_read(struct cx18_stream *s, char __user *ubuf, in cx18_read() argument
459 rc = cx18_copy_mdl_to_user(s, mdl, ubuf + tot_written, in cx18_read()
484 static ssize_t cx18_read_pos(struct cx18_stream *s, char __user *ubuf, in cx18_read_pos() argument
487 ssize_t rc = count ? cx18_read(s, ubuf, count, non_block) : 0; in cx18_read_pos()
/drivers/s390/char/
Dvmur.c230 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()
508 static ssize_t diag14_read(struct file *file, char __user *ubuf, size_t count, in diag14_read() argument
543 if (copy_to_user(ubuf + copied, buf + res, len)) { in diag14_read()
558 static ssize_t ur_read(struct file *file, char __user *ubuf, size_t count, in ur_read() argument
573 rc = diag14_read(file, ubuf, count, offs); in ur_read()
/drivers/usb/dwc3/
Ddebugfs.c433 const char __user *ubuf, size_t count, loff_t *ppos) in dwc3_mode_write() argument
441 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in dwc3_mode_write()
513 const char __user *ubuf, size_t count, loff_t *ppos) in dwc3_testmode_write() argument
521 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in dwc3_testmode_write()
614 const char __user *ubuf, size_t count, loff_t *ppos) in dwc3_link_state_write() argument
622 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in dwc3_link_state_write()
/drivers/vhost/
Dnet.c238 struct ubuf_info *ubuf; in handle_tx() local
239 ubuf = vq->ubuf_info + vq->upend_idx; in handle_tx()
242 ubuf->callback = vhost_zerocopy_callback; in handle_tx()
243 ubuf->ctx = vq->ubufs; in handle_tx()
244 ubuf->desc = vq->upend_idx; in handle_tx()
245 msg.msg_control = ubuf; in handle_tx()
246 msg.msg_controllen = sizeof(ubuf); in handle_tx()
/drivers/usb/class/
Dcdc-wdm.c101 u8 *ubuf; /* buffer for copy to user space */ member
221 memmove(desc->ubuf + desc->length, desc->inbuf, length); in wdm_in_callback()
340 kfree(desc->ubuf); in cleanup()
532 rv = copy_to_user(buffer, desc->ubuf, cntr); in wdm_read()
541 desc->ubuf[i] = desc->ubuf[i + cntr]; in wdm_read()
759 desc->ubuf = kmalloc(desc->wMaxCommand, GFP_KERNEL); in wdm_create()
760 if (!desc->ubuf) in wdm_create()
/drivers/xen/xenbus/
Dxenbus_dev_frontend.c120 char __user *ubuf, in xenbus_file_read() argument
147 ret = copy_to_user(ubuf + i, &rb->msg[rb->cons], sz); in xenbus_file_read()
430 const char __user *ubuf, in xenbus_file_write() argument
468 ret = copy_from_user(u->u.buffer + u->len, ubuf, len); in xenbus_file_write()
/drivers/usb/musb/
Dmusb_debugfs.c187 const char __user *ubuf, size_t count, loff_t *ppos) in musb_test_mode_write() argument
196 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in musb_test_mode_write()
/drivers/gpu/drm/i915/
Di915_debugfs.c1510 char __user *ubuf, in i915_wedged_read() argument
1526 return simple_read_from_buffer(ubuf, max, ppos, buf, len); in i915_wedged_read()
1531 const char __user *ubuf, in i915_wedged_write() argument
1543 if (copy_from_user(buf, ubuf, cnt)) in i915_wedged_write()
1566 char __user *ubuf, in i915_max_freq_read() argument
1581 return simple_read_from_buffer(ubuf, max, ppos, buf, len); in i915_max_freq_read()
1586 const char __user *ubuf, in i915_max_freq_write() argument
1599 if (copy_from_user(buf, ubuf, cnt)) in i915_max_freq_write()
1628 char __user *ubuf, in i915_cache_sharing_read() argument
1649 return simple_read_from_buffer(ubuf, max, ppos, buf, len); in i915_cache_sharing_read()
[all …]
/drivers/media/video/ivtv/
Divtv-fileops.c297 char __user *ubuf, size_t ucount) in ivtv_copy_buf_to_user() argument
343 if (copy_to_user(ubuf, (u8 *)buf->buf + buf->readpos, len)) { in ivtv_copy_buf_to_user()
356 static ssize_t ivtv_read(struct ivtv_stream *s, char __user *ubuf, size_t tot_count, int non_block) in ivtv_read() argument
393 rc = ivtv_copy_buf_to_user(s, buf, ubuf + tot_written, tot_count - tot_written); in ivtv_read()
413 static ssize_t ivtv_read_pos(struct ivtv_stream *s, char __user *ubuf, size_t count, in ivtv_read_pos() argument
416 ssize_t rc = count ? ivtv_read(s, ubuf, count, non_block) : 0; in ivtv_read_pos()
/drivers/staging/mei/
Dmain.c378 static ssize_t mei_read(struct file *file, char __user *ubuf, in mei_read() argument
417 rets = amthi_read(dev, file, ubuf, length, offset); in mei_read()
489 if (length == 0 || ubuf == NULL || *offset > cb->information) { in mei_read()
498 if (copy_to_user(ubuf, cb->response_buffer.data + *offset, length)) { in mei_read()
533 static ssize_t mei_write(struct file *file, const char __user *ubuf, in mei_write() argument
605 if (copy_from_user(write_cb->request_buffer.data, ubuf, length)) in mei_write()
/drivers/mmc/core/
Ddebugfs.c299 static ssize_t mmc_ext_csd_read(struct file *filp, char __user *ubuf, in mmc_ext_csd_read() argument
304 return simple_read_from_buffer(ubuf, cnt, ppos, in mmc_ext_csd_read()
/drivers/s390/cio/
Dqdio_debug.c191 static ssize_t qperf_seq_write(struct file *file, const char __user *ubuf, in qperf_seq_write() argument
203 ret = kstrtoul_from_user(ubuf, count, 10, &val); in qperf_seq_write()
/drivers/char/
Dvirtio_console.c628 static ssize_t port_fops_read(struct file *filp, char __user *ubuf, in port_fops_read() argument
672 return fill_readbuf(port, ubuf, count, true); in port_fops_read()
675 static ssize_t port_fops_write(struct file *filp, const char __user *ubuf, in port_fops_write() argument
710 ret = copy_from_user(buf, ubuf, count); in port_fops_write()
1048 static ssize_t debugfs_read(struct file *filp, char __user *ubuf, in debugfs_read() argument
1084 ret = simple_read_from_buffer(ubuf, count, offp, buf, out_offset); in debugfs_read()
/drivers/gpu/vga/
Dvga_switcheroo.c281 vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf, in vga_switcheroo_debugfs_write() argument
295 if (copy_from_user(usercmd, ubuf, cnt)) in vga_switcheroo_debugfs_write()
/drivers/idle/
Di7300_idle.c519 static ssize_t stats_read_ul(struct file *fp, char __user *ubuf, size_t count, in stats_read_ul() argument
527 return simple_read_from_buffer(ubuf, count, off, buf, len); in stats_read_ul()
/drivers/pnp/
Dinterface.c303 const char *ubuf, size_t count) in pnp_set_current_resources() argument
306 char *buf = (void *)ubuf; in pnp_set_current_resources()
/drivers/cdrom/
Dcdrom.c2094 static int cdrom_read_cdda_old(struct cdrom_device_info *cdi, __u8 __user *ubuf, in cdrom_read_cdda_old() argument
2128 if (copy_to_user(ubuf, cgc.buffer, CD_FRAMESIZE_RAW * nr)) { in cdrom_read_cdda_old()
2132 ubuf += CD_FRAMESIZE_RAW * nr; in cdrom_read_cdda_old()
2140 static int cdrom_read_cdda_bpc(struct cdrom_device_info *cdi, __u8 __user *ubuf, in cdrom_read_cdda_bpc() argument
2169 ret = blk_rq_map_user(q, rq, NULL, ubuf, len, GFP_KERNEL); in cdrom_read_cdda_bpc()
2206 ubuf += len; in cdrom_read_cdda_bpc()
2212 static int cdrom_read_cdda(struct cdrom_device_info *cdi, __u8 __user *ubuf, in cdrom_read_cdda() argument
2218 return cdrom_read_cdda_old(cdi, ubuf, lba, nframes); in cdrom_read_cdda()
2224 ret = cdrom_read_cdda_bpc(cdi, ubuf, lba, nframes); in cdrom_read_cdda()
2248 return cdrom_read_cdda_old(cdi, ubuf, lba, nframes); in cdrom_read_cdda()

12