Home
last modified time | relevance | path

Searched refs:ref_count (Results 1 – 7 of 7) sorted by relevance

/optee_os/core/kernel/
H A Dtee_ta_manager.c191 assert(s->ref_count > 0); in dec_session_ref_count()
192 s->ref_count--; in dec_session_ref_count()
193 if (s->ref_count == 1) in dec_session_ref_count()
255 s->ref_count++; in tee_ta_get_session()
283 assert(s->ref_count >= 1); in tee_ta_unlink_session()
290 while (s->ref_count != 1) in tee_ta_unlink_session()
483 if (ctx->ref_count <= 0) in close_session()
486 ctx->ref_count--; in close_session()
491 if (!ctx->ref_count && in close_session()
567 if (!(ctx->flags & TA_FLAG_MULTI_SESSION) && ctx->ref_count) in tee_ta_init_session_with_context()
[all …]
H A Dpseudo_ta.c153 if (stc->ctx.ref_count == 1 && stc->pseudo_ta->create_entry_point) { in pseudo_ta_enter_open_session()
231 if (stc->ctx.ref_count == 1 && stc->pseudo_ta->destroy_entry_point) in pseudo_ta_enter_close_session()
321 ctx->ref_count = 1; in tee_ta_init_pseudo_ta_session()
H A Duser_ta.c498 utc->ta_ctx.ref_count = 1; in tee_ta_init_user_ta_session()
/optee_os/core/include/kernel/
H A Dtee_ta_manager.h74 uint32_t ref_count; /* Reference counter for multi session TA */ member
91 uint32_t ref_count; /* reference counter */ member
/optee_os/core/include/mm/
H A Dsp_mem.h25 uint8_t ref_count; member
/optee_os/core/arch/arm/kernel/
H A Dspmc_sp_handler.c682 if (receiver->ref_count == UINT8_MAX) { in ffa_mem_retrieve()
688 receiver->ref_count++; in ffa_mem_retrieve()
691 if (receiver->ref_count == 1) { in ffa_mem_retrieve()
709 receiver->ref_count--; in ffa_mem_retrieve()
773 if (!receiver->ref_count) { in ffa_mem_relinquish()
779 receiver->ref_count--; in ffa_mem_relinquish()
780 if (!receiver->ref_count) { in ffa_mem_relinquish()
853 if (receiver->ref_count != 0) { in ffa_mem_reclaim()
H A Dstmm_sp.c111 spc->ta_ctx.ref_count = 1; in stmm_alloc_ctx()