fix dma processing for CPP -> C conversion