/vendor/hisilicon/hispark_pegasus/demo/histreaming_client_demo/ |
H A D | wifi_connecter.c | 25 int ret = 0; in PrintLinkedInfo() local 104 err_t ret = netifapi_set_hostname(g_iface, hostname, strlen(hostname)); in ConnectToHotspot() local 105 printf("netifapi_set_hostname: %d\r\n", ret); in ConnectToHotspot() 107 ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot() 108 printf("netifapi_dhcp_start: %d\r\n", ret); in ConnectToHotspot() 112 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot() 113 printf("netifapi_netif_common: %d\r\n", ret); in ConnectToHotspot() 123 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot() local 124 printf("netifapi_dhcp_stop: %d\r\n", ret); in DisconnectWithHotspot()
|
/vendor/hisilicon/hispark_pegasus/demo/lwip_demo/ |
H A D | wifi_connecter.c | 25 int ret = 0; in PrintLinkedInfo() local 104 err_t ret = netifapi_set_hostname(g_iface, hostname, strlen(hostname)); in ConnectToHotspot() local 105 printf("netifapi_set_hostname: %d\r\n", ret); in ConnectToHotspot() 107 ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot() 108 printf("netifapi_dhcp_start: %d\r\n", ret); in ConnectToHotspot() 112 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot() 113 printf("netifapi_netif_common: %d\r\n", ret); in ConnectToHotspot() 123 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot() local 124 printf("netifapi_dhcp_stop: %d\r\n", ret); in DisconnectWithHotspot()
|
/third_party/ffmpeg/libavformat/ |
H A D | demux.c | 157 int ret; in init_input() local 176 if ((ret = s->io_open(s, &s->pb, filename, AVIO_FLAG_READ | s->avio_flags, options)) < 0) in init_input() 177 return ret; in init_input() 187 int ret; in update_stream_avctx() local 214 ret = avcodec_parameters_to_context(sti->avctx, st->codecpar); in update_stream_avctx() local 215 if (ret < 0) in update_stream_avctx() 216 return ret; in update_stream_avctx() 230 int ret = 0; in avformat_open_input() local 248 if ((ret = av_opt_set_dict(s, &tmp)) < 0) in avformat_open_input() 252 ret in avformat_open_input() 1140 int ret = 0, got_output = flush; parse_packet() local 1249 int ret, got_packet = 0; read_frame_internal() local 1357 ret = av_channel_layout_copy(&st->codecpar->ch_layout, &sti->avctx->ch_layout); read_frame_internal() local 1456 int ret; av_read_frame() local 1740 int num, den, read_size, ret; estimate_timings_from_pts() local 2008 int got_picture = 1, ret = 0; try_decode_frame() local 2335 int ret; extract_extradata_init() local 2374 int ret; extract_extradata() local 2435 int count = 0, ret = 0; avformat_find_stream_info() local [all...] |
H A D | cdg.c | 32 int ret; in read_header() local 44 ret = avio_size(s->pb); in read_header() 45 if (ret < 0) { in read_header() 48 vst->duration = (ret * (int64_t)vst->time_base.den) / (CDG_PACKET_SIZE * 300); in read_header() 55 int ret; in read_packet() local 57 ret = av_get_packet(s->pb, pkt, CDG_PACKET_SIZE); in read_packet() 62 if (!pkt->pos || (ret > 5 && in read_packet() 67 return ret; in read_packet()
|
H A D | g723_1.c | 55 int size, byte, ret; in g723_1_read_packet() local 61 ret = av_new_packet(pkt, size); in g723_1_read_packet() 62 if (ret < 0) in g723_1_read_packet() 63 return ret; in g723_1_read_packet() 69 ret = avio_read(s->pb, pkt->data + 1, size - 1); in g723_1_read_packet() 70 if (ret < size - 1) { in g723_1_read_packet() 71 return ret < 0 ? ret : AVERROR_EOF; in g723_1_read_packet()
|
/third_party/ffmpeg/libavcodec/ |
H A D | dca_lbr.c | 241 int ret; in parse_lfe_chunk() local 249 ret = init_get_bits8(&s->gb, chunk->data, chunk->len); in parse_lfe_chunk() 250 if (ret < 0) in parse_lfe_chunk() 251 return ret; in parse_lfe_chunk() 356 int sb, group, ret; in parse_tonal_chunk() local 361 ret = init_get_bits8(&s->gb, chunk->data, chunk->len); in parse_tonal_chunk() 363 if (ret < 0) in parse_tonal_chunk() 364 return ret; in parse_tonal_chunk() 379 ret = parse_tonal(s, group); in parse_tonal_chunk() 380 if (ret < in parse_tonal_chunk() 389 int ret; parse_tonal_group() local 503 int ch, sb, sf, nsubbands, ret; parse_grid_1_chunk() local 571 int sb, nsubbands, ret; parse_grid_1_sec_ch() local 803 int sb, ch, ol, st, max_sb, profile, ret; parse_high_res_grid() local 906 int ret; parse_ts1_chunk() local 924 int ret; parse_ts2_chunk() local 949 int ret; init_sample_rate() local 1173 int i, ch, sb, sf, ret, group, chunk_id, chunk_len; ff_dca_lbr_parse() local 1729 int i, ret, nchannels, ch_conf = (s->ch_mask & 0x7) - 1; ff_dca_lbr_filter_frame() local [all...] |
H A D | webp.c | 257 int len = 0, sym, code = 0, ret; in huff_reader_build_canonical() local 303 ret = init_vlc(&r->vlc, 8, alphabet_size, in huff_reader_build_canonical() 306 if (ret < 0) { in huff_reader_build_canonical() 308 return ret; in huff_reader_build_canonical() 337 int i, symbol, max_symbol, prev_code_len, ret; in read_huffman_code_normal() local 345 ret = huff_reader_build_canonical(&code_len_hc, code_length_code_lengths, in read_huffman_code_normal() 347 if (ret < 0) in read_huffman_code_normal() 348 return ret; in read_huffman_code_normal() 352 ret = AVERROR(ENOMEM); in read_huffman_code_normal() 362 ret in read_huffman_code_normal() 435 int ret, block_bits, blocks_w, blocks_h, x, y, max; decode_entropy_image() local 464 int block_bits, blocks_w, blocks_h, ret; parse_transform_predictor() local 480 int block_bits, blocks_w, blocks_h, ret; parse_transform_color() local 497 int width_bits, index_size, ret, x; parse_transform_color_indexing() local 557 int i, j, ret, x, y, width; decode_entropy_coded_image() local 1091 int w, h, ret, i, used; vp8_lossless_decode_frame() local 1247 int x, y, ret; vp8_lossy_decode_alpha() local 1300 int ret; vp8_lossy_decode_frame() local 1342 int ret; webp_decode_frame() local [all...] |
H A D | imm4.c | 177 int ret, i; in decode_blocks() local 193 ret = decode_block(avctx, gb, i, s->factor, flag, offset, flag2); in decode_blocks() 194 if (ret < 0) in decode_blocks() 195 return ret; in decode_blocks() 205 int ret, x, y, offset = 0; in decode_intra() local 231 ret = decode_blocks(avctx, gb, cbplo | (cbphi << 2), 0, offset, flag); in decode_intra() 232 if (ret < 0) in decode_intra() 233 return ret; in decode_intra() 257 int ret, x, y, offset = 0; in decode_inter() local 304 ret in decode_inter() 363 int ret, scaled; decode_frame() local [all...] |
H A D | sga.c | 314 int ret, type; in sga_decode_frame() local 327 if ((ret = ff_set_dimensions(avctx, in sga_decode_frame() 330 return ret; in sga_decode_frame() 342 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) in sga_decode_frame() 343 return ret; in sga_decode_frame() 416 ret = lzss_decompress(avctx, &gb2, s->uncompressed + offset, in sga_decode_frame() 418 if (ret < 0) in sga_decode_frame() 419 return ret; in sga_decode_frame() 421 size = ret; in sga_decode_frame() 445 ret in sga_decode_frame() [all...] |
H A D | rasc.c | 99 int ret; in init_frames() local 103 if ((ret = ff_get_buffer(avctx, s->frame1, 0)) < 0) in init_frames() 104 return ret; in init_frames() 106 if ((ret = ff_get_buffer(avctx, s->frame2, 0)) < 0) in init_frames() 107 return ret; in init_frames() 121 int ret; in decode_fint() local 154 ret = ff_set_dimensions(avctx, w, h); in decode_fint() 155 if (ret < 0) in decode_fint() 156 return ret; in decode_fint() 161 ret in decode_fint() 217 int ret; decode_move() local 341 int ret, cx, cy, compression; decode_dlta() local 483 int zret, ret; decode_kfrm() local 545 int ret; decode_mous() local 679 int ret, intra = 0; decode_frame() local [all...] |
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_bufmgr.c | 161 int ret = vc4_ioctl(screen->fd, DRM_IOCTL_GEM_CLOSE, &c); in vc4_bo_free() local 162 if (ret != 0) in vc4_bo_free() 226 int ret; in vc4_bo_alloc() local 254 ret = vc4_ioctl(screen->fd, DRM_IOCTL_VC4_CREATE_BO, &create); in vc4_bo_alloc() 257 if (ret != 0) { in vc4_bo_alloc() 421 int ret = vc4_ioctl(screen->fd, DRM_IOCTL_GEM_OPEN, &o); in vc4_bo_open_name() local 422 if (ret) { in vc4_bo_open_name() 435 int ret = drmPrimeFDToHandle(screen->fd, fd, &handle); in vc4_bo_open_dmabuf() local 437 if (ret) { in vc4_bo_open_dmabuf() 456 int ret in vc4_bo_get_dmabuf() local 476 int ret; vc4_bo_alloc_shader() local 518 int ret = vc4_ioctl(bo->screen->fd, DRM_IOCTL_GEM_FLINK, &flink); vc4_bo_flink() local 538 int ret = vc4_ioctl(fd, DRM_IOCTL_VC4_WAIT_SEQNO, &wait); vc4_wait_seqno_ioctl() local 560 int ret = vc4_wait_seqno_ioctl(screen->fd, seqno, timeout_ns); vc4_wait_seqno() local 580 int ret = vc4_ioctl(fd, DRM_IOCTL_VC4_WAIT_BO, &wait); vc4_wait_bo_ioctl() local 600 int ret = vc4_wait_bo_ioctl(screen->fd, bo->handle, timeout_ns); vc4_bo_wait() local 617 int ret; vc4_bo_map_unsynchronized() local [all...] |
/third_party/NuttX/drivers/usbdev/gadget/ |
H A D | f_hid.c | 330 errno_t ret; in fhid_output_request_complete() local 350 ret = memcpy_s(hid->read_buf, HID_OUT_DATA_SIZE, req->buf, req->xfrd); in fhid_output_request_complete() 351 if (ret != EOK) in fhid_output_request_complete() 427 int ret; in usbclass_hid_bind() local 500 ret = hid_fops_init(hid); in usbclass_hid_bind() 501 if (ret != LOS_OK) in usbclass_hid_bind() 566 int ret; in usbclass_hid_set_endpoint() local 578 ret = EP_CONFIGURE(hid->in_ep, (const usb_endpoint_descriptor_t *)&g_fhid_in_ep_desc, 0); in usbclass_hid_set_endpoint() 579 if (ret < 0) in usbclass_hid_set_endpoint() 592 ret in usbclass_hid_set_endpoint() 619 errno_t ret; usbclass_hid_get_report() local 640 int ret; usbclass_hid_setup() local 780 errno_t ret; linkg_fhid_descriptors() local 830 errno_t ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_fhid_device_desc, sizeof(g_fhid_device_desc)); hid_mkdevdesc() local 842 errno_t ret; hid_mkcfgdesc() local 866 errno_t ret; hid_mkstrdesc() local 1019 int ret; usbdev_hid_initialize() local [all...] |
/third_party/node/deps/openssl/openssl/crypto/ec/ |
H A D | ec_key.c | 47 EC_KEY *ret = EC_KEY_new_ex(ctx, propq); in EC_KEY_new_by_curve_name_ex() local 48 if (ret == NULL) in EC_KEY_new_by_curve_name_ex() 50 ret->group = EC_GROUP_new_by_curve_name_ex(ctx, propq, nid); in EC_KEY_new_by_curve_name_ex() 51 if (ret->group == NULL) { in EC_KEY_new_by_curve_name_ex() 52 EC_KEY_free(ret); in EC_KEY_new_by_curve_name_ex() 55 if (ret->meth->set_group != NULL in EC_KEY_new_by_curve_name_ex() 56 && ret->meth->set_group(ret, ret->group) == 0) { in EC_KEY_new_by_curve_name_ex() 57 EC_KEY_free(ret); in EC_KEY_new_by_curve_name_ex() 216 int ret; EC_KEY_generate_key() local 230 int ret; ossl_ec_key_gen() local 360 int ret; ossl_ec_key_simple_generate_public_key() local 406 int ret = 0; ec_key_public_range_check() local 474 int ret = 0; ossl_ec_key_public_check() local 531 int ret = 0; ossl_ec_key_pairwise_check() local 937 int ret; EC_KEY_oct2priv() local 1009 int ret = 0; ecdsa_keygen_pairwise_test() local [all...] |
/third_party/openssl/crypto/ec/ |
H A D | ec_key.c | 47 EC_KEY *ret = EC_KEY_new_ex(ctx, propq); in EC_KEY_new_by_curve_name_ex() local 48 if (ret == NULL) in EC_KEY_new_by_curve_name_ex() 50 ret->group = EC_GROUP_new_by_curve_name_ex(ctx, propq, nid); in EC_KEY_new_by_curve_name_ex() 51 if (ret->group == NULL) { in EC_KEY_new_by_curve_name_ex() 52 EC_KEY_free(ret); in EC_KEY_new_by_curve_name_ex() 55 if (ret->meth->set_group != NULL in EC_KEY_new_by_curve_name_ex() 56 && ret->meth->set_group(ret, ret->group) == 0) { in EC_KEY_new_by_curve_name_ex() 57 EC_KEY_free(ret); in EC_KEY_new_by_curve_name_ex() 216 int ret; EC_KEY_generate_key() local 230 int ret; ossl_ec_key_gen() local 360 int ret; ossl_ec_key_simple_generate_public_key() local 406 int ret = 0; ec_key_public_range_check() local 474 int ret = 0; ossl_ec_key_public_check() local 531 int ret = 0; ossl_ec_key_pairwise_check() local 937 int ret; EC_KEY_oct2priv() local 1009 int ret = 0; ecdsa_keygen_pairwise_test() local [all...] |
/third_party/selinux/checkpolicy/ |
H A D | checkpolicy.c | 398 int ret, ch, fd, target = SEPOL_TARGET_SELINUX; in main() local 566 ret = policydb_read(&policydb, &pf, 1); in main() 567 if (ret) { in main() 648 ret = policydb_optimize(policydbp); in main() 649 if (ret) { in main() 675 ret = policydb_sort_ocontexts(&policydb); in main() 676 if (ret) { in main() 682 ret = policydb_write(&policydb, &pf); in main() 684 ret = sepol_kernel_policydb_to_conf(outfp, policydbp); in main() 686 if (ret) { in main() [all...] |
/third_party/NuttX/fs/driver/ |
H A D | fs_closeblockdriver.c | 54 int ret = 0; /* Assume success */ in close_blockdriver() local 63 ret = -EINVAL; in close_blockdriver() 71 ret = -EINVAL; in close_blockdriver() 80 ret = -ENOTBLK; in close_blockdriver() 91 ret = -EINVAL; in close_blockdriver() 110 ret = bop->close(vnode_ptr); in close_blockdriver() 124 ret = bop->close(vnode_ptr); in close_blockdriver() 129 return ret; in close_blockdriver()
|
/third_party/libunwind/libunwind/src/tilegx/ |
H A D | init.h | 31 int ret, i; in common_init() local 39 ret = dwarf_get (&c->dwarf, DWARF_REG_LOC (&c->dwarf, UNW_TILEGX_PC), in common_init() 42 ret = dwarf_get (&c->dwarf, DWARF_REG_LOC (&c->dwarf, UNW_TILEGX_R55), in common_init() 45 if (ret < 0) in common_init() 46 return ret; in common_init() 48 ret = dwarf_get (&c->dwarf, DWARF_REG_LOC (&c->dwarf, UNW_TILEGX_R54), in common_init() 51 if (ret < 0) in common_init() 52 return ret; in common_init()
|
/third_party/jerryscript/jerry-libm/ |
H A D | scalbn.c | 73 double_accessor ret; in scalbn() local 74 ret.dbl = x; in scalbn() 75 ret.as_int.hi = (hx & 0x800fffff) | (k << 20); in scalbn() 76 return ret.dbl; in scalbn() 90 double_accessor ret; in scalbn() local 91 ret.dbl = x; in scalbn() 92 ret.as_int.hi = (hx & 0x800fffff) | (k << 20); in scalbn() 93 return ret.dbl * twom54; in scalbn()
|
/third_party/node/test/parallel/ |
H A D | test-stream2-large-read-stall.js | 44 let ret; 47 ret = r.read(READSIZE); 48 console.error(` < ${ret && ret.length} (${rs.length} remain)`); 49 } while (ret && ret.length === READSIZE); 52 ret && ret.length,
|
/third_party/musl/src/process/ |
H A D | _Fork.c | 16 void __post_Fork(int ret) in __post_Fork() argument 18 if (!ret) { in __post_Fork() 43 if (!ret) __aio_atfork(1); in __post_Fork() 48 pid_t ret; in _Fork() local 55 ret = __syscall(SYS_fork); in _Fork() 57 ret = __syscall(SYS_clone, SIGCHLD, 0); in _Fork() 60 __post_Fork(ret); in _Fork() 63 return __syscall_ret(ret); in _Fork()
|
/third_party/ltp/testcases/kernel/syscalls/move_pages/ |
H A D | move_pages09.c | 80 int ret; in main() local 82 ret = get_allowed_nodes(NH_MEMS, 1, &from_node); in main() 83 if (ret < 0) in main() 84 tst_brkm(TBROK | TERRNO, cleanup, "get_allowed_nodes: %d", ret); in main() 95 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); in main() 96 if (ret == -1) in main() 102 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main() 105 if (ret >= 0) in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
H A D | 17-2.c | 54 * UNRESOLVED(ret, descr); 55 * where descr is a description of the error and ret is an int (error code for example) 86 int ret, param, status; in main() local 101 ret = sched_setscheduler(0, POLICY, &sp); in main() 103 if (ret == -1) { in main() 118 ret = sched_getscheduler(0); in main() 120 if (ret == -1) { in main() 125 if (ret != POLICY) { in main() 129 ret = sched_getparam(0, &sp); in main() 131 if (ret ! in main() [all...] |
H A D | 17-1.c | 56 int ret, param, status; in main() local 70 ret = sched_setscheduler(0, POLICY, &sp); in main() 72 if (ret == -1) { in main() 87 ret = sched_getscheduler(0); in main() 89 if (ret == -1) { in main() 94 if (ret != POLICY) { in main() 98 ret = sched_getparam(0, &sp); in main() 100 if (ret != 0) { in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/ctype/ |
H A D | ispunct_l.c | 33 int ret = ispunct_l(var1, m_locale); in ispunct_l_0100() local 34 EXPECT_NE("ispunct_l_0100", ret, 0); in ispunct_l_0100() 46 int ret = ispunct_l(var1, m_locale); in ispunct_l_0200() local 47 EXPECT_NE("ispunct_l_0200", ret, 0); in ispunct_l_0200() 59 int ret = ispunct_l(var1, m_locale); in ispunct_l_0300() local 60 EXPECT_NE("ispunct_l_0300", ret, 0); in ispunct_l_0300() 72 int ret = ispunct_l(var1, m_locale); in ispunct_l_0400() local 73 EXPECT_EQ("ispunct_l_0400", ret, 0); in ispunct_l_0400()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | fallocate.c | 36 int ret = fallocate(fd, 0, 4096, 4096 * 3); in fallocate_0100() local 37 EXPECT_EQ("fallocate_0100", ret, SUCCESS); in fallocate_0100() 55 int ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 4096, 4096 * 3); in fallocate_0200() local 56 EXPECT_EQ("fallocate_0200", ret, SUCCESS); in fallocate_0200() 75 int ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 4096, 4096 * 3); in fallocate_0300() local 76 EXPECT_EQ("fallocate_0300", ret, SUCCESS); in fallocate_0300() 89 int ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 4096, 4096 * 3); in fallocate_0400() local 90 EXPECT_EQ("fallocate_0400", ret, FAILED); in fallocate_0400()
|