Lines Matching refs:restrictions
2079 * Check SQE restrictions (opcode and flags).
2087 if (!test_bit(req->opcode, ctx->restrictions.sqe_op))
2090 if ((sqe_flags & ctx->restrictions.sqe_flags_required) !=
2091 ctx->restrictions.sqe_flags_required)
2094 if (sqe_flags & ~(ctx->restrictions.sqe_flags_allowed |
2095 ctx->restrictions.sqe_flags_required))
4146 /* We allow only a single restrictions registration */
4147 if (ctx->restrictions.registered)
4172 ctx->restrictions.register_op);
4180 __set_bit(res[i].sqe_op, ctx->restrictions.sqe_op);
4183 ctx->restrictions.sqe_flags_allowed = res[i].sqe_flags;
4186 ctx->restrictions.sqe_flags_required = res[i].sqe_flags;
4195 /* Reset all restrictions if an error happened */
4197 memset(&ctx->restrictions, 0, sizeof(ctx->restrictions));
4199 ctx->restrictions.registered = true;
4220 if (ctx->restrictions.registered)
4383 if (!test_bit(opcode, ctx->restrictions.register_op))