diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2019-12-12 14:56:43 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2019-12-19 10:20:21 +0100 |
commit | 76c49973f7f648a3c08b239087ee5810d6c7235d (patch) | |
tree | 5d36d4ff30aa22aa13595fd6075778b7f54346e0 /core/arch/arm/mm/mobj_dyn_shm.c | |
parent | c891a67c01f6d5d6ed3a33ac5d0b496018b51801 (diff) |
core: rename to mobj_{inc,dec}_map()
Renames mobj_reg_shm_inc_map() and mobj_reg_shm_dec_map() to
mobj_inc_map() and mobj_dec_map() respectively. This makes room for
other implementations of registered shared memory.
Reviewed-by: Jerome Forissier <jerome@forissier.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/arch/arm/mm/mobj_dyn_shm.c')
-rw-r--r-- | core/arch/arm/mm/mobj_dyn_shm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/arch/arm/mm/mobj_dyn_shm.c b/core/arch/arm/mm/mobj_dyn_shm.c index 51d56d797..9373cb8a4 100644 --- a/core/arch/arm/mm/mobj_dyn_shm.c +++ b/core/arch/arm/mm/mobj_dyn_shm.c @@ -354,7 +354,7 @@ TEE_Result mobj_reg_shm_release_by_cookie(uint64_t cookie) return TEE_SUCCESS; } -TEE_Result mobj_reg_shm_inc_map(struct mobj *mobj) +TEE_Result mobj_inc_map(struct mobj *mobj) { TEE_Result res = TEE_SUCCESS; struct mobj_reg_shm *r = to_mobj_reg_shm_may_fail(mobj); @@ -391,7 +391,7 @@ out: return res; } -TEE_Result mobj_reg_shm_dec_map(struct mobj *mobj) +TEE_Result mobj_dec_map(struct mobj *mobj) { struct mobj_reg_shm *r = to_mobj_reg_shm_may_fail(mobj); @@ -425,7 +425,7 @@ struct mobj *mobj_mapped_shm_alloc(paddr_t *pages, size_t num_pages, if (!mobj) return NULL; - if (mobj_reg_shm_inc_map(mobj)) { + if (mobj_inc_map(mobj)) { mobj_put(mobj); return NULL; } |