Home
last modified time | relevance | path

Searched refs:refc (Results 1 – 10 of 10) sorted by relevance

/optee_os/core/mm/
H A Dfile.c37 struct refcount refc; member
111 if (f && !refcount_inc(&f->refc)) in file_get()
148 if (f && refcount_inc(&f->refc)) in file_get_by_tag()
156 refcount_set(&f->refc, 1); in file_get_by_tag()
169 if (f && refcount_dec(&f->refc)) { in file_put()
H A Dfobj.c73 refcount_set(&fobj->refc, 1); in fobj_init()
79 assert(!refcount_val(&fobj->refc)); in fobj_uninit()
189 assert(refcount_val(&fobj->refc)); in rwp_paged_iv_load_page()
205 if (!refcount_val(&fobj->refc)) { in rwp_paged_iv_save_page()
301 assert(refcount_val(&fobj->refc)); in rwp_unpaged_iv_load_page()
317 if (!refcount_val(&fobj->refc)) { in rwp_unpaged_iv_save_page()
476 assert(refcount_val(&rop->fobj.refc)); in rop_load_page_helper()
716 assert(refcount_val(&fobj->refc)); in lop_load_page()
778 refcount_set(&f->fobj.refc, 1); in fobj_sec_mem_alloc()
799 assert(!refcount_val(&fobj->refc)); in sec_mem_free()
[all …]
H A Dmobj.c172 refcount_set(&moph->mobj.refc, 1); in mobj_phys_init()
349 refcount_set(&m->mobj.refc, 1); in mobj_shm_alloc()
382 refcount_set(&m->mobj.refc, 1); in mobj_with_fobj_alloc()
H A Dmobj_dyn_shm.c367 refcount_set(&mobj_reg_shm->mobj.refc, 1); in mobj_reg_shm_alloc()
710 refcount_set(&m->mobj.refc, 1); in mobj_protmem_alloc()
/optee_os/core/include/mm/
H A Dfobj.h25 struct refcount refc; member
187 if (fobj && !refcount_inc(&fobj->refc)) in fobj_get()
202 if (fobj && refcount_dec(&fobj->refc)) in fobj_put()
H A Dmobj.h30 struct refcount refc; member
147 if (mobj && !refcount_inc(&mobj->refc)) in mobj_get()
162 if (mobj && refcount_dec(&mobj->refc)) in mobj_put()
/optee_os/core/arch/arm/mm/
H A Dmobj_ffa.c181 refcount_set(&m->mf.mobj.refc, 0); in ffa_shm_new()
204 refcount_set(&m->mf.mobj.refc, 0); in ffa_prm_new()
537 cookie, refcount_val(&mf->mobj.refc)); in mobj_ffa_sel1_spmc_reclaim()
589 cookie, refcount_val(&mf->mobj.refc), mf->inactive_refs); in mobj_ffa_unregister_by_cookie()
614 cookie, refcount_val(&mf->mobj.refc), mf->inactive_refs); in mobj_ffa_unregister_by_cookie()
624 cookie, refcount_val(&mf->mobj.refc), mf->inactive_refs); in mobj_ffa_unregister_by_cookie()
657 if (!refcount_inc(&mf->mobj.refc)) { in mobj_ffa_get_by_cookie()
664 refcount_set(&mf->mobj.refc, 1); in mobj_ffa_get_by_cookie()
668 cookie, refcount_val(&mf->mobj.refc), in mobj_ffa_get_by_cookie()
696 assert(refcount_val(&mf->mobj.refc) == 0); in mobj_ffa_get_by_cookie()
[all …]
H A Dsp_mem.c66 refcount_set(&m->mobj.refc, 1); in sp_mem_new_mobj()
170 if (!refcount_val(&mobj->refc)) in inactivate()
/optee_os/core/drivers/crypto/versal/
H A Dauthenc.c180 struct refcount refc; member
423 if (refcount_val(&engine.refc) > 1) in do_update_aad()
549 if (refcount_val(&engine.refc) > 1) in do_update_payload()
611 if (refcount_val(&engine.refc) > 1) in do_enc_final()
664 if (refcount_val(&engine.refc) > 1) in do_dec_final()
685 if (refcount_dec(&engine.refc)) { in do_free()
688 refcount_set(&engine.refc, 1); in do_free()
742 refcount_inc(&engine.refc); in do_copy_state()
865 refcount_set(&engine.refc, 1); in versal_register_authenc()
/optee_os/core/arch/arm/kernel/
H A Dvirtualization.c64 struct refcount refc; member
321 refcount_set(&prtn->refc, 1); in virt_guest_created()
376 if (!refcount_inc(&prtn->refc)) in get_prtn()
445 if (prtn && refcount_dec(&prtn->refc)) { in virt_put_guest()