Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __NITROX_COMMON_H
0003 #define __NITROX_COMMON_H
0004 
0005 #include "nitrox_dev.h"
0006 #include "nitrox_req.h"
0007 
0008 int nitrox_crypto_register(void);
0009 void nitrox_crypto_unregister(void);
0010 int nitrox_register_aeads(void);
0011 void nitrox_unregister_aeads(void);
0012 int nitrox_register_skciphers(void);
0013 void nitrox_unregister_skciphers(void);
0014 void *crypto_alloc_context(struct nitrox_device *ndev);
0015 void crypto_free_context(void *ctx);
0016 struct nitrox_device *nitrox_get_first_device(void);
0017 void nitrox_put_device(struct nitrox_device *ndev);
0018 
0019 int nitrox_common_sw_init(struct nitrox_device *ndev);
0020 void nitrox_common_sw_cleanup(struct nitrox_device *ndev);
0021 
0022 void pkt_slc_resp_tasklet(unsigned long data);
0023 int nitrox_process_se_request(struct nitrox_device *ndev,
0024                   struct se_crypto_request *req,
0025                   completion_t cb,
0026                   void *cb_arg);
0027 void backlog_qflush_work(struct work_struct *work);
0028 
0029 
0030 #endif /* __NITROX_COMMON_H */