Moved parameter checking to the svc functions

Signed-off-by: Joakim Bech <joakim.bech@linaro.org>