Lines Matching refs:ubuf
109 static ssize_t thread_with_stdio_read(struct file *file, char __user *ubuf,
126 if (fault_in_writeable(ubuf, len) == len) {
134 if (b && !copy_to_user_nofault(ubuf, buf->buf.data, b)) {
135 ubuf += b;
162 static ssize_t thread_with_stdio_write(struct file *file, const char __user *ubuf,
177 size_t b = len - fault_in_readable(ubuf, len);
189 if (b && !copy_from_user_nofault(&darray_top(buf->buf), ubuf, b)) {
191 ubuf += b;
329 int bch2_stdio_redirect_read(struct stdio_redirect *stdio, char *ubuf, size_t len)
348 memcpy(ubuf, buf->buf.data, ret);
358 int bch2_stdio_redirect_readline(struct stdio_redirect *stdio, char *ubuf, size_t len)
380 memcpy(ubuf, buf->buf.data, b);
384 ubuf += b;