Lines Matching refs:dma_engine
3017 struct dma_engine {
3049 static int dma_reset(struct dma_engine *dma)
3068 static int dma_set_state(struct dma_engine *dma, enum dma_state state)
3087 static unsigned int dma_get_buffer_size(struct dma_engine *dma)
3092 static unsigned char *dma_get_buffer_addr(struct dma_engine *dma)
3097 static int dma_xfer(struct dma_engine *dma,
3106 struct dma_engine *dma,
3113 static unsigned int dma_get_stream_id(struct dma_engine *dma)
3199 * @dma_engine: pointer to DMA engine to be used for DSP download
3209 struct dma_engine *dma_engine,
3246 if (fls == NULL || dma_engine == NULL || port_map_mask == 0) {
3267 buffer_size_words = (unsigned int)dma_get_buffer_size(dma_engine) /
3270 buffer_addx = dma_get_buffer_addr(dma_engine);
3273 codec_dbg(codec, "dma_engine buffer NULL\n");
3277 dma_get_converter_format(dma_engine, &hda_format);
3317 dma_xfer(dma_engine, data, run_size_words*sizeof(u32));
3340 status = dma_set_state(dma_engine, DMA_STATE_RUN);
3370 dma_set_state(dma_engine, DMA_STATE_STOP);
3371 status = dma_reset(dma_engine);
3414 struct dma_engine *dma_engine;
3421 dma_engine = kzalloc(sizeof(*dma_engine), GFP_KERNEL);
3422 if (!dma_engine)
3425 dma_engine->dmab = kzalloc(sizeof(*dma_engine->dmab), GFP_KERNEL);
3426 if (!dma_engine->dmab) {
3427 kfree(dma_engine);
3431 dma_engine->codec = codec;
3433 dma_engine->m_converter_format = hda_format;
3434 dma_engine->buf_size = (ovly ? DSP_DMA_WRITE_BUFLEN_OVLY :
3448 dma_engine->m_converter_format,
3449 dma_engine->buf_size,
3450 dma_engine->dmab);
3472 stream_id = dma_get_stream_id(dma_engine);
3487 dma_engine, dma_chan,
3512 if (dma_engine->dmab->area)
3513 snd_hda_codec_load_dsp_cleanup(codec, dma_engine->dmab);
3514 kfree(dma_engine->dmab);
3515 kfree(dma_engine);