Lines Matching refs:nr_args

22 	u32				nr_args;  member
435 unsigned nr_args) in __io_sqe_files_update() argument
448 if (up->offset + nr_args > ctx->nr_user_files) in __io_sqe_files_update()
451 for (done = 0; done < nr_args; done++) { in __io_sqe_files_update()
515 unsigned int nr_args) in __io_sqe_buffers_update() argument
526 if (up->offset + nr_args > ctx->nr_user_bufs) in __io_sqe_buffers_update()
529 for (done = 0; done < nr_args; done++) { in __io_sqe_buffers_update()
575 unsigned nr_args) in __io_register_rsrc_update() argument
580 if (check_add_overflow(up->offset, nr_args, &tmp)) in __io_register_rsrc_update()
588 return __io_sqe_files_update(ctx, up, nr_args); in __io_register_rsrc_update()
590 return __io_sqe_buffers_update(ctx, up, nr_args); in __io_register_rsrc_update()
596 unsigned nr_args) in io_register_files_update() argument
600 if (!nr_args) in io_register_files_update()
607 return __io_register_rsrc_update(ctx, IORING_RSRC_FILE, &up, nr_args); in io_register_files_update()
666 up->nr_args = READ_ONCE(sqe->len); in io_files_update_prep()
667 if (!up->nr_args) in io_files_update_prep()
685 for (done = 0; done < up->nr_args; done++) { in io_files_update_with_index_alloc()
731 &up2, up->nr_args); in io_files_update()
938 unsigned nr_args, u64 __user *tags) in io_sqe_files_register() argument
947 if (!nr_args) in io_sqe_files_register()
949 if (nr_args > IORING_MAX_FIXED_FILES) in io_sqe_files_register()
951 if (nr_args > rlimit(RLIMIT_NOFILE)) in io_sqe_files_register()
956 ret = io_rsrc_data_alloc(ctx, io_rsrc_file_put, tags, nr_args, in io_sqe_files_register()
961 if (!io_alloc_file_tables(&ctx->file_table, nr_args)) { in io_sqe_files_register()
967 for (i = 0; i < nr_args; i++, ctx->nr_user_files++) { in io_sqe_files_register()
1244 static int io_buffers_map_alloc(struct io_ring_ctx *ctx, unsigned int nr_args) in io_buffers_map_alloc() argument
1246 ctx->user_bufs = kcalloc(nr_args, sizeof(*ctx->user_bufs), GFP_KERNEL); in io_buffers_map_alloc()
1251 unsigned int nr_args, u64 __user *tags) in io_sqe_buffers_register() argument
1262 if (!nr_args || nr_args > IORING_MAX_REG_BUFFERS) in io_sqe_buffers_register()
1267 ret = io_rsrc_data_alloc(ctx, io_rsrc_buf_put, tags, nr_args, &data); in io_sqe_buffers_register()
1270 ret = io_buffers_map_alloc(ctx, nr_args); in io_sqe_buffers_register()
1276 for (i = 0; i < nr_args; i++, ctx->nr_user_bufs++) { in io_sqe_buffers_register()