Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/sec2/
H A Dsec.h102 struct sec_req *req_list[QM_Q_DEPTH];
104 struct sec_alg_res res[QM_Q_DEPTH];
H A Dsec_crypto.c43 #define SEC_TOTAL_IV_SZ (SEC_IV_SIZE * QM_Q_DEPTH)
49 #define SEC_TOTAL_MAC_SZ (SEC_MAX_MAC_LEN * QM_Q_DEPTH)
57 #define SEC_PBUF_PAGE_NUM (QM_Q_DEPTH / SEC_PBUF_NUM)
58 #define SEC_PBUF_LEFT_SZ (SEC_PBUF_PKG * (QM_Q_DEPTH - \
94 0, QM_Q_DEPTH, GFP_ATOMIC); in sec_alloc_req_id()
111 if (unlikely(req_id < 0 || req_id >= QM_Q_DEPTH)) { in sec_free_req_id()
238 for (i = 1; i < QM_Q_DEPTH; i++) { in sec_alloc_civ_resource()
262 for (i = 1; i < QM_Q_DEPTH; i++) { in sec_alloc_mac_resource()
311 if (k == QM_Q_DEPTH) in sec_alloc_pbuf_resource()
389 qp_ctx->c_in_pool = hisi_acc_create_sgl_pool(dev, QM_Q_DEPTH, in sec_create_qp_ctx()
[all …]
H A Dsec_main.c30 #define SEC_SQ_SIZE (SEC_SQE_SIZE * QM_Q_DEPTH)
/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/
H A Dqm.c195 ((QM_Q_DEPTH - 1) | ((cqe_sz) << QM_CQ_CQE_SIZE_SHIFT))
209 ((QM_Q_DEPTH - 1) | ((u32)ilog2(sqe_sz) << QM_SQ_SQE_SIZE_SHIFT))
611 if (qp->qp_status.cq_head == QM_Q_DEPTH - 1) { in qm_cq_head_update()
722 if (qm->status.aeq_head == QM_Q_DEPTH - 1) { in qm_aeq_irq()
1289 if (ret || *e_id >= QM_Q_DEPTH) { in q_dump_param_parse()
1290 dev_err(dev, "Please input sqe num (0-%d)", QM_Q_DEPTH - 1); in q_dump_param_parse()
1314 sqe = kzalloc(qm->sqe_size * QM_Q_DEPTH, GFP_KERNEL); in qm_sq_dump()
1319 memcpy(sqe, qp->sqe, qm->sqe_size * QM_Q_DEPTH); in qm_sq_dump()
1372 } else if (!strcmp(name, "AEQE") && xeqe_id >= QM_Q_DEPTH) { in qm_eq_aeq_dump()
1373 dev_err(dev, "Please input aeqe num (0-%d)", QM_Q_DEPTH - 1); in qm_eq_aeq_dump()
[all …]
H A Dqm.h81 #define QM_Q_DEPTH 1024 macro
/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/zip/
H A Dzip_crypto.c259 req_q->size = QM_Q_DEPTH; in hisi_zip_create_req_q()
313 tmp->sgl_pool = hisi_acc_create_sgl_pool(dev, QM_Q_DEPTH << 1, in hisi_zip_create_sgl_pool()
H A Dzip_main.c80 #define HZIP_SQ_SIZE (HZIP_SQE_SIZE * QM_Q_DEPTH)
/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c107 id = idr_alloc(&ctx->req_idr, NULL, 0, QM_Q_DEPTH, GFP_ATOMIC); in hpre_alloc_req_id()
436 return hpre_ctx_set(ctx, qp, QM_Q_DEPTH); in hpre_ctx_init()