Home
last modified time | relevance | path

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

/Linux-v6.1/include/linux/
Dhisi_acc_qm.h215 struct hisi_qm;
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);
[all …]
/Linux-v6.1/drivers/crypto/hisilicon/
Dqm.c455 struct hisi_qm *qm;
461 int (*get_vft)(struct hisi_qm *qm, u32 *base, u32 *number);
462 void (*qm_db)(struct hisi_qm *qm, u16 qn,
464 int (*debug_init)(struct hisi_qm *qm);
465 void (*hw_error_init)(struct hisi_qm *qm);
466 void (*hw_error_uninit)(struct hisi_qm *qm);
467 enum acc_err_result (*hw_error_handle)(struct hisi_qm *qm);
468 int (*set_msi)(struct hisi_qm *qm, bool set);
572 static void qm_irqs_unregister(struct hisi_qm *qm);
574 static bool qm_avail_state(struct hisi_qm *qm, enum qm_state new) in qm_avail_state()
[all …]
DMakefile5 obj-$(CONFIG_CRYPTO_DEV_HISI_QM) += hisi_qm.o
6 hisi_qm-objs = qm.o sgl.o
/Linux-v6.1/drivers/crypto/hisilicon/hpre/
Dhpre_main.c351 bool hpre_check_alg_support(struct hisi_qm *qm, u32 alg) in hpre_check_alg_support()
362 static int hpre_set_qm_algs(struct hisi_qm *qm) in hpre_set_qm_algs()
393 struct hisi_qm *qm = s->private; in hpre_diff_regs_show()
457 static inline int hpre_cluster_num(struct hisi_qm *qm) in hpre_cluster_num()
462 static inline int hpre_cluster_core_mask(struct hisi_qm *qm) in hpre_cluster_core_mask()
487 static void hpre_config_pasid(struct hisi_qm *qm) in hpre_config_pasid()
507 static int hpre_cfg_by_dsm(struct hisi_qm *qm) in hpre_cfg_by_dsm()
531 static int hpre_set_cluster(struct hisi_qm *qm) in hpre_set_cluster()
568 static void disable_flr_of_bme(struct hisi_qm *qm) in disable_flr_of_bme()
579 static void hpre_open_sva_prefetch(struct hisi_qm *qm) in hpre_open_sva_prefetch()
[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.c2077 static int hpre_register_rsa(struct hisi_qm *qm) in hpre_register_rsa()
2092 static void hpre_unregister_rsa(struct hisi_qm *qm) in hpre_unregister_rsa()
2100 static int hpre_register_dh(struct hisi_qm *qm) in hpre_register_dh()
2114 static void hpre_unregister_dh(struct hisi_qm *qm) in hpre_unregister_dh()
2122 static int hpre_register_ecdh(struct hisi_qm *qm) in hpre_register_ecdh()
2147 static void hpre_unregister_ecdh(struct hisi_qm *qm) in hpre_unregister_ecdh()
2158 static int hpre_register_x25519(struct hisi_qm *qm) in hpre_register_x25519()
2172 static void hpre_unregister_x25519(struct hisi_qm *qm) in hpre_unregister_x25519()
2180 int hpre_algs_register(struct hisi_qm *qm) in hpre_algs_register()
2211 void hpre_algs_unregister(struct hisi_qm *qm) in hpre_algs_unregister()
/Linux-v6.1/drivers/crypto/hisilicon/sec2/
Dsec_main.c306 struct hisi_qm *qm = s->private; in sec_diff_regs_show()
391 u64 sec_get_alg_bitmap(struct hisi_qm *qm, u32 high, u32 low) in sec_get_alg_bitmap()
421 static void sec_set_endian(struct hisi_qm *qm) in sec_set_endian()
437 static void sec_engine_sva_config(struct hisi_qm *qm) in sec_engine_sva_config()
472 static void sec_open_sva_prefetch(struct hisi_qm *qm) in sec_open_sva_prefetch()
492 static void sec_close_sva_prefetch(struct hisi_qm *qm) in sec_close_sva_prefetch()
511 static void sec_enable_clock_gate(struct hisi_qm *qm) in sec_enable_clock_gate()
531 static void sec_disable_clock_gate(struct hisi_qm *qm) in sec_disable_clock_gate()
541 static int sec_engine_init(struct hisi_qm *qm) in sec_engine_init()
591 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;
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);
Dsec_crypto.h408 int sec_register_to_crypto(struct hisi_qm *qm);
409 void sec_unregister_from_crypto(struct hisi_qm *qm);
Dsec_crypto.c486 static int sec_alloc_qp_ctx_resource(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_alloc_qp_ctx_resource()
542 static int sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_create_qp_ctx()
2547 int sec_register_to_crypto(struct hisi_qm *qm) in sec_register_to_crypto()
2563 void sec_unregister_from_crypto(struct hisi_qm *qm) in sec_unregister_from_crypto()
/Linux-v6.1/drivers/crypto/hisilicon/zip/
Dzip_main.c347 struct hisi_qm *qm = s->private; in hzip_diff_regs_show()
406 bool hisi_zip_alg_support(struct hisi_qm *qm, u32 alg) in hisi_zip_alg_support()
417 static int hisi_zip_set_qm_algs(struct hisi_qm *qm) in hisi_zip_set_qm_algs()
446 static void hisi_zip_open_sva_prefetch(struct hisi_qm *qm) in hisi_zip_open_sva_prefetch()
466 static void hisi_zip_close_sva_prefetch(struct hisi_qm *qm) in hisi_zip_close_sva_prefetch()
485 static void hisi_zip_enable_clock_gate(struct hisi_qm *qm) in hisi_zip_enable_clock_gate()
501 static int hisi_zip_set_user_domain_and_cache(struct hisi_qm *qm) in hisi_zip_set_user_domain_and_cache()
558 static void hisi_zip_master_ooo_ctrl(struct hisi_qm *qm, bool enable) in hisi_zip_master_ooo_ctrl()
578 static void hisi_zip_hw_error_enable(struct hisi_qm *qm) in hisi_zip_hw_error_enable()
606 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-v6.1/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.h106 struct hisi_qm *pf_qm;
107 struct hisi_qm vf_qm;