Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/crypto/hisilicon/
H A Dqm.c932 struct hisi_qm *qm = qp->qm; in qm_poll_req_cb() local
1675 qm->ops->set_ifc_end(qm); in qm_ping_single_vf()
1691 qm->ops->set_ifc_end(qm); in qm_ping_all_vfs()
1701 qm->ops->set_ifc_end(qm); in qm_ping_all_vfs()
1709 qm->ops->set_ifc_end(qm); in qm_ping_all_vfs()
1747 qm->ops->set_ifc_end(qm); in qm_ping_pf()
2934 qp->qm = qm; in hisi_qp_memory_init()
3199 ret = hisi_qm_set_vft(qm, 0, qm->qp_base, qm->qp_num); in __hisi_qm_start()
3392 qm->ops->hw_error_init(qm); in qm_hw_error_init()
3504 res->qm = qm; in hisi_qm_sort_devices()
[all …]
H A Ddebugfs.c194 if (qm->sqc) { in qm_sqc_dump()
231 if (qm->cqc) { in qm_cqc_dump()
341 dump_show(qm, sqe, qm->sqe_size, name); in qm_sq_dump()
673 vfq_num = (qm->ctrl_qp_num - qm->qp_num) / num_vfs; in qm_get_vf_qp_num()
677 remain_q_num = (qm->ctrl_qp_num - qm->qp_num) % num_vfs; in qm_get_vf_qp_num()
697 qm->debug.curr_qm_qp_num = qm->qp_num; in current_qm_write()
699 qm->debug.curr_qm_qp_num = qm_get_vf_qp_num(qm, val); in current_qm_write()
931 dfx_regs_uninit(qm, qm->debug.acc_diff_regs, reg_len); in qm_diff_regs_uninit()
977 if (!qm || qm->fun_type != QM_HW_PF) in hisi_qm_regs_debugfs_uninit()
1154 qm_create_debugfs_file(qm, qm->debug.qm_d, i); in hisi_qm_debug_init()
[all …]
H A Dqm_common.h75 int qm_set_and_get_xqc(struct hisi_qm *qm, u8 cmd, void *xqc, u32 qp_id, bool op);
76 void hisi_qm_show_last_dfx_regs(struct hisi_qm *qm);
77 void hisi_qm_set_algqos_init(struct hisi_qm *qm);
H A DMakefile6 hisi_qm-objs = qm.o sgl.o debugfs.o
/linux-6.15/drivers/crypto/hisilicon/sec2/
H A Dsec_main.c336 hisi_qm_acc_diff_regs_dump(qm, s, qm->debug.acc_diff_regs, in sec_diff_regs_show()
749 struct hisi_qm *qm = file->qm; in sec_debug_read() local
784 struct hisi_qm *qm = file->qm; in sec_debug_write() local
887 struct sec_dev *sec = container_of(qm, struct sec_dev, qm); in sec_core_debug_init()
919 qm->debug.debug_root, qm, &sec_cap_regs_fops); in sec_core_debug_init()
926 struct sec_dev *sec = container_of(qm, struct sec_dev, qm); in sec_debug_init()
933 sec->debug.files[i].qm = qm; in sec_debug_init()
1148 struct hisi_qm *qm = &sec->qm; in sec_pf_probe_init() local
1251 struct hisi_qm *qm = &sec->qm; in sec_probe_init() local
1306 qm = &sec->qm; in sec_probe()
[all …]
H A Dsec.h168 struct hisi_qm *qm; member
187 struct hisi_qm qm; member
246 int sec_register_to_crypto(struct hisi_qm *qm);
247 void sec_unregister_from_crypto(struct hisi_qm *qm);
248 u64 sec_get_alg_bitmap(struct hisi_qm *qm, u32 high, u32 low);
H A Dsec_crypto.h395 int sec_register_to_crypto(struct hisi_qm *qm);
396 void sec_unregister_from_crypto(struct hisi_qm *qm);
H A Dsec_crypto.c599 sec = container_of(ctx->qps[0]->qm, struct sec_dev, qm); in sec_ctx_base_init()
601 ctx->dev = &sec->qm.pdev->dev; in sec_ctx_base_init()
1832 if (ctx->sec->qm.ver < QM_HW_V3) { in sec_skcipher_ctx_init()
1865 if (ctx->sec->qm.ver < QM_HW_V3) { in sec_aead_init()
2220 if (unlikely(ctx->sec->qm.ver == QM_HW_V2 && !sreq->c_req.c_len)) in sec_aead_spec_check()
2476 int sec_register_to_crypto(struct hisi_qm *qm) in sec_register_to_crypto() argument
2481 alg_mask = sec_get_alg_bitmap(qm, SEC_DRV_ALG_BITMAP_HIGH_TB, in sec_register_to_crypto()
2510 void sec_unregister_from_crypto(struct hisi_qm *qm) in sec_unregister_from_crypto() argument
2514 alg_mask = sec_get_alg_bitmap(qm, SEC_DRV_ALG_BITMAP_HIGH_TB, in sec_unregister_from_crypto()
/linux-6.15/drivers/crypto/hisilicon/zip/
H A Dzip_main.c349 hisi_qm_acc_diff_regs_dump(qm, s, qm->debug.acc_diff_regs, in hzip_diff_regs_show()
559 if (qm->use_sva && qm->ver == QM_HW_V2) { in hisi_zip_set_user_domain_and_cache()
877 struct hisi_zip *zip = container_of(qm, struct hisi_zip, qm); in hisi_zip_dfx_debug_init()
896 qm->debug.debug_root, qm, &zip_cap_regs_fops); in hisi_zip_dfx_debug_init()
901 struct hisi_zip *zip = container_of(qm, struct hisi_zip, qm); in hisi_zip_ctrl_debug_init()
1239 struct hisi_qm *qm = &hisi_zip->qm; in hisi_zip_pf_probe_init() local
1298 qm->pdev = pdev; in hisi_zip_qm_init()
1313 } else if (qm->fun_type == QM_HW_VF && qm->ver == QM_HW_V1) { in hisi_zip_qm_init()
1364 struct hisi_qm *qm = &hisi_zip->qm; in hisi_zip_probe_init() local
1404 qm = &hisi_zip->qm; in hisi_zip_probe()
[all …]
H A Ddae_main.c68 if (!dae_is_support(qm)) in hisi_dae_set_user_domain()
87 if (!dae_is_support(qm)) in hisi_dae_set_alg()
90 if (!qm->uacce) in hisi_dae_set_alg()
93 len = strlen(qm->uacce->algs); in hisi_dae_set_alg()
127 if (!dae_is_support(qm)) in hisi_dae_hw_error_enable()
146 if (!dae_is_support(qm)) in hisi_dae_hw_error_disable()
160 if (!dae_is_support(qm)) in hisi_dae_clear_hw_err_status()
197 if (!dae_is_support(qm)) in hisi_dae_get_err_result()
220 if (!dae_is_support(qm)) in hisi_dae_dev_is_abnormal()
235 if (!dae_is_support(qm)) in hisi_dae_close_axi_master_ooo()
[all …]
H A Dzip.h27 struct hisi_qm qm; member
103 int hisi_zip_register_to_crypto(struct hisi_qm *qm);
104 void hisi_zip_unregister_from_crypto(struct hisi_qm *qm);
105 bool hisi_zip_alg_support(struct hisi_qm *qm, u32 alg);
106 int hisi_dae_set_user_domain(struct hisi_qm *qm);
107 int hisi_dae_set_alg(struct hisi_qm *qm);
108 void hisi_dae_hw_error_disable(struct hisi_qm *qm);
109 void hisi_dae_hw_error_enable(struct hisi_qm *qm);
110 void hisi_dae_open_axi_master_ooo(struct hisi_qm *qm);
111 int hisi_dae_close_axi_master_ooo(struct hisi_qm *qm);
[all …]
H A Dzip_crypto.c219 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_do_work()
288 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_acomp_cb()
321 struct device *dev = &qp_ctx->qp->qm->pdev->dev; in hisi_zip_acompress()
342 struct device *dev = &qp_ctx->qp->qm->pdev->dev; in hisi_zip_adecompress()
363 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_start_qp()
413 hisi_zip = container_of(qps[0]->qm, struct hisi_zip, qm); in hisi_zip_ctx_init()
505 dev = &tmp->qp->qm->pdev->dev; in hisi_zip_create_sgl_pool()
554 dev = &ctx->qp_ctx[0].qp->qm->pdev->dev; in hisi_zip_acomp_init()
608 if (!hisi_zip_alg_support(qm, HZIP_ALG_DEFLATE)) in hisi_zip_register_deflate()
634 ret = hisi_zip_register_deflate(qm); in hisi_zip_register_to_crypto()
[all …]
/linux-6.15/drivers/crypto/hisilicon/hpre/
H A Dhpre_main.c384 hisi_qm_acc_diff_regs_dump(qm, s, qm->debug.acc_diff_regs, in hpre_diff_regs_show()
812 return &hpre->qm; in hpre_file_to_qm()
984 struct hpre *hpre = container_of(qm, struct hpre, qm); in hpre_create_debugfs_file()
1104 struct hpre *hpre = container_of(qm, struct hpre, qm); in hpre_dfx_debug_init()
1121 qm->debug.debug_root, qm, &hpre_cap_regs_fops); in hpre_dfx_debug_init()
1211 qm->pdev = pdev; in hpre_qm_init()
1446 struct hisi_qm *qm = &hpre->qm; in hpre_pf_probe_init() local
1466 struct hisi_qm *qm = &hpre->qm; in hpre_probe_init() local
1505 qm = &hpre->qm; in hpre_probe()
1533 if (qm->uacce) { in hpre_probe()
[all …]
H A Dhpre.h71 struct hisi_qm qm; member
127 int hpre_algs_register(struct hisi_qm *qm);
128 void hpre_algs_unregister(struct hisi_qm *qm);
129 bool hpre_check_alg_support(struct hisi_qm *qm, u32 alg);
H A Dhpre_crypto.c395 ctx->dev = &qp->qm->pdev->dev; in hpre_ctx_set()
397 hpre = container_of(ctx->qp->qm, struct hpre, qm); in hpre_ctx_set()
2223 ret = hpre_register_rsa(qm); in hpre_algs_register()
2227 ret = hpre_register_dh(qm); in hpre_algs_register()
2245 hpre_unregister_ecdh(qm); in hpre_algs_register()
2247 hpre_unregister_dh(qm); in hpre_algs_register()
2249 hpre_unregister_rsa(qm); in hpre_algs_register()
2261 hpre_unregister_x25519(qm); in hpre_algs_unregister()
2262 hpre_unregister_ecdh(qm); in hpre_algs_unregister()
2263 hpre_unregister_dh(qm); in hpre_algs_unregister()
[all …]
/linux-6.15/include/linux/
H A Dhisi_acc_qm.h261 int (*hw_init)(struct hisi_qm *qm);
262 void (*hw_err_enable)(struct hisi_qm *qm);
271 void (*err_info_init)(struct hisi_qm *qm);
319 struct hisi_qm *qm; member
458 struct hisi_qm *qm; member
513 list_add_tail(&qm->list, &qm_list->list); in hisi_qm_add_list()
520 list_del(&qm->list); in hisi_qm_del_list()
526 int hisi_qm_init(struct hisi_qm *qm);
527 void hisi_qm_uninit(struct hisi_qm *qm);
528 int hisi_qm_start(struct hisi_qm *qm);
[all …]
/linux-6.15/drivers/vfio/pci/hisilicon/
H A Dhisi_acc_vfio_pci.c38 state = readl(qm->io_base + regs); in qm_check_reg_state()
41 state = readl(qm->io_base + regs); in qm_check_reg_state()
459 qm->eqe_dma = vf_data->eqe_dma; in vf_qm_load_data()
461 qm->sqc_dma = vf_data->sqc_dma; in vf_qm_load_data()
462 qm->cqc_dma = vf_data->cqc_dma; in vf_qm_load_data()
464 qm->qp_base = vf_data->qp_base; in vf_qm_load_data()
465 qm->qp_num = vf_data->qp_num; in vf_qm_load_data()
467 ret = qm_set_regs(qm, vf_data); in vf_qm_load_data()
473 ret = hisi_qm_mb(qm, QM_MB_CMD_SQC_BT, qm->sqc_dma, 0, 0); in vf_qm_load_data()
479 ret = hisi_qm_mb(qm, QM_MB_CMD_CQC_BT, qm->cqc_dma, 0, 0); in vf_qm_load_data()
[all …]
/linux-6.15/Documentation/ABI/testing/
H A Ddebugfs-hisi-zip26 has a QM. Select the QM which below qm refers to.
39 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/regs
46 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/current_q
53 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/clear_enable
62 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/err_irq
69 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/aeq_irq
87 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/mb_err
93 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/status
100 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/diff_regs
107 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/qm_state
[all …]
H A Ddebugfs-hisi-sec14 qm refers to.
27 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs
34 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q
41 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable
49 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq
56 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq
74 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err
80 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/status
87 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/diff_regs
94 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_state
[all …]
H A Ddebugfs-hisi-hpre27 has a QM. Select the QM which below qm refers to.
46 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/regs
53 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q
60 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable
69 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq
76 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq
94 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err
100 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/status
107 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/diff_regs
114 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/qm_state
[all …]
/linux-6.15/drivers/soc/fsl/qbman/
H A Dqman.c1391 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()
1401 qm_eqcr_finish(&qm->p); in qman_destroy_portal()
1403 qm->config = NULL; in qman_destroy_portal()
1412 pcfg = qm->config; in qman_destroy_affine_portal()
[all …]
/linux-6.15/drivers/media/v4l2-core/
H A Dv4l2-ctrls-api.c1207 int v4l2_querymenu(struct v4l2_ctrl_handler *hdl, struct v4l2_querymenu *qm) in v4l2_querymenu() argument
1210 u32 i = qm->index; in v4l2_querymenu()
1212 ctrl = v4l2_ctrl_find(hdl, qm->id); in v4l2_querymenu()
1216 qm->reserved = 0; in v4l2_querymenu()
1241 strscpy(qm->name, ctrl->qmenu[i], sizeof(qm->name)); in v4l2_querymenu()
1243 qm->value = ctrl->qmenu_int[i]; in v4l2_querymenu()
H A Dv4l2-common.c477 struct v4l2_querymenu qm = { .id = V4L2_CID_LINK_FREQ }; in __v4l2_get_link_freq_ctrl() local
480 qm.index = v4l2_ctrl_g_ctrl(ctrl); in __v4l2_get_link_freq_ctrl()
482 ret = v4l2_querymenu(handler, &qm); in __v4l2_get_link_freq_ctrl()
486 freq = qm.value; in __v4l2_get_link_freq_ctrl()
/linux-6.15/include/soc/fsl/
H A 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-6.15/arch/arm/boot/dts/ti/keystone/
H A Dkeystone-k2g-netcp.dtsi9 compatible = "ti,66ak2g-navss-qm";

12