Lines Matching refs:channel
47 int res, channel; in ZTEST() local
73 channel = dma_request_channel(dma, NULL); in ZTEST()
74 zassert_true(channel >= 0, "Expected a valid DMA channel"); in ZTEST()
75 hda_dump_regs(HOST_IN, HDA_REGBLOCK_SIZE, channel, "dma channel"); in ZTEST()
77 hda_ipc_msg(INTEL_ADSP_IPC_HOST_DEV, IPCCMD_HDA_RESET, channel, IPC_TIMEOUT); in ZTEST()
78 hda_dump_regs(HOST_IN, HDA_REGBLOCK_SIZE, channel, "host reset"); in ZTEST()
81 channel | (DMA_BUF_SIZE << 8), IPC_TIMEOUT); in ZTEST()
82 hda_dump_regs(HOST_IN, HDA_REGBLOCK_SIZE, channel, "host config"); in ZTEST()
96 res = dma_config(dma, channel, &dma_cfg); in ZTEST()
97 hda_dump_regs(HOST_IN, HDA_REGBLOCK_SIZE, channel, "dsp dma config"); in ZTEST()
100 res = dma_start(dma, channel); in ZTEST()
101 hda_dump_regs(HOST_IN, HDA_REGBLOCK_SIZE, channel, "dsp dma start"); in ZTEST()
104 hda_ipc_msg(INTEL_ADSP_IPC_HOST_DEV, IPCCMD_HDA_START, channel, IPC_TIMEOUT); in ZTEST()
105 hda_dump_regs(HOST_IN, HDA_REGBLOCK_SIZE, channel, "host start"); in ZTEST()
108 res = dma_reload(dma, channel, 0, 0, DMA_BUF_SIZE); in ZTEST()
110 hda_dump_regs(HOST_IN, HDA_REGBLOCK_SIZE, channel, "dsp dma reload"); in ZTEST()
116 res = dma_get_status(dma, channel, &status); in ZTEST()
123 hda_dump_regs(HOST_IN, HDA_REGBLOCK_SIZE, channel, in ZTEST()
127 hda_ipc_msg(INTEL_ADSP_IPC_HOST_DEV, IPCCMD_HDA_VALIDATE, channel, in ZTEST()
136 channel, IPC_TIMEOUT); in ZTEST()
138 res = dma_stop(dma, channel); in ZTEST()
148 int res, channel; in test_hda_host_out_dma() local
162 channel = dma_request_channel(dma, NULL); in test_hda_host_out_dma()
163 zassert_true(channel >= 0, "Expected a valid DMA channel"); in test_hda_host_out_dma()
164 hda_dump_regs(HOST_OUT, HDA_REGBLOCK_SIZE, channel, "dma request channel"); in test_hda_host_out_dma()
167 (channel + 7), IPC_TIMEOUT); in test_hda_host_out_dma()
168 hda_dump_regs(HOST_OUT, HDA_REGBLOCK_SIZE, channel, "host reset"); in test_hda_host_out_dma()
171 (channel + 7) | (DMA_BUF_SIZE << 8), IPC_TIMEOUT); in test_hda_host_out_dma()
172 hda_dump_regs(HOST_OUT, HDA_REGBLOCK_SIZE, channel, "host config"); in test_hda_host_out_dma()
185 res = dma_config(dma, channel, &dma_cfg); in test_hda_host_out_dma()
186 hda_dump_regs(HOST_OUT, HDA_REGBLOCK_SIZE, channel, "dsp dma config"); in test_hda_host_out_dma()
189 res = dma_start(dma, channel); in test_hda_host_out_dma()
190 hda_dump_regs(HOST_OUT, HDA_REGBLOCK_SIZE, channel, "dsp dma start"); in test_hda_host_out_dma()
193 hda_ipc_msg(INTEL_ADSP_IPC_HOST_DEV, IPCCMD_HDA_START, (channel + 7), IPC_TIMEOUT); in test_hda_host_out_dma()
194 hda_dump_regs(HOST_OUT, HDA_REGBLOCK_SIZE, channel, "host start"); in test_hda_host_out_dma()
198 (channel + 7) | (DMA_BUF_SIZE << 8), IPC_TIMEOUT); in test_hda_host_out_dma()
199 hda_dump_regs(HOST_OUT, HDA_REGBLOCK_SIZE, channel, "host send"); in test_hda_host_out_dma()
202 WAIT_FOR(intel_adsp_hda_buf_full(HDA_HOST_OUT_BASE, HDA_REGBLOCK_SIZE, channel), in test_hda_host_out_dma()
204 hda_dump_regs(HOST_OUT, HDA_REGBLOCK_SIZE, channel, "dsp wait for full"); in test_hda_host_out_dma()
225 res = dma_reload(dma, channel, 0, 0, DMA_BUF_SIZE); in test_hda_host_out_dma()
227 hda_dump_regs(HOST_OUT, HDA_REGBLOCK_SIZE, channel, "dsp dma reload"); in test_hda_host_out_dma()
230 hda_ipc_msg(INTEL_ADSP_IPC_HOST_DEV, IPCCMD_HDA_RESET, (channel + 7), IPC_TIMEOUT); in test_hda_host_out_dma()
232 hda_dump_regs(HOST_OUT, HDA_REGBLOCK_SIZE, channel, "host reset"); in test_hda_host_out_dma()
234 res = dma_stop(dma, channel); in test_hda_host_out_dma()
236 hda_dump_regs(HOST_OUT, HDA_REGBLOCK_SIZE, channel, "dsp dma stop"); in test_hda_host_out_dma()