Home
last modified time | relevance | path

Searched refs:prealloc_buf (Results 1 – 7 of 7) sorted by relevance

/linux-4.4.14/drivers/staging/comedi/
Dcomedi_buf.c68 if (async->prealloc_buf) { in __comedi_buf_free()
69 vunmap(async->prealloc_buf); in __comedi_buf_free()
70 async->prealloc_buf = NULL; in __comedi_buf_free()
145 async->prealloc_buf = vmap(pages, n_pages, VM_MAP, in __comedi_buf_alloc()
203 if (async->prealloc_buf && async->prealloc_bufsz == new_size) in comedi_buf_alloc()
215 if (!async->prealloc_buf) { in comedi_buf_alloc()
322 async->prealloc_buf + async->munge_ptr, in comedi_buf_munge()
507 memcpy(async->prealloc_buf + write_ptr, data, block_size); in comedi_buf_memcpy_to()
526 src = async->prealloc_buf + read_ptr; in comedi_buf_memcpy_from()
Dcomedidev.h353 void *prealloc_buf; member
Dcomedi_fops.c2424 m = copy_from_user(async->prealloc_buf + async->buf_write_ptr, in comedi_write()
2526 m = copy_to_user(buf, async->prealloc_buf + rp, n1); in comedi_read()
2530 m = copy_to_user(buf + n1, async->prealloc_buf, n2); in comedi_read()
/linux-4.4.14/fs/kernfs/
Dfile.c192 buf = of->prealloc_buf; in kernfs_file_direct_read()
231 if (buf != of->prealloc_buf) in kernfs_file_direct_read()
286 buf = of->prealloc_buf; in kernfs_fop_write()
323 if (buf != of->prealloc_buf) in kernfs_fop_write()
686 of->prealloc_buf = kmalloc(len + 1, GFP_KERNEL); in kernfs_fop_open()
688 if (!of->prealloc_buf) in kernfs_fop_open()
722 kfree(of->prealloc_buf); in kernfs_fop_open()
736 kfree(of->prealloc_buf); in kernfs_fop_release()
/linux-4.4.14/include/linux/
Dkernfs.h182 char *prealloc_buf; member
/linux-4.4.14/fs/sysfs/
Dfile.c117 if (pos || WARN_ON_ONCE(buf != of->prealloc_buf)) in sysfs_kf_read()
/linux-4.4.14/drivers/staging/comedi/drivers/
Dni_pcidio.c763 memset(s->async->prealloc_buf, 0xaa, s->async->prealloc_bufsz); in ni_pcidio_change()