spi: refactor DMA ll layer functions Closes IDFGH-3538 and IDFGH-2555 See merge request espressif/esp-idf!9929