Lines Matching refs:ret
39 int ret; in busy_test_connected() local
44 ret = event_signal(&busy_test_event, true); in busy_test_connected()
45 if (ret) { in busy_test_connected()
46 TRACEF("event_signal failed %d\n", ret); in busy_test_connected()
49 ret = handle_wait(chandle, &event, INFINITE_TIME); in busy_test_connected()
50 LTRACEF("got channel event (ret=%d): ev=%x\n", ret, event); in busy_test_connected()
53 ret = event_unsignal(&busy_test_event); in busy_test_connected()
54 if (ret) { in busy_test_connected()
55 TRACEF("event_unsignal failed %d\n", ret); in busy_test_connected()
65 int ret; in busy_test_server() local
68 ret = handle_wait(phandle, &event, INFINITE_TIME); in busy_test_server()
69 if (ret < 0) { in busy_test_server()
70 TRACEF("handle_wait failed: %d\n", ret); in busy_test_server()
73 LTRACEF("got port event (ret=%d): ev=%x\n", ret, event); in busy_test_server()
76 ret = ipc_port_accept(phandle, &chandle, &unused_uuid_p); in busy_test_server()
77 LTRACEF("accept returned %d\n", ret); in busy_test_server()
78 if (ret >= 0) { in busy_test_server()
87 int ret; in busy_test_init() local
91 ret = ipc_port_create(&kernel_uuid, "com.android.kernel.busy-test", 1, 1, in busy_test_init()
93 if (ret) { in busy_test_init()
97 ret = ipc_port_publish(phandle); in busy_test_init()
98 if (ret) { in busy_test_init()
105 ret = ERR_NO_MEMORY; in busy_test_init()
116 TRACEF("Failed to add busy_test: %d\n", ret); in busy_test_init()