The callback specified using dma_parms_comp_cb() is always called on completion of the DMA transfer. However if the DMA transfer results in multiple FDMA nodes then it can optionally be called after each node is processed. This occurs after each struct scatterlist element for scatter-gather transfers, or after each transfer descriptor for a linked list transfer.
Use the inline function dma_params_interrupts() to enable FDMA interrupts.
void dma_params_interrupts(struct stm_dma_params *p, unsigned long isrflag)
In addition to a pointer p to a stm_dma_params structure, this function accepts a parameter isrflag. This parameter determines the interrupt mode to select and can take one of the following values: