Lines Matching refs:q_depth

310 	u16 q_depth = res->depth;  in sec_alloc_civ_resource()  local
313 res->c_ivin = dma_alloc_coherent(dev, SEC_TOTAL_IV_SZ(q_depth), in sec_alloc_civ_resource()
318 for (i = 1; i < q_depth; i++) { in sec_alloc_civ_resource()
335 u16 q_depth = res->depth; in sec_alloc_aiv_resource() local
338 res->a_ivin = dma_alloc_coherent(dev, SEC_TOTAL_IV_SZ(q_depth), in sec_alloc_aiv_resource()
343 for (i = 1; i < q_depth; i++) { in sec_alloc_aiv_resource()
360 u16 q_depth = res->depth; in sec_alloc_mac_resource() local
363 res->out_mac = dma_alloc_coherent(dev, SEC_TOTAL_MAC_SZ(q_depth) << 1, in sec_alloc_mac_resource()
368 for (i = 1; i < q_depth; i++) { in sec_alloc_mac_resource()
397 u16 q_depth = res->depth; in sec_alloc_pbuf_resource() local
398 int size = SEC_PBUF_PAGE_NUM(q_depth); in sec_alloc_pbuf_resource()
402 res->pbuf = dma_alloc_coherent(dev, SEC_TOTAL_PBUF_SZ(q_depth), in sec_alloc_pbuf_resource()
419 if (k == q_depth) in sec_alloc_pbuf_resource()
488 u16 q_depth = qp_ctx->qp->sq_depth; in sec_alloc_qp_ctx_resource() local
492 qp_ctx->req_list = kcalloc(q_depth, sizeof(struct sec_req *), GFP_KERNEL); in sec_alloc_qp_ctx_resource()
496 qp_ctx->res = kcalloc(q_depth, sizeof(struct sec_alg_res), GFP_KERNEL); in sec_alloc_qp_ctx_resource()
499 qp_ctx->res->depth = q_depth; in sec_alloc_qp_ctx_resource()
501 qp_ctx->c_in_pool = hisi_acc_create_sgl_pool(dev, q_depth, SEC_SGL_SGE_NR); in sec_alloc_qp_ctx_resource()
507 qp_ctx->c_out_pool = hisi_acc_create_sgl_pool(dev, q_depth, SEC_SGL_SGE_NR); in sec_alloc_qp_ctx_resource()