.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /** |
---|
2 | 3 | * AES XCBC routines supporting the Power 7+ Nest Accelerators driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2011-2012 International Business Machines Inc. |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License as published by |
---|
8 | | - * the Free Software Foundation; version 2 only. |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope that it will be useful, |
---|
11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | | - * GNU General Public License for more details. |
---|
14 | | - * |
---|
15 | | - * You should have received a copy of the GNU General Public License |
---|
16 | | - * along with this program; if not, write to the Free Software |
---|
17 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
18 | 6 | * |
---|
19 | 7 | * Author: Kent Yoder <yoder1@us.ibm.com> |
---|
20 | 8 | */ |
---|
.. | .. |
---|
105 | 93 | nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); |
---|
106 | 94 | nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); |
---|
107 | 95 | |
---|
108 | | - rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, |
---|
109 | | - desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP); |
---|
| 96 | + rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, 0); |
---|
110 | 97 | if (rc) |
---|
111 | 98 | goto out; |
---|
112 | 99 | atomic_inc(&(nx_ctx->stats->aes_ops)); |
---|
.. | .. |
---|
134 | 121 | nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); |
---|
135 | 122 | nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); |
---|
136 | 123 | |
---|
137 | | - rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, |
---|
138 | | - desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP); |
---|
| 124 | + rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, 0); |
---|
139 | 125 | if (rc) |
---|
140 | 126 | goto out; |
---|
141 | 127 | atomic_inc(&(nx_ctx->stats->aes_ops)); |
---|
.. | .. |
---|
279 | 265 | goto out; |
---|
280 | 266 | } |
---|
281 | 267 | |
---|
282 | | - rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, |
---|
283 | | - desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP); |
---|
| 268 | + rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, 0); |
---|
284 | 269 | if (rc) |
---|
285 | 270 | goto out; |
---|
286 | 271 | |
---|
.. | .. |
---|
361 | 346 | goto out; |
---|
362 | 347 | } |
---|
363 | 348 | |
---|
364 | | - rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, |
---|
365 | | - desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP); |
---|
| 349 | + rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, 0); |
---|
366 | 350 | if (rc) |
---|
367 | 351 | goto out; |
---|
368 | 352 | |
---|