Home
last modified time | relevance | path

Searched refs:new_mem (Results 1 – 12 of 12) sorted by relevance

/third_party/mesa3d/src/intel/tools/
Daub_mem.c163 struct phys_mem *new_mem = calloc(1, sizeof(*new_mem)); in ensure_phys_mem() local
164 new_mem->phys_addr = phys_addr; in ensure_phys_mem()
165 new_mem->fd_offset = mem->mem_fd_len; in ensure_phys_mem()
170 new_mem->data = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, in ensure_phys_mem()
171 mem->mem_fd, new_mem->fd_offset); in ensure_phys_mem()
172 check_mmap_result(new_mem->data); in ensure_phys_mem()
174 rb_tree_insert_at(&mem->mem, node, &new_mem->node, cmp < 0); in ensure_phys_mem()
175 node = &new_mem->node; in ensure_phys_mem()
/third_party/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create03.c129 void *new_mem; in test_max_hugepages() local
141 new_mem = mmap(NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages()
142 if (new_mem == MAP_FAILED) { in test_max_hugepages()
155 SAFE_MUNMAP(new_mem, hps); in test_max_hugepages()
/third_party/skia/third_party/externals/libwebp/src/enc/
Dpicture_enc.c195 uint8_t* new_mem; in WebPMemoryWrite() local
199 new_mem = (uint8_t*)WebPSafeMalloc(next_max_size, 1); in WebPMemoryWrite()
200 if (new_mem == NULL) { in WebPMemoryWrite()
204 memcpy(new_mem, w->mem, w->size); in WebPMemoryWrite()
207 w->mem = new_mem; in WebPMemoryWrite()
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/
Dpicture_enc.c195 uint8_t* new_mem; in WebPMemoryWrite() local
199 new_mem = (uint8_t*)WebPSafeMalloc(next_max_size, 1); in WebPMemoryWrite()
200 if (new_mem == NULL) { in WebPMemoryWrite()
204 memcpy(new_mem, w->mem, w->size); in WebPMemoryWrite()
207 w->mem = new_mem; in WebPMemoryWrite()
/third_party/glib/glib/
Dgstrfuncs.c391 gpointer new_mem; in g_memdup() local
395 new_mem = g_malloc (byte_size); in g_memdup()
396 memcpy (new_mem, mem, byte_size); in g_memdup()
399 new_mem = NULL; in g_memdup()
401 return new_mem; in g_memdup()
423 gpointer new_mem; in g_memdup2() local
427 new_mem = g_malloc (byte_size); in g_memdup2()
428 memcpy (new_mem, mem, byte_size); in g_memdup2()
431 new_mem = NULL; in g_memdup2()
433 return new_mem; in g_memdup2()
/third_party/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11pluginutils.cpp638 GstD3D11Memory *new_mem; in gst_d3d11_allocate_staging_buffer_for() local
645 new_mem = (GstD3D11Memory *) in gst_d3d11_allocate_staging_buffer_for()
647 if (!new_mem) { in gst_d3d11_allocate_staging_buffer_for()
652 if (!gst_d3d11_memory_get_texture_stride (new_mem, &cur_stride) || in gst_d3d11_allocate_staging_buffer_for()
661 size += GST_MEMORY_CAST (new_mem)->size; in gst_d3d11_allocate_staging_buffer_for()
663 gst_buffer_append_memory (staging_buffer, GST_MEMORY_CAST (new_mem)); in gst_d3d11_allocate_staging_buffer_for()
Dgstd3d11compositor.cpp969 GstD3D11Memory *new_mem = in gst_d3d11_compsitor_prepare_fallback_buffer() local
972 if (is_input && !gst_d3d11_memory_get_shader_resource_view_size (new_mem)) { in gst_d3d11_compsitor_prepare_fallback_buffer()
977 !gst_d3d11_memory_get_render_target_view_size (new_mem)) { in gst_d3d11_compsitor_prepare_fallback_buffer()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/d3d11/
Dgstd3d11memory.cpp1878 GstMemory *new_mem; in gst_d3d11_pool_allocator_alloc() local
1886 new_mem = in gst_d3d11_pool_allocator_alloc()
1889 if (!new_mem) { in gst_d3d11_pool_allocator_alloc()
1896 if (!gst_d3d11_memory_update_size (new_mem)) { in gst_d3d11_pool_allocator_alloc()
1898 gst_memory_unref (new_mem); in gst_d3d11_pool_allocator_alloc()
1904 priv->mem_size = new_mem->size; in gst_d3d11_pool_allocator_alloc()
1907 new_mem->size = new_mem->maxsize = priv->mem_size; in gst_d3d11_pool_allocator_alloc()
1909 *mem = new_mem; in gst_d3d11_pool_allocator_alloc()
/third_party/openssl/crypto/store/
Dloader_file.c1025 BUF_MEM *new_mem = NULL; in file_load_try_decode() local
1086 BUF_MEM_free(new_mem); in file_load_try_decode()
1092 new_mem = ossl_store_info_get0_EMBEDDED_buffer(result); in file_load_try_decode()
1093 data = (unsigned char *)new_mem->data; in file_load_try_decode()
1094 len = new_mem->length; in file_load_try_decode()
/third_party/gettext/libtextstyle/gnulib-local/lib/glib/
Dgstrfuncs.c125 gpointer new_mem;
129 new_mem = g_malloc (byte_size);
130 memcpy (new_mem, mem, byte_size);
133 new_mem = NULL;
135 return new_mem;
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/
Dgsth265parser.c4166 GstMemory *new_mem = NULL; in gst_h265_parser_insert_sei_internal() local
4250 new_mem = gst_memory_copy (sei, 0, -1); in gst_h265_parser_insert_sei_internal()
4252 if (!gst_memory_map (new_mem, &sei_info, GST_MAP_READWRITE)) { in gst_h265_parser_insert_sei_internal()
4254 gst_memory_unref (new_mem); in gst_h265_parser_insert_sei_internal()
4272 gst_memory_unmap (new_mem, &sei_info); in gst_h265_parser_insert_sei_internal()
4274 new_mem = gst_memory_ref (sei); in gst_h265_parser_insert_sei_internal()
4278 gst_buffer_append_memory (new_buffer, new_mem); in gst_h265_parser_insert_sei_internal()
/third_party/boost/boost/container/
Dvector.hpp2546 T * const new_mem = boost::movelib::to_raw_pointer(ret); in priv_reserve_no_capacity() local
2553 ( new_mem , real_cap, ins_pos, 0, this->priv_dummy_empty_proxy()); in priv_reserve_no_capacity()
2560 ( new_mem, real_cap, ins_pos, 0, this->priv_dummy_empty_proxy()); in priv_reserve_no_capacity()