| /linux-6.15/include/linux/ |
| H A D | hisi_acc_qm.h | 234 struct hisi_qm; 261 int (*hw_init)(struct hisi_qm *qm); 262 void (*hw_err_enable)(struct hisi_qm *qm); 271 void (*err_info_init)(struct hisi_qm *qm); 319 struct hisi_qm *qm; 351 struct hisi_qm { struct 458 struct hisi_qm *qm; 526 int hisi_qm_init(struct hisi_qm *qm); 527 void hisi_qm_uninit(struct hisi_qm *qm); 528 int hisi_qm_start(struct hisi_qm *qm); [all …]
|
| /linux-6.15/drivers/crypto/hisilicon/zip/ |
| H A D | zip.h | 27 struct hisi_qm qm; 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 …]
|
| H A D | dae_main.c | 55 static inline bool dae_is_support(struct hisi_qm *qm) in dae_is_support() 63 int hisi_dae_set_user_domain(struct hisi_qm *qm) in hisi_dae_set_user_domain() 83 int hisi_dae_set_alg(struct hisi_qm *qm) in hisi_dae_set_alg() 125 void hisi_dae_hw_error_enable(struct hisi_qm *qm) in hisi_dae_hw_error_enable() 144 void hisi_dae_hw_error_disable(struct hisi_qm *qm) in hisi_dae_hw_error_disable() 153 static u32 hisi_dae_get_hw_err_status(struct hisi_qm *qm) in hisi_dae_get_hw_err_status() 171 static void hisi_dae_log_hw_error(struct hisi_qm *qm, u32 err_type) in hisi_dae_log_hw_error() 193 enum acc_err_result hisi_dae_get_err_result(struct hisi_qm *qm) in hisi_dae_get_err_result() 216 bool hisi_dae_dev_is_abnormal(struct hisi_qm *qm) in hisi_dae_dev_is_abnormal() 230 int hisi_dae_close_axi_master_ooo(struct hisi_qm *qm) in hisi_dae_close_axi_master_ooo() [all …]
|
| H A D | zip_main.c | 347 struct hisi_qm *qm = s->private; in hzip_diff_regs_show() 451 static int hisi_zip_set_high_perf(struct hisi_qm *qm) in hisi_zip_set_high_perf() 659 static u32 clear_enable_read(struct hisi_qm *qm) in clear_enable_read() 683 struct hisi_qm *qm = file_to_qm(file); in hisi_zip_ctrl_debug_read() 717 struct hisi_qm *qm = file_to_qm(file); in hisi_zip_ctrl_debug_write() 856 struct hisi_qm *qm = s->private; in zip_cap_regs_show() 1239 struct hisi_qm *qm = &hisi_zip->qm; in hisi_zip_pf_probe_init() 1356 static void hisi_zip_qm_uninit(struct hisi_qm *qm) in hisi_zip_qm_uninit() 1364 struct hisi_qm *qm = &hisi_zip->qm; in hisi_zip_probe_init() 1397 struct hisi_qm *qm; in hisi_zip_probe() [all …]
|
| H A D | zip_crypto.c | 604 static int hisi_zip_register_deflate(struct hisi_qm *qm) in hisi_zip_register_deflate() 618 static void hisi_zip_unregister_deflate(struct hisi_qm *qm) in hisi_zip_unregister_deflate() 626 int hisi_zip_register_to_crypto(struct hisi_qm *qm) in hisi_zip_register_to_crypto() 643 void hisi_zip_unregister_from_crypto(struct hisi_qm *qm) in hisi_zip_unregister_from_crypto()
|
| /linux-6.15/drivers/crypto/hisilicon/ |
| H A D | qm.c | 382 struct hisi_qm *qm; 1018 struct hisi_qm *qm = data; in qm_eq_irq() 1028 struct hisi_qm *qm = data; in qm_mb_cmd_irq() 1099 struct hisi_qm *qm = data; in qm_aeq_thread() 2678 struct hisi_qm *pf_qm; in hisi_qm_get_isolate_state() 2711 struct hisi_qm *pf_qm; in hisi_qm_isolate_threshold_read() 3488 struct hisi_qm *qm; in hisi_qm_sort_devices() 4195 struct hisi_qm *vf_qm; in qm_vf_reset_prepare() 4390 struct hisi_qm *vf_qm; in qm_vf_reset_done() 4737 struct hisi_qm *qm = data; in qm_abnormal_irq() [all …]
|
| H A D | debugfs.c | 516 struct hisi_qm *qm = filp->private_data; in qm_cmd_write() 582 struct hisi_qm *qm = pci_get_drvdata(pdev); in hisi_qm_regs_dump() 603 struct hisi_qm *qm = s->private; in qm_regs_show() 624 static u32 current_q_read(struct hisi_qm *qm) in current_q_read() 663 static u32 current_qm_read(struct hisi_qm *qm) in current_qm_read() 720 struct hisi_qm *qm = file_to_qm(file); in qm_debug_read() 760 struct hisi_qm *qm = file_to_qm(file); in qm_debug_write() 1044 struct hisi_qm *qm = s->private; in qm_diff_regs_show() 1055 struct hisi_qm *qm = s->private; in qm_state_show() 1080 struct hisi_qm *qm = filp->private_data; in qm_status_read() [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 | 5 obj-$(CONFIG_CRYPTO_DEV_HISI_QM) += hisi_qm.o 6 hisi_qm-objs = qm.o sgl.o debugfs.o
|
| /linux-6.15/drivers/crypto/hisilicon/sec2/ |
| H A D | sec_main.c | 334 struct hisi_qm *qm = s->private; in sec_diff_regs_show() 452 static void sec_set_endian(struct hisi_qm *qm) in sec_set_endian() 571 static int sec_engine_init(struct hisi_qm *qm) in sec_engine_init() 749 struct hisi_qm *qm = file->qm; in sec_debug_read() 784 struct hisi_qm *qm = file->qm; in sec_debug_write() 866 struct hisi_qm *qm = s->private; in sec_cap_regs_show() 924 static int sec_debug_init(struct hisi_qm *qm) in sec_debug_init() 1148 struct hisi_qm *qm = &sec->qm; in sec_pf_probe_init() 1251 struct hisi_qm *qm = &sec->qm; in sec_probe_init() 1299 struct hisi_qm *qm; in sec_probe() [all …]
|
| H A D | sec.h | 168 struct hisi_qm *qm; 187 struct hisi_qm qm; 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);
|
| H A D | sec_crypto.h | 395 int sec_register_to_crypto(struct hisi_qm *qm); 396 void sec_unregister_from_crypto(struct hisi_qm *qm);
|
| H A D | sec_crypto.c | 2476 int sec_register_to_crypto(struct hisi_qm *qm) in sec_register_to_crypto() 2510 void sec_unregister_from_crypto(struct hisi_qm *qm) in sec_unregister_from_crypto()
|
| /linux-6.15/drivers/crypto/hisilicon/hpre/ |
| H A D | hpre_main.c | 382 struct hisi_qm *qm = s->private; in hpre_diff_regs_show() 817 struct hisi_qm *qm = hpre_file_to_qm(file); in hpre_clear_enable_read() 825 struct hisi_qm *qm = hpre_file_to_qm(file); in hpre_clear_enable_write() 840 struct hisi_qm *qm = hpre_file_to_qm(file); in hpre_cluster_inqry_read() 850 struct hisi_qm *qm = hpre_file_to_qm(file); in hpre_cluster_inqry_write() 862 struct hisi_qm *qm = hpre_file_to_qm(file); in hpre_ctrl_debug_read() 898 struct hisi_qm *qm = hpre_file_to_qm(file); in hpre_ctrl_debug_write() 1083 struct hisi_qm *qm = s->private; in hpre_cap_regs_show() 1446 struct hisi_qm *qm = &hpre->qm; in hpre_pf_probe_init() 1466 struct hisi_qm *qm = &hpre->qm; in hpre_probe_init() [all …]
|
| H A D | hpre.h | 71 struct hisi_qm qm; 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);
|
| H A D | hpre_crypto.c | 2110 static int hpre_register_rsa(struct hisi_qm *qm) in hpre_register_rsa() 2125 static void hpre_unregister_rsa(struct hisi_qm *qm) in hpre_unregister_rsa() 2133 static int hpre_register_dh(struct hisi_qm *qm) in hpre_register_dh() 2147 static void hpre_unregister_dh(struct hisi_qm *qm) in hpre_unregister_dh() 2155 static int hpre_register_ecdh(struct hisi_qm *qm) in hpre_register_ecdh() 2180 static void hpre_unregister_ecdh(struct hisi_qm *qm) in hpre_unregister_ecdh() 2191 static int hpre_register_x25519(struct hisi_qm *qm) in hpre_register_x25519() 2205 static void hpre_unregister_x25519(struct hisi_qm *qm) in hpre_unregister_x25519() 2213 int hpre_algs_register(struct hisi_qm *qm) in hpre_algs_register() 2255 void hpre_algs_unregister(struct hisi_qm *qm) in hpre_algs_unregister()
|
| /linux-6.15/drivers/vfio/pci/hisilicon/ |
| H A D | hisi_acc_vfio_pci.c | 20 static int qm_wait_dev_not_ready(struct hisi_qm *qm) in qm_wait_dev_not_ready() 316 static void qm_dev_cmd_init(struct hisi_qm *qm) in qm_dev_cmd_init() 325 static int vf_qm_cache_wb(struct hisi_qm *qm) in vf_qm_cache_wb() 348 static int vf_qm_func_stop(struct hisi_qm *qm) in vf_qm_func_stop() 358 struct hisi_qm *pf_qm = hisi_acc_vdev->pf_qm; in vf_qm_check_match() 416 struct hisi_qm *pf_qm = hisi_acc_vdev->pf_qm; in vf_qm_get_match_data() 447 struct hisi_qm *qm = &hisi_acc_vdev->vf_qm; in vf_qm_load_data() 567 struct hisi_qm *vfqm = &hisi_acc_vdev->vf_qm; in hisi_acc_check_int_state() 568 struct hisi_qm *qm = hisi_acc_vdev->pf_qm; in hisi_acc_check_int_state() 1170 struct hisi_qm *pf_qm; in hisi_acc_get_pf_qm() [all …]
|
| H A D | hisi_acc_vfio_pci.h | 116 struct hisi_qm *pf_qm; 117 struct hisi_qm vf_qm;
|