to_stm32_mdma_desc
chan->desc = to_stm32_mdma_desc(vdesc);
residue = stm32_mdma_desc_residue(chan, to_stm32_mdma_desc(vdesc), 0, state);
struct stm32_mdma_desc *desc = to_stm32_mdma_desc(vdesc);