Hi, Alex,
If you do not know the size of data the master would transfer in advance for the SPI slave side, I suggest you use the example
C:\Freescale\SDK2.0_FRDM_K22F\boards\frdmk22f\driver_examples\dspi\interrupt\kds
In the example, each received data will trigger interrupt, you can read it to a buffer in the ISR.
If you use DMA mechanism, you have to define the size of data you transmitted or received, so that the DMA can trigger interrupt when size of buffer has been transferred completely, this is DMA essence.
For the /SS signal of SPI, the /SS pin becomes low when the transfer is in progress for each byte/half-word transfer generally, when each transfer is over, the /SS is high.
Hope it can help you
BR
Xiangjun Rong