refactor(ffa): remove `plat` prefix
Rename files to remove the `plat` prefix and replace with a
module-specific prefix.
Change-Id: Ie64cefcdf91da7b20e520828d8e234af12ab5c85
Signed-off-by: Karl Meakin <karl.meakin@arm.com>
diff --git a/inc/hf/ffa/ffa_memory.h b/inc/hf/ffa/ffa_memory.h
index 62d876f..ee00e14 100644
--- a/inc/hf/ffa/ffa_memory.h
+++ b/inc/hf/ffa/ffa_memory.h
@@ -12,29 +12,28 @@
#include "hf/vm.h"
/** Check validity of the FF-A memory send function attempt. */
-bool plat_ffa_is_memory_send_valid(ffa_id_t receiver, ffa_id_t sender,
- uint32_t share_func, bool multiple_borrower);
+bool ffa_memory_is_send_valid(ffa_id_t receiver, ffa_id_t sender,
+ uint32_t share_func, bool multiple_borrower);
-enum ffa_memory_handle_allocator plat_ffa_memory_handle_allocator(void);
+enum ffa_memory_handle_allocator ffa_memory_get_handle_allocator(void);
/**
* Encodes memory handle according to section 5.10.2 of the FF-A v1.0 spec.
*/
-static inline ffa_memory_handle_t plat_ffa_memory_handle_make(uint64_t index)
+static inline ffa_memory_handle_t ffa_memory_make_handle(uint64_t index)
{
- return ffa_memory_handle_make(index,
- plat_ffa_memory_handle_allocator());
+ return ffa_memory_handle_make(index, ffa_memory_get_handle_allocator());
}
/**
* Checks whether given handle was allocated by current world, according to
* handle encoding rules.
*/
-static inline bool plat_ffa_memory_handle_allocated_by_current_world(
+static inline bool ffa_memory_is_handle_allocated_by_current_world(
ffa_memory_handle_t handle)
{
return ffa_memory_handle_allocator(handle) ==
- plat_ffa_memory_handle_allocator();
+ ffa_memory_get_handle_allocator();
}
/**
@@ -42,15 +41,15 @@
* it. The SPMC will return MM_MODE_NS, and the hypervisor 0 as it only deals
* with NS accesses by default.
*/
-uint32_t plat_ffa_other_world_mode(void);
+uint32_t ffa_memory_get_other_world_mode(void);
-bool plat_ffa_is_mem_perm_get_valid(const struct vcpu *current);
-bool plat_ffa_is_mem_perm_set_valid(const struct vcpu *current);
+bool ffa_memory_is_mem_perm_get_valid(const struct vcpu *current);
+bool ffa_memory_is_mem_perm_set_valid(const struct vcpu *current);
/*
* Handles FF-A memory share calls with recipients from the other world.
*/
-struct ffa_value plat_ffa_other_world_mem_send(
+struct ffa_value ffa_memory_other_world_mem_send(
struct vm *from, uint32_t share_func,
struct ffa_memory_region **memory_region, uint32_t length,
uint32_t fragment_length, struct mpool *page_pool);
@@ -59,7 +58,7 @@
* Handles the memory reclaim if a memory handle from the other world is
* provided.
*/
-struct ffa_value plat_ffa_other_world_mem_reclaim(
+struct ffa_value ffa_memory_other_world_mem_reclaim(
struct vm *to, ffa_memory_handle_t handle,
ffa_memory_region_flags_t flags, struct mpool *page_pool);
@@ -67,12 +66,12 @@
* Handles the continuation of the memory send operation in case the memory
* region descriptor contains multiple segments.
*/
-struct ffa_value plat_ffa_other_world_mem_send_continue(
+struct ffa_value ffa_memory_other_world_mem_send_continue(
struct vm *from, void *fragment, uint32_t fragment_length,
ffa_memory_handle_t handle, struct mpool *page_pool);
/*
* Set the security bit in `attributes` if specified by `mode`.
*/
-ffa_memory_attributes_t plat_ffa_memory_add_security_bit_from_mode(
+ffa_memory_attributes_t ffa_memory_add_security_bit_from_mode(
ffa_memory_attributes_t attributes, uint32_t mode);