Home
last modified time | relevance | path

Searched refs:qm (Results 1 – 25 of 29) sorted by relevance

12

/Linux-v5.15/drivers/crypto/hisilicon/
Dqm.c423 struct hisi_qm *qm; member
429 int (*get_vft)(struct hisi_qm *qm, u32 *base, u32 *number);
430 void (*qm_db)(struct hisi_qm *qm, u16 qn,
432 u32 (*get_irq_num)(struct hisi_qm *qm);
433 int (*debug_init)(struct hisi_qm *qm);
434 void (*hw_error_init)(struct hisi_qm *qm, u32 ce, u32 nfe, u32 fe);
435 void (*hw_error_uninit)(struct hisi_qm *qm);
436 enum acc_err_result (*hw_error_handle)(struct hisi_qm *qm);
438 int (*set_msi)(struct hisi_qm *qm, bool set);
439 int (*ping_all_vfs)(struct hisi_qm *qm, u64 cmd);
[all …]
Dqm.h196 int (*hw_init)(struct hisi_qm *qm);
197 void (*hw_err_enable)(struct hisi_qm *qm);
198 void (*hw_err_disable)(struct hisi_qm *qm);
199 u32 (*get_dev_hw_err_status)(struct hisi_qm *qm);
200 void (*clear_dev_hw_err_status)(struct hisi_qm *qm, u32 err_sts);
201 void (*open_axi_master_ooo)(struct hisi_qm *qm);
202 void (*close_axi_master_ooo)(struct hisi_qm *qm);
203 void (*open_sva_prefetch)(struct hisi_qm *qm);
204 void (*close_sva_prefetch)(struct hisi_qm *qm);
205 void (*log_dev_hw_err)(struct hisi_qm *qm, u32 err_sts);
[all …]
DMakefile6 hisi_qm-objs = qm.o sgl.o
/Linux-v5.15/drivers/crypto/hisilicon/sec2/
Dsec_main.c322 static void sec_set_endian(struct hisi_qm *qm) in sec_set_endian() argument
326 reg = readl_relaxed(qm->io_base + SEC_CONTROL_REG); in sec_set_endian()
335 writel_relaxed(reg, qm->io_base + SEC_CONTROL_REG); in sec_set_endian()
338 static void sec_open_sva_prefetch(struct hisi_qm *qm) in sec_open_sva_prefetch() argument
343 if (qm->ver < QM_HW_V3) in sec_open_sva_prefetch()
347 val = readl_relaxed(qm->io_base + SEC_PREFETCH_CFG); in sec_open_sva_prefetch()
349 writel(val, qm->io_base + SEC_PREFETCH_CFG); in sec_open_sva_prefetch()
351 ret = readl_relaxed_poll_timeout(qm->io_base + SEC_PREFETCH_CFG, in sec_open_sva_prefetch()
355 pci_err(qm->pdev, "failed to open sva prefetch\n"); in sec_open_sva_prefetch()
358 static void sec_close_sva_prefetch(struct hisi_qm *qm) in sec_close_sva_prefetch() argument
[all …]
Dsec.h169 struct hisi_qm *qm; member
188 struct hisi_qm qm; member
196 int sec_register_to_crypto(struct hisi_qm *qm);
197 void sec_unregister_from_crypto(struct hisi_qm *qm);
Dsec_crypto.h405 int sec_register_to_crypto(struct hisi_qm *qm);
406 void sec_unregister_from_crypto(struct hisi_qm *qm);
Dsec_crypto.c470 static int sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_create_qp_ctx() argument
551 sec = container_of(ctx->qps[0]->qm, struct sec_dev, qm); in sec_ctx_base_init()
553 ctx->dev = &sec->qm.pdev->dev; in sec_ctx_base_init()
568 ret = sec_create_qp_ctx(&sec->qm, ctx, i, 0); in sec_ctx_base_init()
1813 if (ctx->sec->qm.ver < QM_HW_V3) { in sec_skcipher_ctx_init()
1846 if (ctx->sec->qm.ver < QM_HW_V3) { in sec_aead_init()
1986 if (unlikely(ctx->sec->qm.ver < QM_HW_V3)) { in sec_skcipher_cryptlen_ckeck()
2256 if (ctx->sec->qm.ver == QM_HW_V2) { in sec_aead_param_check()
2399 int sec_register_to_crypto(struct hisi_qm *qm) in sec_register_to_crypto() argument
2409 if (qm->ver > QM_HW_V2) { in sec_register_to_crypto()
[all …]
/Linux-v5.15/drivers/crypto/hisilicon/hpre/
Dhpre_main.c266 static inline int hpre_cluster_num(struct hisi_qm *qm) in hpre_cluster_num() argument
268 return (qm->ver >= QM_HW_V3) ? HPRE_CLUSTERS_NUM_V3 : in hpre_cluster_num()
272 static inline int hpre_cluster_core_mask(struct hisi_qm *qm) in hpre_cluster_core_mask() argument
274 return (qm->ver >= QM_HW_V3) ? in hpre_cluster_core_mask()
298 static void hpre_config_pasid(struct hisi_qm *qm) in hpre_config_pasid() argument
302 if (qm->ver >= QM_HW_V3) in hpre_config_pasid()
305 val1 = readl_relaxed(qm->io_base + HPRE_DATA_RUSER_CFG); in hpre_config_pasid()
306 val2 = readl_relaxed(qm->io_base + HPRE_DATA_WUSER_CFG); in hpre_config_pasid()
307 if (qm->use_sva) { in hpre_config_pasid()
314 writel_relaxed(val1, qm->io_base + HPRE_DATA_RUSER_CFG); in hpre_config_pasid()
[all …]
Dhpre.h73 struct hisi_qm qm; member
106 int hpre_algs_register(struct hisi_qm *qm);
107 void hpre_algs_unregister(struct hisi_qm *qm);
Dhpre_crypto.c212 pci_err(qp->qm->pdev, "Can not start qp!\n"); in hpre_get_qp_and_start()
372 ctx->dev = &qp->qm->pdev->dev; in hpre_ctx_set()
374 hpre = container_of(ctx->qp->qm, struct hpre, qm); in hpre_ctx_set()
2109 int hpre_algs_register(struct hisi_qm *qm) in hpre_algs_register() argument
2122 if (qm->ver >= QM_HW_V3) { in hpre_algs_register()
2141 void hpre_algs_unregister(struct hisi_qm *qm) in hpre_algs_unregister() argument
2143 if (qm->ver >= QM_HW_V3) { in hpre_algs_unregister()
/Linux-v5.15/drivers/crypto/hisilicon/zip/
Dzip_main.c285 static void hisi_zip_open_sva_prefetch(struct hisi_qm *qm) in hisi_zip_open_sva_prefetch() argument
290 if (qm->ver < QM_HW_V3) in hisi_zip_open_sva_prefetch()
294 val = readl_relaxed(qm->io_base + HZIP_PREFETCH_CFG); in hisi_zip_open_sva_prefetch()
296 writel(val, qm->io_base + HZIP_PREFETCH_CFG); in hisi_zip_open_sva_prefetch()
298 ret = readl_relaxed_poll_timeout(qm->io_base + HZIP_PREFETCH_CFG, in hisi_zip_open_sva_prefetch()
302 pci_err(qm->pdev, "failed to open sva prefetch\n"); in hisi_zip_open_sva_prefetch()
305 static void hisi_zip_close_sva_prefetch(struct hisi_qm *qm) in hisi_zip_close_sva_prefetch() argument
310 if (qm->ver < QM_HW_V3) in hisi_zip_close_sva_prefetch()
313 val = readl_relaxed(qm->io_base + HZIP_PREFETCH_CFG); in hisi_zip_close_sva_prefetch()
315 writel(val, qm->io_base + HZIP_PREFETCH_CFG); in hisi_zip_close_sva_prefetch()
[all …]
Dzip.h27 struct hisi_qm qm; member
85 int hisi_zip_register_to_crypto(struct hisi_qm *qm);
86 void hisi_zip_unregister_from_crypto(struct hisi_qm *qm);
Dzip_crypto.c227 dev_dbg(&qp_ctx->qp->qm->pdev->dev, "req cache is full!\n"); in hisi_zip_create_req()
337 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_do_work()
409 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_acomp_cb()
445 struct device *dev = &qp_ctx->qp->qm->pdev->dev; in hisi_zip_acompress()
475 struct device *dev = &qp_ctx->qp->qm->pdev->dev; in hisi_zip_adecompress()
503 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_start_qp()
566 hisi_zip = container_of(qps[0]->qm, struct hisi_zip, qm); in hisi_zip_ctx_init()
584 if (hisi_zip->qm.ver < QM_HW_V3) in hisi_zip_ctx_init()
660 dev = &tmp->qp->qm->pdev->dev; in hisi_zip_create_sgl_pool()
673 hisi_acc_free_sgl_pool(&ctx->qp_ctx[HZIP_QPC_COMP].qp->qm->pdev->dev, in hisi_zip_create_sgl_pool()
[all …]
/Linux-v5.15/Documentation/ABI/testing/
Ddebugfs-hisi-zip26 has a QM. Select the QM which below qm refers to.
29 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/regs
36 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/current_q
43 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/clear_enable
52 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/err_irq
59 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/aeq_irq
65 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/abnormal_irq
71 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/create_qp_err
77 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/mb_err
83 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/status
Ddebugfs-hisi-sec14 qm refers to.
17 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs
24 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q
31 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable
39 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq
46 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq
52 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq
58 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err
64 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err
70 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/status
Ddebugfs-hisi-hpre27 has a QM. Select the QM which below qm refers to.
36 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/regs
43 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q
50 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable
59 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq
66 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq
72 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/abnormal_irq
78 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/create_qp_err
84 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err
90 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/status
/Linux-v5.15/drivers/media/v4l2-core/
Dv4l2-ctrls-api.c1074 int v4l2_querymenu(struct v4l2_ctrl_handler *hdl, struct v4l2_querymenu *qm) in v4l2_querymenu() argument
1077 u32 i = qm->index; in v4l2_querymenu()
1079 ctrl = v4l2_ctrl_find(hdl, qm->id); in v4l2_querymenu()
1083 qm->reserved = 0; in v4l2_querymenu()
1108 strscpy(qm->name, ctrl->qmenu[i], sizeof(qm->name)); in v4l2_querymenu()
1110 qm->value = ctrl->qmenu_int[i]; in v4l2_querymenu()
Dv4l2-common.c453 struct v4l2_querymenu qm = { .id = V4L2_CID_LINK_FREQ }; in v4l2_get_link_freq() local
456 qm.index = v4l2_ctrl_g_ctrl(ctrl); in v4l2_get_link_freq()
458 ret = v4l2_querymenu(handler, &qm); in v4l2_get_link_freq()
462 freq = qm.value; in v4l2_get_link_freq()
/Linux-v5.15/drivers/soc/fsl/qbman/
Dqman.c1375 static void qman_destroy_portal(struct qman_portal *qm) in qman_destroy_portal() argument
1380 qm_dqrr_sdqcr_set(&qm->p, 0); in qman_destroy_portal()
1391 qm_eqcr_cce_update(&qm->p); in qman_destroy_portal()
1392 qm_eqcr_cce_update(&qm->p); in qman_destroy_portal()
1393 pcfg = qm->config; in qman_destroy_portal()
1395 free_irq(pcfg->irq, qm); in qman_destroy_portal()
1397 kfree(qm->cgrs); in qman_destroy_portal()
1398 qm_mc_finish(&qm->p); in qman_destroy_portal()
1399 qm_mr_finish(&qm->p); in qman_destroy_portal()
1400 qm_dqrr_finish(&qm->p); in qman_destroy_portal()
[all …]
/Linux-v5.15/include/soc/fsl/
Dqman.h690 typedef enum qman_cb_dqrr_result (*qman_cb_dqrr)(struct qman_portal *qm,
699 typedef void (*qman_cb_mr)(struct qman_portal *qm, struct qman_fq *fq,
779 typedef void (*qman_cb_cgr)(struct qman_portal *qm,
/Linux-v5.15/drivers/media/i2c/
Dst-mipid02.c349 struct v4l2_querymenu qm = {.id = V4L2_CID_LINK_FREQ, }; in mipid02_get_link_freq_from_cid_link_freq() local
356 qm.index = v4l2_ctrl_g_ctrl(ctrl); in mipid02_get_link_freq_from_cid_link_freq()
358 ret = v4l2_querymenu(subdev->ctrl_handler, &qm); in mipid02_get_link_freq_from_cid_link_freq()
362 return qm.value; in mipid02_get_link_freq_from_cid_link_freq()
/Linux-v5.15/arch/arm/boot/dts/
Dkeystone-k2g-netcp.dtsi9 compatible = "ti,66ak2g-navss-qm";
/Linux-v5.15/drivers/crypto/caam/
Dqi.c135 static void caam_fq_ern_cb(struct qman_portal *qm, struct qman_fq *fq, in caam_fq_ern_cb() argument
534 static void cgr_cb(struct qman_portal *qm, struct qman_cgr *cgr, int congested) in cgr_cb() argument
/Linux-v5.15/fs/quota/
Ddquot.c198 int qm; in find_quota_format() local
202 for (qm = 0; module_names[qm].qm_fmt_id && in find_quota_format()
203 module_names[qm].qm_fmt_id != id; qm++) in find_quota_format()
205 if (!module_names[qm].qm_fmt_id || in find_quota_format()
206 request_module(module_names[qm].qm_mod_name)) in find_quota_format()
/Linux-v5.15/include/media/
Dv4l2-ctrls.h1344 int v4l2_querymenu(struct v4l2_ctrl_handler *hdl, struct v4l2_querymenu *qm);

12