Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/i3c/
Di3c_npcx.c836 struct mdma_reg *mdma_inst = config->mdma_base; in npcx_i3c_xfer_write_fifo_dma() local
846 mdma_inst->MDMA_TCNT1 = buf_sz; /* Set MDMA transfer count */ in npcx_i3c_xfer_write_fifo_dma()
847 mdma_inst->MDMA_SRCB1 = (uint32_t)buf; /* Set source address */ in npcx_i3c_xfer_write_fifo_dma()
848 mdma_inst->MDMA_CTL1 |= BIT(NPCX_MDMA_CTL_MDMAEN); /* Start DMA transfer */ in npcx_i3c_xfer_write_fifo_dma()
858 if (!IS_BIT_SET(mdma_inst->MDMA_CTL1, NPCX_MDMA_CTL_TC)) { in npcx_i3c_xfer_write_fifo_dma()
859 LOG_DBG("DMA busy, TC=%d", IS_BIT_SET(mdma_inst->MDMA_CTL1, NPCX_MDMA_CTL_TC)); in npcx_i3c_xfer_write_fifo_dma()
864 mdma_inst->MDMA_CTL1 &= ~BIT(NPCX_MDMA_CTL_TC); /* Clear TC, W0C */ in npcx_i3c_xfer_write_fifo_dma()
865 ret = buf_sz - mdma_inst->MDMA_CTCNT1; /* Set transferred count */ in npcx_i3c_xfer_write_fifo_dma()
894 struct mdma_reg *mdma_inst = config->mdma_base; in npcx_i3c_xfer_read_fifo_dma() local
903 mdma_inst->MDMA_TCNT0 = buf_sz; /* Set MDMA transfer count */ in npcx_i3c_xfer_read_fifo_dma()
[all …]