Home
last modified time | relevance | path

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

/openbmc/linux/io_uring/
H A Dfiletable.c74 if (slot_index >= ctx->nr_user_files) in io_install_fixed_file()
77 slot_index = array_index_nospec(slot_index, ctx->nr_user_files); in io_install_fixed_file()
142 if (offset >= ctx->nr_user_files) in io_fixed_fd_remove()
145 offset = array_index_nospec(offset, ctx->nr_user_files); in io_fixed_fd_remove()
170 if (range.resv || end > ctx->nr_user_files) in io_register_file_alloc_range()
H A Drsrc.c368 if (up->offset + nr_args > ctx->nr_user_files) in __io_sqe_files_update()
386 i = array_index_nospec(up->offset + done, ctx->nr_user_files); in __io_sqe_files_update()
665 for (i = 0; i < ctx->nr_user_files; i++) { in __io_sqe_files_unregister()
678 ctx->nr_user_files = 0; in __io_sqe_files_unregister()
683 unsigned nr = ctx->nr_user_files; in io_sqe_files_unregister()
693 ctx->nr_user_files = 0; in io_sqe_files_unregister()
695 ctx->nr_user_files = nr; in io_sqe_files_unregister()
728 for (i = 0; i < nr_args; i++, ctx->nr_user_files++) { in io_sqe_files_register()
761 io_file_table_set_alloc_range(ctx, 0, ctx->nr_user_files); in io_sqe_files_register()
H A Dfdinfo.c154 seq_printf(m, "UserFiles:\t%u\n", ctx->nr_user_files); in io_uring_show_fdinfo()
155 for (i = 0; has_lock && i < ctx->nr_user_files; i++) { in io_uring_show_fdinfo()
H A Dmsg_ring.c168 if (likely(idx < ctx->nr_user_files)) { in io_msg_grab_file()
169 idx = array_index_nospec(idx, ctx->nr_user_files); in io_msg_grab_file()
H A Dcancel.c246 if (unlikely(fd >= ctx->nr_user_files)) in __io_sync_cancel()
248 fd = array_index_nospec(fd, ctx->nr_user_files); in __io_sync_cancel()
H A Dio_uring.c2012 if (unlikely((unsigned int)fd >= ctx->nr_user_files)) in io_file_get_fixed()
2014 fd = array_index_nospec(fd, ctx->nr_user_files); in io_file_get_fixed()
4620 trace_io_uring_register(ctx, opcode, ctx->nr_user_files, ctx->nr_user_bufs, ret); in SYSCALL_DEFINE4()
/openbmc/linux/include/linux/
H A Dio_uring_types.h247 unsigned nr_user_files; member