Lines Matching refs:a0
144 .a0 = FFA_VERSION, .a1 = FFA_DRIVER_VERSION, in ffa_version_check()
147 if ((s32)ver.a0 == FFA_RET_NOT_SUPPORTED) { in ffa_version_check()
152 if (FFA_MAJOR_VERSION(ver.a0) > FFA_MAJOR_VERSION(FFA_DRIVER_VERSION)) { in ffa_version_check()
154 FFA_MAJOR_VERSION(ver.a0), FFA_MINOR_VERSION(ver.a0), in ffa_version_check()
160 if (ver.a0 < FFA_MIN_VERSION) { in ffa_version_check()
162 FFA_MAJOR_VERSION(ver.a0), FFA_MINOR_VERSION(ver.a0), in ffa_version_check()
170 pr_info("Firmware version %d.%d found\n", FFA_MAJOR_VERSION(ver.a0), in ffa_version_check()
171 FFA_MINOR_VERSION(ver.a0)); in ffa_version_check()
172 *version = ffa_compatible_version_find(ver.a0); in ffa_version_check()
182 .a0 = FFA_RX_RELEASE, in ffa_rx_release()
185 if (ret.a0 == FFA_ERROR) in ffa_rx_release()
198 .a0 = FFA_FN_NATIVE(RXTX_MAP), in ffa_rxtx_map()
202 if (ret.a0 == FFA_ERROR) in ffa_rxtx_map()
213 .a0 = FFA_RXTX_UNMAP, .a1 = PACK_TARGET_INFO(vm_id, 0), in ffa_rxtx_unmap()
216 if (ret.a0 == FFA_ERROR) in ffa_rxtx_unmap()
234 .a0 = FFA_FEATURES, .a1 = func_feat_id, .a2 = input_props, in ffa_features()
237 if (id.a0 == FFA_ERROR) in ffa_features()
264 .a0 = FFA_PARTITION_INFO_GET, in __ffa_partition_info_get()
269 if (partition_info.a0 == FFA_ERROR) { in __ffa_partition_info_get()
339 .a0 = FFA_PARTITION_INFO_GET_REGS, in __ffa_partition_info_get_regs()
345 if (partition_info.a0 == FFA_ERROR) in __ffa_partition_info_get_regs()
435 .a0 = FFA_ID_GET, in ffa_id_get()
438 if (id.a0 == FFA_ERROR) in ffa_id_get()
448 while (ret->a0 == FFA_INTERRUPT || ret->a0 == FFA_YIELD) { in ffa_msg_send_wait_for_completion()
449 if (ret->a0 == FFA_YIELD) in ffa_msg_send_wait_for_completion()
453 .a0 = FFA_RUN, .a1 = ret->a1, in ffa_msg_send_wait_for_completion()
473 .a0 = req_id, .a1 = src_dst_ids, .a2 = 0, in ffa_msg_send_direct_req()
480 if (ret.a0 == FFA_ERROR) in ffa_msg_send_direct_req()
483 if (ret.a0 == resp_id) { in ffa_msg_send_direct_req()
518 .a0 = FFA_MSG_SEND2, .a1 = 0, .a2 = 0 in ffa_msg_send2()
521 if (ret.a0 == FFA_ERROR) in ffa_msg_send2()
537 .a0 = FFA_MSG_SEND_DIRECT_REQ2, in ffa_msg_send_direct_req2()
548 if (ret.a0 == FFA_ERROR) in ffa_msg_send_direct_req2()
551 if (ret.a0 == FFA_MSG_SEND_DIRECT_RESP2) { in ffa_msg_send_direct_req2()
565 .a0 = func_id, .a1 = len, .a2 = frag_len, in ffa_mem_first_frag()
569 while (ret.a0 == FFA_MEM_OP_PAUSE) in ffa_mem_first_frag()
571 .a0 = FFA_MEM_OP_RESUME, in ffa_mem_first_frag()
575 if (ret.a0 == FFA_ERROR) in ffa_mem_first_frag()
578 if (ret.a0 == FFA_SUCCESS) { in ffa_mem_first_frag()
581 } else if (ret.a0 == FFA_MEM_FRAG_RX) { in ffa_mem_first_frag()
596 .a0 = FFA_MEM_FRAG_TX, in ffa_mem_next_frag()
601 while (ret.a0 == FFA_MEM_OP_PAUSE) in ffa_mem_next_frag()
603 .a0 = FFA_MEM_OP_RESUME, in ffa_mem_next_frag()
607 if (ret.a0 == FFA_ERROR) in ffa_mem_next_frag()
610 if (ret.a0 == FFA_MEM_FRAG_RX) in ffa_mem_next_frag()
612 else if (ret.a0 == FFA_SUCCESS) in ffa_mem_next_frag()
769 .a0 = FFA_MEM_RECLAIM, in ffa_memory_reclaim()
774 if (ret.a0 == FFA_ERROR) in ffa_memory_reclaim()
786 .a0 = FFA_NOTIFICATION_BITMAP_CREATE, in ffa_notification_bitmap_create()
790 if (ret.a0 == FFA_ERROR) in ffa_notification_bitmap_create()
801 .a0 = FFA_NOTIFICATION_BITMAP_DESTROY, in ffa_notification_bitmap_destroy()
805 if (ret.a0 == FFA_ERROR) in ffa_notification_bitmap_destroy()
867 .a0 = func, .a1 = src_dst_ids, .a2 = flags, in ffa_notification_bind_common()
872 if (ret.a0 == FFA_ERROR) in ffa_notification_bind_common()
874 else if (ret.a0 != FFA_SUCCESS) in ffa_notification_bind_common()
887 .a0 = FFA_NOTIFICATION_SET, .a1 = src_dst_ids, .a2 = flags, in ffa_notification_set()
892 if (ret.a0 == FFA_ERROR) in ffa_notification_set()
894 else if (ret.a0 != FFA_SUCCESS) in ffa_notification_set()
914 .a0 = FFA_NOTIFICATION_GET, .a1 = rec_vcpu_ids, .a2 = flags, in ffa_notification_get()
917 if (ret.a0 == FFA_ERROR) in ffa_notification_get()
919 else if (ret.a0 != FFA_SUCCESS) in ffa_notification_get()
976 .a0 = FFA_FN_NATIVE(NOTIFICATION_INFO_GET), in ffa_notification_info_get()
979 if (ret.a0 != FFA_FN_NATIVE(SUCCESS) && ret.a0 != FFA_SUCCESS) { in ffa_notification_info_get()
982 ret.a0, ret.a2); in ffa_notification_info_get()
986 is_64b_resp = (ret.a0 == FFA_FN64_SUCCESS); in ffa_notification_info_get()
1033 invoke_ffa_fn((ffa_value_t){ .a0 = FFA_RUN, .a1 = target, }, &ret); in ffa_run()
1035 while (ret.a0 == FFA_INTERRUPT) in ffa_run()
1036 invoke_ffa_fn((ffa_value_t){ .a0 = FFA_RUN, .a1 = ret.a1, }, in ffa_run()
1039 if (ret.a0 == FFA_ERROR) in ffa_run()