Lines Matching refs:dma_engine

3005 struct dma_engine {  struct
3037 static int dma_reset(struct dma_engine *dma) in dma_reset()
3056 static int dma_set_state(struct dma_engine *dma, enum dma_state state) in dma_set_state()
3075 static unsigned int dma_get_buffer_size(struct dma_engine *dma) in dma_get_buffer_size()
3080 static unsigned char *dma_get_buffer_addr(struct dma_engine *dma) in dma_get_buffer_addr()
3085 static int dma_xfer(struct dma_engine *dma, in dma_xfer()
3094 struct dma_engine *dma, in dma_get_converter_format()
3101 static unsigned int dma_get_stream_id(struct dma_engine *dma) in dma_get_stream_id()
3197 struct dma_engine *dma_engine, in dspxfr_one_seg() argument
3234 if (fls == NULL || dma_engine == NULL || port_map_mask == 0) { in dspxfr_one_seg()
3255 buffer_size_words = (unsigned int)dma_get_buffer_size(dma_engine) / in dspxfr_one_seg()
3258 buffer_addx = dma_get_buffer_addr(dma_engine); in dspxfr_one_seg()
3265 dma_get_converter_format(dma_engine, &hda_format); in dspxfr_one_seg()
3305 dma_xfer(dma_engine, data, run_size_words*sizeof(u32)); in dspxfr_one_seg()
3328 status = dma_set_state(dma_engine, DMA_STATE_RUN); in dspxfr_one_seg()
3358 dma_set_state(dma_engine, DMA_STATE_STOP); in dspxfr_one_seg()
3359 status = dma_reset(dma_engine); in dspxfr_one_seg()
3402 struct dma_engine *dma_engine; in dspxfr_image() local
3409 dma_engine = kzalloc(sizeof(*dma_engine), GFP_KERNEL); in dspxfr_image()
3410 if (!dma_engine) in dspxfr_image()
3413 dma_engine->dmab = kzalloc(sizeof(*dma_engine->dmab), GFP_KERNEL); in dspxfr_image()
3414 if (!dma_engine->dmab) { in dspxfr_image()
3415 kfree(dma_engine); in dspxfr_image()
3419 dma_engine->codec = codec; in dspxfr_image()
3421 dma_engine->m_converter_format = hda_format; in dspxfr_image()
3422 dma_engine->buf_size = (ovly ? DSP_DMA_WRITE_BUFLEN_OVLY : in dspxfr_image()
3436 dma_engine->m_converter_format, in dspxfr_image()
3437 dma_engine->buf_size, in dspxfr_image()
3438 dma_engine->dmab); in dspxfr_image()
3460 stream_id = dma_get_stream_id(dma_engine); in dspxfr_image()
3475 dma_engine, dma_chan, in dspxfr_image()
3500 if (dma_engine->dmab->area) in dspxfr_image()
3501 snd_hda_codec_load_dsp_cleanup(codec, dma_engine->dmab); in dspxfr_image()
3502 kfree(dma_engine->dmab); in dspxfr_image()
3503 kfree(dma_engine); in dspxfr_image()