Searched refs:guest_id (Results 1 – 9 of 9) sorted by relevance
| /optee_os/core/include/kernel/ |
| H A D | virtualization.h | 29 TEE_Result virt_guest_created(uint16_t guest_id); 40 TEE_Result virt_guest_destroyed(uint16_t guest_id); 50 TEE_Result virt_set_guest(uint16_t guest_id); 145 struct guest_partition *virt_get_guest(uint16_t guest_id); 185 static inline TEE_Result virt_guest_created(uint16_t guest_id __unused) in virt_guest_created() 188 static inline TEE_Result virt_guest_destroyed(uint16_t guest_id __unused) in virt_guest_destroyed() 191 static inline TEE_Result virt_set_guest(uint16_t guest_id __unused) in virt_set_guest() 211 static inline struct guest_partition *virt_get_guest(uint16_t guest_id __unused) in virt_get_guest() 244 TEE_Result virt_reclaim_cookie_from_destroyed_guest(uint16_t guest_id, 255 virt_reclaim_cookie_from_destroyed_guest(uint16_t guest_id __unused, in virt_reclaim_cookie_from_destroyed_guest()
|
| H A D | notif.h | 94 uint16_t guest_id); 100 bool notif_async_is_started(uint16_t guest_id); 102 static inline bool notif_async_is_started(uint16_t guest_id __unused) in notif_async_is_started() 125 void notif_send_async(uint32_t value, uint16_t guest_id); 128 uint16_t guest_id __unused) in notif_send_async() 169 void notif_deliver_atomic_event(enum notif_event ev, uint16_t guest_id); 173 uint16_t guest_id __unused) in notif_deliver_atomic_event()
|
| /optee_os/core/tests/ |
| H A D | notif_test_wd.c | 19 uint16_t guest_id; member 47 wd->guest_id, wd->call_count, wd->timeout_count); in test_wd_callback() 53 notif_send_async(NOTIF_VALUE_DO_BOTTOM_HALF, wd->guest_id); in test_wd_callback() 59 enum notif_event ev, uint16_t guest_id) in wd_ndrv_atomic_cb() argument 62 struct guest_partition *prtn = virt_get_guest(guest_id); in wd_ndrv_atomic_cb() 66 wd->guest_id = guest_id; in wd_ndrv_atomic_cb()
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | virtualization.c | 302 TEE_Result virt_guest_created(uint16_t guest_id) in virt_guest_created() argument 308 if (guest_id == HYP_CLNT_ID) in virt_guest_created() 319 prtn->id = guest_id; in virt_guest_created() 345 IMSG("Added guest %d", guest_id); in virt_guest_created() 387 static struct guest_partition *find_guest_by_id_unlocked(uint16_t guest_id) in find_guest_by_id_unlocked() argument 392 if (!prtn->shutting_down && prtn->id == guest_id) in find_guest_by_id_unlocked() 429 struct guest_partition *virt_get_guest(uint16_t guest_id) in virt_get_guest() argument 435 prtn = find_guest_by_id_unlocked(guest_id); in virt_get_guest() 480 TEE_Result virt_guest_destroyed(uint16_t guest_id) in virt_guest_destroyed() argument 485 IMSG("Removing guest %"PRId16, guest_id); in virt_guest_destroyed() [all …]
|
| H A D | thread_spmc.c | 859 uint16_t guest_id = args->a5; in handle_framework_direct_request() local 860 TEE_Result res = virt_guest_created(guest_id); in handle_framework_direct_request() 875 uint16_t guest_id = args->a5; in handle_framework_direct_request() local 876 TEE_Result res = virt_guest_destroyed(guest_id); in handle_framework_direct_request() 1444 uint16_t guest_id = endpoint_id >> 16; in handle_mem_frag_tx() local 1446 if (!guest_id || virt_set_guest(guest_id)) { in handle_mem_frag_tx() 1519 uint16_t guest_id = 0; in handle_mem_reclaim() local 1522 guest_id = virt_find_guest_by_cookie(cookie); in handle_mem_reclaim() 1524 guest_id = (cookie >> FFA_MEMORY_HANDLE_PRTN_SHIFT) & in handle_mem_reclaim() 1527 if (!guest_id) in handle_mem_reclaim() [all …]
|
| /optee_os/core/kernel/ |
| H A D | notif.c | 41 bool notif_async_is_started(uint16_t guest_id) in notif_async_is_started() argument 43 struct guest_partition *prtn = virt_get_guest(guest_id); in notif_async_is_started() 83 void notif_deliver_atomic_event(enum notif_event ev, uint16_t guest_id) in notif_deliver_atomic_event() argument 85 struct guest_partition *prtn = virt_get_guest(guest_id); in notif_deliver_atomic_event() 109 nd->atomic_cb(nd, ev, guest_id); in notif_deliver_atomic_event()
|
| H A D | notif_default.c | 136 void notif_send_async(uint32_t value, uint16_t guest_id) in notif_send_async() argument 145 prtn = virt_get_guest(guest_id); in notif_send_async()
|
| /optee_os/core/arch/riscv/tee/ |
| H A D | entry_fast.c | 139 uint16_t guest_id = args->a1; in tee_entry_vm_created() local 147 if (virt_guest_created(guest_id)) in tee_entry_vm_created() 155 uint16_t guest_id = args->a1; in tee_entry_vm_destroyed() local 163 if (virt_guest_destroyed(guest_id)) in tee_entry_vm_destroyed()
|
| /optee_os/core/arch/arm/tee/ |
| H A D | entry_fast.c | 200 uint16_t guest_id = args->a1; in tee_entry_vm_created() local 208 if (virt_guest_created(guest_id)) in tee_entry_vm_created() 216 uint16_t guest_id = args->a1; in tee_entry_vm_destroyed() local 224 if (virt_guest_destroyed(guest_id)) in tee_entry_vm_destroyed()
|