Home
last modified time | relevance | path

Searched refs:vbuf (Results 1 – 25 of 39) sorted by relevance

12

/third_party/iowow/src/utils/tests/
Diwhmap_test1.c55 char vbuf[64]; in test_basic_crud_str() local
60 snprintf(vbuf, sizeof(vbuf), "value%d", i); in test_basic_crud_str()
61 iwrc rc = iwhmap_put(hm, strdup(kbuf), strdup(vbuf)); in test_basic_crud_str()
66 snprintf(vbuf, sizeof(vbuf), "value%d", i); in test_basic_crud_str()
69 CU_ASSERT_STRING_EQUAL(vbuf, vp); in test_basic_crud_str()
80 snprintf(vbuf, sizeof(vbuf), "value%d", i); in test_basic_crud_str()
83 CU_ASSERT_STRING_EQUAL(vbuf, vp); in test_basic_crud_str()
/third_party/iowow/src/kv/tests/
Diwkv_test1.c10 char vbuf[VBUFSZ]; variable
90 snprintf(vbuf, VBUFSZ, "%05dval", c); in iwkv_test3_impl()
93 val.data = vbuf; in iwkv_test3_impl()
106 snprintf(vbuf, VBUFSZ, "%05dval", 1858); in iwkv_test3_impl()
157 snprintf(vbuf, VBUFSZ, "%03dval", i); in iwkv_test2_impl()
160 val.data = vbuf; in iwkv_test2_impl()
170 snprintf(vbuf, VBUFSZ, "%03dval", i); in iwkv_test2_impl()
171 int vsize = strlen(vbuf); in iwkv_test2_impl()
176 IW_CMP(cret, vbuf, vsize, val.data, val.size); in iwkv_test2_impl()
440 snprintf(vbuf, VBUFSZ, "%03dval", i); in iwkv_test1_impl()
[all …]
Diwkv_test5.c11 static char vbuf[VBUFSZ]; variable
45 snprintf(vbuf, VBUFSZ, "%03dval", i); in iwkv_test5_2()
48 val.data = vbuf; in iwkv_test5_2()
77 snprintf(vbuf, VBUFSZ, "%03dval", i); in iwkv_test5_2()
80 val.data = vbuf; in iwkv_test5_2()
127 snprintf(vbuf, VBUFSZ, "%03dval", i); in iwkv_test5_1()
130 val.data = vbuf; in iwkv_test5_1()
168 snprintf(vbuf, VBUFSZ, "%03dval", 26); in iwkv_test5_1()
171 val.data = vbuf; in iwkv_test5_1()
180 snprintf(vbuf, VBUFSZ, "%03dval", 0); in iwkv_test5_1()
[all …]
Diwkv_test10.c11 static char vbuf[VBUFSZ]; variable
42 snprintf(vbuf, VBUFSZ, "%03dval", j); in iwkv_test10_1_impl()
45 val.data = vbuf; in iwkv_test10_1_impl()
78 snprintf(vbuf, VBUFSZ, "%03dval", j); in iwkv_test10_1_impl()
81 int vlen = strlen(vbuf); in iwkv_test10_1_impl()
84 IW_CMP(cret, vbuf, vlen, val.data, val.size); in iwkv_test10_1_impl()
Diwkv_test7.c11 char vbuf[VBUFSZ]; variable
46 snprintf(vbuf, VBUFSZ, "%04d", i); in iwkv_test7_1_impl()
51 val.data = vbuf; in iwkv_test7_1_impl()
59 snprintf(vbuf, VBUFSZ, "%04d", i); in iwkv_test7_1_impl()
Diwkv_test8.c13 static char vbuf[VBUFSZ]; variable
53 snprintf(vbuf, VBUFSZ, "%03dval", i); in iwkv_test8_1()
56 val.data = vbuf; in iwkv_test8_1()
83 snprintf(vbuf, VBUFSZ, "%03dval", i); in iwkv_test8_1()
86 int vlen = strlen(vbuf); in iwkv_test8_1()
89 IW_CMP(cret, vbuf, vlen, val.data, val.size); in iwkv_test8_1()
/third_party/libdrm/tests/amdgpu/
Dvce_tests.c53 struct amdgpu_vce_bo vbuf; member
359 luma_offset = enc->vbuf.addr; in amdgpu_cs_vce_encode_idr()
409 luma_offset = enc->vbuf.addr; in amdgpu_cs_vce_encode_p()
502 alloc_resource(&enc.vbuf, vbuf_size, AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_cs_vce_encode()
503 resources[num_resources++] = enc.vbuf.handle; in amdgpu_cs_vce_encode()
508 r = amdgpu_bo_cpu_map(enc.vbuf.handle, (void **)&enc.vbuf.ptr); in amdgpu_cs_vce_encode()
511 memset(enc.vbuf.ptr, 0, vbuf_size); in amdgpu_cs_vce_encode()
513 memcpy(enc.vbuf.ptr, (frame + i * enc.width), enc.width); in amdgpu_cs_vce_encode()
514 enc.vbuf.ptr += ALIGN(enc.width, align); in amdgpu_cs_vce_encode()
517 memcpy(enc.vbuf.ptr, ((frame + enc.height * enc.width) + i * enc.width), enc.width); in amdgpu_cs_vce_encode()
[all …]
Duvd_enc_tests.c52 struct amdgpu_uvd_enc_bo vbuf; member
343 alloc_resource(&enc.vbuf, vbuf_size, AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_cs_uvd_enc_encode()
344 resources[num_resources++] = enc.vbuf.handle; in amdgpu_cs_uvd_enc_encode()
349 r = amdgpu_bo_cpu_map(enc.vbuf.handle, (void **)&enc.vbuf.ptr); in amdgpu_cs_uvd_enc_encode()
352 memset(enc.vbuf.ptr, 0, vbuf_size); in amdgpu_cs_uvd_enc_encode()
354 memcpy(enc.vbuf.ptr, (frame + i * enc.width), enc.width); in amdgpu_cs_uvd_enc_encode()
355 enc.vbuf.ptr += ALIGN(enc.width, align); in amdgpu_cs_uvd_enc_encode()
358 memcpy(enc.vbuf.ptr, ((frame + enc.height * enc.width) + i * enc.width), enc.width); in amdgpu_cs_uvd_enc_encode()
359 enc.vbuf.ptr += ALIGN(enc.width, align); in amdgpu_cs_uvd_enc_encode()
362 r = amdgpu_bo_cpu_unmap(enc.vbuf.handle); in amdgpu_cs_uvd_enc_encode()
[all …]
/third_party/uboot/u-boot-2020.01/cmd/
Dsf.c605 ulong offset, uint8_t *vbuf) in spi_flash_test() argument
620 if (spi_flash_read(flash, offset, len, vbuf)) { in spi_flash_test()
625 if (vbuf[i] != 0xff) { in spi_flash_test()
627 print_buffer(i, vbuf + i, 1, in spi_flash_test()
638 memset(vbuf, '\0', len); in spi_flash_test()
641 if (spi_flash_read(flash, offset, len, vbuf)) { in spi_flash_test()
648 if (buf[i] != vbuf[i]) { in spi_flash_test()
653 print_buffer(i, vbuf + i, 1, in spi_flash_test()
671 uint8_t *vbuf; in do_spi_flash_test() local
683 vbuf = memalign(ARCH_DMA_MINALIGN, len); in do_spi_flash_test()
[all …]
/third_party/iowow/src/kv/dbg/
Diwkvdbg.c9 uint8_t *mm, *vbuf, *kbuf; in iwkvd_kvblk() local
28 _kvblk_value_peek(kb, i, mm, &vbuf, &vlen); in iwkvd_kvblk()
31 klen, kbuf, MIN(vlen, maxvlen), vbuf); in iwkvd_kvblk()
42 uint8_t *mm, *vbuf, *kbuf; in iwkvd_sblk() local
91 _kvblk_value_peek(sb->kvblk, sb->pi[i], mm, &vbuf, &vlen); in iwkvd_sblk()
92 …printf(f, " [%03d,%03d] %.*s:%.*s", i, sb->pi[i], klen, kbuf, MIN(vlen, IWKVD_MAX_VALSZ), vbuf); in iwkvd_sblk()
/third_party/libwebsockets/lib/core/
Dlogs.c213 lwsl_hexdump_level(int hexdump_level, const void *vbuf, size_t len) in lwsl_hexdump_level() argument
215 unsigned char *buf = (unsigned char *)vbuf; in lwsl_hexdump_level()
226 if (!vbuf) { in lwsl_hexdump_level()
265 lwsl_hexdump(const void *vbuf, size_t len) in lwsl_hexdump() argument
268 lwsl_hexdump_level(LLL_DEBUG, vbuf, len); in lwsl_hexdump()
/third_party/ejdb/src/tests/
Dejdb_test2.c29 char *vbuf = malloc(vbufsz); in ejdb_test2_2() local
31 CU_ASSERT_PTR_NOT_NULL_FATAL(vbuf); in ejdb_test2_2()
33 memset(vbuf, 'z', vbufsz); in ejdb_test2_2()
34 vbuf[vbufsz - 1] = '\0'; in ejdb_test2_2()
40 snprintf(dbuf, dbufsz, "{\"f\":%d, \"d\":\"%s\"}", i, vbuf); in ejdb_test2_2()
60 free(vbuf); in ejdb_test2_2()
/third_party/mbedtls/tests/suites/
Dtest_suite_ecp.function876 const unsigned char *vbuf = buf->x;
888 TEST_ASSERT( mbedtls_ecp_tls_read_point( &grp, &P, &vbuf, buf->len ) == ret );
895 TEST_ASSERT( (uint32_t)( vbuf - buf->x ) == buf->len );
910 const unsigned char *vbuf;
918 memset( buf, 0x00, sizeof( buf ) ); vbuf = buf;
921 TEST_ASSERT( mbedtls_ecp_tls_read_point( &grp, &pt, &vbuf, olen )
923 TEST_ASSERT( vbuf == buf + olen );
925 memset( buf, 0x00, sizeof( buf ) ); vbuf = buf;
928 TEST_ASSERT( mbedtls_ecp_tls_read_point( &grp, &pt, &vbuf, olen ) == 0 );
932 TEST_ASSERT( vbuf == buf + olen );
[all …]
Dtest_suite_ecdh.function307 const unsigned char *vbuf;
319 memset( buf, 0x00, sizeof( buf ) ); vbuf = buf;
322 TEST_ASSERT( mbedtls_ecdh_read_params( &cli, &vbuf, buf + len ) == 0 );
349 const unsigned char *vbuf;
399 vbuf = buf;
400 TEST_ASSERT( mbedtls_ecdh_read_params( &cli, &vbuf, buf + len ) == 0 );
465 const unsigned char *vbuf;
476 memset( buf, 0x00, sizeof( buf ) ); vbuf = buf;
479 TEST_ASSERT( mbedtls_ecdh_read_params( &cli, &vbuf, buf + len ) == 0 );
/third_party/ffmpeg/libswscale/
Doutput.c599 const int16_t *ubuf[2], const int16_t *vbuf[2], in yuv2mono_2_c_template()
660 const int16_t *ubuf[2], const int16_t *vbuf[2], in yuv2mono_1_c_template()
723 const int16_t *ubuf[2], const int16_t *vbuf[2], \
727 name ## base ## _2_c_template(c, buf, ubuf, vbuf, abuf, \
732 const int16_t *ubuf[2], const int16_t *vbuf[2], \
736 name ## base ## _1_c_template(c, buf0, ubuf, vbuf, \
803 const int16_t *ubuf[2], const int16_t *vbuf[2], in yuv2422_2_c_template()
810 *vbuf0 = vbuf[0], *vbuf1 = vbuf[1]; in yuv2422_2_c_template()
836 const int16_t *ubuf[2], const int16_t *vbuf[2], in yuv2422_1_c_template()
840 const int16_t *ubuf0 = ubuf[0], *vbuf0 = vbuf[0]; in yuv2422_1_c_template()
[all …]
/third_party/eudev/src/udev/
Dudev-event.c295 char vbuf[UTIL_NAME_SIZE]; in udev_event_apply_format() local
305 … if (util_resolve_subsys_kernel(event->udev, attr, vbuf, sizeof(vbuf), 1) == 0) in udev_event_apply_format()
306 value = vbuf; in udev_event_apply_format()
320 if (value != vbuf) in udev_event_apply_format()
321 strscpy(vbuf, sizeof(vbuf), value); in udev_event_apply_format()
322 len = strlen(vbuf); in udev_event_apply_format()
323 while (len > 0 && isspace(vbuf[--len])) in udev_event_apply_format()
324 vbuf[len] = '\0'; in udev_event_apply_format()
325 count = util_replace_chars(vbuf, UDEV_ALLOWED_CHARS_INPUT); in udev_event_apply_format()
328 l = strpcpy(&s, l, vbuf); in udev_event_apply_format()
/third_party/uboot/u-boot-2020.01/drivers/net/
Dftmac110.c305 memcpy(txd->vbuf, (void *)pkt, len); in ftmac110_send()
306 dma_map_single(txd->vbuf, len, DMA_TO_DEVICE); in ftmac110_send()
343 buf = rxd->vbuf; in ftmac110_recv()
441 chip->txd[i].vbuf = va; in ftmac110_initialize()
462 chip->rxd[i].vbuf = va; in ftmac110_initialize()
/third_party/boost/boost/sort/block_indirect_sort/
Dblock_indirect_sort.hpp248 std::vector<value_t *> vbuf(nthread); in block_indirect_sort() local
251 vbuf[i] = ptr + (i * Block_size); in block_indirect_sort()
274 auto f1 = [=, &vbuf]( ) in block_indirect_sort()
275 { bk.exec (vbuf[i], this->counter);}; in block_indirect_sort()
/third_party/ffmpeg/libswscale/ppc/
Dswscale_vsx.c680 const int16_t *ubuf[2], const int16_t *vbuf[2], in yuv2rgb_full_2_vsx_template()
687 *vbuf0 = vbuf[0], *vbuf1 = vbuf[1], in yuv2rgb_full_2_vsx_template()
802 const int16_t *ubuf[2], const int16_t *vbuf[2], in yuv2rgb_2_vsx_template()
809 *vbuf0 = vbuf[0], *vbuf1 = vbuf[1], in yuv2rgb_2_vsx_template()
978 const int16_t *ubuf[2], const int16_t *vbuf[2], in yuv2rgb_full_1_vsx_template()
983 const int16_t *ubuf0 = ubuf[0], *vbuf0 = vbuf[0]; in yuv2rgb_full_1_vsx_template()
984 const int16_t *ubuf1 = ubuf[1], *vbuf1 = vbuf[1]; in yuv2rgb_full_1_vsx_template()
1107 const int16_t *ubuf[2], const int16_t *vbuf[2], in yuv2rgb_1_vsx_template()
1112 const int16_t *ubuf0 = ubuf[0], *vbuf0 = vbuf[0]; in yuv2rgb_1_vsx_template()
1113 const int16_t *ubuf1 = ubuf[1], *vbuf1 = vbuf[1]; in yuv2rgb_1_vsx_template()
[all …]
/third_party/ffmpeg/libswscale/x86/
Dswscale_template.c885 const int16_t *ubuf[2], const int16_t *vbuf[2], in RENAME()
949 const int16_t *ubuf[2], const int16_t *vbuf[2], in RENAME()
972 const int16_t *ubuf[2], const int16_t *vbuf[2], in RENAME()
1001 const int16_t *ubuf[2], const int16_t *vbuf[2], in RENAME()
1070 const int16_t *ubuf[2], const int16_t *vbuf[2], in RENAME()
1209 const int16_t *ubuf[2], const int16_t *vbuf[2], in RENAME()
1278 const int16_t *ubuf[2], const int16_t *vbuf[2], in RENAME()
1319 const int16_t *ubuf[2], const int16_t *vbuf[2], in RENAME()
1372 const int16_t *ubuf[2], const int16_t *vbuf[2], in RENAME()
1462 const int16_t *ubuf[2], const int16_t *vbuf[2], in RENAME()
/third_party/iowow/src/kv/benchmark/
Dtc_benchmark.c75 char *vbuf = tcbdbget(btc->db, key->data, key->size, &sp); in db_get() local
76 val->data = vbuf; in db_get()
Dkyc_benchmark.c88 char *vbuf = kcdbget(bmdb->db, key->data, key->size, &sp); in db_get() local
89 val->data = vbuf; in db_get()
/third_party/gstreamer/gstplugins_base/tests/check/elements/
Dtextoverlay.c1006 GstBuffer *vbuf; in test_render_continuity_push_video_buffers_thread() local
1008 vbuf = create_black_buffer (vcaps); in test_render_continuity_push_video_buffers_thread()
1009 ASSERT_BUFFER_REFCOUNT (vbuf, "vbuf", 1); in test_render_continuity_push_video_buffers_thread()
1011 GST_BUFFER_TIMESTAMP (vbuf) = frame_count * GST_SECOND; in test_render_continuity_push_video_buffers_thread()
1012 GST_BUFFER_DURATION (vbuf) = GST_SECOND; in test_render_continuity_push_video_buffers_thread()
1016 GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (vbuf))); in test_render_continuity_push_video_buffers_thread()
1017 fail_unless (gst_pad_push (myvideosrcpad, vbuf) == GST_FLOW_OK); in test_render_continuity_push_video_buffers_thread()
/third_party/iowow/src/kv/
Diwkv.h341 IW_EXPORT iwrc iwkv_get_copy(IWDB db, const IWKV_val *key, void *vbuf, size_t vbufsz, size_t *vsz);
447 IW_EXPORT iwrc iwkv_cursor_copy_val(IWKV_cursor cur, void *vbuf, size_t vbufsz, size_t *vsz);
/third_party/ffmpeg/libavcodec/
Dmpegvideo_motion.c324 uint8_t *vbuf = ubuf + 10 * s->uvlinesize; in mpeg_motion_internal() local
326 vbuf -= s->uvlinesize; in mpeg_motion_internal()
333 s->vdsp.emulated_edge_mc(vbuf, ptr_cr, in mpeg_motion_internal()
339 ptr_cr = vbuf; in mpeg_motion_internal()
549 uint8_t *vbuf = ubuf + 10 * s->uvlinesize; in qpel_motion() local
551 vbuf -= s->uvlinesize; in qpel_motion()
557 s->vdsp.emulated_edge_mc(vbuf, ptr_cr, in qpel_motion()
563 ptr_cr = vbuf; in qpel_motion()

12