Lines Matching refs:file_slot
514 u32 file_slot; member
530 u32 file_slot; member
597 u32 file_slot; member
4098 req->open.file_slot = READ_ONCE(sqe->file_index); in __io_openat_prep()
4099 if (req->open.file_slot && (req->open.how.flags & O_CLOEXEC)) in __io_openat_prep()
4140 bool fixed = !!req->open.file_slot; in io_openat2()
4191 req->open.file_slot - 1); in io_openat2()
4535 req->close.file_slot = READ_ONCE(sqe->file_index); in io_close_prep()
4536 if (req->close.file_slot && req->close.fd) in io_close_prep()
4550 if (req->close.file_slot) { in io_close()
5044 accept->file_slot = READ_ONCE(sqe->file_index); in io_accept_prep()
5045 if (accept->file_slot && (accept->flags & SOCK_CLOEXEC)) in io_accept_prep()
5059 bool fixed = !!accept->file_slot; in io_accept()
5088 accept->file_slot - 1); in io_accept()
6752 static void io_fixed_file_set(struct io_fixed_file *file_slot, struct file *file) in io_fixed_file_set() argument
6762 file_slot->file_ptr = file_ptr; in io_fixed_file_set()
8309 struct io_fixed_file *file_slot; in io_install_fixed_file() local
8323 file_slot = io_fixed_file_slot(&ctx->file_table, slot_index); in io_install_fixed_file()
8325 if (file_slot->file_ptr) { in io_install_fixed_file()
8332 old_file = (struct file *)(file_slot->file_ptr & FFS_MASK); in io_install_fixed_file()
8337 file_slot->file_ptr = 0; in io_install_fixed_file()
8342 io_fixed_file_set(file_slot, file); in io_install_fixed_file()
8345 file_slot->file_ptr = 0; in io_install_fixed_file()
8361 unsigned int offset = req->close.file_slot - 1; in io_close_fixed()
8363 struct io_fixed_file *file_slot; in io_close_fixed() local
8379 file_slot = io_fixed_file_slot(&ctx->file_table, offset); in io_close_fixed()
8381 if (!file_slot->file_ptr) in io_close_fixed()
8384 file = (struct file *)(file_slot->file_ptr & FFS_MASK); in io_close_fixed()
8389 file_slot->file_ptr = 0; in io_close_fixed()
8404 struct io_fixed_file *file_slot; in __io_sqe_files_update() local
8431 file_slot = io_fixed_file_slot(&ctx->file_table, i); in __io_sqe_files_update()
8433 if (file_slot->file_ptr) { in __io_sqe_files_update()
8434 file = (struct file *)(file_slot->file_ptr & FFS_MASK); in __io_sqe_files_update()
8438 file_slot->file_ptr = 0; in __io_sqe_files_update()
8461 io_fixed_file_set(file_slot, file); in __io_sqe_files_update()
8464 file_slot->file_ptr = 0; in __io_sqe_files_update()