Lines Matching refs:file_slot

506 	u32				file_slot;  member
522 u32 file_slot; member
589 u32 file_slot; member
4161 req->open.file_slot = READ_ONCE(sqe->file_index); in __io_openat_prep()
4162 if (req->open.file_slot && (req->open.how.flags & O_CLOEXEC)) in __io_openat_prep()
4203 bool fixed = !!req->open.file_slot; in io_openat2()
4254 req->open.file_slot - 1); in io_openat2()
4595 req->close.file_slot = READ_ONCE(sqe->file_index); in io_close_prep()
4596 if (req->close.file_slot && req->close.fd) in io_close_prep()
4610 if (req->close.file_slot) { in io_close()
5095 accept->file_slot = READ_ONCE(sqe->file_index); in io_accept_prep()
5096 if (accept->file_slot && ((req->open.how.flags & O_CLOEXEC) || in io_accept_prep()
5111 bool fixed = !!accept->file_slot; in io_accept()
5139 accept->file_slot - 1); in io_accept()
6831 static void io_fixed_file_set(struct io_fixed_file *file_slot, struct file *file) in io_fixed_file_set() argument
6841 file_slot->file_ptr = file_ptr; in io_fixed_file_set()
8358 struct io_fixed_file *file_slot; in io_install_fixed_file() local
8372 file_slot = io_fixed_file_slot(&ctx->file_table, slot_index); in io_install_fixed_file()
8374 if (file_slot->file_ptr) { in io_install_fixed_file()
8381 old_file = (struct file *)(file_slot->file_ptr & FFS_MASK); in io_install_fixed_file()
8386 file_slot->file_ptr = 0; in io_install_fixed_file()
8391 io_fixed_file_set(file_slot, file); in io_install_fixed_file()
8394 file_slot->file_ptr = 0; in io_install_fixed_file()
8410 unsigned int offset = req->close.file_slot - 1; in io_close_fixed()
8412 struct io_fixed_file *file_slot; in io_close_fixed() local
8428 file_slot = io_fixed_file_slot(&ctx->file_table, i); in io_close_fixed()
8430 if (!file_slot->file_ptr) in io_close_fixed()
8433 file = (struct file *)(file_slot->file_ptr & FFS_MASK); in io_close_fixed()
8438 file_slot->file_ptr = 0; in io_close_fixed()
8453 struct io_fixed_file *file_slot; in __io_sqe_files_update() local
8480 file_slot = io_fixed_file_slot(&ctx->file_table, i); in __io_sqe_files_update()
8482 if (file_slot->file_ptr) { in __io_sqe_files_update()
8483 file = (struct file *)(file_slot->file_ptr & FFS_MASK); in __io_sqe_files_update()
8488 file_slot->file_ptr = 0; in __io_sqe_files_update()
8511 io_fixed_file_set(file_slot, file); in __io_sqe_files_update()
8514 file_slot->file_ptr = 0; in __io_sqe_files_update()