Lines Matching full:qm
231 dev_dbg(&qp_ctx->qp->qm->pdev->dev, "req cache is full!\n"); in hisi_zip_create_req()
340 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_do_work()
412 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_acomp_cb()
448 struct device *dev = &qp_ctx->qp->qm->pdev->dev; in hisi_zip_acompress()
478 struct device *dev = &qp_ctx->qp->qm->pdev->dev; in hisi_zip_adecompress()
506 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_start_qp()
569 hisi_zip = container_of(qps[0]->qm, struct hisi_zip, qm); in hisi_zip_ctx_init()
587 if (hisi_zip->qm.ver < QM_HW_V3) in hisi_zip_ctx_init()
664 dev = &tmp->qp->qm->pdev->dev; in hisi_zip_create_sgl_pool()
677 hisi_acc_free_sgl_pool(&ctx->qp_ctx[HZIP_QPC_COMP].qp->qm->pdev->dev, in hisi_zip_create_sgl_pool()
687 hisi_acc_free_sgl_pool(&ctx->qp_ctx[i].qp->qm->pdev->dev, in hisi_zip_release_sgl_pool()
713 dev = &ctx->qp_ctx[0].qp->qm->pdev->dev; in hisi_zip_acomp_init()
762 static int hisi_zip_register_zlib(struct hisi_qm *qm) in hisi_zip_register_zlib() argument
766 if (!hisi_zip_alg_support(qm, HZIP_ALG_ZLIB)) in hisi_zip_register_zlib()
771 dev_err(&qm->pdev->dev, "failed to register to zlib (%d)!\n", ret); in hisi_zip_register_zlib()
776 static void hisi_zip_unregister_zlib(struct hisi_qm *qm) in hisi_zip_unregister_zlib() argument
778 if (!hisi_zip_alg_support(qm, HZIP_ALG_ZLIB)) in hisi_zip_unregister_zlib()
798 static int hisi_zip_register_gzip(struct hisi_qm *qm) in hisi_zip_register_gzip() argument
802 if (!hisi_zip_alg_support(qm, HZIP_ALG_GZIP)) in hisi_zip_register_gzip()
807 dev_err(&qm->pdev->dev, "failed to register to gzip (%d)!\n", ret); in hisi_zip_register_gzip()
812 static void hisi_zip_unregister_gzip(struct hisi_qm *qm) in hisi_zip_unregister_gzip() argument
814 if (!hisi_zip_alg_support(qm, HZIP_ALG_GZIP)) in hisi_zip_unregister_gzip()
820 int hisi_zip_register_to_crypto(struct hisi_qm *qm) in hisi_zip_register_to_crypto() argument
824 ret = hisi_zip_register_zlib(qm); in hisi_zip_register_to_crypto()
828 ret = hisi_zip_register_gzip(qm); in hisi_zip_register_to_crypto()
830 hisi_zip_unregister_zlib(qm); in hisi_zip_register_to_crypto()
835 void hisi_zip_unregister_from_crypto(struct hisi_qm *qm) in hisi_zip_unregister_from_crypto() argument
837 hisi_zip_unregister_zlib(qm); in hisi_zip_unregister_from_crypto()
838 hisi_zip_unregister_gzip(qm); in hisi_zip_unregister_from_crypto()