• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright 2020 Google LLC
4  */
5 
6 #ifndef _MMC_CORE_CRYPTO_H
7 #define _MMC_CORE_CRYPTO_H
8 
9 struct mmc_host;
10 struct mmc_queue_req;
11 struct request;
12 struct request_queue;
13 
14 #ifdef CONFIG_MMC_CRYPTO
15 
16 void mmc_crypto_setup_queue(struct mmc_host *host, struct request_queue *q);
17 
18 void mmc_crypto_free_host(struct mmc_host *host);
19 
20 void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq);
21 
22 #else /* CONFIG_MMC_CRYPTO */
23 
mmc_crypto_setup_queue(struct mmc_host * host,struct request_queue * q)24 static inline void mmc_crypto_setup_queue(struct mmc_host *host,
25 					  struct request_queue *q) { }
26 
mmc_crypto_free_host(struct mmc_host * host)27 static inline void mmc_crypto_free_host(struct mmc_host *host) { }
28 
mmc_crypto_prepare_req(struct mmc_queue_req * mqrq)29 static inline void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq) { }
30 
31 #endif /* CONFIG_MMC_CRYPTO */
32 
33 #endif /* _MMC_CORE_CRYPTO_H */
34