Home
last modified time | relevance | path

Searched full:qm (Results 1 – 25 of 96) sorted by relevance

1234

/linux-6.14.4/drivers/crypto/hisilicon/
Dqm.c382 struct hisi_qm *qm; member
398 int (*get_vft)(struct hisi_qm *qm, u32 *base, u32 *number);
399 void (*qm_db)(struct hisi_qm *qm, u16 qn,
401 int (*debug_init)(struct hisi_qm *qm);
402 void (*hw_error_init)(struct hisi_qm *qm);
403 void (*hw_error_uninit)(struct hisi_qm *qm);
404 enum acc_err_result (*hw_error_handle)(struct hisi_qm *qm);
405 int (*set_msi)(struct hisi_qm *qm, bool set);
408 int (*set_ifc_begin)(struct hisi_qm *qm, enum qm_ifc_cmd cmd, u32 data, u32 fun_num);
409 void (*set_ifc_end)(struct hisi_qm *qm);
[all …]
Ddebugfs.c49 int (*dump_fn)(struct hisi_qm *qm, char *cmd, char *info_name);
117 /* define the QM's dfx regs region and region length */
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()
[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.14.4/drivers/crypto/hisilicon/sec2/
Dsec_main.c334 struct hisi_qm *qm = s->private; in sec_diff_regs_show() local
336 hisi_qm_acc_diff_regs_dump(qm, s, qm->debug.acc_diff_regs, in sec_diff_regs_show()
422 u64 sec_get_alg_bitmap(struct hisi_qm *qm, u32 high, u32 low) in sec_get_alg_bitmap() argument
426 cap_val_h = qm->cap_tables.dev_cap_table[high].cap_val; in sec_get_alg_bitmap()
427 cap_val_l = qm->cap_tables.dev_cap_table[low].cap_val; in sec_get_alg_bitmap()
452 static void sec_set_endian(struct hisi_qm *qm) in sec_set_endian() argument
456 reg = readl_relaxed(qm->io_base + SEC_CONTROL_REG); in sec_set_endian()
464 writel_relaxed(reg, qm->io_base + SEC_CONTROL_REG); in sec_set_endian()
467 static void sec_engine_sva_config(struct hisi_qm *qm) in sec_engine_sva_config() argument
471 if (qm->ver > QM_HW_V2) { in sec_engine_sva_config()
[all …]
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);
/linux-6.14.4/drivers/crypto/hisilicon/zip/
Dzip_main.c347 struct hisi_qm *qm = s->private; in hzip_diff_regs_show() local
349 hisi_qm_acc_diff_regs_dump(qm, s, qm->debug.acc_diff_regs, in hzip_diff_regs_show()
440 bool hisi_zip_alg_support(struct hisi_qm *qm, u32 alg) in hisi_zip_alg_support() argument
444 cap_val = qm->cap_tables.dev_cap_table[ZIP_DRV_ALG_BITMAP_TB].cap_val; in hisi_zip_alg_support()
451 static int hisi_zip_set_high_perf(struct hisi_qm *qm) in hisi_zip_set_high_perf() argument
456 val = readl_relaxed(qm->io_base + HZIP_HIGH_PERF_OFFSET); in hisi_zip_set_high_perf()
463 writel(val, qm->io_base + HZIP_HIGH_PERF_OFFSET); in hisi_zip_set_high_perf()
464 ret = readl_relaxed_poll_timeout(qm->io_base + HZIP_HIGH_PERF_OFFSET, in hisi_zip_set_high_perf()
468 pci_err(qm->pdev, "failed to set perf mode\n"); in hisi_zip_set_high_perf()
473 static void hisi_zip_open_sva_prefetch(struct hisi_qm *qm) in hisi_zip_open_sva_prefetch() argument
[all …]
Ddae_main.c55 static inline bool dae_is_support(struct hisi_qm *qm) in dae_is_support() argument
57 if (test_bit(QM_SUPPORT_DAE, &qm->caps)) in dae_is_support()
63 int hisi_dae_set_user_domain(struct hisi_qm *qm) in hisi_dae_set_user_domain() argument
68 if (!dae_is_support(qm)) in hisi_dae_set_user_domain()
71 val = readl(qm->io_base + DAE_MEM_START_OFFSET); in hisi_dae_set_user_domain()
73 writel(val, qm->io_base + DAE_MEM_START_OFFSET); in hisi_dae_set_user_domain()
74 ret = readl_relaxed_poll_timeout(qm->io_base + DAE_MEM_DONE_OFFSET, val, in hisi_dae_set_user_domain()
78 pci_err(qm->pdev, "failed to init dae memory!\n"); in hisi_dae_set_user_domain()
83 int hisi_dae_set_alg(struct hisi_qm *qm) in hisi_dae_set_alg() argument
87 if (!dae_is_support(qm)) in hisi_dae_set_alg()
[all …]
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 …]
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 …]
/linux-6.14.4/drivers/crypto/hisilicon/hpre/
Dhpre_main.c369 bool hpre_check_alg_support(struct hisi_qm *qm, u32 alg) in hpre_check_alg_support() argument
373 cap_val = qm->cap_tables.dev_cap_table[HPRE_DRV_ALG_BITMAP].cap_val; in hpre_check_alg_support()
382 struct hisi_qm *qm = s->private; in hpre_diff_regs_show() local
384 hisi_qm_acc_diff_regs_dump(qm, s, qm->debug.acc_diff_regs, in hpre_diff_regs_show()
469 static void hpre_config_pasid(struct hisi_qm *qm) in hpre_config_pasid() argument
473 if (qm->ver >= QM_HW_V3) in hpre_config_pasid()
476 val1 = readl_relaxed(qm->io_base + HPRE_DATA_RUSER_CFG); in hpre_config_pasid()
477 val2 = readl_relaxed(qm->io_base + HPRE_DATA_WUSER_CFG); in hpre_config_pasid()
478 if (qm->use_sva) { in hpre_config_pasid()
485 writel_relaxed(val1, qm->io_base + HPRE_DATA_RUSER_CFG); in hpre_config_pasid()
[all …]
Dhpre.h14 * type used in qm sqc DW6.
71 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);
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()
2103 static int hpre_register_rsa(struct hisi_qm *qm) in hpre_register_rsa() argument
2107 if (!hpre_check_alg_support(qm, HPRE_DRV_RSA_MASK_CAP)) in hpre_register_rsa()
2113 dev_err(&qm->pdev->dev, "failed to register rsa (%d)!\n", ret); in hpre_register_rsa()
2118 static void hpre_unregister_rsa(struct hisi_qm *qm) in hpre_unregister_rsa() argument
2120 if (!hpre_check_alg_support(qm, HPRE_DRV_RSA_MASK_CAP)) in hpre_unregister_rsa()
2126 static int hpre_register_dh(struct hisi_qm *qm) in hpre_register_dh() argument
2130 if (!hpre_check_alg_support(qm, HPRE_DRV_DH_MASK_CAP)) in hpre_register_dh()
[all …]
/linux-6.14.4/include/linux/
Dhisi_acc_qm.h16 /* qm user domain */
73 /* qm cache */
261 int (*hw_init)(struct hisi_qm *qm);
262 void (*hw_err_enable)(struct hisi_qm *qm);
263 void (*hw_err_disable)(struct hisi_qm *qm);
264 u32 (*get_dev_hw_err_status)(struct hisi_qm *qm);
265 void (*clear_dev_hw_err_status)(struct hisi_qm *qm, u32 err_sts);
266 void (*open_axi_master_ooo)(struct hisi_qm *qm);
267 void (*close_axi_master_ooo)(struct hisi_qm *qm);
268 void (*open_sva_prefetch)(struct hisi_qm *qm);
[all …]
/linux-6.14.4/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
42 Description: Dump of QM related debug registers.
46 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/current_q
49 Description: One QM may contain multiple queues. Select specific queue to
53 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/clear_enable
56 Description: QM debug registers(regs) read clear control. 1 means enable
62 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/err_irq
66 QM task completion.
69 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/aeq_irq
[all …]
Ddebugfs-hisi-sec13 has a QM. This file can be used to select the QM which below
14 qm refers to.
27 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs
30 Description: Dump of QM related debug registers.
34 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q
37 Description: One QM of SEC may contain multiple queues. Select specific
41 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable
45 the SEC's QM debug registers.
49 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq
53 QM task completion.
[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
49 Description: Dump debug registers from the QM.
53 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q
56 Description: One QM may contain multiple queues. Select specific queue to
60 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable
63 Description: QM debug registers(regs) read clear control. 1 means enable
69 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq
73 QM task completion.
76 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq
[all …]
/linux-6.14.4/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 …]
Dhisi_acc_vfio_pci.h55 /* QM match information */
63 /* QM reserved match information */
66 /* QM RW regs */
80 /* QM reserved 5 regs */
83 /* QM memory init information */
/linux-6.14.4/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_self_test.c871 "QM: Queue is not empty",
877 "QM: VOQ_0, VOQ credit is not equal to initial credit",
883 "QM: VOQ_1, VOQ credit is not equal to initial credit",
889 "QM: VOQ_4, VOQ credit is not equal to initial credit",
895 "QM: P0 Byte credit is not equal to initial credit",
901 "QM: P1 Byte credit is not equal to initial credit",
1165 "QM: Interrupt status is not 0",
1201 "QM: Credit error register is not 0 (byte or credit overflow/underflow)",
1861 "QM: XQM wrc_fifolvl is not 0",
1867 "QM: UQM wrc_fifolvl is not 0",
[all …]
Dbnx2x_init.h178 /* QM queue numbers */
193 /* QM Register addresses */
201 /* extracts the QM queue number for the specified port and vnic */
261 /* Configures the QM according to the specified per-traffic-type COSes */
308 /* number of bytes in single QM arbitration cycle -
597 BLOCK_PRTY_INFO(QM, 0, 0x1ff, 0xfff, 0xfff, 0xfff),
/linux-6.14.4/drivers/net/ethernet/mediatek/
Dmtk_wed_debugfs.c208 DUMP_STR("WED Route QM"), in wed_rxinfo_show()
245 DUMP_STR("WED Route QM"), in wed_rxinfo_show()
502 DUMP_STR("WED Route QM IGRS0(N2H + Recycle)"), in wed_rtqm_show()
511 DUMP_STR("WED Route QM IGRS1(Legacy)"), in wed_rtqm_show()
520 DUMP_STR("WED Route QM IGRS2(RRO3.0)"), in wed_rtqm_show()
529 DUMP_STR("WED Route QM IGRS3(DEBUG)"), in wed_rtqm_show()
/linux-6.14.4/Documentation/hwmon/
Dcoretemp.rst71 i7 3920XM, 3820QM, 3720QM, 3667U, 3520M 105
154 i7 840QM/820/740/720 100
/linux-6.14.4/fs/xfs/
Dxfs_stats.c60 { "qm", xfsstats_offset(xs_xstrat_bytes)}, in xfs_stats_format()
134 seq_puts(m, "qm"); in xqmstat_proc_show()
/linux-6.14.4/drivers/media/platform/nxp/imx-jpeg/
DKconfig11 This is a video4linux2 driver for the i.MX8 QXP/QM integrated

1234