Lines Matching refs:regmap
168 #define SAI_TX_RX_SW_RESET(dir, regmap)\ argument
169 ((dir) == DAI_DIR_RX ? SAI_RxSoftwareReset(UINT_TO_I2S(regmap), kSAI_ResetTypeSoftware) :\
170 SAI_TxSoftwareReset(UINT_TO_I2S(regmap), kSAI_ResetTypeSoftware))
178 #define SAI_TX_RX_ENABLE_DISABLE(dir, regmap, enable)\ argument
179 ((dir) == DAI_DIR_RX ? SAI_RxEnable(UINT_TO_I2S(regmap), enable) :\
180 SAI_TxEnable(UINT_TO_I2S(regmap), enable))
183 #define SAI_TX_RX_DMA_ENABLE_DISABLE(dir, regmap, enable)\ argument
184 ((dir) == DAI_DIR_RX ? SAI_RxEnableDMA(UINT_TO_I2S(regmap),\
186 SAI_TxEnableDMA(UINT_TO_I2S(regmap), kSAI_FIFORequestDMAEnable, enable))
189 #define SAI_TX_RX_IS_HW_ENABLED(dir, regmap)\ argument
190 ((dir) == DAI_DIR_RX ? (UINT_TO_I2S(regmap)->RCSR & I2S_RCSR_RE_MASK) : \
191 (UINT_TO_I2S(regmap)->TCSR & I2S_TCSR_TE_MASK))
194 #define _SAI_TX_RX_ENABLE_IRQ(dir, regmap, which)\ argument
195 ((dir) == DAI_DIR_RX ? SAI_RxEnableInterrupts(UINT_TO_I2S(regmap), which) : \
196 SAI_TxEnableInterrupts(UINT_TO_I2S(regmap), which))
199 #define _SAI_TX_RX_DISABLE_IRQ(dir, regmap, which)\ argument
200 ((dir) == DAI_DIR_RX ? SAI_RxDisableInterrupts(UINT_TO_I2S(regmap), which) : \
201 SAI_TxDisableInterrupts(UINT_TO_I2S(regmap), which))
204 #define SAI_TX_RX_ENABLE_DISABLE_IRQ(dir, regmap, which, enable)\ argument
205 ((enable == true) ? _SAI_TX_RX_ENABLE_IRQ(dir, regmap, which) :\
206 _SAI_TX_RX_DISABLE_IRQ(dir, regmap, which))
209 #define SAI_TX_RX_STATUS_IS_SET(dir, regmap, which)\ argument
210 ((dir) == DAI_DIR_RX ? ((UINT_TO_I2S(regmap))->RCSR & (which)) : \
211 ((UINT_TO_I2S(regmap))->TCSR & (which)))
214 #define SAI_TX_RX_STATUS_CLEAR(dir, regmap, which) \ argument
215 ((dir) == DAI_DIR_RX ? SAI_RxClearStatusFlags(UINT_TO_I2S(regmap), which) \
216 : SAI_TxClearStatusFlags(UINT_TO_I2S(regmap), which))
249 mm_reg_t regmap; member
325 static void set_msel(uint32_t regmap, int msel) in set_msel() argument
327 UINT_TO_I2S(regmap)->MCR &= ~SAI_MCLK_MCR_MSEL_MASK; in set_msel()
328 UINT_TO_I2S(regmap)->MCR |= msel; in set_msel()
496 uint32_t regmap) in sai_tx_rx_force_disable() argument
498 I2S_Type *base = UINT_TO_I2S(regmap); in sai_tx_rx_force_disable()
535 static inline void sai_tx_rx_set_dline_mask(enum dai_dir dir, uint32_t regmap, uint32_t mask) in sai_tx_rx_set_dline_mask() argument
537 I2S_Type *base = UINT_TO_I2S(regmap); in sai_tx_rx_set_dline_mask()
548 static inline void sai_dump_register_data(uint32_t regmap) in sai_dump_register_data() argument
550 I2S_Type *base = UINT_TO_I2S(regmap); in sai_dump_register_data()