Searched refs:qm (Results 1 – 9 of 9) sorted by relevance
| /optee_os/core/drivers/crypto/hisilicon/ |
| H A D | hisi_qm.c | 135 void hisi_qm_get_version(struct hisi_qm *qm) in hisi_qm_get_version() argument 137 qm->version = io_read32(qm->io_base + HISI_QM_REVISON_ID_BASE) & in hisi_qm_get_version() 141 static void qm_db(struct hisi_qm *qm, uint16_t qn, uint8_t cmd, uint16_t index, in qm_db() argument 151 io_write64(qm->io_base + QM_DOORBELL_SQ_CQ_BASE, doorbell); in qm_db() 154 static void qm_mb_write(struct hisi_qm *qm, struct qm_mailbox *mb) in qm_mb_write() argument 156 vaddr_t dst = qm->io_base + QM_MAILBOX_BASE; in qm_mb_write() 162 static void qm_mb_read(struct hisi_qm *qm, struct qm_mailbox *mb) in qm_mb_read() argument 164 vaddr_t mb_base = qm->io_base + QM_MAILBOX_BASE; in qm_mb_read() 170 static enum hisi_drv_status qm_wait_mb_ready(struct hisi_qm *qm) in qm_wait_mb_ready() argument 178 qm_mb_read(qm, &mb); in qm_wait_mb_ready() [all …]
|
| H A D | sec_main.c | 70 if (cur_dev->qm.fun_type == HISI_QM_HW_PF) in sec_create_qp() 71 free_qp_num = HISI_QM_PF_Q_NUM - cur_dev->qm.qp_in_used; in sec_create_qp() 73 free_qp_num = HISI_QM_VF_Q_NUM - cur_dev->qm.qp_in_used; in sec_create_qp() 85 return hisi_qm_create_qp(&sec_dev->qm, sq_type); in sec_create_qp() 88 static void sec_enable_clock_gate(struct hisi_qm *qm) in sec_enable_clock_gate() argument 90 if (qm->version == HISI_QM_HW_V2) in sec_enable_clock_gate() 93 io_setbits32(qm->io_base + SEC_CONTROL_REG, SEC_CLK_GATE_ENABLE); in sec_enable_clock_gate() 94 io_write32(qm->io_base + SEC_DYNAMIC_GATE_V3, SEC_DYNAMIC_GATE_EN); in sec_enable_clock_gate() 95 io_write32(qm->io_base + SEC_CORE_AUTO_GATE_V3, SEC_CORE_AUTO_GATE_EN); in sec_enable_clock_gate() 100 struct hisi_qm *qm = &sec_dev->qm; in sec_engine_init() local [all …]
|
| H A D | hpre_main.c | 60 struct hisi_qm *qm = NULL; in hpre_create_qp() local 66 qm = &cur_dev->qm; in hpre_create_qp() 67 if (qm->fun_type == HISI_QM_HW_PF) in hpre_create_qp() 68 free_qp_num = HISI_QM_PF_Q_NUM - qm->qp_in_used; in hpre_create_qp() 70 free_qp_num = HISI_QM_VF_Q_NUM - qm->qp_in_used; in hpre_create_qp() 82 return hisi_qm_create_qp(&hpre_dev->qm, sq_type); in hpre_create_qp() 136 static enum hisi_drv_status hpre_set_cluster(struct hisi_qm *qm) in hpre_set_cluster() argument 140 io_write32(qm->io_base + HPRE_CORE_ENB, HPRE_CLUSTER_CORE_MASK); in hpre_set_cluster() 141 io_write32(qm->io_base + HPRE_CORE_INI_CFG, 0x1); in hpre_set_cluster() 143 if (IO_READ32_POLL_TIMEOUT(qm->io_base + HPRE_CORE_INI_STATUS, val, in hpre_set_cluster() [all …]
|
| H A D | hisi_qm.h | 133 struct hisi_qm *qm; member 176 enum hisi_drv_status (*dev_status_check)(struct hisi_qm *qm); 198 struct hisi_qm qm; member 211 void hisi_qm_get_version(struct hisi_qm *qm); 219 enum hisi_drv_status hisi_qm_init(struct hisi_qm *qm); 225 void hisi_qm_uninit(struct hisi_qm *qm); 231 enum hisi_drv_status hisi_qm_start(struct hisi_qm *qm); 237 void hisi_qm_dev_init(struct hisi_qm *qm); 246 struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, uint8_t sq_type);
|
| H A D | sec_pbkdf2.c | 118 if (qp->qm->version == HISI_QM_HW_V2) { in sec_pbkdf2_do_task()
|
| H A D | sec_authenc.c | 222 if (ae_drv_ctx->qp->qm->version == HISI_QM_HW_V2) { in sec_authenc_ctx_allocate() 330 (ae_drv_ctx->qp->qm->version == HISI_QM_HW_V2 && in is_hw_supported()
|
| H A D | sec_hash.c | 588 if (hash_ctx->qp->qm->version == HISI_QM_HW_V2) { in hisi_sec_hash_ctx_init()
|
| H A D | sec_cipher.c | 540 if (c_ctx->qp->qm->version == HISI_QM_HW_V2) { in sec_cipher_ctx_allocate()
|
| /optee_os/lib/libutils/ext/ |
| H A D | trace.c | 80 const char qm[] = "???"; in print_core_id() local 83 const char qm[] = "??"; in print_core_id() 86 const char qm[] = "?"; in print_core_id() 93 return snprintk(buf, bs, "%s ", qm); in print_core_id()
|