spi: Add helper functions for setting up transfers