Lines Matching refs:handle

107     handle_t handle;  in load_test_app()  local
108 handle = memref_create(app_start, aligned_app_size, MMAP_FLAG_PROT_READ); in load_test_app()
109 ASSERT_GT(handle, 0); in load_test_app()
115 sizeof(req), handle, NULL, 0); in load_test_app()
118 if (handle > 0) { in load_test_app()
119 close(handle); in load_test_app()
157 handle_t handle; in get_memory_handle_from_service() local
162 sizeof(req), INVALID_IPC_HANDLE, &handle, 1); in get_memory_handle_from_service()
165 ASSERT_NE(handle, INVALID_IPC_HANDLE); in get_memory_handle_from_service()
167 return handle; in get_memory_handle_from_service()
178 handle_t handle = get_memory_handle_from_service(channel, size); in get_memory_buffer_from_service() local
180 ASSERT_NE(handle, INVALID_IPC_HANDLE); in get_memory_buffer_from_service()
182 void* buf = mmap(NULL, size, PROT_READ | PROT_WRITE, 0, handle, 0); in get_memory_buffer_from_service()
185 close(handle); in get_memory_buffer_from_service()
190 if (handle != INVALID_IPC_HANDLE) { in get_memory_buffer_from_service()
191 close(handle); in get_memory_buffer_from_service()
256 handle_t handle = INVALID_IPC_HANDLE; in TEST_F() local
257 void* package = get_memory_buffer_from_malloc(package_size, &handle); in TEST_F()
259 ASSERT_NE(handle, INVALID_IPC_HANDLE); in TEST_F()
267 sizeof(req), handle, NULL, 0); in TEST_F()
275 if (handle != INVALID_IPC_HANDLE) { in TEST_F()
276 close(handle); in TEST_F()
283 handle_t handle = INVALID_IPC_HANDLE; in send_cbor_package() local
284 void* package = get_memory_buffer_from_malloc(cbor_size, &handle); in send_cbor_package()
286 ASSERT_NE(handle, INVALID_IPC_HANDLE); in send_cbor_package()
296 sizeof(req), handle, NULL, 0); in send_cbor_package()
304 if (handle != INVALID_IPC_HANDLE) { in send_cbor_package()
305 close(handle); in send_cbor_package()
656 handle_t handle = INVALID_IPC_HANDLE; in TEST_F() local
657 handle = get_memory_handle_from_service(_state->channel, page_size); in TEST_F()
659 ASSERT_NE(handle, INVALID_IPC_HANDLE); in TEST_F()
661 close(handle); in TEST_F()
662 handle = INVALID_IPC_HANDLE; in TEST_F()
672 &req, sizeof(req), handle, NULL, 0); in TEST_F()
677 if (handle != INVALID_IPC_HANDLE) { in TEST_F()
678 close(handle); in TEST_F()
684 handle_t handle = INVALID_IPC_HANDLE; in TEST_F() local
685 handle = get_memory_handle_from_service(_state->channel, page_size); in TEST_F()
687 ASSERT_NE(handle, INVALID_IPC_HANDLE); in TEST_F()
689 close(handle); in TEST_F()
690 handle = INVALID_IPC_HANDLE; in TEST_F()
705 if (handle != INVALID_IPC_HANDLE) { in TEST_F()
706 close(handle); in TEST_F()
714 handle_t handle = INVALID_IPC_HANDLE; in TEST_F() local
715 handle = get_memory_handle_from_service(_state->channel, buf_size); in TEST_F()
717 ASSERT_NE(handle, INVALID_IPC_HANDLE); in TEST_F()
732 if (handle != INVALID_IPC_HANDLE) { in TEST_F()
733 close(handle); in TEST_F()