Core: Improve secure function entry point in Library model

In current Library model implementation, each secure function
includes the same inline entry point tfm_core_partition_request().
However, it is only required to make NS client check as inline.
The remaining steps in tfm_core_partition_request() increase the
memory footprint when they are also inlined in secure functions.

Extract checking NS client from tfm_core_partition_request() and
add an inline function tfm_core_is_ns_client().
Change tfm_core_partition_request() to a normal function called
by each secure function.

It can save several KB in code size in Library model.

Change-Id: I2b8d58d8daff22068cddbfa1145203ca92f305a4
Signed-off-by: David Hu <david.hu@arm.com>
diff --git a/secure_fw/ns_callable/tfm_veneers.c b/secure_fw/ns_callable/tfm_veneers.c
index 02b0ca4..0ec4da5 100644
--- a/secure_fw/ns_callable/tfm_veneers.c
+++ b/secure_fw/ns_callable/tfm_veneers.c
@@ -175,7 +175,10 @@
                                          psa_outvec *out_vec, \
                                          size_t out_len) \
     { \
+        bool is_ns = tfm_core_is_ns_client(); \
+      \
         TFM_CORE_IOVEC_SFN_REQUEST(partition_name, \
+                                   is_ns, \
                                    (void *) sfn_name, \
                                    in_vec, in_len, out_vec, out_len); \
     }