Lines Matching refs:hal_handle

36 #define AE(handle, ae) handle->hal_handle->aes[ae]
277 ae_reset_csr |= handle->hal_handle->ae_mask << RST_CSR_AE_LSB; in qat_hal_reset()
278 ae_reset_csr |= handle->hal_handle->slice_mask << RST_CSR_QAT_LSB; in qat_hal_reset()
353 for (ae = 0; ae < handle->hal_handle->ae_max_num; ae++) { in qat_hal_check_ae_alive()
396 for (ae = 0; ae < handle->hal_handle->ae_max_num; ae++) { in qat_hal_reset_timestamp()
449 ae_reset_csr &= ~(handle->hal_handle->ae_mask << RST_CSR_AE_LSB); in qat_hal_clr_reset()
450 ae_reset_csr &= ~(handle->hal_handle->slice_mask << RST_CSR_QAT_LSB); in qat_hal_clr_reset()
456 } while ((handle->hal_handle->ae_mask | in qat_hal_clr_reset()
457 (handle->hal_handle->slice_mask << RST_CSR_QAT_LSB)) & csr); in qat_hal_clr_reset()
460 clk_csr |= handle->hal_handle->ae_mask << 0; in qat_hal_clr_reset()
461 clk_csr |= handle->hal_handle->slice_mask << 20; in qat_hal_clr_reset()
467 for (ae = 0; ae < handle->hal_handle->ae_max_num; ae++) { in qat_hal_clr_reset()
472 handle->hal_handle->upc_mask & in qat_hal_clr_reset()
576 for (ae = 0; ae < handle->hal_handle->ae_max_num; ae++) { in qat_hal_clear_xfer()
595 for (ae = 0; ae < handle->hal_handle->ae_max_num; ae++) { in qat_hal_clear_gpr()
606 handle->hal_handle->upc_mask & in qat_hal_clear_gpr()
616 for (ae = 0; ae < handle->hal_handle->ae_max_num; ae++) { in qat_hal_clear_gpr()
632 handle->hal_handle->upc_mask & in qat_hal_clear_gpr()
683 handle->hal_handle = kzalloc(sizeof(*handle->hal_handle), GFP_KERNEL); in qat_hal_init()
684 if (!handle->hal_handle) in qat_hal_init()
686 handle->hal_handle->revision_id = accel_dev->accel_pci_dev.revid; in qat_hal_init()
687 handle->hal_handle->ae_mask = hw_data->ae_mask; in qat_hal_init()
688 handle->hal_handle->slice_mask = hw_data->accel_mask; in qat_hal_init()
690 handle->hal_handle->upc_mask = 0x1ffff; in qat_hal_init()
691 handle->hal_handle->max_ustore = 0x4000; in qat_hal_init()
695 handle->hal_handle->aes[ae].free_addr = 0; in qat_hal_init()
696 handle->hal_handle->aes[ae].free_size = in qat_hal_init()
697 handle->hal_handle->max_ustore; in qat_hal_init()
698 handle->hal_handle->aes[ae].ustore_size = in qat_hal_init()
699 handle->hal_handle->max_ustore; in qat_hal_init()
700 handle->hal_handle->aes[ae].live_ctx_mask = in qat_hal_init()
704 handle->hal_handle->ae_max_num = max_en_ae_id + 1; in qat_hal_init()
717 for (ae = 0; ae < handle->hal_handle->ae_max_num; ae++) { in qat_hal_init()
728 kfree(handle->hal_handle); in qat_hal_init()
738 kfree(handle->hal_handle); in qat_hal_deinit()
776 handle->hal_handle->upc_mask & upc); in qat_hal_set_pc()
845 if ((inst_num > handle->hal_handle->max_ustore) || !micro_inst) { in qat_hal_exec_micro_inst()
860 savpc = (savpc & handle->hal_handle->upc_mask) >> 0; in qat_hal_exec_micro_inst()
890 *endpc = ctx_status & handle->hal_handle->upc_mask; in qat_hal_exec_micro_inst()
898 handle->hal_handle->upc_mask & savpc); in qat_hal_exec_micro_inst()
1108 if ((unsigned int)alloc_inst_size > handle->hal_handle->max_ustore) in qat_hal_batch_wr_lm()
1109 alloc_inst_size = handle->hal_handle->max_ustore; in qat_hal_batch_wr_lm()