Home
last modified time | relevance | path

Searched refs:alg_type (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/drivers/crypto/caam/
H A Dcaamhash.c1574 u32 alg_type; member
1599 .alg_type = OP_ALG_ALGSEL_SHA1,
1620 .alg_type = OP_ALG_ALGSEL_SHA224,
1641 .alg_type = OP_ALG_ALGSEL_SHA256,
1662 .alg_type = OP_ALG_ALGSEL_SHA384,
1683 .alg_type = OP_ALG_ALGSEL_SHA512,
1704 .alg_type = OP_ALG_ALGSEL_MD5,
1723 .alg_type = OP_ALG_ALGSEL_AES | OP_ALG_AAI_XCBC_MAC,
1742 .alg_type = OP_ALG_ALGSEL_AES | OP_ALG_AAI_CMAC,
1748 int alg_type; member
[all...]
H A Dcaamalg_qi2.c4397 u32 alg_type; member
4422 .alg_type = OP_ALG_ALGSEL_SHA1,
4443 .alg_type = OP_ALG_ALGSEL_SHA224,
4464 .alg_type = OP_ALG_ALGSEL_SHA256,
4485 .alg_type = OP_ALG_ALGSEL_SHA384,
4506 .alg_type = OP_ALG_ALGSEL_SHA512,
4527 .alg_type = OP_ALG_ALGSEL_MD5,
4534 int alg_type; member
4589 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()
4653 t_alg->alg_type in caam_hash_alloc()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c175 (ctx->alg_type == SEC_SKCIPHER && flag != SEC_SQE_CFLAG) || in sec_req_cb()
176 (ctx->alg_type == SEC_AEAD && flag != SEC_SQE_AEAD_FLAG))) { in sec_req_cb()
184 if (ctx->alg_type == SEC_AEAD && !req->c_req.encrypt) in sec_req_cb()
333 if (ctx->alg_type == SEC_AEAD) { in sec_alg_resource_alloc()
348 if (ctx->alg_type == SEC_AEAD) in sec_alg_resource_alloc()
365 if (ctx->alg_type == SEC_AEAD) in sec_alg_resource_free()
370 int qp_ctx_id, int alg_type) in sec_create_qp_ctx()
541 ctx->alg_type = SEC_SKCIPHER; in sec_skcipher_init()
695 if (ctx->alg_type == SEC_AEAD) in sec_cipher_pbuf_map()
730 if (ctx->alg_type in sec_cipher_pbuf_unmap()
369 sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ctx, int qp_ctx_id, int alg_type) sec_create_qp_ctx() argument
1036 sec_update_iv(struct sec_req *req, enum sec_alg_type alg_type) sec_update_iv() argument
[all...]
H A Dsec.h137 enum sec_alg_type alg_type; member
/kernel/linux/linux-6.6/drivers/crypto/caam/
H A Dcaamhash.c1581 u32 alg_type; member
1606 .alg_type = OP_ALG_ALGSEL_SHA1,
1627 .alg_type = OP_ALG_ALGSEL_SHA224,
1648 .alg_type = OP_ALG_ALGSEL_SHA256,
1669 .alg_type = OP_ALG_ALGSEL_SHA384,
1690 .alg_type = OP_ALG_ALGSEL_SHA512,
1711 .alg_type = OP_ALG_ALGSEL_MD5,
1730 .alg_type = OP_ALG_ALGSEL_AES | OP_ALG_AAI_XCBC_MAC,
1749 .alg_type = OP_ALG_ALGSEL_AES | OP_ALG_AAI_CMAC,
1755 int alg_type; member
[all...]
H A Dcaamalg_qi2.c4410 u32 alg_type; member
4435 .alg_type = OP_ALG_ALGSEL_SHA1,
4456 .alg_type = OP_ALG_ALGSEL_SHA224,
4477 .alg_type = OP_ALG_ALGSEL_SHA256,
4498 .alg_type = OP_ALG_ALGSEL_SHA384,
4519 .alg_type = OP_ALG_ALGSEL_SHA512,
4540 .alg_type = OP_ALG_ALGSEL_MD5,
4547 int alg_type; member
4602 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()
4665 t_alg->alg_type in caam_hash_alloc()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c211 if (unlikely(ctx->alg_type == SEC_SKCIPHER)) { in sec_cb_status_check()
217 } else if (unlikely(ctx->alg_type == SEC_AEAD)) { in sec_cb_status_check()
442 if (ctx->alg_type == SEC_AEAD) { in sec_alg_resource_alloc()
462 if (ctx->alg_type == SEC_AEAD) in sec_alg_resource_alloc()
465 if (ctx->alg_type == SEC_AEAD) in sec_alg_resource_alloc()
481 if (ctx->alg_type == SEC_AEAD) in sec_alg_resource_free()
542 int qp_ctx_id, int alg_type) in sec_create_qp_ctx()
710 ctx->alg_type = SEC_SKCIPHER; in sec_skcipher_init()
904 if (ctx->alg_type == SEC_AEAD) in sec_cipher_pbuf_map()
915 if (!c_req->encrypt && ctx->alg_type in sec_cipher_pbuf_map()
541 sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ctx, int qp_ctx_id, int alg_type) sec_create_qp_ctx() argument
1387 sec_update_iv(struct sec_req *req, enum sec_alg_type alg_type) sec_update_iv() argument
[all...]
H A Dsec.h153 enum sec_alg_type alg_type; member
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/
H A Dqm.h268 u8 alg_type; member
348 struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type);
380 u8 alg_type, int node, struct hisi_qp **qps);
H A Dqm.c197 #define QM_MK_SQC_W13(priority, orders, alg_type) \
200 (((alg_type) & QM_SQ_TYPE_MASK) << QM_SQ_TYPE_SHIFT))
1654 static struct hisi_qp *qm_create_qp_nolock(struct hisi_qm *qm, u8 alg_type) in qm_create_qp_nolock() argument
1685 qp->alg_type = alg_type; in qm_create_qp_nolock()
1695 * @alg_type: Accelerator specific algorithm type in sqc.
1700 struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type) in hisi_qm_create_qp() argument
1705 qp = qm_create_qp_nolock(qm, alg_type); in hisi_qm_create_qp()
1768 sqc->w13 = cpu_to_le16(QM_MK_SQC_W13(0, 1, qp->alg_type)); in qm_qp_ctx_cfg()
2031 u8 alg_type in hisi_qm_uacce_get_queue() local
3029 hisi_qm_alloc_qps_node(struct hisi_qm_list *qm_list, int qp_num, u8 alg_type, int node, struct hisi_qp **qps) hisi_qm_alloc_qps_node() argument
[all...]
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/zip/
H A Dzip_crypto.c154 int alg_type, int req_type) in hisi_zip_start_qp()
160 qp->alg_type = alg_type; in hisi_zip_start_qp()
195 /* alg_type = 0 for compress, 1 for decompress in hw sqe */ in hisi_zip_ctx_init()
366 (qp->alg_type == 0) ? "" : "de", qp->qp_id, status, in hisi_zip_acomp_cb()
376 head_size = (qp->alg_type == 0) ? TO_HEAD_SIZE(qp->req_type) : 0; in hisi_zip_acomp_cb()
153 hisi_zip_start_qp(struct hisi_qp *qp, struct hisi_zip_qp_ctx *ctx, int alg_type, int req_type) hisi_zip_start_qp() argument
/kernel/linux/linux-5.10/drivers/crypto/rockchip/
H A Drk3288_crypto.h234 enum alg_type { enum
245 enum alg_type type;
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/zip/
H A Dzip_crypto.c424 (qp->alg_type == 0) ? "" : "de", qp->qp_id, status, in hisi_zip_acomp_cb()
435 head_size = (qp->alg_type == 0) ? TO_HEAD_SIZE(qp->req_type) : 0; in hisi_zip_acomp_cb()
504 int alg_type, int req_type) in hisi_zip_start_qp()
510 qp->alg_type = alg_type; in hisi_zip_start_qp()
572 /* alg_type = 0 for compress, 1 for decompress in hw sqe */ in hisi_zip_ctx_init()
503 hisi_zip_start_qp(struct hisi_qp *qp, struct hisi_zip_qp_ctx *qp_ctx, int alg_type, int req_type) hisi_zip_start_qp() argument
/kernel/linux/linux-6.6/include/linux/
H A Dhisi_acc_qm.h400 u8 alg_type; member
539 u8 alg_type, int node, struct hisi_qp **qps);
/kernel/linux/linux-5.10/drivers/crypto/
H A Dpicoxcell_crypto.c528 static int spacc_aead_do_fallback(struct aead_request *req, unsigned alg_type, in spacc_aead_do_fallback() argument
627 unsigned alg_type, bool is_encrypt) in spacc_aead_setup()
644 return spacc_aead_do_fallback(req, alg_type, is_encrypt); in spacc_aead_setup()
899 unsigned alg_type, bool is_encrypt) in spacc_ablk_do_fallback()
923 static int spacc_ablk_setup(struct skcipher_request *req, unsigned alg_type, in spacc_ablk_setup() argument
940 return spacc_ablk_do_fallback(req, alg_type, is_encrypt); in spacc_ablk_setup()
626 spacc_aead_setup(struct aead_request *req, unsigned alg_type, bool is_encrypt) spacc_aead_setup() argument
898 spacc_ablk_do_fallback(struct skcipher_request *req, unsigned alg_type, bool is_encrypt) spacc_ablk_do_fallback() argument
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/
H A Dqm.c242 #define QM_MK_SQC_W13(priority, orders, alg_type) \
245 (((alg_type) & QM_SQ_TYPE_MASK) << QM_SQ_TYPE_SHIFT))
1887 static struct hisi_qp *qm_create_qp_nolock(struct hisi_qm *qm, u8 alg_type) in qm_create_qp_nolock() argument
1918 qp->alg_type = alg_type; in qm_create_qp_nolock()
1929 * @alg_type: Accelerator specific algorithm type in sqc.
1933 static struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type) in hisi_qm_create_qp() argument
1943 qp = qm_create_qp_nolock(qm, alg_type); in hisi_qm_create_qp()
1999 sqc->w13 = cpu_to_le16(QM_MK_SQC_W13(0, 1, qp->alg_type)); in qm_sq_ctx_cfg()
2349 u8 alg_type in hisi_qm_uacce_get_queue() local
3455 hisi_qm_alloc_qps_node(struct hisi_qm_list *qm_list, int qp_num, u8 alg_type, int node, struct hisi_qp **qps) hisi_qm_alloc_qps_node() argument
[all...]

Completed in 41 milliseconds