Home
last modified time | relevance | path

Searched hist:af5e7dc7c634216cf9575337ed39e2ce8b247b69 (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/arch/arm/mm/
H A Dmobj_ffa.caf5e7dc7c634216cf9575337ed39e2ce8b247b69 Tue Aug 11 13:37:57 UTC 2020 Jens Wiklander <jens.wiklander@linaro.org> core: mobj: add {inc,dec}_map() to struct mobj_ops

Adds inc_map() and dec_map() to struct mobj_ops. The old mobj_inc_map()
and mobj_dec_map() implementations in mobj_dyn_shm.c and mobj_ffa.c are
are replaced with function pointers in mobj_reg_shm_ops and
mobj_ffa_ops. Inline versions of mobj_inc_map() and mobj_dec_map() are
added to call the correct function via struct mobj_ops instead. If
struct mobj_ops for a particular mobj doesn't have and implementation of
inc_map() or dec_map() TEE_SUCCESS is returned instead.

Reviewed-by: Jerome Forissier <jerome@forissier.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>