change MAD interface parameters order for buffer pointer and buffer length