Home
last modified time | relevance | path

Searched refs:hisi_qm (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/include/linux/
Dhisi_acc_qm.h226 struct hisi_qm;
247 int (*hw_init)(struct hisi_qm *qm);
248 void (*hw_err_enable)(struct hisi_qm *qm);
249 void (*hw_err_disable)(struct hisi_qm *qm);
250 u32 (*get_dev_hw_err_status)(struct hisi_qm *qm);
251 void (*clear_dev_hw_err_status)(struct hisi_qm *qm, u32 err_sts);
252 void (*open_axi_master_ooo)(struct hisi_qm *qm);
253 void (*close_axi_master_ooo)(struct hisi_qm *qm);
254 void (*open_sva_prefetch)(struct hisi_qm *qm);
255 void (*close_sva_prefetch)(struct hisi_qm *qm);
[all …]
/linux-6.6.21/drivers/crypto/hisilicon/
Dqm.c370 struct hisi_qm *qm;
386 int (*get_vft)(struct hisi_qm *qm, u32 *base, u32 *number);
387 void (*qm_db)(struct hisi_qm *qm, u16 qn,
389 int (*debug_init)(struct hisi_qm *qm);
390 void (*hw_error_init)(struct hisi_qm *qm);
391 void (*hw_error_uninit)(struct hisi_qm *qm);
392 enum acc_err_result (*hw_error_handle)(struct hisi_qm *qm);
393 int (*set_msi)(struct hisi_qm *qm, bool set);
457 static void qm_irqs_unregister(struct hisi_qm *qm);
459 static bool qm_avail_state(struct hisi_qm *qm, enum qm_state new) in qm_avail_state()
[all …]
Ddebugfs.c42 int (*dump_fn)(struct hisi_qm *qm, char *cmd, char *info_name);
103 static struct hisi_qm *file_to_qm(struct debugfs_file *file) in file_to_qm()
107 return container_of(debug, struct hisi_qm, debug); in file_to_qm()
122 static void dump_show(struct hisi_qm *qm, void *info, in dump_show()
137 static int qm_sqc_dump(struct hisi_qm *qm, char *s, char *name) in qm_sqc_dump()
178 static int qm_cqc_dump(struct hisi_qm *qm, char *s, char *name) in qm_cqc_dump()
219 static int qm_eqc_aeqc_dump(struct hisi_qm *qm, char *s, char *name) in qm_eqc_aeqc_dump()
256 static int q_dump_param_parse(struct hisi_qm *qm, char *s, in q_dump_param_parse()
296 static int qm_sq_dump(struct hisi_qm *qm, char *s, char *name) in qm_sq_dump()
325 static int qm_cq_dump(struct hisi_qm *qm, char *s, char *name) in qm_cq_dump()
[all …]
Dqm_common.h79 void *hisi_qm_ctx_alloc(struct hisi_qm *qm, size_t ctx_size,
81 void hisi_qm_ctx_free(struct hisi_qm *qm, size_t ctx_size,
83 void hisi_qm_show_last_dfx_regs(struct hisi_qm *qm);
84 void hisi_qm_set_algqos_init(struct hisi_qm *qm);
DMakefile5 obj-$(CONFIG_CRYPTO_DEV_HISI_QM) += hisi_qm.o
6 hisi_qm-objs = qm.o sgl.o debugfs.o
/linux-6.6.21/drivers/crypto/hisilicon/hpre/
Dhpre_main.c360 bool hpre_check_alg_support(struct hisi_qm *qm, u32 alg) in hpre_check_alg_support()
373 struct hisi_qm *qm = s->private; in hpre_diff_regs_show()
460 static void hpre_config_pasid(struct hisi_qm *qm) in hpre_config_pasid()
480 static int hpre_cfg_by_dsm(struct hisi_qm *qm) in hpre_cfg_by_dsm()
504 static int hpre_set_cluster(struct hisi_qm *qm) in hpre_set_cluster()
543 static void disable_flr_of_bme(struct hisi_qm *qm) in disable_flr_of_bme()
554 static void hpre_open_sva_prefetch(struct hisi_qm *qm) in hpre_open_sva_prefetch()
575 static void hpre_close_sva_prefetch(struct hisi_qm *qm) in hpre_close_sva_prefetch()
595 static void hpre_enable_clock_gate(struct hisi_qm *qm) in hpre_enable_clock_gate()
619 static void hpre_disable_clock_gate(struct hisi_qm *qm) in hpre_disable_clock_gate()
[all …]
Dhpre.h71 struct hisi_qm qm;
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);
Dhpre_crypto.c2100 static int hpre_register_rsa(struct hisi_qm *qm) in hpre_register_rsa()
2115 static void hpre_unregister_rsa(struct hisi_qm *qm) in hpre_unregister_rsa()
2123 static int hpre_register_dh(struct hisi_qm *qm) in hpre_register_dh()
2137 static void hpre_unregister_dh(struct hisi_qm *qm) in hpre_unregister_dh()
2145 static int hpre_register_ecdh(struct hisi_qm *qm) in hpre_register_ecdh()
2170 static void hpre_unregister_ecdh(struct hisi_qm *qm) in hpre_unregister_ecdh()
2181 static int hpre_register_x25519(struct hisi_qm *qm) in hpre_register_x25519()
2195 static void hpre_unregister_x25519(struct hisi_qm *qm) in hpre_unregister_x25519()
2203 int hpre_algs_register(struct hisi_qm *qm) in hpre_algs_register()
2234 void hpre_algs_unregister(struct hisi_qm *qm) in hpre_algs_unregister()
/linux-6.6.21/drivers/crypto/hisilicon/sec2/
Dsec_main.c306 struct hisi_qm *qm = s->private; in sec_diff_regs_show()
394 u64 sec_get_alg_bitmap(struct hisi_qm *qm, u32 high, u32 low) in sec_get_alg_bitmap()
424 static void sec_set_endian(struct hisi_qm *qm) in sec_set_endian()
439 static void sec_engine_sva_config(struct hisi_qm *qm) in sec_engine_sva_config()
474 static void sec_open_sva_prefetch(struct hisi_qm *qm) in sec_open_sva_prefetch()
494 static void sec_close_sva_prefetch(struct hisi_qm *qm) in sec_close_sva_prefetch()
513 static void sec_enable_clock_gate(struct hisi_qm *qm) in sec_enable_clock_gate()
533 static void sec_disable_clock_gate(struct hisi_qm *qm) in sec_disable_clock_gate()
543 static int sec_engine_init(struct hisi_qm *qm) in sec_engine_init()
593 static int sec_set_user_domain_and_cache(struct hisi_qm *qm) in sec_set_user_domain_and_cache()
[all …]
Dsec.h170 struct hisi_qm *qm;
189 struct hisi_qm qm;
232 int sec_register_to_crypto(struct hisi_qm *qm);
233 void sec_unregister_from_crypto(struct hisi_qm *qm);
234 u64 sec_get_alg_bitmap(struct hisi_qm *qm, u32 high, u32 low);
Dsec_crypto.h408 int sec_register_to_crypto(struct hisi_qm *qm);
409 void sec_unregister_from_crypto(struct hisi_qm *qm);
Dsec_crypto.c485 static int sec_alloc_qp_ctx_resource(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_alloc_qp_ctx_resource()
541 static int sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_create_qp_ctx()
2544 int sec_register_to_crypto(struct hisi_qm *qm) in sec_register_to_crypto()
2564 void sec_unregister_from_crypto(struct hisi_qm *qm) in sec_unregister_from_crypto()
/linux-6.6.21/drivers/crypto/hisilicon/zip/
Dzip_main.c368 struct hisi_qm *qm = s->private; in hzip_diff_regs_show()
461 bool hisi_zip_alg_support(struct hisi_qm *qm, u32 alg) in hisi_zip_alg_support()
472 static int hisi_zip_set_high_perf(struct hisi_qm *qm) in hisi_zip_set_high_perf()
494 static void hisi_zip_open_sva_prefetch(struct hisi_qm *qm) in hisi_zip_open_sva_prefetch()
514 static void hisi_zip_close_sva_prefetch(struct hisi_qm *qm) in hisi_zip_close_sva_prefetch()
533 static void hisi_zip_enable_clock_gate(struct hisi_qm *qm) in hisi_zip_enable_clock_gate()
549 static int hisi_zip_set_user_domain_and_cache(struct hisi_qm *qm) in hisi_zip_set_user_domain_and_cache()
604 static void hisi_zip_master_ooo_ctrl(struct hisi_qm *qm, bool enable) in hisi_zip_master_ooo_ctrl()
624 static void hisi_zip_hw_error_enable(struct hisi_qm *qm) in hisi_zip_hw_error_enable()
652 static void hisi_zip_hw_error_disable(struct hisi_qm *qm) in hisi_zip_hw_error_disable()
[all …]
Dzip.h27 struct hisi_qm qm;
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);
Dzip_crypto.c762 static int hisi_zip_register_zlib(struct hisi_qm *qm) in hisi_zip_register_zlib()
776 static void hisi_zip_unregister_zlib(struct hisi_qm *qm) in hisi_zip_unregister_zlib()
798 static int hisi_zip_register_gzip(struct hisi_qm *qm) in hisi_zip_register_gzip()
812 static void hisi_zip_unregister_gzip(struct hisi_qm *qm) in hisi_zip_unregister_gzip()
820 int hisi_zip_register_to_crypto(struct hisi_qm *qm) in hisi_zip_register_to_crypto()
835 void hisi_zip_unregister_from_crypto(struct hisi_qm *qm) in hisi_zip_unregister_from_crypto()
/linux-6.6.21/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()
33 static u32 qm_check_reg_state(struct hisi_qm *qm, u32 regs) in qm_check_reg_state()
48 static int qm_read_regs(struct hisi_qm *qm, u32 reg_addr, in qm_read_regs()
64 static int qm_write_regs(struct hisi_qm *qm, u32 reg, in qm_write_regs()
78 static int qm_get_vft(struct hisi_qm *qm, u32 *base) in qm_get_vft()
98 static int qm_get_sqc(struct hisi_qm *qm, u64 *addr) in qm_get_sqc()
113 static int qm_get_cqc(struct hisi_qm *qm, u64 *addr) in qm_get_cqc()
128 static int qm_get_regs(struct hisi_qm *qm, struct acc_vf_data *vf_data) in qm_get_regs()
187 static int qm_set_regs(struct hisi_qm *qm, struct acc_vf_data *vf_data) in qm_set_regs()
258 static void qm_db(struct hisi_qm *qm, u16 qn, u8 cmd, in qm_db()
[all …]
Dhisi_acc_vfio_pci.h108 struct hisi_qm *pf_qm;
109 struct hisi_qm vf_qm;