/third_party/mesa3d/include/android_stub/log/ |
H A D | log_event_list.h | 120 int retval = android_log_destroy(&ctx); in close() local 121 if (retval < 0) ret = retval; in close() 122 return retval; in close() 136 int retval = android_log_write_list_begin(ctx); in begin() local 137 if (retval < 0) ret = retval; in begin() 141 int retval = android_log_write_list_end(ctx); in end() local 142 if (retval < 0) ret = retval; in end() 147 int retval = android_log_write_int32(ctx, value); operator <<() local 153 int retval = android_log_write_int32(ctx, static_cast<int32_t>(value)); operator <<() local 159 int retval = android_log_write_int32(ctx, value ? 1 : 0); operator <<() local 165 int retval = android_log_write_int64(ctx, value); operator <<() local 171 int retval = android_log_write_int64(ctx, static_cast<int64_t>(value)); operator <<() local 177 int retval = android_log_write_string8(ctx, value); operator <<() local 183 int retval = operator <<() local 190 int retval = android_log_write_float32(ctx, value); operator <<() local 198 int retval = android_log_write_list(ctx, id); write() local 218 int retval = android_log_write_int32(ctx, value); AppendInt() local 224 int retval = android_log_write_int64(ctx, value); AppendLong() local 230 int retval = android_log_write_string8(ctx, value); AppendString() local 236 int retval = android_log_write_string8_len(ctx, value, len); AppendString() local 242 int retval = AppendString() local 249 int retval = Append() local 256 int retval = android_log_write_float32(ctx, value); AppendFloat() local 268 int retval = android_log_write_string8_len(ctx, value, len); Append() local [all...] |
/third_party/skia/third_party/externals/freetype/src/type1/ |
H A D | t1driver.c | 192 FT_ULong retval = 0; /* always >= 1 if valid */ in t1_ps_get_font_value() local 202 retval = sizeof ( type1->font_type ); in t1_ps_get_font_value() 203 if ( value && value_len >= retval ) in t1_ps_get_font_value() 214 retval = sizeof ( val ); in t1_ps_get_font_value() 215 if ( value && value_len >= retval ) in t1_ps_get_font_value() 244 retval = sizeof ( val ); in t1_ps_get_font_value() 245 if ( value && value_len >= retval ) in t1_ps_get_font_value() 268 retval = sizeof ( type1->paint_type ); in t1_ps_get_font_value() 269 if ( value && value_len >= retval ) in t1_ps_get_font_value() 276 retval in t1_ps_get_font_value() [all...] |
/vendor/hisilicon/hispark_pegasus/demo/environment_test_demo/ |
H A D | aht20.c | 105 uint32_t retval = I2cRead(AHT20_I2C_IDX, AHT20_READ_ADDR, &data); local 106 if (retval != WIFI_IOT_SUCCESS) { 107 printf("I2cRead() failed, %0X!\n", retval); 108 return retval; 118 uint32_t retval = I2cWrite(AHT20_I2C_IDX, AHT20_WRITE_ADDR, &data); in AHT20_Write() local 119 if (retval != WIFI_IOT_SUCCESS) { in AHT20_Write() 120 printf("I2cWrite(%02X) failed, %0X!\n", buffer[0], retval); in AHT20_Write() 121 return retval; in AHT20_Write() 151 uint32_t retval = 0; in AHT20_Calibrate() local 155 retval in AHT20_Calibrate() 189 uint32_t retval = 0, i = 0; AHT20_GetMeasureResult() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/i2caht20_demo/src/ |
H A D | aht20.c | 105 uint32_t retval = I2cRead(AHT20_I2C_IDX, AHT20_READ_ADDR, &data); local 106 if (retval != WIFI_IOT_SUCCESS) { 107 printf("I2cRead() failed, %0X!\n", retval); 108 return retval; 118 uint32_t retval = I2cWrite(AHT20_I2C_IDX, AHT20_WRITE_ADDR, &data); in AHT20_Write() local 119 if (retval != WIFI_IOT_SUCCESS) { in AHT20_Write() 120 printf("I2cWrite(%02X) failed, %0X!\n", buffer[0], retval); in AHT20_Write() 121 return retval; in AHT20_Write() 151 uint32_t retval = 0; in AHT20_Calibrate() local 158 retval in AHT20_Calibrate() 192 uint32_t retval = 0, i = 0; AHT20_GetMeasureResult() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/samart_environmental_monitoring_system_demo/environment/ |
H A D | aht20.c | 98 uint32_t retval = IoTI2cRead(AHT20_I2C_IDX, AHT20_READ_ADDR, buffer, buffLen); 99 if (retval != IOT_SUCCESS) { 100 printf("I2cRead() failed, %0X!\n", retval); 101 return retval; 108 uint32_t retval = IoTI2cWrite(AHT20_I2C_IDX, AHT20_WRITE_ADDR, buffer, buffLen); in AHT20_Write() local 109 if (retval != IOT_SUCCESS) { in AHT20_Write() 110 printf("I2cWrite() failed, %0X!\n", retval); in AHT20_Write() 111 return retval; in AHT20_Write() 141 uint32_t retval = 0; in AHT20_Calibrate() local 145 retval in AHT20_Calibrate() 179 uint32_t retval = 0, i = 0; AHT20_GetMeasureResult() local [all...] |
/third_party/python/Tools/scripts/ |
H A D | umarshal.py | 234 retval: Any = tuple(self.r_object() for _ in range(n)) 235 self.r_ref_insert(retval, idx, flag) 236 return retval 240 retval = tuple(self.r_object() for _ in range(n)) 241 self.r_ref_insert(retval, idx, flag) 242 return retval 245 retval = R_REF([]) 247 retval.append(self.r_object()) 248 return retval 250 retval [all...] |
/third_party/libsnd/tests/ |
H A D | stdio_test.c | 89 int file_size, retval ; in stdio_test() local 94 if ((retval = system (buffer))) in stdio_test() 95 { retval = WIFEXITED (retval) ? WEXITSTATUS (retval) : 1 ; in stdio_test() 96 printf ("%s : %s", buffer, (strerror (retval))) ; in stdio_test() 107 if ((retval = system (buffer))) in stdio_test() 108 { retval = WIFEXITED (retval) ? WEXITSTATUS (retval) in stdio_test() [all...] |
/third_party/eudev/src/scsi_id/ |
H A D | scsi_serial.c | 330 int retval; in scsi_inquiry() local 364 retval = ioctl(fd, SG_IO, io_buf); in scsi_inquiry() 365 if (retval < 0) { in scsi_inquiry() 375 retval = sg_err_category4(udev, io_buf); in scsi_inquiry() 377 retval = sg_err_category3(udev, io_buf); in scsi_inquiry() 379 switch (retval) { in scsi_inquiry() 385 retval = 0; in scsi_inquiry() 390 retval = scsi_dump_v4(udev, dev_scsi, io_buf); in scsi_inquiry() 392 retval = scsi_dump(udev, dev_scsi, io_buf); in scsi_inquiry() 395 if (!retval) { in scsi_inquiry() 416 int retval; do_scsi_page0_inquiry() local 623 int retval; do_scsi_page83_inquiry() local 713 int retval; do_scsi_page83_prespc3_inquiry() local 775 int retval; do_scsi_page80_inquiry() local 867 int retval; scsi_get_serial() local [all...] |
H A D | scsi_id.c | 174 int retval = 0; in get_file_options() local 224 retval = log_oom(); in get_file_options() 233 retval = log_oom(); in get_file_options() 244 retval = log_oom(); in get_file_options() 255 retval = -1; in get_file_options() 276 if (retval == 0) { in get_file_options() 287 retval = log_oom(); in get_file_options() 302 retval = 1; in get_file_options() 305 if (retval != 0) in get_file_options() 307 return retval; in get_file_options() 420 int retval; per_dev_options() local 474 int retval; set_inq_values() local 504 int retval = 0; scsi_id() local 579 int retval = 0; main() local [all...] |
/third_party/python/Modules/_decimal/libmpdec/ |
H A D | bits.h | 108 mpd_size_t retval; in mpd_bsr() local 116 :"=r" (retval) in mpd_bsr() 121 return (int)retval; in mpd_bsr() 130 mpd_size_t retval; in mpd_bsf() local 138 :"=r" (retval) in mpd_bsf() 143 return (int)retval; in mpd_bsf() 155 unsigned long retval; in mpd_bsr() local 158 _BitScanReverse64(&retval, a); in mpd_bsr() 160 _BitScanReverse(&retval, a); in mpd_bsr() 163 return (int)retval; in mpd_bsr() 172 unsigned long retval; mpd_bsf() local [all...] |
/third_party/mesa3d/src/glx/ |
H A D | single2.c | 128 GLuint retval = GL_NO_ERROR; in __indirect_glGetError() local 133 retval = gc->error; in __indirect_glGetError() 135 return retval; in __indirect_glGetError() 141 retval = reply.error; in __indirect_glGetError() 144 return retval; in __indirect_glGetError() 157 GLboolean retval = GL_TRUE; in get_client_data() local 170 retval = __glXGetArrayEnable(state, cap, 0, data); in get_client_data() 174 retval = __glXGetArraySize(state, GL_VERTEX_ARRAY, 0, data); in get_client_data() 177 retval = __glXGetArraySize(state, GL_COLOR_ARRAY, 0, data); in get_client_data() 180 retval in get_client_data() 576 GLint retval = 0; __indirect_glRenderMode() local 760 GLboolean retval = 0; __indirect_glIsEnabled() local 848 GLboolean retval = (GLboolean) 0; __indirect_glAreTexturesResident() local 889 GLboolean retval = (GLboolean) 0; glAreTexturesResidentEXT() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/udpserver_demo/ |
H A D | udp_server_test.c | 25 ssize_t retval = 0; local 35 retval = bind(sockfd, (struct sockaddr *)&serverAddr, sizeof(serverAddr)); 36 if (retval < 0) { 37 printf("bind failed, %ld!\r\n", retval); 44 retval = recvfrom(sockfd, message, sizeof(message), 0, (struct sockaddr *)&clientAddr, &clientAddrLen); 45 if (retval < 0) { 46 printf("recvfrom failed, %ld!\r\n", retval); 50 printf("recv message {%s} %ld done!\r\n", message, retval); 53 retval = sendto(sockfd, message, strlen(message), 0, (struct sockaddr *)&clientAddr, sizeof(clientAddr)); 54 if (retval < [all...] |
/vendor/hisilicon/hispark_pegasus/demo/samart_environmental_monitoring_system_demo/udpserver_env/ |
H A D | udp_server_test.c | 34 ssize_t retval = 0; local 44 retval = bind(sockfd, (struct sockaddr *)&serverAddr, sizeof(serverAddr)); 45 if (retval < 0) { 46 printf("bind failed, %ld!\r\n", retval); 54 retval = recvfrom(sockfd, message, sizeof(message), 0, (struct sockaddr *)&clientAddr, &clientAddrLen); 55 printf("recv message %s %ld done!\r\n", message, retval); 65 if (retval < 0) { 66 printf("recvfrom failed, %ld!\r\n", retval); 78 retval = sendto(sockfd, megsend, strlen(megsend), 0, (struct sockaddr *)&clientAddr, sizeof(clientAddr)); 79 if (retval < [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_return/ |
H A D | 3-1.c | 48 int fd, retval; in main() local 80 retval = aio_error(&aiocb); in main() 81 } while (retval == EINPROGRESS); in main() 83 retval = aio_return(&aiocb); in main() 85 if (retval == -1) { in main() 87 printf(TNAME " Error at aio_return(): %d, %s\n", retval, in main() 106 retval = aio_error(&aiocb); in main() 107 } while (retval == EINPROGRESS); in main() 109 retval = aio_return(&aiocb); in main() 111 if (retval in main() [all...] |
H A D | 4-1.c | 47 int fd, retval; in main() local 78 retval = aio_error(&aiocb); in main() 79 } while (retval == EINPROGRESS); in main() 81 retval = aio_error(&aiocb); in main() 83 if (retval == 0) { in main() 90 retval = aio_return(&aiocb2); in main() 92 if (retval != -1 || aio_error(&aiocb) != EINVAL) { in main() 98 retval = aio_return(&aiocb); in main() 100 if (retval != BUF_SIZE) { in main() 102 printf(TNAME " Error at aio_return(): %d, %s\n", retval, in main() [all...] |
/third_party/ltp/tools/genload/ |
H A D | stress.c | 90 int i, pid, children = 0, retval = 0; in main() local 290 retval += ret; in main() 299 ++retval; in main() 307 ++retval; in main() 322 if (retval) { in main() 328 exit(retval); in main() 469 int pid, retval = 0; in hogcpu() local 493 ++retval; in hogcpu() 517 retval += ret; in hogcpu() 534 ++retval; in hogcpu() 545 int pid, retval = 0; hogio() local 620 int pid, retval = 0; hogvm() local 742 int fd, pid, retval = 0; hoghdd() local [all...] |
H A D | genload.c | 90 int i, pid, children = 0, retval = 0; in main() local 290 retval += ret; in main() 299 ++retval; in main() 307 ++retval; in main() 322 if (retval) { in main() 328 exit(retval); in main() 469 int pid, retval = 0; in hogcpu() local 493 ++retval; in hogcpu() 517 retval += ret; in hogcpu() 534 ++retval; in hogcpu() 545 int pid, retval = 0; hogio() local 620 int pid, retval = 0; hogvm() local 742 int fd, pid, retval = 0; hoghdd() local [all...] |
/third_party/gptfdisk/ |
H A D | diskio-windows.cc | 173 int retval = 0; in DiskSync() local 187 retval = 1; in DiskSync() 194 return retval; in DiskSync() 199 int retval = 1; in Seek() local 204 retval = OpenForRead(); in Seek() 209 retval = SetFilePointerEx(fd, seekTo, NULL, FILE_BEGIN); in Seek() 210 if (retval == 0) { in Seek() 213 retval = 0; in Seek() 216 return retval; in Seek() 226 DWORD retval in Read() local 268 int blockSize = 512, i, numBlocks, retval = 0; Write() local [all...] |
/third_party/elfutils/libelf/ |
H A D | elf_clone.c | 43 Elf *retval = NULL; in elf_clone() local 56 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset, in elf_clone() 59 if (retval != NULL) in elf_clone() 62 retval->flags = ELF_F_DIRTY; in elf_clone() 65 retval->state.elf.scnincr = 10; in elf_clone() 70 retval->state.elf.scns_last = &retval->state.elf32.scns; in elf_clone() 71 retval->state.elf32.scns.max = elf->state.elf32.scns.max; in elf_clone() 73 retval->class = elf->class; in elf_clone() 80 return retval; in elf_clone() [all...] |
/third_party/skia/third_party/externals/libwebp/src/enc/ |
H A D | backward_references_enc.h | 48 PixOrCopy retval; in PixOrCopyCreateCopy() local 49 retval.mode = kCopy; in PixOrCopyCreateCopy() 50 retval.argb_or_distance = distance; in PixOrCopyCreateCopy() 51 retval.len = len; in PixOrCopyCreateCopy() 52 return retval; in PixOrCopyCreateCopy() 56 PixOrCopy retval; in PixOrCopyCreateCacheIdx() local 59 retval.mode = kCacheIdx; in PixOrCopyCreateCacheIdx() 60 retval.argb_or_distance = idx; in PixOrCopyCreateCacheIdx() 61 retval.len = 1; in PixOrCopyCreateCacheIdx() 62 return retval; in PixOrCopyCreateCacheIdx() [all...] |
/vendor/hisilicon/hispark_pegasus/demo/lwip_demo/ |
H A D | lwip_tcp_server.c | 36 ssize_t retval = bind(sockfd, (struct sockaddr *)&serverAddr, sizeof(serverAddr)); // 绑定端口 in TcpServerTest() local 37 if (retval < 0) { in TcpServerTest() 38 printf("bind failed, %ld!\r\n", retval); in TcpServerTest() 44 retval = listen(sockfd, backlog); // 开始监听 in TcpServerTest() 45 if (retval < 0) { in TcpServerTest() 67 retval = recv(connfd, g_request, sizeof(g_request), 0); in TcpServerTest() 68 if (retval < 0) { in TcpServerTest() 69 printf("recv g_request failed, %ld!\r\n", retval); in TcpServerTest() 77 retval = send(connfd, g_request, strlen(g_request), 0); in TcpServerTest() 78 if (retval < in TcpServerTest() [all...] |
/vendor/hisilicon/hispark_pegasus/demo/smart_night_light_demo/night_light/ |
H A D | ssd1306test.c | 103 unsigned int retval = 0; in OledTask() local 105 retval = IoTGpioInit(THIRTEEN); in OledTask() 106 if (retval != IOT_SUCCESS) { in OledTask() 107 return retval; in OledTask() 109 retval = IoTGpioInit(FOURTEEN); in OledTask() 110 if (retval != IOT_SUCCESS) { in OledTask() 111 return retval; in OledTask() 113 retval = hi_io_set_func(THIRTEEN, SIX); in OledTask() 114 if (retval != IOT_SUCCESS) { in OledTask() 115 return retval; in OledTask() [all...] |
/third_party/node/deps/brotli/c/enc/ |
H A D | bit_cost.h | 24 double retval = 0; in ShannonEntropy() local 33 retval -= (double)p * FastLog2(p); in ShannonEntropy() 37 retval -= (double)p * FastLog2(p); in ShannonEntropy() 39 if (sum) retval += (double)sum * FastLog2(sum); in ShannonEntropy() 41 return retval; in ShannonEntropy() 47 double retval = ShannonEntropy(population, size, &sum); in BitsEntropy() local 48 if (retval < sum) { in BitsEntropy() 50 retval = (double)sum; in BitsEntropy() 52 return retval; in BitsEntropy()
|
/third_party/skia/third_party/externals/brotli/c/enc/ |
H A D | bit_cost.h | 24 double retval = 0; in ShannonEntropy() local 33 retval -= (double)p * FastLog2(p); in ShannonEntropy() 37 retval -= (double)p * FastLog2(p); in ShannonEntropy() 39 if (sum) retval += (double)sum * FastLog2(sum); in ShannonEntropy() 41 return retval; in ShannonEntropy() 47 double retval = ShannonEntropy(population, size, &sum); in BitsEntropy() local 48 if (retval < sum) { in BitsEntropy() 50 retval = (double)sum; in BitsEntropy() 52 return retval; in BitsEntropy()
|
/third_party/libsnd/src/ |
H A D | test_file_io.c | 118 sf_count_t retval ; in file_read_write_test() local 138 if ((retval = psf_get_filelen (psf)) != sizeof (data_out)) in file_read_write_test() 139 { printf ("\n\nLine %d: file length after write is not correct (%" PRId64 " should be %zd).\n\n", __LINE__, retval, sizeof (data_out)) ; in file_read_write_test() 140 if (retval == 0) in file_read_write_test() 148 if ((retval = psf_get_filelen (psf)) != 2 * sizeof (data_out)) in file_read_write_test() 149 { printf ("\n\nLine %d: file length after write is not correct. (%" PRId64 " should be %zd)\n\n", __LINE__, retval, 2 * sizeof (data_out)) ; in file_read_write_test() 230 if ((retval = psf_get_filelen (psf)) != 3 * sizeof (data_out)) in file_read_write_test() 231 { printf ("\n\nLine %d: file length after write is not correct. (%" PRId64 " should be %zd)\n\n", __LINE__, retval, 3 * sizeof (data_out)) ; in file_read_write_test() 246 if ((retval = psf_get_filelen (psf)) != 3 * sizeof (data_out)) in file_read_write_test() 247 { printf ("\n\nLine %d: file length after write is not correct. (%" PRId64 " should be %zd)\n\n", __LINE__, retval, in file_read_write_test() 396 { sf_count_t retval ; test_write_or_die() local 414 { sf_count_t retval ; test_read_or_die() local 432 { sf_count_t retval ; test_seek_or_die() local 447 sf_count_t retval ; test_tell_or_die() local [all...] |