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/notifications.h b/inc/hf/ffa/notifications.h
index 24471e6..95a82c8 100644
--- a/inc/hf/ffa/notifications.h
+++ b/inc/hf/ffa/notifications.h
@@ -11,83 +11,80 @@
#include "hf/ffa.h"
#include "hf/vm.h"
-struct ffa_value plat_ffa_is_notifications_bitmap_access_valid(
- struct vcpu *current, ffa_id_t vm_id);
+struct ffa_value ffa_notifications_is_bitmap_access_valid(struct vcpu *current,
+ ffa_id_t vm_id);
-bool plat_ffa_is_notifications_bind_valid(struct vcpu *current,
- ffa_id_t sender_id,
- ffa_id_t receiver_id);
-bool plat_ffa_notifications_update_bindings_forward(
+bool ffa_notifications_is_bind_valid(struct vcpu *current, ffa_id_t sender_id,
+ ffa_id_t receiver_id);
+bool ffa_notifications_update_bindings_forward(
ffa_id_t receiver_id, ffa_id_t sender_id,
ffa_notification_flags_t flags, ffa_notifications_bitmap_t bitmap,
bool is_bind, struct ffa_value *ret);
-bool plat_ffa_is_notification_set_valid(struct vcpu *current,
- ffa_id_t sender_id,
- ffa_id_t receiver_id);
+bool ffa_notifications_is_set_valid(struct vcpu *current, ffa_id_t sender_id,
+ ffa_id_t receiver_id);
-bool plat_ffa_notification_set_forward(ffa_id_t sender_vm_id,
- ffa_id_t receiver_vm_id,
- ffa_notification_flags_t flags,
- ffa_notifications_bitmap_t bitmap,
- struct ffa_value *ret);
+bool ffa_notifications_set_forward(ffa_id_t sender_vm_id,
+ ffa_id_t receiver_vm_id,
+ ffa_notification_flags_t flags,
+ ffa_notifications_bitmap_t bitmap,
+ struct ffa_value *ret);
-bool plat_ffa_is_notification_get_valid(struct vcpu *current,
- ffa_id_t receiver_id,
- ffa_notification_flags_t flags);
+bool ffa_notifications_is_get_valid(struct vcpu *current, ffa_id_t receiver_id,
+ ffa_notification_flags_t flags);
-struct ffa_value plat_ffa_notifications_get_from_sp(
+struct ffa_value ffa_notifications_get_from_sp(
struct vm_locked receiver_locked, ffa_vcpu_index_t vcpu_id,
ffa_notifications_bitmap_t *from_sp);
-struct ffa_value plat_ffa_notifications_get_framework_notifications(
+struct ffa_value ffa_notifications_get_framework_notifications(
struct vm_locked receiver_locked, ffa_notifications_bitmap_t *from_fwk,
ffa_notification_flags_t flags, ffa_vcpu_index_t vcpu_id);
/**
* Creates a bitmap for the VM of the given ID.
*/
-struct ffa_value plat_ffa_notifications_bitmap_create(
- ffa_id_t vm_id, ffa_vcpu_count_t vcpu_count);
+struct ffa_value ffa_notifications_bitmap_create(ffa_id_t vm_id,
+ ffa_vcpu_count_t vcpu_count);
/**
* Issues a FFA_NOTIFICATION_BITMAP_CREATE.
* Returns true if the call goes well, and false if call returns with
* FFA_ERROR_32.
*/
-bool plat_ffa_notifications_bitmap_create_call(ffa_id_t vm_id,
- ffa_vcpu_count_t vcpu_count);
+bool ffa_notifications_bitmap_create_call(ffa_id_t vm_id,
+ ffa_vcpu_count_t vcpu_count);
/**
* Destroys the notifications bitmap for the given VM ID.
*/
-struct ffa_value plat_ffa_notifications_bitmap_destroy(ffa_id_t vm_id);
+struct ffa_value ffa_notifications_bitmap_destroy(ffa_id_t vm_id);
/**
* Helper to send SRI and safely update `ffa_sri_state`, if there has been
* a call to FFA_NOTIFICATION_SET, and the SRI has been delayed.
* To be called at a context switch to the NWd.
*/
-void plat_ffa_sri_trigger_if_delayed(struct cpu *cpu);
+void ffa_notifications_sri_trigger_if_delayed(struct cpu *cpu);
/**
* Helper to send SRI and safely update `ffa_sri_state`, if it hasn't been
* delayed in call to FFA_NOTIFICATION_SET.
*/
-void plat_ffa_sri_trigger_not_delayed(struct cpu *cpu);
+void ffa_notifications_sri_trigger_not_delayed(struct cpu *cpu);
/**
* Track that in current CPU there was a notification set with delay SRI flag.
*/
-void plat_ffa_sri_set_delayed(struct cpu *cpu);
+void ffa_notifications_sri_set_delayed(struct cpu *cpu);
/**
* Initialize Schedule Receiver Interrupts needed in the context of
* notifications support.
*/
-void plat_ffa_sri_init(struct cpu *cpu);
+void ffa_notifications_sri_init(struct cpu *cpu);
-void plat_ffa_notification_info_get_forward(uint16_t *ids, uint32_t *ids_count,
- uint32_t *lists_sizes,
- uint32_t *lists_count,
- uint32_t ids_count_max);
+void ffa_notifications_info_get_forward(uint16_t *ids, uint32_t *ids_count,
+ uint32_t *lists_sizes,
+ uint32_t *lists_count,
+ uint32_t ids_count_max);