Home
last modified time | relevance | path

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

/drivers/crypto/hisilicon/
A Dqm.c931 struct hisi_qm *qm = qp->qm; in qm_poll_req_cb() local
1674 qm->ops->set_ifc_end(qm); in qm_ping_single_vf()
1690 qm->ops->set_ifc_end(qm); in qm_ping_all_vfs()
1700 qm->ops->set_ifc_end(qm); in qm_ping_all_vfs()
1708 qm->ops->set_ifc_end(qm); in qm_ping_all_vfs()
1746 qm->ops->set_ifc_end(qm); in qm_ping_pf()
2933 qp->qm = qm; in hisi_qp_memory_init()
3198 ret = hisi_qm_set_vft(qm, 0, qm->qp_base, qm->qp_num); in __hisi_qm_start()
3391 qm->ops->hw_error_init(qm); in qm_hw_error_init()
3503 res->qm = qm; in hisi_qm_sort_devices()
[all …]
A Ddebugfs.c194 if (qm->sqc) { in qm_sqc_dump()
337 memcpy(sqe, qp->sqe + sqe_id * qm->sqe_size, qm->sqe_size); in qm_sq_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 …]
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);
A DMakefile6 hisi_qm-objs = qm.o sgl.o debugfs.o
/drivers/crypto/hisilicon/sec2/
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 …]
A Dsec.h217 struct hisi_qm *qm; member
236 struct hisi_qm qm; member
295 int sec_register_to_crypto(struct hisi_qm *qm);
296 void sec_unregister_from_crypto(struct hisi_qm *qm);
297 u64 sec_get_alg_bitmap(struct hisi_qm *qm, u32 high, u32 low);
A Dsec_crypto.h395 int sec_register_to_crypto(struct hisi_qm *qm);
396 void sec_unregister_from_crypto(struct hisi_qm *qm);
A Dsec_crypto.c677 sec = container_of(ctx->qps[0]->qm, struct sec_dev, qm); in sec_ctx_base_init()
679 ctx->dev = &sec->qm.pdev->dev; in sec_ctx_base_init()
2060 if (ctx->sec->qm.ver < QM_HW_V3) { in sec_skcipher_ctx_init()
2093 if (ctx->sec->qm.ver < QM_HW_V3) { in sec_aead_init()
2449 if (unlikely(ctx->sec->qm.ver == QM_HW_V2 && !sreq->c_req.c_len)) in sec_aead_spec_check()
2709 int sec_register_to_crypto(struct hisi_qm *qm) in sec_register_to_crypto() argument
2714 alg_mask = sec_get_alg_bitmap(qm, SEC_DRV_ALG_BITMAP_HIGH_TB, in sec_register_to_crypto()
2743 void sec_unregister_from_crypto(struct hisi_qm *qm) in sec_unregister_from_crypto() argument
2747 alg_mask = sec_get_alg_bitmap(qm, SEC_DRV_ALG_BITMAP_HIGH_TB, in sec_unregister_from_crypto()
/drivers/crypto/hisilicon/zip/
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 …]
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 …]
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 …]
A Dzip_crypto.c219 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_do_work()
289 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_acomp_cb()
322 struct device *dev = &qp_ctx->qp->qm->pdev->dev; in hisi_zip_acompress()
343 struct device *dev = &qp_ctx->qp->qm->pdev->dev; in hisi_zip_adecompress()
364 struct device *dev = &qp->qm->pdev->dev; in hisi_zip_start_qp()
414 hisi_zip = container_of(qps[0]->qm, struct hisi_zip, qm); in hisi_zip_ctx_init()
506 dev = &tmp->qp->qm->pdev->dev; in hisi_zip_create_sgl_pool()
555 dev = &ctx->qp_ctx[0].qp->qm->pdev->dev; in hisi_zip_acomp_init()
609 if (!hisi_zip_alg_support(qm, HZIP_ALG_DEFLATE)) in hisi_zip_register_deflate()
635 ret = hisi_zip_register_deflate(qm); in hisi_zip_register_to_crypto()
[all …]
/drivers/crypto/hisilicon/hpre/
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 …]
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);
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()
2227 ret = hpre_register_rsa(qm); in hpre_algs_register()
2231 ret = hpre_register_dh(qm); in hpre_algs_register()
2249 hpre_unregister_ecdh(qm); in hpre_algs_register()
2251 hpre_unregister_dh(qm); in hpre_algs_register()
2253 hpre_unregister_rsa(qm); in hpre_algs_register()
2265 hpre_unregister_x25519(qm); in hpre_algs_unregister()
2266 hpre_unregister_ecdh(qm); in hpre_algs_unregister()
2267 hpre_unregister_dh(qm); in hpre_algs_unregister()
[all …]
/drivers/vfio/pci/hisilicon/
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()
193 ret = hisi_qm_wait_mb_ready(qm); in qm_set_regs()
511 qm->eqe_dma = vf_data->eqe_dma; in vf_qm_load_data()
513 qm->sqc_dma = vf_data->sqc_dma; in vf_qm_load_data()
514 qm->cqc_dma = vf_data->cqc_dma; in vf_qm_load_data()
516 qm->qp_base = vf_data->qp_base; in vf_qm_load_data()
517 qm->qp_num = vf_data->qp_num; in vf_qm_load_data()
525 ret = hisi_qm_mb(qm, QM_MB_CMD_SQC_BT, qm->sqc_dma, 0, 0); in vf_qm_load_data()
531 ret = hisi_qm_mb(qm, QM_MB_CMD_CQC_BT, qm->cqc_dma, 0, 0); in vf_qm_load_data()
[all …]
/drivers/soc/fsl/qbman/
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 …]
/drivers/media/v4l2-core/
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()
A Dv4l2-common.c520 struct v4l2_querymenu qm = { .id = V4L2_CID_LINK_FREQ }; in __v4l2_get_link_freq_ctrl() local
523 qm.index = v4l2_ctrl_g_ctrl(ctrl); in __v4l2_get_link_freq_ctrl()
525 ret = v4l2_querymenu(handler, &qm); in __v4l2_get_link_freq_ctrl()
529 freq = qm.value; in __v4l2_get_link_freq_ctrl()
/drivers/crypto/caam/
A Dqi.c142 static void caam_fq_ern_cb(struct qman_portal *qm, struct qman_fq *fq, in caam_fq_ern_cb() argument
539 static void cgr_cb(struct qman_portal *qm, struct qman_cgr *cgr, int congested) in cgr_cb() argument
/drivers/media/usb/uvc/
A Duvc_v4l2.c910 struct v4l2_querymenu *qm) in uvc_ioctl_querymenu() argument
915 return uvc_query_v4l2_menu(chain, qm); in uvc_ioctl_querymenu()
/drivers/net/ethernet/freescale/dpaa/
A Ddpaa_eth.c831 static void dpaa_eth_cgscn(struct qman_portal *qm, struct qman_cgr *cgr, in dpaa_eth_cgscn() argument

Completed in 108 milliseconds