Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/staging/comedi/
Dcomedi_buf.c59 if (async->prealloc_buf) { in __comedi_buf_free()
60 vunmap(async->prealloc_buf); in __comedi_buf_free()
61 async->prealloc_buf = NULL; in __comedi_buf_free()
136 async->prealloc_buf = vmap(pages, n_pages, VM_MAP, in __comedi_buf_alloc()
218 if (async->prealloc_buf && async->prealloc_bufsz == new_size) in comedi_buf_alloc()
230 if (!async->prealloc_buf) { in comedi_buf_alloc()
337 async->prealloc_buf + async->munge_ptr, in comedi_buf_munge()
522 memcpy(async->prealloc_buf + write_ptr, data, block_size); in comedi_buf_memcpy_to()
541 src = async->prealloc_buf + read_ptr; in comedi_buf_memcpy_from()
Dcomedidev.h348 void *prealloc_buf; member
Dcomedi_fops.c2394 m = copy_from_user(async->prealloc_buf + wp, buf, n1); in comedi_write()
2398 m = copy_from_user(async->prealloc_buf, buf + n1, n2); in comedi_write()
2528 m = copy_to_user(buf, async->prealloc_buf + rp, n1); in comedi_read()
2532 m = copy_to_user(buf + n1, async->prealloc_buf, n2); in comedi_read()
/Linux-v4.19/fs/kernfs/
Dfile.c192 buf = of->prealloc_buf; in kernfs_file_direct_read()
232 if (buf == of->prealloc_buf) in kernfs_file_direct_read()
289 buf = of->prealloc_buf; in kernfs_fop_write()
327 if (buf == of->prealloc_buf) in kernfs_fop_write()
691 of->prealloc_buf = kmalloc(len + 1, GFP_KERNEL); in kernfs_fop_open()
693 if (!of->prealloc_buf) in kernfs_fop_open()
738 kfree(of->prealloc_buf); in kernfs_fop_open()
782 kfree(of->prealloc_buf); in kernfs_fop_release()
/Linux-v4.19/include/linux/
Dkernfs.h210 char *prealloc_buf; member
/Linux-v4.19/fs/sysfs/
Dfile.c115 if (WARN_ON_ONCE(buf != of->prealloc_buf)) in sysfs_kf_read()
/Linux-v4.19/drivers/staging/comedi/drivers/
Dni_pcidio.c738 memset(s->async->prealloc_buf, 0xaa, s->async->prealloc_bufsz); in ni_pcidio_change()