Lines Matching refs:dir
57 #define ESAI_TX_RX_DMA_HANDSHAKE(inst, dir)\ argument
58 ((DT_INST_DMAS_CELL_BY_NAME(inst, dir, channel) & GENMASK(7, 0)) |\
59 ((DT_INST_DMAS_CELL_BY_NAME(inst, dir, mux) << 8) & GENMASK(15, 8)))
112 #define ESAI_TX_RX_FIFO_USAGE_EN(dir, mask)\ argument
113 ((dir) == DAI_DIR_TX ? _ESAI_TX_FIFO_USAGE_EN(mask) :\
130 #define ESAI_TX_RX_EN(dir, mask)\ argument
131 ((dir) == DAI_DIR_TX ? _ESAI_TX_EN(mask) : _ESAI_RX_EN(mask))
371 enum dai_dir dir) in esai_get_state() argument
373 if (dir == DAI_DIR_RX) { in esai_get_state()
381 enum dai_dir dir, enum dai_state new_state) in esai_update_state() argument
383 enum dai_state old_state = esai_get_state(data, dir); in esai_update_state()
414 if (dir == DAI_DIR_RX) { in esai_update_state()
424 enum dai_dir dir, in esai_tx_rx_enable_disable_fifo() argument
428 if (dir == DAI_DIR_RX) { in esai_tx_rx_enable_disable_fifo()
434 if (dir == DAI_DIR_RX) { in esai_tx_rx_enable_disable_fifo()
443 enum dai_dir dir, in esai_tx_rx_enable_disable() argument
446 uint32_t val = ESAI_TX_RX_EN(dir, which); in esai_tx_rx_enable_disable()
449 if (dir == DAI_DIR_RX) { in esai_tx_rx_enable_disable()
455 if (dir == DAI_DIR_RX) { in esai_tx_rx_enable_disable()
464 enum dai_dir dir, in esai_tx_rx_enable_disable_fifo_usage() argument
467 uint32_t val = ESAI_TX_RX_FIFO_USAGE_EN(dir, which); in esai_tx_rx_enable_disable_fifo_usage()
470 if (dir == DAI_DIR_RX) { in esai_tx_rx_enable_disable_fifo_usage()
476 if (dir == DAI_DIR_RX) { in esai_tx_rx_enable_disable_fifo_usage()