Lines Matching defs:def
387 const struct io_cold_def *def = &io_cold_defs[req->opcode];
389 if (def->cleanup)
390 def->cleanup(req);
453 const struct io_issue_def *def = &io_issue_defs[req->opcode];
470 bool should_hash = def->hash_reg_file;
479 if (def->unbound_nonreg_file)
1043 const struct io_cold_def *def = &io_cold_defs[req->opcode];
1049 if (def->fail)
1050 def->fail(req);
1800 const struct io_issue_def *def = &io_issue_defs[req->opcode];
1803 if (def->needs_file && !(req->flags & REQ_F_FIXED_FILE) && !req->file)
1809 if (!def->manual_alloc) {
1868 static bool io_assign_file(struct io_kiocb *req, const struct io_issue_def *def,
1871 if (req->file || !def->needs_file)
1884 const struct io_issue_def *def = &io_issue_defs[req->opcode];
1888 if (unlikely(!io_assign_file(req, def, issue_flags)))
1894 if (!def->audit_skip)
1897 ret = def->issue(req, issue_flags);
1899 if (!def->audit_skip)
1919 if ((req->ctx->flags & IORING_SETUP_IOPOLL) && def->iopoll_queue)
1948 const struct io_issue_def *def = &io_issue_defs[req->opcode];
1967 if (!io_assign_file(req, def, issue_flags)) {
1997 bool opcode_poll = def->pollin || def->pollout;
2200 const struct io_issue_def *def;
2219 def = &io_issue_defs[opcode];
2225 if (!def->buffer_select)
2251 if (!def->ioprio && sqe->ioprio)
2253 if (!def->iopoll && (ctx->flags & IORING_SETUP_IOPOLL))
2256 if (def->needs_file) {
2265 if (state->need_plug && def->plug) {
2288 return def->prep(req, sqe);