Lines Matching defs:uacce

14 #include <linux/uacce.h>
16 #include <uapi/misc/uacce/hisi_qm.h>
813 if (!qm->uacce)
833 qm->uacce->algs = algs;
2323 static int hisi_qm_get_available_instances(struct uacce_device *uacce)
2325 struct hisi_qm *qm = uacce->priv;
2343 static int hisi_qm_uacce_get_queue(struct uacce_device *uacce,
2347 struct hisi_qm *qm = uacce->priv;
2356 q->uacce = uacce;
2457 struct hisi_qm *qm = q->uacce->priv;
2508 * qm_hw_err_isolate() - Try to set the isolation status of the uacce device
2510 * @qm: the uacce device
2523 if (qm->uacce->is_vf || isolate->is_isolate || !isolate->err_threshold)
2568 static enum uacce_dev_state hisi_qm_get_isolate_state(struct uacce_device *uacce)
2570 struct hisi_qm *qm = uacce->priv;
2573 if (uacce->is_vf)
2582 static int hisi_qm_isolate_threshold_write(struct uacce_device *uacce, u32 num)
2584 struct hisi_qm *qm = uacce->priv;
2587 if (uacce->is_vf)
2601 static u32 hisi_qm_isolate_threshold_read(struct uacce_device *uacce)
2603 struct hisi_qm *qm = uacce->priv;
2606 if (uacce->is_vf) {
2630 struct uacce_device *uacce = qm->uacce;
2634 uacce_remove(uacce);
2635 qm->uacce = NULL;
2642 struct uacce_device *uacce;
2657 uacce = uacce_alloc(&pdev->dev, &interface);
2658 if (IS_ERR(uacce))
2659 return PTR_ERR(uacce);
2661 if (uacce->flags & UACCE_DEV_SVA) {
2669 uacce->is_vf = pdev->is_virtfn;
2670 uacce->priv = qm;
2673 uacce->api_ver = HISI_QM_API_VER_BASE;
2675 uacce->api_ver = HISI_QM_API_VER2_BASE;
2677 uacce->api_ver = HISI_QM_API_VER3_BASE;
2694 uacce->qf_pg_num[UACCE_QFRT_MMIO] = mmio_page_nr;
2695 uacce->qf_pg_num[UACCE_QFRT_DUS] = dus_page_nr;
2697 qm->uacce = uacce;
2958 uacce_remove(qm->uacce);
2959 qm->uacce = NULL;
4908 dev_info(dev, "HW V2 not both use uacce sva mode and hardware crypto algs.\n");
5460 dev_warn(dev, "fail to alloc uacce (%d)\n", ret);