Lines Matching refs:restrictions
426 struct io_restriction restrictions;
7138 * Check SQE restrictions (opcode and flags).
7149 if (!test_bit(req->opcode, ctx->restrictions.sqe_op))
7152 if ((sqe_flags & ctx->restrictions.sqe_flags_required) !=
7153 ctx->restrictions.sqe_flags_required)
7156 if (sqe_flags & ~(ctx->restrictions.sqe_flags_allowed |
7157 ctx->restrictions.sqe_flags_required))
10593 /* We allow only a single restrictions registration */
10594 if (ctx->restrictions.registered)
10619 ctx->restrictions.register_op);
10627 __set_bit(res[i].sqe_op, ctx->restrictions.sqe_op);
10630 ctx->restrictions.sqe_flags_allowed = res[i].sqe_flags;
10633 ctx->restrictions.sqe_flags_required = res[i].sqe_flags;
10642 /* Reset all restrictions if an error happened */
10644 memset(&ctx->restrictions, 0, sizeof(ctx->restrictions));
10646 ctx->restrictions.registered = true;
10657 if (ctx->restrictions.registered)
10944 if (!test_bit(opcode, ctx->restrictions.register_op))