Lines Matching refs:io_base
173 return readl_poll_timeout(hcu_dev->io_base + OCS_HCU_STATUS, val, in ocs_hcu_wait_busy()
182 writel(0xFFFFFFFF, hcu_dev->io_base + OCS_HCU_ISR); in ocs_hcu_done_irq_en()
186 hcu_dev->io_base + OCS_HCU_IER); in ocs_hcu_done_irq_en()
192 writel(0xFFFFFFFF, hcu_dev->io_base + OCS_HCU_DMA_MSI_ISR); in ocs_hcu_dma_irq_en()
196 hcu_dev->io_base + OCS_HCU_DMA_MSI_IER); in ocs_hcu_dma_irq_en()
198 writel(HCU_DMA_MSI_UNMASK, hcu_dev->io_base + OCS_HCU_DMA_MSI_MASK); in ocs_hcu_dma_irq_en()
203 writel(HCU_IRQ_DISABLE, hcu_dev->io_base + OCS_HCU_IER); in ocs_hcu_irq_dis()
204 writel(HCU_DMA_MSI_DISABLE, hcu_dev->io_base + OCS_HCU_DMA_MSI_IER); in ocs_hcu_irq_dis()
270 chain[i] = readl(hcu_dev->io_base + OCS_HCU_CHAIN); in ocs_hcu_get_intermediate_data()
272 data->msg_len_lo = readl(hcu_dev->io_base + OCS_HCU_MSG_LEN_LO); in ocs_hcu_get_intermediate_data()
273 data->msg_len_hi = readl(hcu_dev->io_base + OCS_HCU_MSG_LEN_HI); in ocs_hcu_get_intermediate_data()
301 writel(chain[i], hcu_dev->io_base + OCS_HCU_CHAIN); in ocs_hcu_set_intermediate_data()
303 writel(data->msg_len_lo, hcu_dev->io_base + OCS_HCU_MSG_LEN_LO); in ocs_hcu_set_intermediate_data()
304 writel(data->msg_len_hi, hcu_dev->io_base + OCS_HCU_MSG_LEN_HI); in ocs_hcu_set_intermediate_data()
328 chain[i] = readl(hcu_dev->io_base + OCS_HCU_CHAIN); in ocs_hcu_get_digest()
365 writel(cfg, hcu_dev->io_base + OCS_HCU_MODE); in ocs_hcu_hw_cfg()
380 writel(0, hcu_dev->io_base + OCS_HCU_KEY_0 + reg_off); in ocs_hcu_clear_key()
419 hcu_dev->io_base + OCS_HCU_KEY_BYTE_ORDER_CFG); in ocs_hcu_write_key()
426 hcu_dev->io_base + OCS_HCU_KEY_0 + (sizeof(u32) * i)); in ocs_hcu_write_key()
471 writel(dma_list->dma_addr, hcu_dev->io_base + OCS_HCU_DMA_NEXT_SRC_DESCR); in ocs_hcu_ll_dma_start()
472 writel(0, hcu_dev->io_base + OCS_HCU_DMA_SRC_SIZE); in ocs_hcu_ll_dma_start()
473 writel(0, hcu_dev->io_base + OCS_HCU_DMA_DST_SIZE); in ocs_hcu_ll_dma_start()
475 writel(OCS_HCU_START, hcu_dev->io_base + OCS_HCU_OPERATION); in ocs_hcu_ll_dma_start()
477 writel(cfg, hcu_dev->io_base + OCS_HCU_DMA_DMA_MODE); in ocs_hcu_ll_dma_start()
480 writel(OCS_HCU_TERMINATE, hcu_dev->io_base + OCS_HCU_OPERATION); in ocs_hcu_ll_dma_start()
705 writel(OCS_HCU_TERMINATE, hcu_dev->io_base + OCS_HCU_OPERATION); in ocs_hcu_hash_final()
749 writel(dma_handle, hcu_dev->io_base + OCS_HCU_DMA_SRC_ADDR); in ocs_hcu_digest()
750 writel(data_len, hcu_dev->io_base + OCS_HCU_DMA_SRC_SIZE); in ocs_hcu_digest()
751 writel(OCS_HCU_START, hcu_dev->io_base + OCS_HCU_OPERATION); in ocs_hcu_digest()
752 writel(reg, hcu_dev->io_base + OCS_HCU_DMA_DMA_MODE); in ocs_hcu_digest()
754 writel(OCS_HCU_TERMINATE, hcu_dev->io_base + OCS_HCU_OPERATION); in ocs_hcu_digest()
815 hcu_irq = readl(hcu_dev->io_base + OCS_HCU_ISR); in ocs_hcu_irq_handler()
816 writel(hcu_irq, hcu_dev->io_base + OCS_HCU_ISR); in ocs_hcu_irq_handler()
819 dma_irq = readl(hcu_dev->io_base + OCS_HCU_DMA_MSI_ISR); in ocs_hcu_irq_handler()
820 writel(dma_irq, hcu_dev->io_base + OCS_HCU_DMA_MSI_ISR); in ocs_hcu_irq_handler()