Home
last modified time | relevance | path

Searched refs:alg_type (Results 1 – 9 of 9) sorted by relevance

/drivers/crypto/hisilicon/sec2/
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() argument
541 ctx->alg_type = SEC_SKCIPHER; in sec_skcipher_init()
695 if (ctx->alg_type == SEC_AEAD) in GEN_SEC_SETKEY_FUNC()
730 if (ctx->alg_type == SEC_AEAD) in sec_cipher_pbuf_unmap()
[all …]
Dsec.h137 enum sec_alg_type alg_type; member
/drivers/crypto/caam/
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 …]
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 = template->alg_type; in caam_hash_alloc()
/drivers/crypto/hisilicon/
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);
Dqm.c197 #define QM_MK_SQC_W13(priority, orders, alg_type) \ argument
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()
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 = 0; in hisi_qm_uacce_get_queue() local
2033 qp = hisi_qm_create_qp(qm, alg_type); in hisi_qm_uacce_get_queue()
2121 qp->alg_type = type; in qm_set_sqctype()
[all …]
/drivers/crypto/rockchip/
Drk3288_crypto.h234 enum alg_type { enum
245 enum alg_type type;
/drivers/crypto/hisilicon/zip/
Dzip_crypto.c154 int alg_type, int req_type) in hisi_zip_start_qp() argument
160 qp->alg_type = alg_type; in hisi_zip_start_qp()
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()
/drivers/crypto/
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() argument
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() argument
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()