sh: fix Transfer Size calculation in both DMA drivers