Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/staging/comedi/
Dcomedi_buf.c60 if (async->prealloc_buf) { in __comedi_buf_free()
62 vunmap(async->prealloc_buf); in __comedi_buf_free()
63 async->prealloc_buf = NULL; in __comedi_buf_free()
171 async->prealloc_buf = buf->virt_addr; in __comedi_buf_alloc()
183 async->prealloc_buf = vmap(pages, n_pages, VM_MAP, in __comedi_buf_alloc()
268 if (async->prealloc_buf && async->prealloc_bufsz == new_size) in comedi_buf_alloc()
280 if (!async->prealloc_buf) { in comedi_buf_alloc()
387 async->prealloc_buf + async->munge_ptr, in comedi_buf_munge()
572 memcpy(async->prealloc_buf + write_ptr, data, block_size); in comedi_buf_memcpy_to()
591 src = async->prealloc_buf + read_ptr; in comedi_buf_memcpy_from()
Dcomedidev.h348 void *prealloc_buf; member
Dcomedi_fops.c2525 m = copy_from_user(async->prealloc_buf + wp, buf, n1); in comedi_write()
2529 m = copy_from_user(async->prealloc_buf, buf + n1, n2); in comedi_write()
2659 m = copy_to_user(buf, async->prealloc_buf + rp, n1); in comedi_read()
2663 m = copy_to_user(buf + n1, async->prealloc_buf, n2); in comedi_read()
/Linux-v5.4/fs/kernfs/
Dfile.c191 buf = of->prealloc_buf; in kernfs_file_direct_read()
231 if (buf == of->prealloc_buf) in kernfs_file_direct_read()
288 buf = of->prealloc_buf; in kernfs_fop_write()
326 if (buf == of->prealloc_buf) in kernfs_fop_write()
690 of->prealloc_buf = kmalloc(len + 1, GFP_KERNEL); in kernfs_fop_open()
692 if (!of->prealloc_buf) in kernfs_fop_open()
737 kfree(of->prealloc_buf); in kernfs_fop_open()
781 kfree(of->prealloc_buf); in kernfs_fop_release()
/Linux-v5.4/include/linux/
Dkernfs.h211 char *prealloc_buf; member
/Linux-v5.4/fs/sysfs/
Dfile.c114 if (WARN_ON_ONCE(buf != of->prealloc_buf)) in sysfs_kf_read()
/Linux-v5.4/drivers/staging/comedi/drivers/
Dni_pcidio.c751 memset(s->async->prealloc_buf, 0xaa, s->async->prealloc_bufsz); in ni_pcidio_change()