Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/mm/
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()
A Dfobj.c72 refcount_set(&fobj->refc, 1); in fobj_init()
78 assert(!refcount_val(&fobj->refc)); in fobj_uninit()
187 assert(refcount_val(&fobj->refc)); in rwp_paged_iv_load_page()
203 if (!refcount_val(&fobj->refc)) { in rwp_paged_iv_save_page()
298 assert(refcount_val(&fobj->refc)); in rwp_unpaged_iv_load_page()
314 if (!refcount_val(&fobj->refc)) { in rwp_unpaged_iv_save_page()
472 assert(refcount_val(&rop->fobj.refc)); in rop_load_page_helper()
712 assert(refcount_val(&fobj->refc)); in lop_load_page()
773 refcount_set(&f->fobj.refc, 1); in fobj_sec_mem_alloc()
794 assert(!refcount_val(&fobj->refc)); in sec_mem_free()
[all …]
A Dmobj.c176 refcount_set(&moph->mobj.refc, 1); in mobj_phys_init()
333 refcount_set(&m->mobj.refc, 1); in mobj_mm_alloc()
458 refcount_set(&m->mobj.refc, 1); in mobj_shm_alloc()
554 refcount_set(&m->mobj.refc, 1); in mobj_seccpy_shm_alloc()
605 refcount_set(&m->mobj.refc, 1); in mobj_with_fobj_alloc()
/optee_os-3.20.0/core/include/mm/
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()
A Dmobj.h24 struct refcount refc; member
142 if (mobj && !refcount_inc(&mobj->refc)) in mobj_get()
157 if (mobj && refcount_dec(&mobj->refc)) in mobj_put()
/optee_os-3.20.0/core/arch/arm/mm/
A Dmobj_ffa.c80 refcount_set(&mf->mobj.refc, 0); in ffa_new()
272 cookie, refcount_val(&mf->mobj.refc)); in mobj_ffa_sel1_spmc_reclaim()
318 cookie, refcount_val(&mf->mobj.refc)); in mobj_ffa_unregister_by_cookie()
360 if (!refcount_inc(&mf->mobj.refc)) { in mobj_ffa_get_by_cookie()
367 refcount_set(&mf->mobj.refc, 1); in mobj_ffa_get_by_cookie()
370 cookie, refcount_val(&mf->mobj.refc)); in mobj_ffa_get_by_cookie()
393 assert(refcount_val(&mf->mobj.refc) == 0); in mobj_ffa_get_by_cookie()
394 refcount_set(&mf->mobj.refc, 1); in mobj_ffa_get_by_cookie()
488 if (refcount_val(&mobj->refc)) { in ffa_inactivate()
A Dsp_mem.c66 refcount_set(&m->mobj.refc, 1); in sp_mem_new_mobj()
170 if (!refcount_val(&mobj->refc)) in inactivate()
A Dmobj_dyn_shm.c317 refcount_set(&mobj_reg_shm->mobj.refc, 1); in mobj_reg_shm_alloc()
/optee_os-3.20.0/core/arch/arm/kernel/
A Dvirtualization.c44 struct refcount refc; member
261 refcount_set(&prtn->refc, 1); in virt_guest_created()
305 if (!refcount_dec(&prtn->refc)) { in virt_guest_destroyed()
307 refcount_val(&prtn->refc)); in virt_guest_destroyed()
342 refcount_inc(&prtn->refc); in virt_set_guest()
364 if (refcount_dec(&prtn->refc)) in virt_unset_guest()
/optee_os-3.20.0/core/drivers/crypto/versal/
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()

Completed in 15 milliseconds