Lines Matching refs:nr_args

25 	u32				nr_args;  member
333 unsigned nr_args) in __io_sqe_files_update() argument
344 if (up->offset + nr_args > ctx->nr_user_files) in __io_sqe_files_update()
347 for (done = 0; done < nr_args; done++) { in __io_sqe_files_update()
398 unsigned int nr_args) in __io_sqe_buffers_update() argument
410 if (up->offset + nr_args > ctx->nr_user_bufs) in __io_sqe_buffers_update()
413 for (done = 0; done < nr_args; done++) { in __io_sqe_buffers_update()
461 unsigned nr_args) in __io_register_rsrc_update() argument
467 if (check_add_overflow(up->offset, nr_args, &tmp)) in __io_register_rsrc_update()
472 return __io_sqe_files_update(ctx, up, nr_args); in __io_register_rsrc_update()
474 return __io_sqe_buffers_update(ctx, up, nr_args); in __io_register_rsrc_update()
480 unsigned nr_args) in io_register_files_update() argument
484 if (!nr_args) in io_register_files_update()
491 return __io_register_rsrc_update(ctx, IORING_RSRC_FILE, &up, nr_args); in io_register_files_update()
550 up->nr_args = READ_ONCE(sqe->len); in io_files_update_prep()
551 if (!up->nr_args) in io_files_update_prep()
569 for (done = 0; done < up->nr_args; done++) { in io_files_update_with_index_alloc()
615 &up2, up->nr_args); in io_files_update()
687 unsigned nr_args, u64 __user *tags) in io_sqe_files_register() argument
696 if (!nr_args) in io_sqe_files_register()
698 if (nr_args > IORING_MAX_FIXED_FILES) in io_sqe_files_register()
700 if (nr_args > rlimit(RLIMIT_NOFILE)) in io_sqe_files_register()
702 ret = io_rsrc_data_alloc(ctx, IORING_RSRC_FILE, tags, nr_args, in io_sqe_files_register()
707 if (!io_alloc_file_tables(&ctx->file_table, nr_args)) { in io_sqe_files_register()
713 for (i = 0; i < nr_args; i++, ctx->nr_user_files++) { in io_sqe_files_register()
1019 static int io_buffers_map_alloc(struct io_ring_ctx *ctx, unsigned int nr_args) in io_buffers_map_alloc() argument
1021 ctx->user_bufs = kcalloc(nr_args, sizeof(*ctx->user_bufs), GFP_KERNEL); in io_buffers_map_alloc()
1026 unsigned int nr_args, u64 __user *tags) in io_sqe_buffers_register() argument
1038 if (!nr_args || nr_args > IORING_MAX_REG_BUFFERS) in io_sqe_buffers_register()
1040 ret = io_rsrc_data_alloc(ctx, IORING_RSRC_BUFFER, tags, nr_args, &data); in io_sqe_buffers_register()
1043 ret = io_buffers_map_alloc(ctx, nr_args); in io_sqe_buffers_register()
1052 for (i = 0; i < nr_args; i++, ctx->nr_user_bufs++) { in io_sqe_buffers_register()