Home
last modified time | relevance | path

Searched refs:QM_Q_DEPTH (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/drivers/crypto/hisilicon/sec2/
Dsec.h118 struct sec_req *req_list[QM_Q_DEPTH];
120 struct sec_alg_res res[QM_Q_DEPTH];
Dsec_crypto.c62 #define SEC_TOTAL_IV_SZ (SEC_IV_SIZE * QM_Q_DEPTH)
69 #define SEC_TOTAL_MAC_SZ (SEC_MAX_MAC_LEN * QM_Q_DEPTH)
77 #define SEC_PBUF_PAGE_NUM (QM_Q_DEPTH / SEC_PBUF_NUM)
78 #define SEC_PBUF_LEFT_SZ (SEC_PBUF_PKG * (QM_Q_DEPTH - \
133 0, QM_Q_DEPTH, GFP_ATOMIC); in sec_alloc_req_id()
151 if (unlikely(req_id < 0 || req_id >= QM_Q_DEPTH)) { in sec_free_req_id()
310 for (i = 1; i < QM_Q_DEPTH; i++) { in sec_alloc_civ_resource()
334 for (i = 1; i < QM_Q_DEPTH; i++) { in sec_alloc_aiv_resource()
358 for (i = 1; i < QM_Q_DEPTH; i++) { in sec_alloc_mac_resource()
407 if (k == QM_Q_DEPTH) in sec_alloc_pbuf_resource()
[all …]
Dsec_main.c30 #define SEC_SQ_SIZE (SEC_SQE_SIZE * QM_Q_DEPTH)
/linux-5.19.10/drivers/crypto/hisilicon/
Dqm.c274 ((QM_Q_DEPTH - 1) | ((cqe_sz) << QM_CQ_CQE_SIZE_SHIFT))
288 ((QM_Q_DEPTH - 1) | ((u32)ilog2(sqe_sz) << QM_SQ_SQE_SIZE_SHIFT))
889 if (qp->qp_status.cq_head == QM_Q_DEPTH - 1) { in qm_cq_head_update()
1079 if (qm->status.aeq_head == QM_Q_DEPTH - 1) { in qm_aeq_thread()
2038 if (ret || *e_id >= QM_Q_DEPTH) { in q_dump_param_parse()
2039 dev_err(dev, "Please input sqe num (0-%d)", QM_Q_DEPTH - 1); in q_dump_param_parse()
2063 sqe = kzalloc(qm->sqe_size * QM_Q_DEPTH, GFP_KERNEL); in qm_sq_dump()
2068 memcpy(sqe, qp->sqe, qm->sqe_size * QM_Q_DEPTH); in qm_sq_dump()
2121 } else if (!strcmp(name, "AEQE") && xeqe_id >= QM_Q_DEPTH) { in qm_eq_aeq_dump()
2122 dev_err(dev, "Please input aeqe num (0-%d)", QM_Q_DEPTH - 1); in qm_eq_aeq_dump()
[all …]
/linux-5.19.10/drivers/crypto/hisilicon/zip/
Dzip_crypto.c607 req_q->size = QM_Q_DEPTH; in hisi_zip_create_req_q()
661 tmp->sgl_pool = hisi_acc_create_sgl_pool(dev, QM_Q_DEPTH << 1, in hisi_zip_create_sgl_pool()
Dzip_main.c85 #define HZIP_SQ_SIZE (HZIP_SQE_SIZE * QM_Q_DEPTH)
/linux-5.19.10/include/linux/
Dhisi_acc_qm.h112 #define QM_Q_DEPTH 1024 macro
/linux-5.19.10/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c150 id = idr_alloc(&ctx->req_idr, NULL, 0, QM_Q_DEPTH, GFP_ATOMIC); in hpre_alloc_req_id()
491 ret = hpre_ctx_set(ctx, qp, QM_Q_DEPTH); in hpre_ctx_init()