move to 0-based ids for DMA regions (remove several 'ptr-1' calculations when referencing data)