Home
last modified time | relevance | path

Searched refs:mem_size (Results 1 – 25 of 32) sorted by relevance

12

/third_party/node/src/
Dnode_wasi.cc58 #define GET_BACKING_STORE_OR_RETURN(wasi, args, mem_ptr, mem_size) \ argument
60 uvwasi_errno_t err = (wasi)->backingStore((mem_ptr), (mem_size)); \
67 #define CHECK_BOUNDS_OR_RETURN(args, mem_size, offset, buf_size) \ argument
69 if (!uvwasi_serdes_check_bounds((offset), (mem_size), (buf_size))) { \
261 size_t mem_size; in ArgsGet() local
267 GET_BACKING_STORE_OR_RETURN(wasi, args, &memory, &mem_size); in ArgsGet()
269 mem_size, in ArgsGet()
273 mem_size, in ArgsGet()
300 size_t mem_size; in ArgsSizesGet() local
306 GET_BACKING_STORE_OR_RETURN(wasi, args, &memory, &mem_size); in ArgsSizesGet()
[all …]
/third_party/mesa3d/src/imgui/
Dimgui_memory_editor.h167 void CalcSizes(Sizes& s, size_t mem_size, size_t base_display_addr) in CalcSizes()
172 for (size_t n = base_display_addr + mem_size - 1; n > 0; n >>= 4) in CalcSizes()
192 …void DrawWindow(const char* title, void* mem_data, size_t mem_size, size_t base_display_addr = 0x0…
195 CalcSizes(s, mem_size, base_display_addr);
203 DrawContents(mem_data, mem_size, base_display_addr);
206 CalcSizes(s, mem_size, base_display_addr);
214 void DrawContents(void* mem_data_void_ptr, size_t mem_size, size_t base_display_addr = 0x0000)
218 CalcSizes(s, mem_size, base_display_addr);
235 const int line_total_count = (int)((mem_size + Cols - 1) / Cols);
242 if (ReadOnly || DataEditingAddr >= mem_size)
[all …]
/third_party/ltp/testcases/kernel/controllers/memcg/stress/
Dmemcg_stress_test.sh67 local mem_size="$2"
72 tst_res TINFO "Testing $cgroups cgroups, using $mem_size MB, interval $interval"
79 memcg_process_stress $mem_size $interval &
/third_party/mesa3d/src/amd/common/
Dac_msgpack.c74 msgpack->mem_size = MSGPACK_MEM_START_SIZE; in ac_msgpack_init()
86 if ((msgpack->offset + data_size) > msgpack->mem_size) { in ac_msgpack_resize_if_required()
89 new_mem_size = msgpack->mem_size + in ac_msgpack_resize_if_required()
95 msgpack->mem_size = new_mem_size; in ac_msgpack_resize_if_required()
Dac_msgpack.h31 uint32_t mem_size; member
/third_party/rust/crates/rustix/src/backend/linux_raw/runtime/
Dtls.rs35 mem_size: (*tls_phdr).p_memsz, in startup_tls_info()
50 pub mem_size: usize, field
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dcordz_info_statistics_test.cc485 size_t mem_size = 0; in TEST() local
488 mem_size += SizeOf(flat1); in TEST()
497 mem_size += SizeOf(flat2) + SizeOf(substr); in TEST()
501 mem_size += SizeOf(external); in TEST()
506 mem_size += SizeOf(flat3); in TEST()
511 mem_size += SizeOf(tree); in TEST()
513 mem_size += SizeOf(tree->Edges().back()->btree()); in TEST()
524 expected.estimated_memory_usage = SizeOf(tree) + mem_size; in TEST()
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_simulator.c69 ssize_t mem_size; member
637 sim_state.mem_size = 256 * 1024 * 1024; in vc4_simulator_init_global()
638 sim_state.mem = calloc(sim_state.mem_size, 1); in vc4_simulator_init_global()
641 sim_state.heap = u_mmInit(0, sim_state.mem_size); in vc4_simulator_init_global()
646 simpenrose_init_hardware_supply_mem(sim_state.mem, sim_state.mem_size); in vc4_simulator_init_global()
/third_party/gstreamer/gstplugins_bad/sys/va/
Dgstvaallocator.c293 gsize mem_size; in gst_va_dmabuf_mem_copy() local
309 mem_size = gst_memory_get_sizes (gmem, NULL, NULL); in gst_va_dmabuf_mem_copy()
312 size = mem_size > offset ? mem_size - offset : 0; in gst_va_dmabuf_mem_copy()
315 if (offset == 0 && size == mem_size && buf->n_mems == 1) { in gst_va_dmabuf_mem_copy()
1279 gsize mem_size; in _va_copy() local
1301 mem_size = gst_memory_get_sizes (mem, NULL, NULL); in _va_copy()
1304 size = mem_size > offset ? mem_size - offset : 0; in _va_copy()
1306 if (offset == 0 && size == mem_size) { in _va_copy()
/third_party/gstreamer/gstplugins_bad/sys/msdk/
Dgstmsdksystemmemory.c307 gsize mem_size; in gst_msdk_system_memory_copy() local
316 mem_size = GST_VIDEO_INFO_SIZE (info); in gst_msdk_system_memory_copy()
318 memcpy (copy->cache, GST_MSDK_SYSTEM_MEMORY_CAST (base_mem)->cache, mem_size); in gst_msdk_system_memory_copy()
Dgstmsdkvideomemory.c366 gsize mem_size; in gst_msdk_video_memory_copy() local
380 mem_size = GST_VIDEO_INFO_SIZE (info); in gst_msdk_video_memory_copy()
385 memcpy (dst_map.data, src_map.data, mem_size); in gst_msdk_video_memory_copy()
/third_party/mesa3d/src/broadcom/simulator/
Dv3d_simulator.c83 uint32_t mem_size; member
831 return sim_state.mem_size; in v3d_simulator_get_mem_size()
846 v3d_hw_get_mem(sim_state.v3d, &sim_state.mem_size, in v3d_simulator_init_global()
853 sim_state.heap = u_mmInit(4096, sim_state.mem_size - 4096); in v3d_simulator_init_global()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_state_cs.c54 key->cs.mem_size = cs->shared_mem_size; in make_cs_key()
Dsvga_shader.h119 unsigned mem_size; member
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/d3d11/
Dgstd3d11memory.cpp1514 gsize mem_size; member
1636 priv->mem_size = mem->size; in gst_d3d11_pool_allocator_start()
1638 mem->size = mem->maxsize = priv->mem_size; in gst_d3d11_pool_allocator_start()
1895 if (!priv->mem_size) { 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()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/
Dvideo-anc.c420 const guint16 * mem, gsize mem_offset, gsize mem_size) in gst_info_dump_mem16_line() argument
424 if (mem_size > 8) in gst_info_dump_mem16_line()
425 mem_size = 8; in gst_info_dump_mem16_line()
433 while (i < mem_size) { in gst_info_dump_mem16_line()
/third_party/flutter/skia/third_party/externals/sdl/src/file/
DSDL_rwops.c379 mem_size(SDL_RWops * context) in mem_size() function
595 rwops->size = mem_size; in SDL_RWFromMem()
623 rwops->size = mem_size; in SDL_RWFromConstMem()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_descriptor_set.c507 unsigned mem_size = dynamic_offset + layout->dynamic_offset_size; in tu_descriptor_set_create() local
510 if (pool->host_memory_end - pool->host_memory_ptr < mem_size) in tu_descriptor_set_create()
514 pool->host_memory_ptr += mem_size; in tu_descriptor_set_create()
516 set = vk_alloc2(&device->vk.alloc, NULL, mem_size, 8, in tu_descriptor_set_create()
523 memset(set, 0, mem_size); in tu_descriptor_set_create()
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtph264depay.c928 gsize mem_size = gst_memory_get_sizes (mem, NULL, NULL); in gst_rtp_h264_complete_au() local
932 memcpy (outmap.data + offset, mem_map.data, mem_size); in gst_rtp_h264_complete_au()
935 memset (outmap.data + offset, 0, mem_size); in gst_rtp_h264_complete_au()
937 offset += mem_size; in gst_rtp_h264_complete_au()
Dgstrtph265depay.c999 gsize mem_size = gst_memory_get_sizes (mem, NULL, NULL); in gst_rtp_h265_complete_au() local
1003 memcpy (outmap.data + offset, mem_map.data, mem_size); in gst_rtp_h265_complete_au()
1006 memset (outmap.data + offset, 0, mem_size); in gst_rtp_h265_complete_au()
1008 offset += mem_size; in gst_rtp_h265_complete_au()
/third_party/gstreamer/gstplugins_bad/tests/examples/mpegts/
Dts-parser.c38 const guint8 * mem, gsize mem_offset, gsize mem_size) in gst_info_dump_mem_line() argument
42 if (mem_size > 16) in gst_info_dump_mem_line()
43 mem_size = 16; in gst_info_dump_mem_line()
52 while (i < mem_size) { in gst_info_dump_mem_line()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_descriptor_set.c811 unsigned mem_size = sizeof(struct v3dv_descriptor_set) + in descriptor_set_create() local
815 if (pool->host_memory_end - pool->host_memory_ptr < mem_size) in descriptor_set_create()
819 pool->host_memory_ptr += mem_size; in descriptor_set_create()
823 set = vk_object_zalloc(&device->vk, NULL, mem_size, in descriptor_set_create()
/third_party/mesa3d/src/amd/vulkan/
Dradv_descriptor_set.c630 unsigned mem_size = in radv_descriptor_set_create() local
634 if (pool->host_memory_end - pool->host_memory_ptr < mem_size) in radv_descriptor_set_create()
638 pool->host_memory_ptr += mem_size; in radv_descriptor_set_create()
640 set = vk_alloc2(&device->vk.alloc, NULL, mem_size, 8, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); in radv_descriptor_set_create()
646 memset(set, 0, mem_size); in radv_descriptor_set_create()
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/
Dvp8l_enc.c1221 const uint64_t mem_size = in AllocateTransformBuffer() local
1226 if (mem == NULL || mem_size > enc->transform_mem_size_) { in AllocateTransformBuffer()
1228 mem = (uint32_t*)WebPSafeMalloc(mem_size, sizeof(*mem)); in AllocateTransformBuffer()
1234 enc->transform_mem_size_ = (size_t)mem_size; in AllocateTransformBuffer()
/third_party/mesa3d/src/gallium/frontends/va/
Dbuffer.c354 buf_info->mem_size = buf->num_elements * buf->size; in vlVaAcquireBufferHandle()

12