Lines Matching defs:uacce
15 #include <linux/uacce.h>
17 #include <uapi/misc/uacce/hisi_qm.h>
2020 static int hisi_qm_get_available_instances(struct uacce_device *uacce)
2022 return hisi_qm_get_free_qp_num(uacce->priv);
2025 static int hisi_qm_uacce_get_queue(struct uacce_device *uacce,
2029 struct hisi_qm *qm = uacce->priv;
2038 q->uacce = uacce;
2117 struct hisi_qm *qm = q->uacce->priv;
2167 struct uacce_device *uacce;
2181 uacce = uacce_alloc(&pdev->dev, &interface);
2182 if (IS_ERR(uacce))
2183 return PTR_ERR(uacce);
2185 if (uacce->flags & UACCE_DEV_SVA) {
2189 uacce_remove(uacce);
2190 qm->uacce = NULL;
2194 uacce->is_vf = pdev->is_virtfn;
2195 uacce->priv = qm;
2196 uacce->algs = qm->algs;
2200 uacce->api_ver = HISI_QM_API_VER_BASE;
2204 uacce->api_ver = HISI_QM_API_VER2_BASE;
2210 uacce->qf_pg_num[UACCE_QFRT_MMIO] = mmio_page_nr;
2211 uacce->qf_pg_num[UACCE_QFRT_DUS] = dus_page_nr;
2213 qm->uacce = uacce;
2439 uacce_remove(qm->uacce);
2440 qm->uacce = NULL;
4012 dev_warn(&pdev->dev, "fail to alloc uacce (%d)\n", ret);
4084 uacce_remove(qm->uacce);
4085 qm->uacce = NULL;