• Home
  • Raw
  • Download

Lines Matching refs:dma_engine

2593 struct dma_engine {  struct
2625 static int dma_reset(struct dma_engine *dma) in dma_reset()
2644 static int dma_set_state(struct dma_engine *dma, enum dma_state state) in dma_set_state()
2663 static unsigned int dma_get_buffer_size(struct dma_engine *dma) in dma_get_buffer_size()
2668 static unsigned char *dma_get_buffer_addr(struct dma_engine *dma) in dma_get_buffer_addr()
2673 static int dma_xfer(struct dma_engine *dma, in dma_xfer()
2682 struct dma_engine *dma, in dma_get_converter_format()
2689 static unsigned int dma_get_stream_id(struct dma_engine *dma) in dma_get_stream_id()
2786 struct dma_engine *dma_engine, in dspxfr_one_seg() argument
2823 if (fls == NULL || dma_engine == NULL || port_map_mask == 0) { in dspxfr_one_seg()
2844 buffer_size_words = (unsigned int)dma_get_buffer_size(dma_engine) / in dspxfr_one_seg()
2847 buffer_addx = dma_get_buffer_addr(dma_engine); in dspxfr_one_seg()
2854 dma_get_converter_format(dma_engine, &hda_format); in dspxfr_one_seg()
2894 dma_xfer(dma_engine, data, run_size_words*sizeof(u32)); in dspxfr_one_seg()
2917 status = dma_set_state(dma_engine, DMA_STATE_RUN); in dspxfr_one_seg()
2947 dma_set_state(dma_engine, DMA_STATE_STOP); in dspxfr_one_seg()
2948 status = dma_reset(dma_engine); in dspxfr_one_seg()
2991 struct dma_engine *dma_engine; in dspxfr_image() local
2998 dma_engine = kzalloc(sizeof(*dma_engine), GFP_KERNEL); in dspxfr_image()
2999 if (!dma_engine) in dspxfr_image()
3002 dma_engine->dmab = kzalloc(sizeof(*dma_engine->dmab), GFP_KERNEL); in dspxfr_image()
3003 if (!dma_engine->dmab) { in dspxfr_image()
3004 kfree(dma_engine); in dspxfr_image()
3008 dma_engine->codec = codec; in dspxfr_image()
3010 dma_engine->m_converter_format = hda_format; in dspxfr_image()
3011 dma_engine->buf_size = (ovly ? DSP_DMA_WRITE_BUFLEN_OVLY : in dspxfr_image()
3025 dma_engine->m_converter_format, in dspxfr_image()
3026 dma_engine->buf_size, in dspxfr_image()
3027 dma_engine->dmab); in dspxfr_image()
3049 stream_id = dma_get_stream_id(dma_engine); in dspxfr_image()
3064 dma_engine, dma_chan, in dspxfr_image()
3089 if (dma_engine->dmab->area) in dspxfr_image()
3090 snd_hda_codec_load_dsp_cleanup(codec, dma_engine->dmab); in dspxfr_image()
3091 kfree(dma_engine->dmab); in dspxfr_image()
3092 kfree(dma_engine); in dspxfr_image()