Home
last modified time | relevance | path

Searched refs:cache_buf (Results 1 – 25 of 110) sorted by relevance

12345

/dports/audio/siren/siren-0.9/
H A Dcache.c44 static char *cache_buf; variable
50 free(cache_buf); in cache_close()
85 cache_buf = xmalloc(cache_bufsize); in cache_open_read()
103 free(cache_buf); in cache_open_read()
120 cache_buf = NULL; in cache_open_write()
174 cache_buflen += fread(cache_buf + cache_buflen, 1, in cache_read_field()
185 sep = memchr(cache_buf + cache_bufidx, '\0', in cache_read_field()
196 memmove(cache_buf, cache_buf + cache_bufidx, in cache_read_field()
206 cache_buf = xrealloc(cache_buf, cache_bufsize); in cache_read_field()
210 *field = cache_buf + cache_bufidx; in cache_read_field()
[all …]
/dports/audio/mp3c/mp3c-0.31/src/
H A Dline_opt.c47 char cache_buf[MAX_CACHE]; variable
67 if(cache_buf[i] == 0) { in read_from_sock()
69 for(j=i+1;j<cache_remain;j++) cache_buf[j-1] = cache_buf[j]; in read_from_sock()
72 if(cache_buf[i] == 0x0a) { in read_from_sock()
78 memcpy(ret_line+len, &cache_buf, i+1); in read_from_sock()
81 cache_buf[len] = cache_buf[len+i+1]; in read_from_sock()
105 memcpy(ret_line+len, &cache_buf, cache_remain); in read_from_sock()
112 status = read(sock_fd, &cache_buf, MAX_CACHE); in read_from_sock()
/dports/devel/radare2/radare2-5.1.1/libr/bin/p/
H A Dbin_dyldcache.c530 RBuffer *cache_buf = cache->buf; in get_rebase_info() local
708 if (r_buf_read_at (cache_buf, at, tmp_buf_2, size) != size) { in get_rebase_info()
754 RBuffer *cache_buf = cache->buf; in get_rebase_infos() local
930 ut64 pa = va2pa (address, hdr, maps, cache_buf, 0, NULL, NULL); in carve_deps_at_address()
982 cache_img_t *img = read_cache_images (cache_buf, hdr); in create_cache_bins()
1017 extras = read_cache_imgextra (cache_buf, hdr, accel); in create_cache_bins()
1022 path_to_idx = create_path_to_index (cache_buf, img, hdr); in create_cache_bins()
1026 char *lib_name = get_lib_name (cache_buf, &img[i]); in create_cache_bins()
1076 r_buf_read_at (cache_buf, pa, magicbytes, 4); in create_cache_bins()
1412 static cache_hdr_t *read_cache_header(RBuffer *cache_buf) { in read_cache_header() argument
[all …]
H A Dbin_xnu_kernelcache.c20 RBuffer *cache_buf; member
226 obj->cache_buf = fbuf; in load_buffer()
243 obj->cache_buf = NULL; in load_buffer()
608 ut32 i, ncmds = r_buf_read_le32_at (obj->cache_buf, 16); in kexts_from_load_commands()
609 ut64 length = r_buf_size (obj->cache_buf); in kexts_from_load_commands()
791 …RBuffer *buf = r_buf_new_slice (obj->cache_buf, kext->range.offset, r_buf_size (obj->cache_buf) - … in MACH0_()
801 RBuffer *buf = r_buf_ref (obj->cache_buf); in MACH0_()
1782 obj->cache_buf = NULL; in r_kernel_cache_free()
1785 if (obj->cache_buf) { in r_kernel_cache_free()
1786 r_buf_free (obj->cache_buf); in r_kernel_cache_free()
[all …]
/dports/security/opensc/OpenSC-0.22.0/src/libopensc/
H A Dcard-cac1.c149 memcpy(buf, &priv->cache_buf[idx], len); in cac_read_binary()
156 free(priv->cache_buf); in cac_read_binary()
157 priv->cache_buf = NULL; in cac_read_binary()
184 priv->cache_buf = malloc(cert_len); in cac_read_binary()
185 if (priv->cache_buf == NULL) { in cac_read_binary()
190 memcpy(priv->cache_buf, cert_ptr, cert_len); in cac_read_binary()
196 if (len && priv->cache_buf) in cac_read_binary()
197 memcpy(buf, &priv->cache_buf[idx], len); in cac_read_binary()
257 if (priv->cache_buf) { in cac_select_file_by_type()
258 free(priv->cache_buf); in cac_select_file_by_type()
[all …]
H A Dcard-idprime.c76 u8 *cache_buf; /* cached version of the currently selected file */ member
93 free(priv->cache_buf); in idprime_free_private_data()
531 if (priv->cache_buf) { in idprime_select_file()
532 free(priv->cache_buf); in idprime_select_file()
533 priv->cache_buf = NULL; in idprime_select_file()
589 r = sc_decompress_alloc(&priv->cache_buf, &(priv->cache_buf_len), in idprime_read_binary()
607 priv->cache_buf = malloc(r); in idprime_read_binary()
608 if (priv->cache_buf == NULL) { in idprime_read_binary()
611 memcpy(priv->cache_buf, buffer, r); in idprime_read_binary()
620 memcpy(buf, priv->cache_buf + offset, size); in idprime_read_binary()
H A Dcard-cac.c486 if (priv->cache_buf) { in cac_read_binary()
487 free(priv->cache_buf); in cac_read_binary()
488 priv->cache_buf = NULL; in cac_read_binary()
508 priv->cache_buf = malloc(tlv_len); in cac_read_binary()
509 if (priv->cache_buf == NULL) { in cac_read_binary()
590 priv->cache_buf = malloc(cert_len); in cac_read_binary()
591 if (priv->cache_buf == NULL) { in cac_read_binary()
617 memcpy(buf, &priv->cache_buf[idx], len); in cac_read_binary()
1103 if (priv->cache_buf) { in cac_select_file_by_type()
1104 free(priv->cache_buf); in cac_select_file_by_type()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/sound/soc/sof/
H A Ddebug.c307 memset(dfse->cache_buf, 0, IPC_FLOOD_TEST_RESULT_LEN); in sof_debug_ipc_flood_test()
312 snprintf(dfse->cache_buf, IPC_FLOOD_TEST_RESULT_LEN, in sof_debug_ipc_flood_test()
325 snprintf(dfse->cache_buf + strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
326 IPC_FLOOD_TEST_RESULT_LEN - strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
330 snprintf(dfse->cache_buf + strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
331 IPC_FLOOD_TEST_RESULT_LEN - strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
458 count = strlen(dfse->cache_buf); in sof_dfsentry_read()
459 size_ret = copy_to_user(buffer, dfse->cache_buf, count); in sof_dfsentry_read()
509 memcpy(buf, dfse->cache_buf + pos, size); in sof_dfsentry_read()
576 if (!dfse->cache_buf) in snd_sof_debugfs_io_item()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/sound/soc/sof/
H A Ddebug.c307 memset(dfse->cache_buf, 0, IPC_FLOOD_TEST_RESULT_LEN); in sof_debug_ipc_flood_test()
312 snprintf(dfse->cache_buf, IPC_FLOOD_TEST_RESULT_LEN, in sof_debug_ipc_flood_test()
325 snprintf(dfse->cache_buf + strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
326 IPC_FLOOD_TEST_RESULT_LEN - strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
330 snprintf(dfse->cache_buf + strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
331 IPC_FLOOD_TEST_RESULT_LEN - strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
458 count = strlen(dfse->cache_buf); in sof_dfsentry_read()
459 size_ret = copy_to_user(buffer, dfse->cache_buf, count); in sof_dfsentry_read()
509 memcpy(buf, dfse->cache_buf + pos, size); in sof_dfsentry_read()
576 if (!dfse->cache_buf) in snd_sof_debugfs_io_item()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/sound/soc/sof/
H A Ddebug.c307 memset(dfse->cache_buf, 0, IPC_FLOOD_TEST_RESULT_LEN); in sof_debug_ipc_flood_test()
312 snprintf(dfse->cache_buf, IPC_FLOOD_TEST_RESULT_LEN, in sof_debug_ipc_flood_test()
325 snprintf(dfse->cache_buf + strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
326 IPC_FLOOD_TEST_RESULT_LEN - strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
330 snprintf(dfse->cache_buf + strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
331 IPC_FLOOD_TEST_RESULT_LEN - strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
458 count = strlen(dfse->cache_buf); in sof_dfsentry_read()
459 size_ret = copy_to_user(buffer, dfse->cache_buf, count); in sof_dfsentry_read()
509 memcpy(buf, dfse->cache_buf + pos, size); in sof_dfsentry_read()
576 if (!dfse->cache_buf) in snd_sof_debugfs_io_item()
[all …]
/dports/multimedia/handbrake/zimg-release-3.0.1/src/testapp/
H A Dpair_filter.cpp11 zimg::graph::ImageBuffer<void> cache_buf[3]; member
179 …cache->cache_buf[p] = zimg::graph::ImageBuffer<void>{ alloc.allocate(cache_size_one_plane), get_ca… in init_context()
199 const zimg::graph::ImageBuffer<void> *cache_buf = m_in_place ? dst : cache->cache_buf; in process() local
202 …m_first->process(cache->first_ctx, src, cache_buf, tmp, cache->cache_line_pos, col_range.first, co… in process()
204 …m_second->process(cache->second_ctx, zimg::graph::static_buffer_cast<const void>(cache_buf), dst, … in process()
/dports/graphics/sekrit-twc-zimg/zimg-release-3.0.3/src/testapp/
H A Dpair_filter.cpp11 zimg::graph::ImageBuffer<void> cache_buf[3]; member
179 …cache->cache_buf[p] = zimg::graph::ImageBuffer<void>{ alloc.allocate(cache_size_one_plane), get_ca… in init_context()
199 const zimg::graph::ImageBuffer<void> *cache_buf = m_in_place ? dst : cache->cache_buf; in process() local
202 …m_first->process(cache->first_ctx, src, cache_buf, tmp, cache->cache_line_pos, col_range.first, co… in process()
204 …m_second->process(cache->second_ctx, zimg::graph::static_buffer_cast<const void>(cache_buf), dst, … in process()
/dports/security/clamav/clamav-0.104.2/libclamav/
H A Dspecial.c105 uint32_t cache_buf; in riff_read_chunk() local
121 memcpy(&cache_buf, buffer + sizeof(cache_buf), in riff_read_chunk()
122 sizeof(cache_buf)); in riff_read_chunk()
123 chunk_size = riff_endian_convert_32(cache_buf, big_endian); in riff_read_chunk()
/dports/security/clamav-lts/clamav-0.103.5/libclamav/
H A Dspecial.c105 uint32_t cache_buf; in riff_read_chunk() local
121 memcpy(&cache_buf, buffer + sizeof(cache_buf), in riff_read_chunk()
122 sizeof(cache_buf)); in riff_read_chunk()
123 chunk_size = riff_endian_convert_32(cache_buf, big_endian); in riff_read_chunk()
/dports/mail/dovecot/dovecot-2.3.17/src/plugins/pop3-migration/
H A Dpop3-migration-plugin.c325 get_cached_hdr_sha1(struct mail *mail, buffer_t *cache_buf, in get_cached_hdr_sha1() argument
330 buffer_set_used_size(cache_buf, 0); in get_cached_hdr_sha1()
331 if (index_mail_cache_lookup_field(imail, cache_buf, in get_cached_hdr_sha1()
333 cache_buf->used == SHA1_RESULTLEN) { in get_cached_hdr_sha1()
334 memcpy(sha1_r, cache_buf->data, cache_buf->used); in get_cached_hdr_sha1()
442 buffer_t *cache_buf; in pop3_map_read_cached_hdr_hashes() local
445 cache_buf = t_buffer_create(SHA1_RESULTLEN); in pop3_map_read_cached_hdr_hashes()
450 if (get_cached_hdr_sha1(mail, cache_buf, map->hdr_sha1)) in pop3_map_read_cached_hdr_hashes()
/dports/games/libretro-pcsx_rearmed/pcsx_rearmed-c2d67cd/libpcsxcore/lightrec/
H A Dplugin.c113 static char cache_buf[64 * 1024]; variable
151 memcpy(psxM, cache_buf, sizeof(cache_buf)); in cop0_mtc_ctc()
154 memcpy(cache_buf, psxM, sizeof(cache_buf)); in cop0_mtc_ctc()
/dports/games/kodi-addon-game.libretro.pcsx-rearmed/game.libretro.pcsx-rearmed-22.0.0.19-Matrix/depends/common/pcsx-rearmed/libpcsxcore/lightrec/
H A Dplugin.c113 static char cache_buf[64 * 1024]; variable
151 memcpy(psxM, cache_buf, sizeof(cache_buf)); in cop0_mtc_ctc()
154 memcpy(cache_buf, psxM, sizeof(cache_buf)); in cop0_mtc_ctc()
/dports/multimedia/gstreamer1-plugins-theora/gst-plugins-base-1.16.2/ext/theora/
H A Dgsttheoraenc.c731 GstBuffer *cache_buf; in theora_enc_read_multipass_cache() local
742 cache_buf = gst_buffer_new_allocate (NULL, 512, NULL); in theora_enc_read_multipass_cache()
744 gst_buffer_map (cache_buf, &minfo, GST_MAP_WRITE); in theora_enc_read_multipass_cache()
750 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
751 gst_buffer_unref (cache_buf); in theora_enc_read_multipass_cache()
754 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
755 gst_buffer_resize (cache_buf, 0, bytes_read); in theora_enc_read_multipass_cache()
757 gst_adapter_push (enc->multipass_cache_adapter, cache_buf); in theora_enc_read_multipass_cache()
/dports/multimedia/gstreamer1-plugins/gst-plugins-base-1.16.2/ext/theora/
H A Dgsttheoraenc.c731 GstBuffer *cache_buf; in theora_enc_read_multipass_cache() local
742 cache_buf = gst_buffer_new_allocate (NULL, 512, NULL); in theora_enc_read_multipass_cache()
744 gst_buffer_map (cache_buf, &minfo, GST_MAP_WRITE); in theora_enc_read_multipass_cache()
750 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
751 gst_buffer_unref (cache_buf); in theora_enc_read_multipass_cache()
754 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
755 gst_buffer_resize (cache_buf, 0, bytes_read); in theora_enc_read_multipass_cache()
757 gst_adapter_push (enc->multipass_cache_adapter, cache_buf); in theora_enc_read_multipass_cache()
/dports/audio/gstreamer1-plugins-vorbis/gst-plugins-base-1.16.2/ext/theora/
H A Dgsttheoraenc.c731 GstBuffer *cache_buf; in theora_enc_read_multipass_cache() local
742 cache_buf = gst_buffer_new_allocate (NULL, 512, NULL); in theora_enc_read_multipass_cache()
744 gst_buffer_map (cache_buf, &minfo, GST_MAP_WRITE); in theora_enc_read_multipass_cache()
750 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
751 gst_buffer_unref (cache_buf); in theora_enc_read_multipass_cache()
754 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
755 gst_buffer_resize (cache_buf, 0, bytes_read); in theora_enc_read_multipass_cache()
757 gst_adapter_push (enc->multipass_cache_adapter, cache_buf); in theora_enc_read_multipass_cache()
/dports/audio/gstreamer1-plugins-opus/gst-plugins-base-1.16.2/ext/theora/
H A Dgsttheoraenc.c731 GstBuffer *cache_buf; in theora_enc_read_multipass_cache() local
742 cache_buf = gst_buffer_new_allocate (NULL, 512, NULL); in theora_enc_read_multipass_cache()
744 gst_buffer_map (cache_buf, &minfo, GST_MAP_WRITE); in theora_enc_read_multipass_cache()
750 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
751 gst_buffer_unref (cache_buf); in theora_enc_read_multipass_cache()
754 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
755 gst_buffer_resize (cache_buf, 0, bytes_read); in theora_enc_read_multipass_cache()
757 gst_adapter_push (enc->multipass_cache_adapter, cache_buf); in theora_enc_read_multipass_cache()
/dports/audio/gstreamer1-plugins-ogg/gst-plugins-base-1.16.2/ext/theora/
H A Dgsttheoraenc.c731 GstBuffer *cache_buf; in theora_enc_read_multipass_cache() local
742 cache_buf = gst_buffer_new_allocate (NULL, 512, NULL); in theora_enc_read_multipass_cache()
744 gst_buffer_map (cache_buf, &minfo, GST_MAP_WRITE); in theora_enc_read_multipass_cache()
750 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
751 gst_buffer_unref (cache_buf); in theora_enc_read_multipass_cache()
754 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
755 gst_buffer_resize (cache_buf, 0, bytes_read); in theora_enc_read_multipass_cache()
757 gst_adapter_push (enc->multipass_cache_adapter, cache_buf); in theora_enc_read_multipass_cache()
/dports/audio/gstreamer1-plugins-cdparanoia/gst-plugins-base-1.16.2/ext/theora/
H A Dgsttheoraenc.c731 GstBuffer *cache_buf; in theora_enc_read_multipass_cache() local
742 cache_buf = gst_buffer_new_allocate (NULL, 512, NULL); in theora_enc_read_multipass_cache()
744 gst_buffer_map (cache_buf, &minfo, GST_MAP_WRITE); in theora_enc_read_multipass_cache()
750 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
751 gst_buffer_unref (cache_buf); in theora_enc_read_multipass_cache()
754 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
755 gst_buffer_resize (cache_buf, 0, bytes_read); in theora_enc_read_multipass_cache()
757 gst_adapter_push (enc->multipass_cache_adapter, cache_buf); in theora_enc_read_multipass_cache()
/dports/x11-toolkits/gstreamer1-plugins-pango/gst-plugins-base-1.16.2/ext/theora/
H A Dgsttheoraenc.c731 GstBuffer *cache_buf; in theora_enc_read_multipass_cache() local
742 cache_buf = gst_buffer_new_allocate (NULL, 512, NULL); in theora_enc_read_multipass_cache()
744 gst_buffer_map (cache_buf, &minfo, GST_MAP_WRITE); in theora_enc_read_multipass_cache()
750 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
751 gst_buffer_unref (cache_buf); in theora_enc_read_multipass_cache()
754 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
755 gst_buffer_resize (cache_buf, 0, bytes_read); in theora_enc_read_multipass_cache()
757 gst_adapter_push (enc->multipass_cache_adapter, cache_buf); in theora_enc_read_multipass_cache()
/dports/graphics/gstreamer1-plugins-libvisual/gst-plugins-base-1.16.2/ext/theora/
H A Dgsttheoraenc.c731 GstBuffer *cache_buf; in theora_enc_read_multipass_cache() local
742 cache_buf = gst_buffer_new_allocate (NULL, 512, NULL); in theora_enc_read_multipass_cache()
744 gst_buffer_map (cache_buf, &minfo, GST_MAP_WRITE); in theora_enc_read_multipass_cache()
750 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
751 gst_buffer_unref (cache_buf); in theora_enc_read_multipass_cache()
754 gst_buffer_unmap (cache_buf, &minfo); in theora_enc_read_multipass_cache()
755 gst_buffer_resize (cache_buf, 0, bytes_read); in theora_enc_read_multipass_cache()
757 gst_adapter_push (enc->multipass_cache_adapter, cache_buf); in theora_enc_read_multipass_cache()

12345