/linux-6.1.9/drivers/crypto/hisilicon/ |
D | qm.c | 454 struct hisi_qm *qm; member 460 int (*get_vft)(struct hisi_qm *qm, u32 *base, u32 *number); 461 void (*qm_db)(struct hisi_qm *qm, u16 qn, 463 int (*debug_init)(struct hisi_qm *qm); 464 void (*hw_error_init)(struct hisi_qm *qm); 465 void (*hw_error_uninit)(struct hisi_qm *qm); 466 enum acc_err_result (*hw_error_handle)(struct hisi_qm *qm); 467 int (*set_msi)(struct hisi_qm *qm, bool set); 571 static void qm_irqs_unregister(struct hisi_qm *qm); 573 static bool qm_avail_state(struct hisi_qm *qm, enum qm_state new) in qm_avail_state() argument [all …]
|
D | Makefile | 6 hisi_qm-objs = qm.o sgl.o
|
/linux-6.1.9/drivers/crypto/hisilicon/sec2/ |
D | sec_main.c | 306 struct hisi_qm *qm = s->private; in sec_diff_regs_show() local 308 hisi_qm_acc_diff_regs_dump(qm, s, qm->debug.acc_diff_regs, in sec_diff_regs_show() 391 u64 sec_get_alg_bitmap(struct hisi_qm *qm, u32 high, u32 low) in sec_get_alg_bitmap() argument 395 cap_val_h = hisi_qm_get_hw_info(qm, sec_basic_info, high, qm->cap_ver); in sec_get_alg_bitmap() 396 cap_val_l = hisi_qm_get_hw_info(qm, sec_basic_info, low, qm->cap_ver); in sec_get_alg_bitmap() 421 static void sec_set_endian(struct hisi_qm *qm) in sec_set_endian() argument 425 reg = readl_relaxed(qm->io_base + SEC_CONTROL_REG); in sec_set_endian() 434 writel_relaxed(reg, qm->io_base + SEC_CONTROL_REG); in sec_set_endian() 437 static void sec_engine_sva_config(struct hisi_qm *qm) in sec_engine_sva_config() argument 441 if (qm->ver > QM_HW_V2) { in sec_engine_sva_config() [all …]
|
D | sec.h | 170 struct hisi_qm *qm; member 189 struct hisi_qm qm; member 225 int sec_register_to_crypto(struct hisi_qm *qm); 226 void sec_unregister_from_crypto(struct hisi_qm *qm); 227 u64 sec_get_alg_bitmap(struct hisi_qm *qm, u32 high, u32 low);
|
D | sec_crypto.h | 408 int sec_register_to_crypto(struct hisi_qm *qm); 409 void sec_unregister_from_crypto(struct hisi_qm *qm);
|
D | sec_crypto.c | 486 static int sec_alloc_qp_ctx_resource(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_alloc_qp_ctx_resource() argument 542 static int sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_create_qp_ctx() argument 562 ret = sec_alloc_qp_ctx_resource(qm, ctx, qp_ctx); in sec_create_qp_ctx() 598 sec = container_of(ctx->qps[0]->qm, struct sec_dev, qm); in sec_ctx_base_init() 600 ctx->dev = &sec->qm.pdev->dev; in sec_ctx_base_init() 615 ret = sec_create_qp_ctx(&sec->qm, ctx, i, 0); in sec_ctx_base_init() 1865 if (ctx->sec->qm.ver < QM_HW_V3) { in sec_skcipher_ctx_init() 1898 if (ctx->sec->qm.ver < QM_HW_V3) { in sec_aead_init() 2037 if (unlikely(ctx->sec->qm.ver < QM_HW_V3)) { in sec_skcipher_cryptlen_ckeck() 2322 if (ctx->sec->qm.ver == QM_HW_V2) { in sec_aead_param_check() [all …]
|
/linux-6.1.9/drivers/crypto/hisilicon/hpre/ |
D | hpre_main.c | 351 bool hpre_check_alg_support(struct hisi_qm *qm, u32 alg) in hpre_check_alg_support() argument 355 cap_val = hisi_qm_get_hw_info(qm, hpre_basic_info, HPRE_DRV_ALG_BITMAP_CAP, qm->cap_ver); in hpre_check_alg_support() 362 static int hpre_set_qm_algs(struct hisi_qm *qm) in hpre_set_qm_algs() argument 364 struct device *dev = &qm->pdev->dev; in hpre_set_qm_algs() 369 if (!qm->use_sva) in hpre_set_qm_algs() 376 alg_msk = hisi_qm_get_hw_info(qm, hpre_basic_info, HPRE_DEV_ALG_BITMAP_CAP, qm->cap_ver); in hpre_set_qm_algs() 386 qm->uacce->algs = algs; in hpre_set_qm_algs() 393 struct hisi_qm *qm = s->private; in hpre_diff_regs_show() local 395 hisi_qm_acc_diff_regs_dump(qm, s, qm->debug.acc_diff_regs, in hpre_diff_regs_show() 457 static inline int hpre_cluster_num(struct hisi_qm *qm) in hpre_cluster_num() argument [all …]
|
D | hpre.h | 71 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);
|
D | hpre_crypto.c | 218 pci_err(qp->qm->pdev, "Can not start qp!\n"); in hpre_get_qp_and_start() 378 ctx->dev = &qp->qm->pdev->dev; in hpre_ctx_set() 380 hpre = container_of(ctx->qp->qm, struct hpre, qm); in hpre_ctx_set() 2077 static int hpre_register_rsa(struct hisi_qm *qm) in hpre_register_rsa() argument 2081 if (!hpre_check_alg_support(qm, HPRE_DRV_RSA_MASK_CAP)) in hpre_register_rsa() 2087 dev_err(&qm->pdev->dev, "failed to register rsa (%d)!\n", ret); in hpre_register_rsa() 2092 static void hpre_unregister_rsa(struct hisi_qm *qm) in hpre_unregister_rsa() argument 2094 if (!hpre_check_alg_support(qm, HPRE_DRV_RSA_MASK_CAP)) in hpre_unregister_rsa() 2100 static int hpre_register_dh(struct hisi_qm *qm) in hpre_register_dh() argument 2104 if (!hpre_check_alg_support(qm, HPRE_DRV_DH_MASK_CAP)) in hpre_register_dh() [all …]
|
/linux-6.1.9/drivers/crypto/hisilicon/zip/ |
D | zip_main.c | 347 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() 406 bool hisi_zip_alg_support(struct hisi_qm *qm, u32 alg) in hisi_zip_alg_support() argument 410 cap_val = hisi_qm_get_hw_info(qm, zip_basic_cap_info, ZIP_DRV_ALG_BITMAP, qm->cap_ver); in hisi_zip_alg_support() 417 static int hisi_zip_set_qm_algs(struct hisi_qm *qm) in hisi_zip_set_qm_algs() argument 419 struct device *dev = &qm->pdev->dev; in hisi_zip_set_qm_algs() 424 if (!qm->use_sva) in hisi_zip_set_qm_algs() 431 alg_mask = hisi_qm_get_hw_info(qm, zip_basic_cap_info, ZIP_DEV_ALG_BITMAP, qm->cap_ver); in hisi_zip_set_qm_algs() 441 qm->uacce->algs = algs; in hisi_zip_set_qm_algs() 446 static void hisi_zip_open_sva_prefetch(struct hisi_qm *qm) in hisi_zip_open_sva_prefetch() argument [all …]
|
D | zip_crypto.c | 231 dev_dbg(&qp_ctx->qp->qm->pdev->dev, "req cache is full!\n"); in hisi_zip_create_req() 340 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_do_work() 412 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_acomp_cb() 448 struct device *dev = &qp_ctx->qp->qm->pdev->dev; in hisi_zip_acompress() 478 struct device *dev = &qp_ctx->qp->qm->pdev->dev; in hisi_zip_adecompress() 506 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_start_qp() 569 hisi_zip = container_of(qps[0]->qm, struct hisi_zip, qm); in hisi_zip_ctx_init() 587 if (hisi_zip->qm.ver < QM_HW_V3) in hisi_zip_ctx_init() 664 dev = &tmp->qp->qm->pdev->dev; in hisi_zip_create_sgl_pool() 677 hisi_acc_free_sgl_pool(&ctx->qp_ctx[HZIP_QPC_COMP].qp->qm->pdev->dev, in hisi_zip_create_sgl_pool() [all …]
|
D | zip.h | 27 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.1.9/include/linux/ |
D | hisi_acc_qm.h | 236 int (*hw_init)(struct hisi_qm *qm); 237 void (*hw_err_enable)(struct hisi_qm *qm); 238 void (*hw_err_disable)(struct hisi_qm *qm); 239 u32 (*get_dev_hw_err_status)(struct hisi_qm *qm); 240 void (*clear_dev_hw_err_status)(struct hisi_qm *qm, u32 err_sts); 241 void (*open_axi_master_ooo)(struct hisi_qm *qm); 242 void (*close_axi_master_ooo)(struct hisi_qm *qm); 243 void (*open_sva_prefetch)(struct hisi_qm *qm); 244 void (*close_sva_prefetch)(struct hisi_qm *qm); 245 void (*log_dev_hw_err)(struct hisi_qm *qm, u32 err_sts); [all …]
|
/linux-6.1.9/drivers/vfio/pci/hisilicon/ |
D | hisi_acc_vfio_pci.c | 20 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.1.9/Documentation/ABI/testing/ |
D | debugfs-hisi-zip | 26 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 …]
|
D | debugfs-hisi-sec | 14 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 …]
|
D | debugfs-hisi-hpre | 27 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.1.9/drivers/soc/fsl/qbman/ |
D | qman.c | 1375 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.1.9/drivers/media/v4l2-core/ |
D | v4l2-ctrls-api.c | 1154 int v4l2_querymenu(struct v4l2_ctrl_handler *hdl, struct v4l2_querymenu *qm) in v4l2_querymenu() argument 1157 u32 i = qm->index; in v4l2_querymenu() 1159 ctrl = v4l2_ctrl_find(hdl, qm->id); in v4l2_querymenu() 1163 qm->reserved = 0; in v4l2_querymenu() 1188 strscpy(qm->name, ctrl->qmenu[i], sizeof(qm->name)); in v4l2_querymenu() 1190 qm->value = ctrl->qmenu_int[i]; in v4l2_querymenu()
|
D | v4l2-common.c | 458 struct v4l2_querymenu qm = { .id = V4L2_CID_LINK_FREQ }; in v4l2_get_link_freq() local 461 qm.index = v4l2_ctrl_g_ctrl(ctrl); in v4l2_get_link_freq() 463 ret = v4l2_querymenu(handler, &qm); in v4l2_get_link_freq() 467 freq = qm.value; in v4l2_get_link_freq()
|
/linux-6.1.9/include/soc/fsl/ |
D | qman.h | 690 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.1.9/drivers/media/i2c/ |
D | st-mipid02.c | 373 struct v4l2_querymenu qm = {.id = V4L2_CID_LINK_FREQ, }; in mipid02_get_link_freq_from_cid_link_freq() local 380 qm.index = v4l2_ctrl_g_ctrl(ctrl); in mipid02_get_link_freq_from_cid_link_freq() 382 ret = v4l2_querymenu(subdev->ctrl_handler, &qm); in mipid02_get_link_freq_from_cid_link_freq() 386 return qm.value; in mipid02_get_link_freq_from_cid_link_freq()
|
/linux-6.1.9/arch/arm/boot/dts/ |
D | keystone-k2g-netcp.dtsi | 9 compatible = "ti,66ak2g-navss-qm";
|
/linux-6.1.9/drivers/crypto/caam/ |
D | qi.c | 135 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-6.1.9/fs/quota/ |
D | dquot.c | 199 int qm; in find_quota_format() local 203 for (qm = 0; module_names[qm].qm_fmt_id && in find_quota_format() 204 module_names[qm].qm_fmt_id != id; qm++) in find_quota_format() 206 if (!module_names[qm].qm_fmt_id || in find_quota_format() 207 request_module(module_names[qm].qm_mod_name)) in find_quota_format()
|