[PATCH 02/17] spl: Add functions for next and previous phase