dsplink: isolate data type and buffer size