Lines Matching refs:comm_buf
52 static efi_status_t tee_mm_communicate(void *comm_buf, size_t dsize) in tee_mm_communicate() argument
61 if (!comm_buf) in tee_mm_communicate()
64 mm_hdr = (struct efi_mm_communicate_header *)comm_buf; in tee_mm_communicate()
70 shm = tee_shm_register_kernel_buf(pvt_data.ctx, comm_buf, buf_size); in tee_mm_communicate()
125 static efi_status_t mm_communicate(u8 *comm_buf, size_t payload_size) in mm_communicate() argument
134 mm_hdr = (struct efi_mm_communicate_header *)comm_buf; in mm_communicate()
137 ret = tee_mm_communicate(comm_buf, dsize); in mm_communicate()
162 u8 *comm_buf; in setup_mm_hdr() local
176 comm_buf = kzalloc(MM_COMMUNICATE_HEADER_SIZE + in setup_mm_hdr()
179 if (!comm_buf) { in setup_mm_hdr()
184 mm_hdr = (struct efi_mm_communicate_header *)comm_buf; in setup_mm_hdr()
191 *dptr = comm_buf; in setup_mm_hdr()
207 u8 *comm_buf = NULL; in get_max_payload() local
214 var_payload = setup_mm_hdr(&comm_buf, payload_size, in get_max_payload()
220 ret = mm_communicate(comm_buf, payload_size); in get_max_payload()
242 kfree(comm_buf); in get_max_payload()
252 u8 *comm_buf = NULL; in get_property_int() local
261 &comm_buf, payload_size, in get_property_int()
270 ret = mm_communicate(comm_buf, payload_size); in get_property_int()
285 kfree(comm_buf); in get_property_int()
298 u8 *comm_buf = NULL; in tee_get_variable() local
317 var_acc = setup_mm_hdr(&comm_buf, payload_size, in tee_get_variable()
329 ret = mm_communicate(comm_buf, payload_size); in tee_get_variable()
350 kfree(comm_buf); in tee_get_variable()
361 u8 *comm_buf = NULL; in tee_get_next_variable() local
382 var_getnext = setup_mm_hdr(&comm_buf, payload_size, in tee_get_next_variable()
395 ret = mm_communicate(comm_buf, payload_size); in tee_get_next_variable()
407 kfree(comm_buf); in tee_get_next_variable()
420 u8 *comm_buf = NULL; in tee_set_variable() local
439 var_acc = setup_mm_hdr(&comm_buf, payload_size, in tee_set_variable()
467 ret = mm_communicate(comm_buf, payload_size); in tee_set_variable()
470 kfree(comm_buf); in tee_set_variable()
491 u8 *comm_buf; in tee_query_variable_info() local
494 mm_query_info = setup_mm_hdr(&comm_buf, payload_size, in tee_query_variable_info()
501 ret = mm_communicate(comm_buf, payload_size); in tee_query_variable_info()
510 kfree(comm_buf); in tee_query_variable_info()