Lines Matching refs:dir
146 #define SAI_TX_RX_DMA_HANDSHAKE(inst, dir)\ argument
147 ((DT_INST_DMAS_CELL_BY_NAME(inst, dir, channel) & GENMASK(7, 0)) |\
148 ((DT_INST_DMAS_CELL_BY_NAME(inst, dir, mux) << 8) & GENMASK(15, 8)))
168 #define SAI_TX_RX_SW_RESET(dir, regmap)\ argument
169 ((dir) == DAI_DIR_RX ? SAI_RxSoftwareReset(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) :\
183 #define SAI_TX_RX_DMA_ENABLE_DISABLE(dir, regmap, enable)\ argument
184 ((dir) == DAI_DIR_RX ? SAI_RxEnableDMA(UINT_TO_I2S(regmap),\
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) : \
194 #define _SAI_TX_RX_ENABLE_IRQ(dir, regmap, which)\ argument
195 ((dir) == DAI_DIR_RX ? SAI_RxEnableInterrupts(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) : \
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)) : \
214 #define SAI_TX_RX_STATUS_CLEAR(dir, regmap, which) \ argument
215 ((dir) == DAI_DIR_RX ? SAI_RxClearStatusFlags(UINT_TO_I2S(regmap), which) \
231 #define SAI_TX_RX_DIR_IS_SW_ENABLED(dir, data)\ argument
232 ((dir) == DAI_DIR_TX ? data->tx_enabled : data->rx_enabled)
237 #define SAI_TX_RX_DLINE_MASK(dir, cfg)\ argument
238 ((dir) == DAI_DIR_TX ? BIT((cfg)->tx_dline) : BIT((cfg)->rx_dline))
428 static inline uint32_t sai_get_state(enum dai_dir dir, in sai_get_state() argument
431 if (dir == DAI_DIR_RX) { in sai_get_state()
438 static int sai_update_state(enum dai_dir dir, in sai_update_state() argument
442 enum dai_state old_state = sai_get_state(dir, data); in sai_update_state()
486 if (dir == DAI_DIR_RX) { in sai_update_state()
495 static inline void sai_tx_rx_force_disable(enum dai_dir dir, in sai_tx_rx_force_disable() argument
500 if (dir == DAI_DIR_RX) { in sai_tx_rx_force_disable()
507 static inline void sai_tx_rx_sw_enable_disable(enum dai_dir dir, in sai_tx_rx_sw_enable_disable() argument
511 if (dir == DAI_DIR_RX) { in sai_tx_rx_sw_enable_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
539 if (dir == DAI_DIR_RX) { in sai_tx_rx_set_dline_mask()