Searched refs:new_mem (Results 1 – 9 of 9) sorted by relevance
/third_party/mesa3d/src/intel/tools/ |
D | aub_mem.c | 163 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/ |
D | memfd_create03.c | 129 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/flutter/skia/third_party/externals/libwebp/src/enc/ |
D | picture_enc.c | 195 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/skia/third_party/externals/libwebp/src/enc/ |
D | picture_enc.c | 195 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/gstreamer/gstplugins_bad/sys/d3d11/ |
D | gstd3d11pluginutils.cpp | 638 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()
|
D | gstd3d11compositor.cpp | 969 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/ |
D | gstd3d11memory.cpp | 1878 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/engines/ |
D | e_loader_attic.c | 1180 BUF_MEM *new_mem = NULL; in file_load_try_decode() local 1255 BUF_MEM_free(new_mem); in file_load_try_decode() 1263 new_mem = embedded->blob; in file_load_try_decode() 1264 data = (unsigned char *)new_mem->data; in file_load_try_decode() 1265 len = new_mem->length; in file_load_try_decode()
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/ |
D | gsth265parser.c | 4168 GstMemory *new_mem = NULL; in gst_h265_parser_insert_sei_internal() local 4252 new_mem = gst_memory_copy (sei, 0, -1); in gst_h265_parser_insert_sei_internal() 4254 if (!gst_memory_map (new_mem, &sei_info, GST_MAP_READWRITE)) { in gst_h265_parser_insert_sei_internal() 4256 gst_memory_unref (new_mem); in gst_h265_parser_insert_sei_internal() 4274 gst_memory_unmap (new_mem, &sei_info); in gst_h265_parser_insert_sei_internal() 4276 new_mem = gst_memory_ref (sei); in gst_h265_parser_insert_sei_internal() 4280 gst_buffer_append_memory (new_buffer, new_mem); in gst_h265_parser_insert_sei_internal()
|