nitrox_common.h 952 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NITROX_COMMON_H
  3. #define __NITROX_COMMON_H
  4. #include "nitrox_dev.h"
  5. #include "nitrox_req.h"
  6. int nitrox_crypto_register(void);
  7. void nitrox_crypto_unregister(void);
  8. int nitrox_register_aeads(void);
  9. void nitrox_unregister_aeads(void);
  10. int nitrox_register_skciphers(void);
  11. void nitrox_unregister_skciphers(void);
  12. void *crypto_alloc_context(struct nitrox_device *ndev);
  13. void crypto_free_context(void *ctx);
  14. struct nitrox_device *nitrox_get_first_device(void);
  15. void nitrox_put_device(struct nitrox_device *ndev);
  16. int nitrox_common_sw_init(struct nitrox_device *ndev);
  17. void nitrox_common_sw_cleanup(struct nitrox_device *ndev);
  18. void pkt_slc_resp_tasklet(unsigned long data);
  19. int nitrox_process_se_request(struct nitrox_device *ndev,
  20. struct se_crypto_request *req,
  21. completion_t cb,
  22. void *cb_arg);
  23. void backlog_qflush_work(struct work_struct *work);
  24. #endif /* __NITROX_COMMON_H */