Lines Matching refs:chan_id
104 static int config_output_dma(const struct dai_properties *props, uint32_t *chan_id) in config_output_dma() argument
121 *chan_id = dma_request_channel(dev_dma_dw, NULL); in config_output_dma()
122 if (*chan_id < 0) { in config_output_dma()
262 static int chan_id; in ZTEST() local
270 if (config_output_dma(props, &chan_id)) { in ZTEST()
271 TC_PRINT("ERROR: config tx dma (%d)\n", chan_id); in ZTEST()
275 TC_PRINT("Configuring the dma tx transfer on channel %d\n", chan_id); in ZTEST()
277 if (dma_config(dev_dma_dw, chan_id, &dma_cfg)) { in ZTEST()
278 TC_PRINT("ERROR: dma tx config (%d)\n", chan_id); in ZTEST()
289 TC_PRINT("ERROR: config rx dma (%d)\n", chan_id); in ZTEST()
300 TC_PRINT("Starting the transfer on channels %d and %d and waiting completion\n", chan_id, in ZTEST()
314 TC_PRINT("ERROR: dma rx transfer start (%d)\n", chan_id); in ZTEST()
318 if (dma_start(dev_dma_dw, chan_id)) { in ZTEST()
319 TC_PRINT("ERROR: dma tx transfer start (%d)\n", chan_id); in ZTEST()
340 dma_stop(dev_dma_dw, chan_id); in ZTEST()