| .. | .. |
|---|
| 1 | | -/* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 2 | 2 | /* |
|---|
| 3 | + * MMC crypto engine (inline encryption) support |
|---|
| 4 | + * |
|---|
| 3 | 5 | * Copyright 2020 Google LLC |
|---|
| 4 | 6 | */ |
|---|
| 5 | 7 | |
|---|
| .. | .. |
|---|
| 8 | 10 | |
|---|
| 9 | 11 | struct mmc_host; |
|---|
| 10 | 12 | struct mmc_queue_req; |
|---|
| 11 | | -struct request; |
|---|
| 12 | 13 | struct request_queue; |
|---|
| 13 | 14 | |
|---|
| 14 | 15 | #ifdef CONFIG_MMC_CRYPTO |
|---|
| 15 | 16 | |
|---|
| 16 | | -void mmc_crypto_setup_queue(struct mmc_host *host, struct request_queue *q); |
|---|
| 17 | +void mmc_crypto_set_initial_state(struct mmc_host *host); |
|---|
| 17 | 18 | |
|---|
| 18 | | -void mmc_crypto_free_host(struct mmc_host *host); |
|---|
| 19 | +void mmc_crypto_setup_queue(struct request_queue *q, struct mmc_host *host); |
|---|
| 19 | 20 | |
|---|
| 20 | 21 | void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq); |
|---|
| 21 | 22 | |
|---|
| 22 | 23 | #else /* CONFIG_MMC_CRYPTO */ |
|---|
| 23 | 24 | |
|---|
| 24 | | -static inline void mmc_crypto_setup_queue(struct mmc_host *host, |
|---|
| 25 | | - struct request_queue *q) { } |
|---|
| 25 | +static inline void mmc_crypto_set_initial_state(struct mmc_host *host) |
|---|
| 26 | +{ |
|---|
| 27 | +} |
|---|
| 26 | 28 | |
|---|
| 27 | | -static inline void mmc_crypto_free_host(struct mmc_host *host) { } |
|---|
| 29 | +static inline void mmc_crypto_setup_queue(struct request_queue *q, |
|---|
| 30 | + struct mmc_host *host) |
|---|
| 31 | +{ |
|---|
| 32 | +} |
|---|
| 28 | 33 | |
|---|
| 29 | | -static inline void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq) { } |
|---|
| 34 | +static inline void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq) |
|---|
| 35 | +{ |
|---|
| 36 | +} |
|---|
| 30 | 37 | |
|---|
| 31 | | -#endif /* CONFIG_MMC_CRYPTO */ |
|---|
| 38 | +#endif /* !CONFIG_MMC_CRYPTO */ |
|---|
| 32 | 39 | |
|---|
| 33 | 40 | #endif /* _MMC_CORE_CRYPTO_H */ |
|---|