Lines Matching refs:ccr_reg
225 unsigned int ccr_reg = 0; in _stm32_qspi_gen_ccr() local
250 ccr_reg |= (dmode << STM32_QSPI_CCR_DMODE_SHIFT); in _stm32_qspi_gen_ccr()
253 ccr_reg |= ((priv->dummycycles & STM32_QSPI_CCR_DCYC_MASK) in _stm32_qspi_gen_ccr()
257 ccr_reg |= (STM32_QSPI_CCR_ADSIZE_24BIT in _stm32_qspi_gen_ccr()
259 ccr_reg |= (admode << STM32_QSPI_CCR_ADMODE_SHIFT); in _stm32_qspi_gen_ccr()
261 ccr_reg |= (imode << STM32_QSPI_CCR_IMODE_SHIFT); in _stm32_qspi_gen_ccr()
262 ccr_reg |= cmd; in _stm32_qspi_gen_ccr()
263 return ccr_reg; in _stm32_qspi_gen_ccr()
269 unsigned int ccr_reg; in _stm32_qspi_enable_mmap() local
275 ccr_reg = _stm32_qspi_gen_ccr(priv); in _stm32_qspi_enable_mmap()
276 ccr_reg |= (STM32_QSPI_CCR_MEM_MAP << STM32_QSPI_CCR_FMODE_SHIFT); in _stm32_qspi_enable_mmap()
280 writel(ccr_reg, &priv->regs->ccr); in _stm32_qspi_enable_mmap()
309 u32 ccr_reg; in _stm32_qspi_xfer() local
362 ccr_reg = _stm32_qspi_gen_ccr(priv); in _stm32_qspi_xfer()
363 ccr_reg |= STM32_QSPI_CCR_IND_WRITE in _stm32_qspi_xfer()
371 _stm32_qspi_start_xfer(priv, ccr_reg); in _stm32_qspi_xfer()
395 ccr_reg = _stm32_qspi_gen_ccr(priv); in _stm32_qspi_xfer()
396 ccr_reg |= STM32_QSPI_CCR_IND_READ in _stm32_qspi_xfer()
403 _stm32_qspi_start_xfer(priv, ccr_reg); in _stm32_qspi_xfer()