Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * MMC crypto engine (inline encryption) support
0004  *
0005  * Copyright 2020 Google LLC
0006  */
0007 
0008 #ifndef _MMC_CORE_CRYPTO_H
0009 #define _MMC_CORE_CRYPTO_H
0010 
0011 struct mmc_host;
0012 struct mmc_queue_req;
0013 struct request_queue;
0014 
0015 #ifdef CONFIG_MMC_CRYPTO
0016 
0017 void mmc_crypto_set_initial_state(struct mmc_host *host);
0018 
0019 void mmc_crypto_setup_queue(struct request_queue *q, struct mmc_host *host);
0020 
0021 void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq);
0022 
0023 #else /* CONFIG_MMC_CRYPTO */
0024 
0025 static inline void mmc_crypto_set_initial_state(struct mmc_host *host)
0026 {
0027 }
0028 
0029 static inline void mmc_crypto_setup_queue(struct request_queue *q,
0030                       struct mmc_host *host)
0031 {
0032 }
0033 
0034 static inline void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq)
0035 {
0036 }
0037 
0038 #endif /* !CONFIG_MMC_CRYPTO */
0039 
0040 #endif /* _MMC_CORE_CRYPTO_H */