[PATCH v7 06/11] tee: refactor params_from_user()