Lines Matching defs:def
380 const struct io_cold_def *def = &io_cold_defs[req->opcode];
382 if (def->cleanup)
383 def->cleanup(req);
446 const struct io_issue_def *def = &io_issue_defs[req->opcode];
464 bool should_hash = def->hash_reg_file;
473 if (def->unbound_nonreg_file)
1037 const struct io_cold_def *def = &io_cold_defs[req->opcode];
1043 if (def->fail)
1044 def->fail(req);
1754 const struct io_issue_def *def = &io_issue_defs[req->opcode];
1757 if (def->needs_file && !(req->flags & REQ_F_FIXED_FILE) && !req->file)
1763 if (!def->manual_alloc) {
1822 static bool io_assign_file(struct io_kiocb *req, const struct io_issue_def *def,
1825 if (req->file || !def->needs_file)
1838 const struct io_issue_def *def = &io_issue_defs[req->opcode];
1842 if (unlikely(!io_assign_file(req, def, issue_flags)))
1848 if (!def->audit_skip)
1851 ret = def->issue(req, issue_flags);
1853 if (!def->audit_skip)
1872 if ((req->ctx->flags & IORING_SETUP_IOPOLL) && def->iopoll_queue)
1901 const struct io_issue_def *def = &io_issue_defs[req->opcode];
1920 if (!io_assign_file(req, def, issue_flags)) {
1927 bool opcode_poll = def->pollin || def->pollout;
2124 const struct io_issue_def *def;
2142 def = &io_issue_defs[opcode];
2148 if (!def->buffer_select)
2174 if (!def->ioprio && sqe->ioprio)
2176 if (!def->iopoll && (ctx->flags & IORING_SETUP_IOPOLL))
2179 if (def->needs_file) {
2188 if (state->need_plug && def->plug) {
2211 return def->prep(req, sqe);