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)) : \
226 #define SAI_TX_RX_DIR_IS_SW_ENABLED(dir, data)\ argument
227 ((dir) == DAI_DIR_TX ? data->tx_enabled : data->rx_enabled)
232 #define SAI_TX_RX_DLINE_MASK(dir, cfg)\ argument
233 ((dir) == DAI_DIR_TX ? BIT((cfg)->tx_dline) : BIT((cfg)->rx_dline))
422 static inline uint32_t sai_get_state(enum dai_dir dir, in sai_get_state() argument
425 if (dir == DAI_DIR_RX) { in sai_get_state()
432 static int sai_update_state(enum dai_dir dir, in sai_update_state() argument
436 enum dai_state old_state = sai_get_state(dir, data); in sai_update_state()
480 if (dir == DAI_DIR_RX) { in sai_update_state()
489 static inline void sai_tx_rx_force_disable(enum dai_dir dir, in sai_tx_rx_force_disable() argument
494 if (dir == DAI_DIR_RX) { in sai_tx_rx_force_disable()
501 static inline void sai_tx_rx_sw_enable_disable(enum dai_dir dir, in sai_tx_rx_sw_enable_disable() argument
505 if (dir == DAI_DIR_RX) { in sai_tx_rx_sw_enable_disable()
529 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
533 if (dir == DAI_DIR_RX) { in sai_tx_rx_set_dline_mask()