Lines Matching refs:ffa

64 	mutex_lock(&optee->ffa.mutex);  in optee_shm_from_ffa_handle()
65 r = rhashtable_lookup_fast(&optee->ffa.global_ids, &global_id, in optee_shm_from_ffa_handle()
69 mutex_unlock(&optee->ffa.mutex); in optee_shm_from_ffa_handle()
86 mutex_lock(&optee->ffa.mutex); in optee_shm_add_ffa_handle()
87 rc = rhashtable_lookup_insert_fast(&optee->ffa.global_ids, &r->linkage, in optee_shm_add_ffa_handle()
89 mutex_unlock(&optee->ffa.mutex); in optee_shm_add_ffa_handle()
102 mutex_lock(&optee->ffa.mutex); in optee_shm_rem_ffa_handle()
103 r = rhashtable_lookup_fast(&optee->ffa.global_ids, &global_id, in optee_shm_rem_ffa_handle()
106 rc = rhashtable_remove_fast(&optee->ffa.global_ids, in optee_shm_rem_ffa_handle()
108 mutex_unlock(&optee->ffa.mutex); in optee_shm_rem_ffa_handle()
274 struct ffa_device *ffa_dev = optee->ffa.ffa_dev; in optee_ffa_shm_register()
317 struct ffa_device *ffa_dev = optee->ffa.ffa_dev; in optee_ffa_shm_unregister()
357 mem_ops = optee->ffa.ffa_dev->ops->mem_ops; in optee_ffa_shm_unregister_supp()
534 struct ffa_device *ffa_dev = optee->ffa.ffa_dev; in optee_ffa_yielding_call()
781 mutex_destroy(&optee->ffa.mutex); in optee_ffa_remove()
782 rhashtable_free_and_destroy(&optee->ffa.global_ids, rh_free_fn, NULL); in optee_ffa_remove()
822 optee->ffa.ffa_dev = ffa_dev; in optee_ffa_probe()
849 rc = rhashtable_init(&optee->ffa.global_ids, &shm_rhash_params); in optee_ffa_probe()
852 mutex_init(&optee->ffa.mutex); in optee_ffa_probe()
881 rhashtable_free_and_destroy(&optee->ffa.global_ids, rh_free_fn, NULL); in optee_ffa_probe()
884 mutex_destroy(&optee->ffa.mutex); in optee_ffa_probe()