Home
last modified time | relevance | path

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

12

/linux-6.12.1/drivers/crypto/hisilicon/
Dqm.c370 struct hisi_qm *qm; member
386 int (*get_vft)(struct hisi_qm *qm, u32 *base, u32 *number);
387 void (*qm_db)(struct hisi_qm *qm, u16 qn,
389 int (*debug_init)(struct hisi_qm *qm);
390 void (*hw_error_init)(struct hisi_qm *qm);
391 void (*hw_error_uninit)(struct hisi_qm *qm);
392 enum acc_err_result (*hw_error_handle)(struct hisi_qm *qm);
393 int (*set_msi)(struct hisi_qm *qm, bool set);
452 static void qm_irqs_unregister(struct hisi_qm *qm);
453 static int qm_reset_device(struct hisi_qm *qm);
[all …]
Ddebugfs.c49 int (*dump_fn)(struct hisi_qm *qm, char *cmd, char *info_name);
153 static void dump_show(struct hisi_qm *qm, void *info, in dump_show() argument
156 struct device *dev = &qm->pdev->dev; in dump_show()
168 static int qm_sqc_dump(struct hisi_qm *qm, char *s, char *name) in qm_sqc_dump() argument
170 struct device *dev = &qm->pdev->dev; in qm_sqc_dump()
179 if (ret || qp_id >= qm->qp_num) { in qm_sqc_dump()
180 dev_err(dev, "Please input qp num (0-%u)", qm->qp_num - 1); in qm_sqc_dump()
184 ret = qm_set_and_get_xqc(qm, QM_MB_CMD_SQC, &sqc, qp_id, 1); in qm_sqc_dump()
188 dump_show(qm, &sqc, sizeof(struct qm_sqc), name); in qm_sqc_dump()
193 down_read(&qm->qps_lock); in qm_sqc_dump()
[all …]
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);
DMakefile6 hisi_qm-objs = qm.o sgl.o debugfs.o
/linux-6.12.1/drivers/crypto/hisilicon/sec2/
Dsec_main.c311 struct hisi_qm *qm = s->private; in sec_diff_regs_show() local
313 hisi_qm_acc_diff_regs_dump(qm, s, qm->debug.acc_diff_regs, in sec_diff_regs_show()
399 u64 sec_get_alg_bitmap(struct hisi_qm *qm, u32 high, u32 low) in sec_get_alg_bitmap() argument
403 cap_val_h = qm->cap_tables.dev_cap_table[high].cap_val; in sec_get_alg_bitmap()
404 cap_val_l = qm->cap_tables.dev_cap_table[low].cap_val; in sec_get_alg_bitmap()
429 static void sec_set_endian(struct hisi_qm *qm) in sec_set_endian() argument
433 reg = readl_relaxed(qm->io_base + SEC_CONTROL_REG); in sec_set_endian()
441 writel_relaxed(reg, qm->io_base + SEC_CONTROL_REG); in sec_set_endian()
444 static void sec_engine_sva_config(struct hisi_qm *qm) in sec_engine_sva_config() argument
448 if (qm->ver > QM_HW_V2) { in sec_engine_sva_config()
[all …]
Dsec.h170 struct hisi_qm *qm; member
189 struct hisi_qm qm; member
232 int sec_register_to_crypto(struct hisi_qm *qm);
233 void sec_unregister_from_crypto(struct hisi_qm *qm);
234 u64 sec_get_alg_bitmap(struct hisi_qm *qm, u32 high, u32 low);
Dsec_crypto.h406 int sec_register_to_crypto(struct hisi_qm *qm);
407 void sec_unregister_from_crypto(struct hisi_qm *qm);
Dsec_crypto.c600 sec = container_of(ctx->qps[0]->qm, struct sec_dev, qm); in sec_ctx_base_init()
602 ctx->dev = &sec->qm.pdev->dev; in sec_ctx_base_init()
1863 if (ctx->sec->qm.ver < QM_HW_V3) { in sec_skcipher_ctx_init()
1896 if (ctx->sec->qm.ver < QM_HW_V3) { in sec_aead_init()
2033 if (unlikely(ctx->sec->qm.ver < QM_HW_V3)) { in sec_skcipher_cryptlen_check()
2293 if (ctx->sec->qm.ver == QM_HW_V2) { in sec_aead_param_check()
2518 int sec_register_to_crypto(struct hisi_qm *qm) in sec_register_to_crypto() argument
2523 alg_mask = sec_get_alg_bitmap(qm, SEC_DRV_ALG_BITMAP_HIGH_IDX, in sec_register_to_crypto()
2552 void sec_unregister_from_crypto(struct hisi_qm *qm) in sec_unregister_from_crypto() argument
2556 alg_mask = sec_get_alg_bitmap(qm, SEC_DRV_ALG_BITMAP_HIGH_IDX, in sec_unregister_from_crypto()
/linux-6.12.1/drivers/crypto/hisilicon/zip/
Dzip_main.c348 struct hisi_qm *qm = s->private; in hzip_diff_regs_show() local
350 hisi_qm_acc_diff_regs_dump(qm, s, qm->debug.acc_diff_regs, in hzip_diff_regs_show()
441 bool hisi_zip_alg_support(struct hisi_qm *qm, u32 alg) in hisi_zip_alg_support() argument
445 cap_val = qm->cap_tables.dev_cap_table[ZIP_DRV_ALG_BITMAP_IDX].cap_val; in hisi_zip_alg_support()
452 static int hisi_zip_set_high_perf(struct hisi_qm *qm) in hisi_zip_set_high_perf() argument
457 val = readl_relaxed(qm->io_base + HZIP_HIGH_PERF_OFFSET); in hisi_zip_set_high_perf()
464 writel(val, qm->io_base + HZIP_HIGH_PERF_OFFSET); in hisi_zip_set_high_perf()
465 ret = readl_relaxed_poll_timeout(qm->io_base + HZIP_HIGH_PERF_OFFSET, in hisi_zip_set_high_perf()
469 pci_err(qm->pdev, "failed to set perf mode\n"); in hisi_zip_set_high_perf()
474 static void hisi_zip_open_sva_prefetch(struct hisi_qm *qm) in hisi_zip_open_sva_prefetch() argument
[all …]
Dzip_crypto.c124 dev_dbg(&qp_ctx->qp->qm->pdev->dev, "req cache is full!\n"); in hisi_zip_create_req()
219 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()
518 hisi_acc_free_sgl_pool(&ctx->qp_ctx[HZIP_QPC_COMP].qp->qm->pdev->dev, in hisi_zip_create_sgl_pool()
528 hisi_acc_free_sgl_pool(&ctx->qp_ctx[i].qp->qm->pdev->dev, in hisi_zip_release_sgl_pool()
[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);
87 bool hisi_zip_alg_support(struct hisi_qm *qm, u32 alg);
/linux-6.12.1/drivers/crypto/hisilicon/hpre/
Dhpre_main.c359 bool hpre_check_alg_support(struct hisi_qm *qm, u32 alg) in hpre_check_alg_support() argument
363 cap_val = qm->cap_tables.dev_cap_table[HPRE_DRV_ALG_BITMAP_CAP_IDX].cap_val; in hpre_check_alg_support()
372 struct hisi_qm *qm = s->private; in hpre_diff_regs_show() local
374 hisi_qm_acc_diff_regs_dump(qm, s, qm->debug.acc_diff_regs, in hpre_diff_regs_show()
459 static void hpre_config_pasid(struct hisi_qm *qm) in hpre_config_pasid() argument
463 if (qm->ver >= QM_HW_V3) in hpre_config_pasid()
466 val1 = readl_relaxed(qm->io_base + HPRE_DATA_RUSER_CFG); in hpre_config_pasid()
467 val2 = readl_relaxed(qm->io_base + HPRE_DATA_WUSER_CFG); in hpre_config_pasid()
468 if (qm->use_sva) { in hpre_config_pasid()
475 writel_relaxed(val1, qm->io_base + HPRE_DATA_RUSER_CFG); in hpre_config_pasid()
[all …]
Dhpre.h71 struct hisi_qm qm; member
104 int hpre_algs_register(struct hisi_qm *qm);
105 void hpre_algs_unregister(struct hisi_qm *qm);
106 bool hpre_check_alg_support(struct hisi_qm *qm, u32 alg);
Dhpre_crypto.c231 pci_err(qp->qm->pdev, "Can not start qp!\n"); in hpre_get_qp_and_start()
391 ctx->dev = &qp->qm->pdev->dev; in hpre_ctx_set()
393 hpre = container_of(ctx->qp->qm, struct hpre, qm); in hpre_ctx_set()
2105 static int hpre_register_rsa(struct hisi_qm *qm) in hpre_register_rsa() argument
2109 if (!hpre_check_alg_support(qm, HPRE_DRV_RSA_MASK_CAP)) in hpre_register_rsa()
2115 dev_err(&qm->pdev->dev, "failed to register rsa (%d)!\n", ret); in hpre_register_rsa()
2120 static void hpre_unregister_rsa(struct hisi_qm *qm) in hpre_unregister_rsa() argument
2122 if (!hpre_check_alg_support(qm, HPRE_DRV_RSA_MASK_CAP)) in hpre_unregister_rsa()
2128 static int hpre_register_dh(struct hisi_qm *qm) in hpre_register_dh() argument
2132 if (!hpre_check_alg_support(qm, HPRE_DRV_DH_MASK_CAP)) in hpre_register_dh()
[all …]
/linux-6.12.1/include/linux/
Dhisi_acc_qm.h251 int (*hw_init)(struct hisi_qm *qm);
252 void (*hw_err_enable)(struct hisi_qm *qm);
253 void (*hw_err_disable)(struct hisi_qm *qm);
254 u32 (*get_dev_hw_err_status)(struct hisi_qm *qm);
255 void (*clear_dev_hw_err_status)(struct hisi_qm *qm, u32 err_sts);
256 void (*open_axi_master_ooo)(struct hisi_qm *qm);
257 void (*close_axi_master_ooo)(struct hisi_qm *qm);
258 void (*open_sva_prefetch)(struct hisi_qm *qm);
259 void (*close_sva_prefetch)(struct hisi_qm *qm);
260 void (*log_dev_hw_err)(struct hisi_qm *qm, u32 err_sts);
[all …]
/linux-6.12.1/drivers/vfio/pci/hisilicon/
Dhisi_acc_vfio_pci.c20 static int qm_wait_dev_not_ready(struct hisi_qm *qm) in qm_wait_dev_not_ready() argument
24 return readl_relaxed_poll_timeout(qm->io_base + QM_VF_STATE, in qm_wait_dev_not_ready()
33 static u32 qm_check_reg_state(struct hisi_qm *qm, u32 regs) in qm_check_reg_state() argument
38 state = readl(qm->io_base + regs); in qm_check_reg_state()
41 state = readl(qm->io_base + regs); in qm_check_reg_state()
48 static int qm_read_regs(struct hisi_qm *qm, u32 reg_addr, in qm_read_regs() argument
57 data[i] = readl(qm->io_base + reg_addr); in qm_read_regs()
64 static int qm_write_regs(struct hisi_qm *qm, u32 reg, in qm_write_regs() argument
73 writel(data[i], qm->io_base + reg + i * QM_REG_ADDR_OFFSET); in qm_write_regs()
78 static int qm_get_vft(struct hisi_qm *qm, u32 *base) in qm_get_vft() argument
[all …]
/linux-6.12.1/Documentation/ABI/testing/
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
75 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/abnormal_irq
81 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/create_qp_err
87 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/mb_err
93 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/status
[all …]
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
62 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq
68 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err
74 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err
80 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/status
[all …]
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
82 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/abnormal_irq
88 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/create_qp_err
94 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err
100 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/status
[all …]
/linux-6.12.1/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-6.12.1/drivers/media/v4l2-core/
Dv4l2-ctrls-api.c1164 int v4l2_querymenu(struct v4l2_ctrl_handler *hdl, struct v4l2_querymenu *qm) in v4l2_querymenu() argument
1167 u32 i = qm->index; in v4l2_querymenu()
1169 ctrl = v4l2_ctrl_find(hdl, qm->id); in v4l2_querymenu()
1173 qm->reserved = 0; in v4l2_querymenu()
1198 strscpy(qm->name, ctrl->qmenu[i], sizeof(qm->name)); in v4l2_querymenu()
1200 qm->value = ctrl->qmenu_int[i]; in v4l2_querymenu()
Dv4l2-common.c477 struct v4l2_querymenu qm = { .id = V4L2_CID_LINK_FREQ }; in v4l2_get_link_freq() local
480 qm.index = v4l2_ctrl_g_ctrl(ctrl); in v4l2_get_link_freq()
482 ret = v4l2_querymenu(handler, &qm); in v4l2_get_link_freq()
486 freq = qm.value; in v4l2_get_link_freq()
/linux-6.12.1/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-6.12.1/arch/arm/boot/dts/ti/keystone/
Dkeystone-k2g-netcp.dtsi9 compatible = "ti,66ak2g-navss-qm";
/linux-6.12.1/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()

12