Home
last modified time | relevance | path

Searched refs:user_bufs (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/io_uring/
H A Drsrc.c458 if (ctx->user_bufs[i] != &dummy_ubuf) { in __io_sqe_buffers_update()
460 ctx->user_bufs[i]); in __io_sqe_buffers_update()
465 ctx->user_bufs[i] = (struct io_mapped_ubuf *)&dummy_ubuf; in __io_sqe_buffers_update()
468 ctx->user_bufs[i] = imu; in __io_sqe_buffers_update()
779 io_buffer_unmap(ctx, &ctx->user_bufs[i]); in __io_sqe_buffers_unregister()
780 kfree(ctx->user_bufs); in __io_sqe_buffers_unregister()
782 ctx->user_bufs = NULL; in __io_sqe_buffers_unregister()
831 struct io_mapped_ubuf *imu = ctx->user_bufs[i]; in headpage_already_acct()
1005 ctx->user_bufs = kcalloc(nr_args, sizeof(*ctx->user_bufs), GFP_KERNEL); in io_buffers_map_alloc()
1006 return ctx->user_bufs ? 0 : -ENOMEM; in io_buffers_map_alloc()
[all …]
H A During_cmd.c105 req->imu = ctx->user_bufs[index]; in io_uring_cmd_prep()
H A Dfdinfo.c165 struct io_mapped_ubuf *buf = ctx->user_bufs[i]; in io_uring_show_fdinfo()
H A Drw.c94 req->imu = ctx->user_bufs[index]; in io_prep_rw()
H A Dnet.c1073 req->imu = READ_ONCE(ctx->user_bufs[idx]); in io_send_zc_prep()
/openbmc/linux/fs/
H A Dpipe.c769 bool too_many_pipe_buffers_soft(unsigned long user_bufs) in too_many_pipe_buffers_soft() argument
773 return soft_limit && user_bufs > soft_limit; in too_many_pipe_buffers_soft()
776 bool too_many_pipe_buffers_hard(unsigned long user_bufs) in too_many_pipe_buffers_hard() argument
780 return hard_limit && user_bufs > hard_limit; in too_many_pipe_buffers_hard()
793 unsigned long user_bufs; in alloc_pipe_info() local
803 user_bufs = account_pipe_buffers(user, 0, pipe_bufs); in alloc_pipe_info()
805 if (too_many_pipe_buffers_soft(user_bufs) && pipe_is_unprivileged_user()) { in alloc_pipe_info()
806 user_bufs = account_pipe_buffers(user, pipe_bufs, PIPE_MIN_DEF_BUFFERS); in alloc_pipe_info()
810 if (too_many_pipe_buffers_hard(user_bufs) && pipe_is_unprivileged_user()) in alloc_pipe_info()
1333 unsigned long user_bufs; in pipe_set_size() local
[all …]
/openbmc/linux/include/linux/
H A Dpipe_fs_i.h282 bool too_many_pipe_buffers_soft(unsigned long user_bufs);
283 bool too_many_pipe_buffers_hard(unsigned long user_bufs);
H A Dio_uring_types.h249 struct io_mapped_ubuf **user_bufs; member
/openbmc/linux/kernel/
H A Dwatch_queue.c243 unsigned long user_bufs; in watch_queue_set_size() local
257 user_bufs = account_pipe_buffers(pipe->user, pipe->nr_accounted, nr_pages); in watch_queue_set_size()
260 (too_many_pipe_buffers_hard(user_bufs) || in watch_queue_set_size()
261 too_many_pipe_buffers_soft(user_bufs)) && in watch_queue_set_size()