Home
last modified time | relevance | path

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

/optee_os/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.c71 refcount_set(&fobj->refc, 1); in fobj_init()
77 assert(!refcount_val(&fobj->refc)); in fobj_uninit()
186 assert(refcount_val(&fobj->refc)); in rwp_paged_iv_load_page()
202 if (!refcount_val(&fobj->refc)) { in rwp_paged_iv_save_page()
297 assert(refcount_val(&fobj->refc)); in rwp_unpaged_iv_load_page()
313 if (!refcount_val(&fobj->refc)) { in rwp_unpaged_iv_save_page()
471 assert(refcount_val(&rop->fobj.refc)); in rop_load_page_helper()
710 assert(refcount_val(&fobj->refc)); in lop_load_page()
771 refcount_set(&f->fobj.refc, 1); in fobj_sec_mem_alloc()
792 assert(!refcount_val(&fobj->refc)); in sec_mem_free()
[all …]
A Dmobj.c175 refcount_set(&moph->mobj.refc, 1); in mobj_phys_init()
331 refcount_set(&m->mobj.refc, 1); in mobj_mm_alloc()
442 refcount_set(&m->mobj.refc, 1); in mobj_shm_alloc()
538 refcount_set(&m->mobj.refc, 1); in mobj_seccpy_shm_alloc()
583 refcount_set(&m->mobj.refc, 1); in mobj_with_fobj_alloc()
/optee_os/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/core/arch/arm/mm/
A Dmobj_ffa.c81 refcount_set(&mf->mobj.refc, 0); in ffa_new()
276 cookie, refcount_val(&mf->mobj.refc)); in mobj_ffa_sel1_spmc_reclaim()
322 cookie, refcount_val(&mf->mobj.refc));
365 if (!refcount_inc(&mf->mobj.refc)) {
372 refcount_set(&mf->mobj.refc, 1);
375 cookie, refcount_val(&mf->mobj.refc));
398 assert(refcount_val(&mf->mobj.refc) == 0);
399 refcount_set(&mf->mobj.refc, 1);
494 if (refcount_val(&mobj->refc)) {
A Dsp_mem.c62 refcount_set(&m->mobj.refc, 1); in sp_mem_new_mobj()
153 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/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()

Completed in 33 milliseconds