Lines Matching refs:comm_buf

72 static efi_status_t optee_mm_communicate(void *comm_buf, ulong dsize)  in optee_mm_communicate()  argument
83 if (!comm_buf) in optee_mm_communicate()
86 mm_hdr = (struct efi_mm_communicate_header *)comm_buf; in optee_mm_communicate()
98 if (tee_shm_register(conn.tee, comm_buf, buf_size, 0, &shm)) { in optee_mm_communicate()
152 static efi_status_t mm_communicate(u8 *comm_buf, efi_uintn_t dsize) in mm_communicate() argument
159 mm_hdr = (struct efi_mm_communicate_header *)comm_buf; in mm_communicate()
162 ret = optee_mm_communicate(comm_buf, dsize); in mm_communicate()
188 u8 *comm_buf; in setup_mm_hdr() local
203 comm_buf = calloc(1, MM_COMMUNICATE_HEADER_SIZE + in setup_mm_hdr()
206 if (!comm_buf) { in setup_mm_hdr()
211 mm_hdr = (struct efi_mm_communicate_header *)comm_buf; in setup_mm_hdr()
221 return comm_buf; in setup_mm_hdr()
234 u8 *comm_buf = NULL; in get_max_payload() local
243 comm_buf = setup_mm_hdr((void **)&var_payload, payload_size, in get_max_payload()
245 if (!comm_buf) in get_max_payload()
248 ret = mm_communicate(comm_buf, payload_size); in get_max_payload()
279 free(comm_buf); in get_max_payload()
293 u8 *comm_buf = NULL; in set_property_int() local
301 comm_buf = setup_mm_hdr((void **)&smm_property, payload_size, in set_property_int()
304 if (!comm_buf) in set_property_int()
313 ret = mm_communicate(comm_buf, payload_size); in set_property_int()
316 free(comm_buf); in set_property_int()
326 u8 *comm_buf = NULL; in get_property_int() local
335 comm_buf = setup_mm_hdr((void **)&smm_property, payload_size, in get_property_int()
338 if (!comm_buf) in get_property_int()
345 ret = mm_communicate(comm_buf, payload_size); in get_property_int()
360 free(comm_buf); in get_property_int()
373 u8 *comm_buf = NULL; in efi_get_variable_int() local
399 comm_buf = setup_mm_hdr((void **)&var_acc, payload_size, in efi_get_variable_int()
401 if (!comm_buf) in efi_get_variable_int()
412 ret = mm_communicate(comm_buf, payload_size); in efi_get_variable_int()
437 free(comm_buf); in efi_get_variable_int()
449 u8 *comm_buf = NULL; in efi_get_next_variable_name_int() local
475 comm_buf = setup_mm_hdr((void **)&var_getnext, payload_size, in efi_get_next_variable_name_int()
478 if (!comm_buf) in efi_get_next_variable_name_int()
489 ret = mm_communicate(comm_buf, payload_size); in efi_get_next_variable_name_int()
501 free(comm_buf); in efi_get_next_variable_name_int()
514 u8 *comm_buf = NULL; in efi_set_variable_int() local
538 comm_buf = setup_mm_hdr((void **)&var_acc, payload_size, in efi_set_variable_int()
540 if (!comm_buf) in efi_set_variable_int()
577 ret = mm_communicate(comm_buf, payload_size); in efi_set_variable_int()
596 free(comm_buf); in efi_set_variable_int()
608 u8 *comm_buf; in efi_query_variable_info_int() local
611 comm_buf = setup_mm_hdr((void **)&mm_query_info, payload_size, in efi_query_variable_info_int()
614 if (!comm_buf) in efi_query_variable_info_int()
618 ret = mm_communicate(comm_buf, payload_size); in efi_query_variable_info_int()
627 free(comm_buf); in efi_query_variable_info_int()
681 u8 *comm_buf; in efi_variables_boot_exit_notify() local
685 comm_buf = setup_mm_hdr(NULL, 0, in efi_variables_boot_exit_notify()
687 if (comm_buf) in efi_variables_boot_exit_notify()
688 ret = mm_communicate(comm_buf, 0); in efi_variables_boot_exit_notify()
694 free(comm_buf); in efi_variables_boot_exit_notify()