| /kernel/linux/linux-6.6/drivers/crypto/starfive/ |
| H A D | jh7110-cryp.c | 39 struct starfive_cryp_dev *cryp = NULL, *tmp; in starfive_cryp_find_dev() local 64 static int starfive_dma_init(struct starfive_cryp_dev *cryp) in starfive_dma_init() argument 86 starfive_dma_cleanup(struct starfive_cryp_dev *cryp) starfive_dma_cleanup() argument 96 struct starfive_cryp_dev *cryp = (struct starfive_cryp_dev *)priv; starfive_cryp_irq() local 123 struct starfive_cryp_dev *cryp; starfive_cryp_probe() local 238 struct starfive_cryp_dev *cryp = platform_get_drvdata(pdev); starfive_cryp_remove() local [all...] |
| H A D | jh7110-rsa.c | 45 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_pka_wait_done() local 53 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_pka_irq_mask_clear() local 92 struct starfive_cryp_dev *cryp in starfive_rsa_montgomery_form() local 193 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_rsa_cpu_start() local 274 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_rsa_enc_core() local 310 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_rsa_enc() local 342 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_rsa_dec() local [all...] |
| H A D | jh7110-aes.c | 52 static inline int starfive_aes_wait_busy(struct starfive_cryp_dev *cryp) in starfive_aes_wait_busy() argument 60 static inline int starfive_aes_wait_keydone(struct starfive_cryp_dev *cryp) in starfive_aes_wait_keydone() argument 68 static inline int starfive_aes_wait_gcmdone(struct starfive_cryp_dev *cryp) in starfive_aes_wait_gcmdone() argument 76 static inline int is_gcm(struct starfive_cryp_dev *cryp) in is_gcm() argument 81 static inline int is_encrypt(struct starfive_cryp_dev *cryp) in is_encrypt() argument 88 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_aead_hw_start() local 108 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_set_ivlen() local 118 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_set_alen() local 126 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_set_mlen() local 143 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_write_iv() local 161 starfive_aes_get_iv(struct starfive_cryp_dev *cryp, u32 *iv) starfive_aes_get_iv() argument 171 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_write_nonce() local 181 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_write_key() local 209 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_ccm_init() local 237 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_hw_init() local 310 starfive_aes_read_authtag(struct starfive_cryp_dev *cryp) starfive_aes_read_authtag() argument 339 starfive_aes_finish_req(struct starfive_cryp_dev *cryp) starfive_aes_finish_req() argument 365 struct starfive_cryp_dev *cryp = (struct starfive_cryp_dev *)param; starfive_aes_done_task() local 398 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_gcm_write_adata() local 426 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_ccm_write_adata() local 466 struct starfive_cryp_dev *cryp; starfive_aes_prepare_req() local 523 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_do_one_req() local 571 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_aead_do_one_req() local 624 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_aead_init_tfm() local 658 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_crypt() local 674 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_aes_aead_crypt() local [all...] |
| H A D | jh7110-hash.c | 41 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_wait_busy() local 50 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_wait_key_done() local 60 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_hmac_key() local 91 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_hash_start() local 116 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_hash_xmit_dma() local 171 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_hash_xmit() local 219 struct starfive_cryp_dev *cryp = (struct starfive_cryp_dev *)param; starfive_hash_done_task() local 263 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_hash_one_request() local 360 struct starfive_cryp_dev *cryp = ctx->cryp; starfive_hash_digest() local [all...] |
| H A D | jh7110-cryp.h | 153 struct starfive_cryp_dev *cryp; member
|
| /kernel/linux/linux-5.10/drivers/crypto/mediatek/ |
| H A D | mtk-platform.h | 146 struct mtk_cryp *cryp; member 183 struct mtk_cryp *cryp; member
|
| H A D | mtk-platform.c | 120 static void mtk_desc_ring_link(struct mtk_cryp *cryp, u32 mask) in mtk_desc_ring_link() argument 127 static void mtk_dfe_dse_buf_setup(struct mtk_cryp *cryp, in mtk_dfe_dse_buf_setup() argument 162 mtk_dfe_dse_state_check(struct mtk_cryp *cryp) mtk_dfe_dse_state_check() argument 186 mtk_dfe_dse_reset(struct mtk_cryp *cryp) mtk_dfe_dse_reset() argument 204 mtk_cmd_desc_ring_setup(struct mtk_cryp *cryp, int i, struct mtk_sys_cap *cap) mtk_cmd_desc_ring_setup() argument 245 mtk_res_desc_ring_setup(struct mtk_cryp *cryp, int i, struct mtk_sys_cap *cap) mtk_res_desc_ring_setup() argument 295 mtk_packet_engine_setup(struct mtk_cryp *cryp) mtk_packet_engine_setup() argument 349 mtk_aic_cap_check(struct mtk_cryp *cryp, int hw) mtk_aic_cap_check() argument 374 mtk_aic_init(struct mtk_cryp *cryp, int hw) mtk_aic_init() argument 398 mtk_accelerator_init(struct mtk_cryp *cryp) mtk_accelerator_init() argument 421 mtk_desc_dma_free(struct mtk_cryp *cryp) mtk_desc_dma_free() argument 436 mtk_desc_ring_alloc(struct mtk_cryp *cryp) mtk_desc_ring_alloc() argument 478 struct mtk_cryp *cryp; mtk_crypto_probe() local 553 struct mtk_cryp *cryp = platform_get_drvdata(pdev); mtk_crypto_remove() local [all...] |
| H A D | mtk-sha.c | 105 struct mtk_cryp *cryp; member 127 static inline u32 mtk_sha_read(struct mtk_cryp *cryp, u32 offset) in mtk_sha_read() argument 132 static inline void mtk_sha_write(struct mtk_cryp *cryp, in mtk_sha_write() argument 155 struct mtk_cryp *cryp = NULL; in mtk_sha_find_dev() local 320 mtk_sha_info_update(struct mtk_cryp *cryp, struct mtk_sha_rec *sha, size_t len1, size_t len2) mtk_sha_info_update() argument 421 mtk_sha_xmit(struct mtk_cryp *cryp, struct mtk_sha_rec *sha, dma_addr_t addr1, size_t len1, dma_addr_t addr2, size_t len2) mtk_sha_xmit() argument 468 mtk_sha_dma_map(struct mtk_cryp *cryp, struct mtk_sha_rec *sha, struct mtk_sha_reqctx *ctx, size_t count) mtk_sha_dma_map() argument 485 mtk_sha_update_slow(struct mtk_cryp *cryp, struct mtk_sha_rec *sha) mtk_sha_update_slow() argument 512 mtk_sha_update_start(struct mtk_cryp *cryp, struct mtk_sha_rec *sha) mtk_sha_update_start() argument 602 mtk_sha_final_req(struct mtk_cryp *cryp, struct mtk_sha_rec *sha) mtk_sha_final_req() argument 635 mtk_sha_finish_req(struct mtk_cryp *cryp, struct mtk_sha_rec *sha, int err) mtk_sha_finish_req() argument 650 mtk_sha_handle_queue(struct mtk_cryp *cryp, u8 id, struct ahash_request *req) mtk_sha_handle_queue() argument 713 mtk_sha_unmap(struct mtk_cryp *cryp, struct mtk_sha_rec *sha) mtk_sha_unmap() argument 736 mtk_sha_complete(struct mtk_cryp *cryp, struct mtk_sha_rec *sha) mtk_sha_complete() argument 849 struct mtk_cryp *cryp = NULL; mtk_sha_cra_init_alg() local 1176 struct mtk_cryp *cryp = sha->cryp; mtk_sha_done_task() local 1185 struct mtk_cryp *cryp = sha->cryp; mtk_sha_irq() local 1206 mtk_sha_record_init(struct mtk_cryp *cryp) mtk_sha_record_init() argument 1241 mtk_sha_record_free(struct mtk_cryp *cryp) mtk_sha_record_free() argument 1293 mtk_hash_alg_register(struct mtk_cryp *cryp) mtk_hash_alg_register() argument 1344 mtk_hash_alg_release(struct mtk_cryp *cryp) mtk_hash_alg_release() argument [all...] |
| H A D | mtk-aes.c | 107 struct mtk_cryp *cryp; member 153 static inline u32 mtk_aes_read(struct mtk_cryp *cryp, u32 offset) in mtk_aes_read() argument 158 static inline void mtk_aes_write(struct mtk_cryp *cryp, in mtk_aes_write() argument 166 struct mtk_cryp *cryp = NULL; in mtk_aes_find_dev() local 245 mtk_aes_complete(struct mtk_cryp *cryp, struct mtk_aes_rec *aes, int err) mtk_aes_complete() argument 260 mtk_aes_xmit(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_xmit() argument 322 mtk_aes_unmap(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_unmap() argument 354 mtk_aes_map(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_map() argument 397 mtk_aes_info_init(struct mtk_cryp *cryp, struct mtk_aes_rec *aes, size_t len) mtk_aes_info_init() argument 446 mtk_aes_dma(struct mtk_cryp *cryp, struct mtk_aes_rec *aes, struct scatterlist *src, struct scatterlist *dst, size_t len) mtk_aes_dma() argument 492 mtk_aes_handle_queue(struct mtk_cryp *cryp, u8 id, struct crypto_async_request *new_areq) mtk_aes_handle_queue() argument 530 mtk_aes_transfer_complete(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_transfer_complete() argument 536 mtk_aes_start(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_start() argument 553 mtk_aes_ctr_transfer(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_ctr_transfer() argument 602 mtk_aes_ctr_start(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_ctr_start() argument 650 struct mtk_cryp *cryp; mtk_aes_crypt() local 831 mtk_aes_gcm_tag_verify(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_gcm_tag_verify() argument 841 mtk_aes_gcm_info_init(struct mtk_cryp *cryp, struct mtk_aes_rec *aes, size_t len) mtk_aes_gcm_info_init() argument 879 mtk_aes_gcm_dma(struct mtk_cryp *cryp, struct mtk_aes_rec *aes, struct scatterlist *src, struct scatterlist *dst, size_t len) mtk_aes_gcm_dma() argument 922 mtk_aes_gcm_start(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_gcm_start() argument 952 struct mtk_cryp *cryp; mtk_aes_gcm_crypt() local 1093 struct mtk_cryp *cryp = aes->cryp; mtk_aes_done_task() local 1102 struct mtk_cryp *cryp = aes->cryp; mtk_aes_irq() local 1125 mtk_aes_record_init(struct mtk_cryp *cryp) mtk_aes_record_init() argument 1166 mtk_aes_record_free(struct mtk_cryp *cryp) mtk_aes_record_free() argument 1212 mtk_cipher_alg_register(struct mtk_cryp *cryp) mtk_cipher_alg_register() argument 1263 mtk_cipher_alg_release(struct mtk_cryp *cryp) mtk_cipher_alg_release() argument [all...] |
| /kernel/linux/linux-5.10/drivers/crypto/stm32/ |
| H A D | stm32-cryp.c | 116 struct stm32_cryp *cryp; member 167 static inline bool is_aes(struct stm32_cryp *cryp) in is_aes() argument 172 static inline bool is_des(struct stm32_cryp *cryp) in is_des() argument 177 static inline bool is_tdes(struct stm32_cryp *cryp) in is_tdes() argument 182 static inline bool is_ecb(struct stm32_cryp *cryp) in is_ecb() argument 187 is_cbc(struct stm32_cryp *cryp) is_cbc() argument 192 is_ctr(struct stm32_cryp *cryp) is_ctr() argument 197 is_gcm(struct stm32_cryp *cryp) is_gcm() argument 202 is_ccm(struct stm32_cryp *cryp) is_ccm() argument 207 is_encrypt(struct stm32_cryp *cryp) is_encrypt() argument 212 is_decrypt(struct stm32_cryp *cryp) is_decrypt() argument 217 stm32_cryp_read(struct stm32_cryp *cryp, u32 ofst) stm32_cryp_read() argument 222 stm32_cryp_write(struct stm32_cryp *cryp, u32 ofst, u32 val) stm32_cryp_write() argument 227 stm32_cryp_wait_busy(struct stm32_cryp *cryp) stm32_cryp_wait_busy() argument 235 stm32_cryp_wait_enable(struct stm32_cryp *cryp) stm32_cryp_wait_enable() argument 243 stm32_cryp_wait_output(struct stm32_cryp *cryp) stm32_cryp_wait_output() argument 256 struct stm32_cryp *tmp, *cryp = NULL; stm32_cryp_find_dev() local 274 stm32_cryp_hw_write_iv(struct stm32_cryp *cryp, __be32 *iv) stm32_cryp_hw_write_iv() argument 288 stm32_cryp_get_iv(struct stm32_cryp *cryp) stm32_cryp_get_iv() argument 321 stm32_cryp_get_hw_mode(struct stm32_cryp *cryp) stm32_cryp_get_hw_mode() argument 354 stm32_cryp_get_input_text_len(struct stm32_cryp *cryp) stm32_cryp_get_input_text_len() argument 360 stm32_cryp_gcm_init(struct stm32_cryp *cryp, u32 cfg) stm32_cryp_gcm_init() argument 392 stm32_crypt_gcmccm_end_header(struct stm32_cryp *cryp) stm32_crypt_gcmccm_end_header() argument 427 stm32_cryp_write_ccm_first_header(struct stm32_cryp *cryp) stm32_cryp_write_ccm_first_header() argument 463 stm32_cryp_ccm_init(struct stm32_cryp *cryp, u32 cfg) stm32_cryp_ccm_init() argument 528 stm32_cryp_hw_init(struct stm32_cryp *cryp) stm32_cryp_hw_init() argument 617 stm32_cryp_finish_req(struct stm32_cryp *cryp, int err) stm32_cryp_finish_req() argument 636 stm32_cryp_cpu_start(struct stm32_cryp *cryp) stm32_cryp_cpu_start() argument 682 struct stm32_cryp *cryp = stm32_cryp_find_dev(ctx); stm32_cryp_crypt() local 696 struct stm32_cryp *cryp = stm32_cryp_find_dev(ctx); stm32_cryp_aead_crypt() local 987 struct stm32_cryp *cryp; stm32_cryp_prepare_req() local 1085 struct stm32_cryp *cryp = ctx->cryp; stm32_cryp_cipher_one_req() local 1106 struct stm32_cryp *cryp = ctx->cryp; stm32_cryp_aead_one_req() local 1120 stm32_cryp_read_auth_tag(struct stm32_cryp *cryp) stm32_cryp_read_auth_tag() argument 1206 stm32_cryp_check_ctr_counter(struct stm32_cryp *cryp) stm32_cryp_check_ctr_counter() argument 1232 stm32_cryp_irq_read_data(struct stm32_cryp *cryp) stm32_cryp_irq_read_data() argument 1246 stm32_cryp_irq_write_block(struct stm32_cryp *cryp) stm32_cryp_irq_write_block() argument 1259 stm32_cryp_irq_write_gcm_padded_data(struct stm32_cryp *cryp) stm32_cryp_irq_write_gcm_padded_data() argument 1335 stm32_cryp_irq_set_npblb(struct stm32_cryp *cryp) stm32_cryp_irq_set_npblb() argument 1349 stm32_cryp_irq_write_ccm_padded_data(struct stm32_cryp *cryp) stm32_cryp_irq_write_ccm_padded_data() argument 1436 stm32_cryp_irq_write_data(struct stm32_cryp *cryp) stm32_cryp_irq_write_data() argument 1477 stm32_cryp_irq_write_gcmccm_header(struct stm32_cryp *cryp) stm32_cryp_irq_write_gcmccm_header() argument 1496 struct stm32_cryp *cryp = arg; stm32_cryp_irq_thread() local 1536 struct stm32_cryp *cryp = arg; stm32_cryp_irq() local 1732 struct stm32_cryp *cryp; stm32_cryp_probe() local 1844 struct stm32_cryp *cryp = platform_get_drvdata(pdev); stm32_cryp_remove() local 1874 struct stm32_cryp *cryp = dev_get_drvdata(dev); stm32_cryp_runtime_suspend() local 1883 struct stm32_cryp *cryp = dev_get_drvdata(dev); stm32_cryp_runtime_resume() local [all...] |
| /kernel/linux/linux-6.6/drivers/crypto/stm32/ |
| H A D | stm32-cryp.c | 161 struct stm32_cryp *cryp; member 212 static inline bool is_aes(struct stm32_cryp *cryp) in is_aes() argument 217 static inline bool is_des(struct stm32_cryp *cryp) in is_des() argument 222 static inline bool is_tdes(struct stm32_cryp *cryp) in is_tdes() argument 227 static inline bool is_ecb(struct stm32_cryp *cryp) in is_ecb() argument 232 is_cbc(struct stm32_cryp *cryp) is_cbc() argument 237 is_ctr(struct stm32_cryp *cryp) is_ctr() argument 242 is_gcm(struct stm32_cryp *cryp) is_gcm() argument 247 is_ccm(struct stm32_cryp *cryp) is_ccm() argument 252 is_encrypt(struct stm32_cryp *cryp) is_encrypt() argument 257 is_decrypt(struct stm32_cryp *cryp) is_decrypt() argument 262 stm32_cryp_read(struct stm32_cryp *cryp, u32 ofst) stm32_cryp_read() argument 267 stm32_cryp_write(struct stm32_cryp *cryp, u32 ofst, u32 val) stm32_cryp_write() argument 272 stm32_cryp_wait_busy(struct stm32_cryp *cryp) stm32_cryp_wait_busy() argument 280 stm32_cryp_enable(struct stm32_cryp *cryp) stm32_cryp_enable() argument 286 stm32_cryp_wait_enable(struct stm32_cryp *cryp) stm32_cryp_wait_enable() argument 294 stm32_cryp_wait_output(struct stm32_cryp *cryp) stm32_cryp_wait_output() argument 302 stm32_cryp_key_read_enable(struct stm32_cryp *cryp) stm32_cryp_key_read_enable() argument 308 stm32_cryp_key_read_disable(struct stm32_cryp *cryp) stm32_cryp_key_read_disable() argument 319 struct stm32_cryp *tmp, *cryp = NULL; stm32_cryp_find_dev() local 337 stm32_cryp_hw_write_iv(struct stm32_cryp *cryp, __be32 *iv) stm32_cryp_hw_write_iv() argument 351 stm32_cryp_get_iv(struct stm32_cryp *cryp) stm32_cryp_get_iv() argument 493 stm32_cryp_get_hw_mode(struct stm32_cryp *cryp) stm32_cryp_get_hw_mode() argument 526 stm32_cryp_get_input_text_len(struct stm32_cryp *cryp) stm32_cryp_get_input_text_len() argument 532 stm32_cryp_gcm_init(struct stm32_cryp *cryp, u32 cfg) stm32_cryp_gcm_init() argument 564 stm32_crypt_gcmccm_end_header(struct stm32_cryp *cryp) stm32_crypt_gcmccm_end_header() argument 599 stm32_cryp_write_ccm_first_header(struct stm32_cryp *cryp) stm32_cryp_write_ccm_first_header() argument 634 stm32_cryp_ccm_init(struct stm32_cryp *cryp, u32 cfg) stm32_cryp_ccm_init() argument 699 stm32_cryp_hw_init(struct stm32_cryp *cryp) stm32_cryp_hw_init() argument 801 stm32_cryp_finish_req(struct stm32_cryp *cryp, int err) stm32_cryp_finish_req() argument 820 stm32_cryp_cpu_start(struct stm32_cryp *cryp) stm32_cryp_cpu_start() argument 851 struct stm32_cryp *cryp = stm32_cryp_find_dev(ctx); stm32_cryp_crypt() local 865 struct stm32_cryp *cryp = stm32_cryp_find_dev(ctx); stm32_cryp_aead_crypt() local 1156 struct stm32_cryp *cryp; stm32_cryp_prepare_req() local 1241 struct stm32_cryp *cryp = ctx->cryp; stm32_cryp_cipher_one_req() local 1255 struct stm32_cryp *cryp = ctx->cryp; stm32_cryp_aead_one_req() local 1274 stm32_cryp_read_auth_tag(struct stm32_cryp *cryp) stm32_cryp_read_auth_tag() argument 1356 stm32_cryp_check_ctr_counter(struct stm32_cryp *cryp) stm32_cryp_check_ctr_counter() argument 1382 stm32_cryp_irq_read_data(struct stm32_cryp *cryp) stm32_cryp_irq_read_data() argument 1393 stm32_cryp_irq_write_block(struct stm32_cryp *cryp) stm32_cryp_irq_write_block() argument 1403 stm32_cryp_irq_write_gcm_padded_data(struct stm32_cryp *cryp) stm32_cryp_irq_write_gcm_padded_data() argument 1477 stm32_cryp_irq_set_npblb(struct stm32_cryp *cryp) stm32_cryp_irq_set_npblb() argument 1491 stm32_cryp_irq_write_ccm_padded_data(struct stm32_cryp *cryp) stm32_cryp_irq_write_ccm_padded_data() argument 1577 stm32_cryp_irq_write_data(struct stm32_cryp *cryp) stm32_cryp_irq_write_data() argument 1618 stm32_cryp_irq_write_gcmccm_header(struct stm32_cryp *cryp) stm32_cryp_irq_write_gcmccm_header() argument 1636 struct stm32_cryp *cryp = arg; stm32_cryp_irq_thread() local 1676 struct stm32_cryp *cryp = arg; stm32_cryp_irq() local 1970 struct stm32_cryp *cryp; stm32_cryp_probe() local 2089 struct stm32_cryp *cryp = platform_get_drvdata(pdev); stm32_cryp_remove() local 2120 struct stm32_cryp *cryp = dev_get_drvdata(dev); stm32_cryp_runtime_suspend() local 2129 struct stm32_cryp *cryp = dev_get_drvdata(dev); stm32_cryp_runtime_resume() local [all...] |