Lines Matching refs:dir
377 static void purge_queue(const struct device *dev, enum i2s_dir dir) in purge_queue() argument
382 if (dir == I2S_DIR_TX || dir == I2S_DIR_BOTH) { in purge_queue()
390 if (dir == I2S_DIR_RX || dir == I2S_DIR_BOTH) { in purge_queue()
399 static int i2s_nrfx_configure(const struct device *dev, enum i2s_dir dir, in i2s_nrfx_configure() argument
412 purge_queue(dev, dir); in i2s_nrfx_configure()
413 if (dir == I2S_DIR_TX || dir == I2S_DIR_BOTH) { in i2s_nrfx_configure()
417 if (dir == I2S_DIR_RX || dir == I2S_DIR_BOTH) { in i2s_nrfx_configure()
523 if (dir == I2S_DIR_TX || dir == I2S_DIR_BOTH) { in i2s_nrfx_configure()
529 if (dir == I2S_DIR_RX || dir == I2S_DIR_BOTH) { in i2s_nrfx_configure()
539 enum i2s_dir dir) in i2s_nrfx_config_get() argument
543 if (dir == I2S_DIR_TX && drv_data->tx_configured) { in i2s_nrfx_config_get()
546 if (dir == I2S_DIR_RX && drv_data->rx_configured) { in i2s_nrfx_config_get()
762 enum i2s_dir dir, enum i2s_trigger_cmd cmd) in i2s_nrfx_trigger() argument
772 if (dir == I2S_DIR_BOTH) { in i2s_nrfx_trigger()
774 } else if (dir == I2S_DIR_TX) { in i2s_nrfx_trigger()
776 } else if (dir == I2S_DIR_RX) { in i2s_nrfx_trigger()
785 if (dir == I2S_DIR_BOTH && in i2s_nrfx_trigger()
824 drv_data->active_dir != dir) { in i2s_nrfx_trigger()
826 cmd, dir, drv_data->active_dir); in i2s_nrfx_trigger()
834 drv_data->active_dir = dir; in i2s_nrfx_trigger()
854 purge_queue(dev, dir); in i2s_nrfx_trigger()
859 purge_queue(dev, dir); in i2s_nrfx_trigger()