Lines Matching refs:qm
124 dev_dbg(&qp_ctx->qp->qm->pdev->dev, "req cache is full!\n"); in hisi_zip_create_req()
219 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_do_work()
288 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_acomp_cb()
321 struct device *dev = &qp_ctx->qp->qm->pdev->dev; in hisi_zip_acompress()
342 struct device *dev = &qp_ctx->qp->qm->pdev->dev; in hisi_zip_adecompress()
363 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_start_qp()
413 hisi_zip = container_of(qps[0]->qm, struct hisi_zip, qm); in hisi_zip_ctx_init()
505 dev = &tmp->qp->qm->pdev->dev; in hisi_zip_create_sgl_pool()
518 hisi_acc_free_sgl_pool(&ctx->qp_ctx[HZIP_QPC_COMP].qp->qm->pdev->dev, in hisi_zip_create_sgl_pool()
528 hisi_acc_free_sgl_pool(&ctx->qp_ctx[i].qp->qm->pdev->dev, in hisi_zip_release_sgl_pool()
554 dev = &ctx->qp_ctx[0].qp->qm->pdev->dev; in hisi_zip_acomp_init()
604 static int hisi_zip_register_deflate(struct hisi_qm *qm) in hisi_zip_register_deflate() argument
608 if (!hisi_zip_alg_support(qm, HZIP_ALG_DEFLATE)) in hisi_zip_register_deflate()
613 dev_err(&qm->pdev->dev, "failed to register to deflate (%d)!\n", ret); in hisi_zip_register_deflate()
618 static void hisi_zip_unregister_deflate(struct hisi_qm *qm) in hisi_zip_unregister_deflate() argument
620 if (!hisi_zip_alg_support(qm, HZIP_ALG_DEFLATE)) in hisi_zip_unregister_deflate()
626 int hisi_zip_register_to_crypto(struct hisi_qm *qm) in hisi_zip_register_to_crypto() argument
634 ret = hisi_zip_register_deflate(qm); in hisi_zip_register_to_crypto()
643 void hisi_zip_unregister_from_crypto(struct hisi_qm *qm) in hisi_zip_unregister_from_crypto() argument
649 hisi_zip_unregister_deflate(qm); in hisi_zip_unregister_from_crypto()