/linux/drivers/crypto/hisilicon/ |
H A D | qm.c | 375 struct hisi_qm *qm; member 391 int (*get_vft)(struct hisi_qm *qm, u32 *base, u32 *number); 392 void (*qm_db)(struct hisi_qm *qm, u16 qn, 394 int (*debug_init)(struct hisi_qm *qm); 395 void (*hw_error_init)(struct hisi_qm *qm); 396 void (*hw_error_uninit)(struct hisi_qm *qm); 397 enum acc_err_result (*hw_error_handle)(struct hisi_qm *qm); 398 int (*set_msi)(struct hisi_qm *qm, bool set); 457 static void qm_irqs_unregister(struct hisi_qm *qm); 458 static int qm_reset_device(struct hisi_qm *qm); [all …]
|
H A D | debugfs.c | 49 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 …]
|
H A D | qm_common.h | 75 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 D | Makefile | 6 hisi_qm-objs = qm.o sgl.o debugfs.o
|
/linux/drivers/crypto/hisilicon/sec2/ |
H A D | sec_main.c | 334 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 …]
|
H A D | sec_crypto.h | 406 int sec_register_to_crypto(struct hisi_qm *qm); 407 void sec_unregister_from_crypto(struct hisi_qm *qm);
|
/linux/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_main.c | 369 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 …]
|
H A D | hpre_crypto.c | 231 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/drivers/crypto/hisilicon/zip/ |
H A 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() 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 …]
|
H A D | zip_crypto.c | 124 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/drivers/soc/fsl/qbman/ |
H A 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/drivers/media/v4l2-core/ |
H A D | v4l2-ctrls-api.c | 1164 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()
|
H A D | v4l2-common.c | 477 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/arch/arm/boot/dts/ti/keystone/ |
H A D | keystone-k2g-netcp.dtsi | 9 compatible = "ti,66ak2g-navss-qm";
|
/linux/fs/quota/ |
H A D | dquot.c | 197 int qm; in find_quota_format() local 201 for (qm = 0; module_names[qm].qm_fmt_id && in find_quota_format() 202 module_names[qm].qm_fmt_id != id; qm++) in find_quota_format() 204 if (!module_names[qm].qm_fmt_id || in find_quota_format() 205 request_module(module_names[qm].qm_mod_name)) in find_quota_format()
|
/linux/drivers/crypto/caam/ |
H A D | qi.c | 142 static void caam_fq_ern_cb(struct qman_portal *qm, struct qman_fq *fq, in caam_fq_ern_cb() argument 542 static void cgr_cb(struct qman_portal *qm, struct qman_cgr *cgr, int congested) in cgr_cb() argument
|
/linux/include/media/ |
H A D | v4l2-ctrls.h | 1428 int v4l2_querymenu(struct v4l2_ctrl_handler *hdl, struct v4l2_querymenu *qm);
|
/linux/Documentation/devicetree/bindings/soc/ti/ |
H A D | keystone-navigator-qmss.txt | 21 : Must be "ti,66ak2g-navss-qm" for QMSS on K2G SoC.
|
/linux/drivers/net/ethernet/freescale/dpaa/ |
H A D | dpaa_eth.c | 832 static void dpaa_eth_cgscn(struct qman_portal *qm, struct qman_cgr *cgr, in dpaa_eth_cgscn() argument
|
/linux/net/core/ |
H A D | dev.c | 3958 int qm = skb_get_queue_mapping(skb); in netdev_tx_queue_mapping() local 3960 return netdev_get_tx_queue(dev, netdev_cap_txqueue(dev, qm)); in netdev_tx_queue_mapping()
|
/linux/ |
H A D | MAINTAINERS | 10403 F: drivers/crypto/hisilicon/qm.c
|