Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 55) sorted by relevance

123

/development/host/windows/usb/api/
Dadb_object_handle.cpp55 LONG ret = InterlockedDecrement(&ref_count_); in Release() local
56 ATLASSERT(ret >= 0); in Release()
57 if (0 == ret) { in Release()
61 return ret; in Release()
65 ADBAPIHANDLE ret = NULL; in CreateHandle() local
77 ret = reinterpret_cast<ADBAPIHANDLE>(next_adb_handle_value); in CreateHandle()
80 the_map[ret] = this; in CreateHandle()
83 adb_handle_ = ret; in CreateHandle()
86 ret = NULL; in CreateHandle()
96 return ret; in CreateHandle()
[all …]
Dadb_api.cpp46 ADBAPIHANDLE ret = NULL; in AdbEnumInterfaces() local
57 ret = enum_obj->CreateHandle(); in AdbEnumInterfaces()
66 return ret; in AdbEnumInterfaces()
84 bool ret = adb_ienum_object->Next(info, size); in AdbNextInterface() local
88 return ret; in AdbNextInterface()
99 bool ret = adb_ienum_object->Reset(); in AdbResetInterfaceEnum() local
103 return ret; in AdbResetInterfaceEnum()
109 ADBAPIHANDLE ret = NULL; in AdbCreateInterfaceByName() local
131 ret = obj->CreateHandle(); in AdbCreateInterfaceByName()
139 return ret; in AdbCreateInterfaceByName()
[all …]
Dadb_legacy_interface.cpp127 BOOL ret = DeviceIoControl(usb_device_handle, in GetSerialNumber() local
135 ULONG error = ret ? NO_ERROR : GetLastError(); in GetSerialNumber()
192 BOOL ret = DeviceIoControl(usb_device_handle, in GetEndpointInformation() local
198 ATLASSERT(!ret || (sizeof(AdbEndpointInformation) == ret_bytes)); in GetEndpointInformation()
201 ULONG error = ret ? NO_ERROR : GetLastError(); in GetEndpointInformation()
209 return ret ? true : false; in GetEndpointInformation()
272 ADBAPIHANDLE ret = adb_endpoint->CreateHandle(endpoint_path.c_str(), in OpenEndpoint() local
278 return ret; in OpenEndpoint()
284 BOOL ret = DeviceIoControl(usb_device_handle, in CacheUsbDeviceDescriptor() local
291 ATLASSERT(!ret || (sizeof(USB_DEVICE_DESCRIPTOR) == ret_bytes)); in CacheUsbDeviceDescriptor()
[all …]
Dadb_legacy_endpoint_object.cpp76 ADBAPIHANDLE ret = adb_io_completion->CreateHandle(); in CommonAsyncReadWrite() local
78 if (NULL != ret) { in CommonAsyncReadWrite()
117 ret = NULL; in CommonAsyncReadWrite()
125 return ret; in CommonAsyncReadWrite()
150 BOOL ret = TRUE; in CommonSyncReadWrite() local
154 ret = is_read ? in CommonSyncReadWrite()
165 ret = DeviceIoControl(usb_handle(), in CommonSyncReadWrite()
175 if (!ret && (ERROR_IO_PENDING != GetLastError())) { in CommonSyncReadWrite()
182 ret = GetOverlappedResult(usb_handle(), &overlapped, &transferred, TRUE); in CommonSyncReadWrite()
183 if (ret && (NULL != bytes_transferred)) { in CommonSyncReadWrite()
[all …]
Dadb_legacy_io_completion.cpp52 bool ret = GetOverlappedResult(parent_legacy_io_object()->usb_handle(), in GetOvelappedIoResult() local
64 if (wait && ret && (0 == transfer) && (0 != expected_transfer_size_) && in GetOvelappedIoResult()
68 ret = GetOverlappedResult(parent_legacy_io_object()->usb_handle(), in GetOvelappedIoResult()
74 if (!ret || (0 != transfer) || in GetOvelappedIoResult()
89 return ret; in GetOvelappedIoResult()
Dadb_helper_routines.cpp89 bool ret = false; in EnumerateDeviceInterfaces() local
129 ret = true; in EnumerateDeviceInterfaces()
139 if (ret) in EnumerateDeviceInterfaces()
142 return ret; in EnumerateDeviceInterfaces()
156 bool ret = false; in EnumerateDeviceInterfaces() local
160 ret = EnumerateDeviceInterfaces(hardware_dev_info, in EnumerateDeviceInterfaces()
167 ULONG error_to_report = ret ? NO_ERROR : GetLastError(); in EnumerateDeviceInterfaces()
175 return ret; in EnumerateDeviceInterfaces()
263 BOOL ret = DeviceIoControl(usb_device_handle, in IsLegacyInterface() local
273 return ret ? true : false; in IsLegacyInterface()
Dadb_api_instance.h87 LONG ret = InterlockedDecrement(&ref_count_); in Release() local
88 if (0 == ret) in Release()
91 return ret; in Release()
/development/tools/emulator/opengl/shared/OpenglOsUtils/
DosThreadUnix.cpp38 int ret = pthread_create(&m_thread, NULL, Thread::thread_main, this); in start() local
39 if(ret) { in start()
58 long long int ret=(long long int)retval; in wait() local
60 *exitStatus = (int)ret; in wait()
68 bool ret = false; in trywait() local
73 ret = true; in trywait()
76 return ret; in trywait()
83 int ret = self->Main(); in thread_main() local
87 self->m_exitStatus = ret; in thread_main()
90 return (void*)ret; in thread_main()
DosProcessUnix.cpp152 int ret=0; in wait() local
154 pid_t pid = waitpid(m_pid,&ret,0); in wait()
158 *exitStatus = ret; in wait()
169 int ret=0; in tryWait() local
172 pid_t pid = waitpid(m_pid,&ret,WNOHANG); in tryWait()
178 return ((char)WEXITSTATUS(ret)); in tryWait()
/development/ndk/sources/android/libportable/arch-x86/
Dstat.c23 int ret = stat(path, &x86_stat); in stat_portable() local
25 return ret; in stat_portable()
31 int ret = fstat(fd, &x86_stat); in fstat_portable() local
33 return ret; in fstat_portable()
39 int ret = lstat(path, &x86_stat); in lstat_portable() local
41 return ret; in lstat_portable()
47 int ret = fstatat(dirfd, path, &x86_stat, flags); in fstatat_portable() local
49 return ret; in fstatat_portable()
/development/ndk/sources/android/libportable/arch-mips/
Dstat.c23 int ret = stat(path, &mips_stat); in stat_portable() local
25 return ret; in stat_portable()
31 int ret = fstat(fd, &mips_stat); in fstat_portable() local
33 return ret; in fstat_portable()
39 int ret = lstat(path, &mips_stat); in lstat_portable() local
41 return ret; in lstat_portable()
47 int ret = fstatat(dirfd, path, &mips_stat, flags); in fstatat_portable() local
49 return ret; in fstatat_portable()
Dstatfs.c38 int ret = statfs(path, &mips_stat); in statfs_portable() local
40 return ret; in statfs_portable()
46 int ret = fstatfs(fd, &mips_stat); in fstatfs_portable() local
48 return ret; in fstatfs_portable()
Dmmap.c70 void *ret; in mmap_portable() local
80 ret = __mmap2(addr, size, mips_prot, mips_flags, fd, in mmap_portable()
83 if (ret && (mips_flags & (MAP_PRIVATE | MAP_ANONYMOUS))) in mmap_portable()
84 madvise(ret, size, MADV_MERGEABLE); in mmap_portable()
86 return ret; in mmap_portable()
Dpoll.c55 int ret; in poll_portable() local
60 ret = poll(fds, nfds, timeout); in poll_portable()
67 return ret; in poll_portable()
/development/host/windows/usb/winusb/
Dadb_winusb_io_completion.cpp38 LONG ret = InterlockedDecrement(&ref_count_); in Release() local
39 ATLASSERT(ret >= 0); in Release()
40 if (0 == ret) { in Release()
44 return ret; in Release()
60 bool ret = WinUsb_GetOverlappedResult( in GetOvelappedIoResult() local
72 if (wait && ret && (0 == transfer) && (0 != expected_transfer_size_) && in GetOvelappedIoResult()
76 ret = WinUsb_GetOverlappedResult( in GetOvelappedIoResult()
82 if (!ret || (0 != transfer) || in GetOvelappedIoResult()
97 return ret; in GetOvelappedIoResult()
Dadb_winusb_endpoint_object.cpp38 LONG ret = InterlockedDecrement(&ref_count_); in Release() local
39 ATLASSERT(ret >= 0); in Release()
40 if (0 == ret) { in Release()
44 return ret; in Release()
70 ADBAPIHANDLE ret = adb_io_completion->CreateHandle(); in CommonAsyncReadWrite() local
72 if (NULL != ret) { in CommonAsyncReadWrite()
97 ret = NULL; in CommonAsyncReadWrite()
105 return ret; in CommonAsyncReadWrite()
123 BOOL ret = TRUE; in CommonSyncReadWrite() local
126 ret = is_read ? in CommonSyncReadWrite()
[all …]
Dadb_winusb_interface.cpp45 LONG ret = InterlockedDecrement(&ref_count_); in Release() local
46 ATLASSERT(ret >= 0); in Release()
47 if (0 == ret) { in Release()
51 return ret; in Release()
211 bool ret = true; in GetSerialNumber() local
222 ret = false; in GetSerialNumber()
234 return ret; in GetSerialNumber()
335 ADBAPIHANDLE ret = adb_endpoint->CreateHandle(); in OpenEndpoint() local
339 return ret; in OpenEndpoint()
/development/tools/emulator/system/libqemu/
Dtest_guest_1.c70 int ret = pipe_send(pipe, buff, len); in main() local
71 if (ret < 0) { in main()
79 ret = pipe_recv(pipe, buff2, len); in main()
80 if (ret < 0) { in main()
81 fprintf(stderr, "Receiving failed (ret=%d): %s\n", ret, strerror(errno)); in main()
84 printf("%4d: Received %d bytes\n", count, ret); in main()
86 if (ret != len) { in main()
87 fprintf(stderr, "Message size mismatch sent=%d received=%d\n", len, ret); in main()
Dtest_util.c88 int ret; in pipe_send() local
91 ret = write(pipe->socket, ptr, bufflen); in pipe_send()
92 if (ret < 0) { in pipe_send()
98 if (ret == 0) { in pipe_send()
102 ptr += ret; in pipe_send()
103 bufflen -= ret; in pipe_send()
111 int ret; in pipe_recv() local
114 ret = read(pipe->socket, buff, bufflen); in pipe_recv()
115 if (ret < 0) { in pipe_recv()
121 if (ret == 0) { in pipe_recv()
[all …]
Dtest_host_1.c211 int ret, count; in main() local
213 ret = TFR(read(client, buff, sizeof(buff))); in main()
214 if (ret < 0) { in main()
219 if (ret == 0) { in main()
222 count = ret; in main()
227 ret = TFR(write(client, p, count)); in main()
228 if (ret < 0) { in main()
235 p += ret; in main()
236 count -= ret; in main()
Dtest_guest_2.c163 int ret = pipe_send(pipe, buffer, bufferSize); in main() local
166 if (ret < 0) { in main()
176 ret = pipe_recv(pipe, buffer2 + pos, len); in main()
177 if (ret < 0) { in main()
178 fprintf(stderr, "Receiving failed (ret=%d): %s\n", ret, strerror(errno)); in main()
181 if (ret == 0) { in main()
185 pos += ret; in main()
186 len -= ret; in main()
Dtest_host_2.c112 int ret, count; in main() local
114 ret = TFR(read(client, buff, sizeof(buff))); in main()
115 if (ret < 0) { in main()
120 if (ret == 0) { in main()
/development/tools/emulator/opengl/shared/OpenglCodecCommon/
DUnixStream.cpp54 int ret = 0; in make_unix_path() local
62 ret = ::lstat(tmp, &st); in make_unix_path()
63 } while (ret < 0 && errno == EINTR); in make_unix_path()
65 if (ret < 0 && errno == ENOENT) { in make_unix_path()
67 ret = ::mkdir(tmp, 0766); in make_unix_path()
68 } while (ret < 0 && errno == EINTR); in make_unix_path()
69 if (ret < 0) { in make_unix_path()
74 else if (ret < 0) { in make_unix_path()
/development/ndk/platforms/android-9/arch-x86/include/asm/
Dlinkage_32.h25 #define prevent_tail_call(ret) __asm__ ("" : "=r" (ret) : "0" (ret)) argument
/development/ndk/platforms/android-3/arch-arm/include/asm/
Dlocks.h19ret; __asm__ __volatile__( "@ down_op_ret\n" "1: ldrex lr, [%1]\n" " sub lr, lr, %2\n" " st…
38ret; __asm__ __volatile__( "@ down_op_ret\n" " mrs ip, cpsr\n" " orr lr, ip, #128\n" " msr …

123