Home
last modified time | relevance | path

Searched refs:smc_nr (Results 1 – 11 of 11) sorted by relevance

/trusty/user/base/interface/smc/include/interface/smc/
Dsmc_def.h19 #define SMC_IS_FASTCALL(smc_nr) ((smc_nr)&0x80000000) argument
20 #define SMC_IS_SMC64(smc_nr) ((smc_nr)&0x40000000) argument
21 #define SMC_ENTITY(smc_nr) (((smc_nr)&0x3F000000) >> 24) argument
22 #define SMC_FUNCTION(smc_nr) ((smc_nr)&0x0000FFFF) argument
/trusty/kernel/platform/generic-arm64/
Dsmc_service_access_policy.c45 static int smc_test_access_policy(uint32_t smc_nr) { in smc_test_access_policy() argument
50 if (smc_nr == SMC_FC_ECHO_ONE_ARG || smc_nr == SMC_FC64_ECHO_ONE_ARG) in smc_test_access_policy()
57 static int default_access_policy(uint32_t smc_nr) { in default_access_policy() argument
61 static int smc_test_request_check(uint32_t smc_nr, in smc_test_request_check() argument
64 if ((smc_nr == SMC_FC_ECHO_THREE_ARGS || in smc_test_request_check()
65 smc_nr == SMC_FC64_ECHO_THREE_ARGS) && in smc_test_request_check()
89 static int default_request_check(uint32_t smc_nr, in default_request_check() argument
/trusty/kernel/lib/trusty/
Dsmcall.c87 SMC_FUNCTION(args->smc_nr), args->params[0], args->params[1], in trusty_sm_fastcall()
89 switch (args->smc_nr) { in trusty_sm_fastcall()
97 LTRACEF("unknown func 0x%x\n", SMC_FUNCTION(args->smc_nr)); in trusty_sm_fastcall()
115 SMC_FUNCTION(args->smc_nr), args->params[0], args->params[1], in trusty_sm_stdcall()
118 switch (args->smc_nr) { in trusty_sm_stdcall()
166 LTRACEF("unknown func 0x%x\n", SMC_FUNCTION(args->smc_nr)); in trusty_sm_stdcall()
181 SMC_FUNCTION(args->smc_nr), args->params[0], args->params[1], in trusty_sm_nopcall()
190 LTRACEF("unknown func 0x%x\n", SMC_FUNCTION(args->smc_nr)); in trusty_sm_nopcall()
/trusty/kernel/lib/sm/test/
Dsmcall_test.c27 void smc_test(uint32_t smc_nr, uint32_t num);
29 void smc_test(uint32_t smc_nr, uint32_t num) { in smc_test() argument
/trusty/kernel/services/smc/include/services/smc/
Dacl.h35 int (*check_access)(uint32_t smc_nr);
37 int (*check_request)(uint32_t smc_nr,
/trusty/kernel/services/smc/
Dsmc_service.c98 uint32_t smc_nr; in smc_service_handle_msg() local
106 smc_nr = (uint32_t)request.params[0]; in smc_service_handle_msg()
107 rc = channel_ctx->policy.check_access(smc_nr); in smc_service_handle_msg()
110 __func__, rc, smc_nr); in smc_service_handle_msg()
121 rc = channel_ctx->policy.check_request(smc_nr, &channel_ctx->uuid, in smc_service_handle_msg()
125 rc, smc_nr); in smc_service_handle_msg()
146 TRACEF("%s: unknown or failed smcall: %x\n", __func__, smc_nr); in smc_service_handle_msg()
/trusty/kernel/lib/sm/
Dsmcall.c51 LTRACEF("SMC: 0x%x (%s entity %d function 0x%x)\n", (args)->smc_nr, \
52 SMC_IS_FASTCALL(args->smc_nr) ? "Fastcall" : "Stdcall", \
53 SMC_ENTITY(args->smc_nr), SMC_FUNCTION(args->smc_nr)); \
98 u_int function = SMC_FUNCTION(args->smc_nr); in smc_stdcall_secure_monitor()
157 uint16_t index = SMC_FUNCTION(args->smc_nr); in smc_fastcall_secure_monitor()
Dsm.c154 arch_curr_cpu_num(), stdcallstate.args.smc_nr, in sm_stdcall_loop()
157 ret = sm_stdcall_table[SMC_ENTITY(stdcallstate.args.smc_nr)]( in sm_stdcall_loop()
160 arch_curr_cpu_num(), stdcallstate.args.smc_nr, in sm_stdcall_loop()
179 if (args->smc_nr == SMC_SC_RESTART_LAST && in sm_queue_stdcall()
190 if (args->smc_nr == SMC_SC_RESTART_LAST) { in sm_queue_stdcall()
199 LTRACEF("cpu %d, queue std call 0x%x\n", cpu, args->smc_nr); in sm_queue_stdcall()
222 if (atomic_load(&platform_halted) && args->smc_nr != SMC_FC_FIQ_ENTER) { in sm_sched_nonsecure_fiq_loop()
225 if (SMC_IS_SMC64(args->smc_nr)) { in sm_sched_nonsecure_fiq_loop()
229 if (!SMC_IS_FASTCALL(args->smc_nr)) { in sm_sched_nonsecure_fiq_loop()
232 ret = sm_fastcall_table[SMC_ENTITY(args->smc_nr)](args); in sm_sched_nonsecure_fiq_loop()
[all …]
/trusty/kernel/lib/sm/include/lib/
Dsm.h42 uint32_t smc_nr; member
/trusty/kernel/app/stdcalltest/
Dstdcalltest.c176 switch (args->smc_nr) { in stdcalltest_stdcall()
/trusty/kernel/lib/memlog/
Dmemlog.c226 switch (args->smc_nr) { in memlog_stdcall()