Lines Matching defs:q_depth
313 u16 q_depth = res->depth;
316 res->c_ivin = dma_alloc_coherent(dev, SEC_TOTAL_IV_SZ(q_depth),
321 for (i = 1; i < q_depth; i++) {
338 u16 q_depth = res->depth;
341 res->a_ivin = dma_alloc_coherent(dev, SEC_TOTAL_IV_SZ(q_depth),
346 for (i = 1; i < q_depth; i++) {
363 u16 q_depth = res->depth;
366 res->out_mac = dma_alloc_coherent(dev, SEC_TOTAL_MAC_SZ(q_depth) << 1,
371 for (i = 1; i < q_depth; i++) {
400 u16 q_depth = res->depth;
401 int size = SEC_PBUF_PAGE_NUM(q_depth);
405 res->pbuf = dma_alloc_coherent(dev, SEC_TOTAL_PBUF_SZ(q_depth),
422 if (k == q_depth)
492 u16 q_depth = qp_ctx->qp->sq_depth;
496 qp_ctx->req_list = kcalloc(q_depth, sizeof(struct sec_req *), GFP_KERNEL);
500 qp_ctx->res = kcalloc(q_depth, sizeof(struct sec_alg_res), GFP_KERNEL);
503 qp_ctx->res->depth = q_depth;
505 qp_ctx->c_in_pool = hisi_acc_create_sgl_pool(dev, q_depth, SEC_SGL_SGE_NR);
511 qp_ctx->c_out_pool = hisi_acc_create_sgl_pool(dev, q_depth, SEC_SGL_SGE_NR);