Lines Matching refs:uacce

14 #include <linux/uacce.h>
16 #include <uapi/misc/uacce/hisi_qm.h>
782 if (!qm->uacce)
802 qm->uacce->algs = algs;
2239 static int hisi_qm_get_available_instances(struct uacce_device *uacce)
2241 struct hisi_qm *qm = uacce->priv;
2259 static int hisi_qm_uacce_get_queue(struct uacce_device *uacce,
2263 struct hisi_qm *qm = uacce->priv;
2272 q->uacce = uacce;
2397 struct hisi_qm *qm = q->uacce->priv;
2448 * qm_hw_err_isolate() - Try to set the isolation status of the uacce device
2450 * @qm: the uacce device
2463 if (qm->uacce->is_vf || isolate->is_isolate || !isolate->err_threshold)
2508 static enum uacce_dev_state hisi_qm_get_isolate_state(struct uacce_device *uacce)
2510 struct hisi_qm *qm = uacce->priv;
2513 if (uacce->is_vf)
2522 static int hisi_qm_isolate_threshold_write(struct uacce_device *uacce, u32 num)
2524 struct hisi_qm *qm = uacce->priv;
2527 if (uacce->is_vf)
2541 static u32 hisi_qm_isolate_threshold_read(struct uacce_device *uacce)
2543 struct hisi_qm *qm = uacce->priv;
2546 if (uacce->is_vf) {
2570 struct uacce_device *uacce = qm->uacce;
2574 uacce_remove(uacce);
2575 qm->uacce = NULL;
2582 struct uacce_device *uacce;
2597 uacce = uacce_alloc(&pdev->dev, &interface);
2598 if (IS_ERR(uacce))
2599 return PTR_ERR(uacce);
2601 if (uacce->flags & UACCE_DEV_SVA) {
2609 uacce->is_vf = pdev->is_virtfn;
2610 uacce->priv = qm;
2613 uacce->api_ver = HISI_QM_API_VER_BASE;
2615 uacce->api_ver = HISI_QM_API_VER2_BASE;
2617 uacce->api_ver = HISI_QM_API_VER3_BASE;
2634 uacce->qf_pg_num[UACCE_QFRT_MMIO] = mmio_page_nr;
2635 uacce->qf_pg_num[UACCE_QFRT_DUS] = dus_page_nr;
2637 qm->uacce = uacce;
4811 dev_info(dev, "HW V2 not both use uacce sva mode and hardware crypto algs.\n");
5392 dev_warn(dev, "fail to alloc uacce (%d)\n", ret);