D40_MEMCPY_MAX_CHANS
num_memcpy_chans = min(num_memcpy_chans, D40_MEMCPY_MAX_CHANS);
if (num_memcpy > D40_MEMCPY_MAX_CHANS || num_memcpy <= 0) {