Home
last modified time | relevance | path

Searched refs:mem_size (Results 1 – 25 of 30) 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))) { \
256 size_t mem_size; in ArgsGet() local
262 GET_BACKING_STORE_OR_RETURN(wasi, args, &memory, &mem_size); in ArgsGet()
264 mem_size, in ArgsGet()
268 mem_size, in ArgsGet()
295 size_t mem_size; in ArgsSizesGet() local
301 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.sh63 local mem_size="$2"
68 tst_res TINFO "Testing $cgroups cgroups, using $mem_size MB, interval $interval"
73 memcg_process_stress $mem_size $interval &
/third_party/node/deps/v8/src/debug/wasm/gdb-server/
Dwasm-module-debug.cc296 size_t mem_size = instance->memory_size(); in GetWasmMemory() local
297 if (static_cast<uint64_t>(offset) + size <= mem_size) { in GetWasmMemory()
300 } else if (offset < mem_size) { in GetWasmMemory()
301 bytes_read = static_cast<uint32_t>(mem_size) - offset; in GetWasmMemory()
323 size_t mem_size = instance->memory_size(); in GetWasmData() local
324 if (static_cast<uint64_t>(offset) + size <= mem_size) { in GetWasmData()
327 } else if (offset < mem_size) { in GetWasmData()
328 bytes_read = static_cast<uint32_t>(mem_size) - offset; in GetWasmData()
/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/node/deps/v8/src/wasm/
Dwasm-external-refs.cc489 uint64_t mem_size = instance.memory_size(); in memory_init_wrapper() local
490 if (!base::IsInBounds<uint64_t>(dst, size, mem_size)) return kOutOfBounds; in memory_init_wrapper()
511 uint64_t mem_size = instance.memory_size(); in memory_copy_wrapper() local
512 if (!base::IsInBounds<uint64_t>(dst, size, mem_size)) return kOutOfBounds; in memory_copy_wrapper()
513 if (!base::IsInBounds<uint64_t>(src, size, mem_size)) return kOutOfBounds; in memory_copy_wrapper()
533 uint64_t mem_size = instance.memory_size(); in memory_fill_wrapper() local
534 if (!base::IsInBounds<uint64_t>(dst, size, mem_size)) return kOutOfBounds; in memory_fill_wrapper()
Dwasm-objects.cc799 size_t mem_size = instance->memory_size(); in SetInstanceMemory() local
800 for (size_t offset = 0; offset < mem_size; offset += wasm::kWasmPageSize) { in SetInstanceMemory()
1157 void WasmInstanceObject::SetRawMemory(byte* mem_start, size_t mem_size) { in SetRawMemory() argument
1158 CHECK_LE(mem_size, wasm::max_mem_bytes()); in SetRawMemory()
1161 set_memory_size(mem_size); in SetRawMemory()
1164 CHECK_LE(mem_size, size_t{kMaxUInt32}); in SetRawMemory()
1166 set_memory_size(mem_size); in SetRawMemory()
Dwasm-objects.h458 void SetRawMemory(byte* mem_start, size_t mem_size);
/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/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/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/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()
Dv3dv_device.c1385 const uint32_t mem_size = compute_heap_size(); in v3dv_GetPhysicalDeviceProperties() local
1411 .maxMemoryAllocationCount = mem_size / page_size, in v3dv_GetPhysicalDeviceProperties()
/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/node/deps/v8/src/compiler/
Dwasm-compiler.cc796 shared_memory_instance_cache->mem_size = CreateOrMergeIntoPhi( in StackCheck()
798 shared_memory_instance_cache->mem_size, new_memory_size); in StackCheck()
3530 instance_cache->mem_size = in InitInstanceCache()
3541 INTRODUCE_PHI(mem_size, MachineType::PointerRepresentation()); in PrepareInstanceCacheForLoop()
3555 INTRODUCE_PHI(mem_size, MachineRepresentation::kWord32); in NewInstanceCacheMerge()
3562 to->mem_size = CreateOrMergeIntoPhi(MachineType::PointerRepresentation(), in MergeInstanceCacheInto()
3563 merge, to->mem_size, from->mem_size); in MergeInstanceCacheInto()
3639 Node* mem_size = instance_cache_->mem_size; in CurrentMemoryPages() local
3640 DCHECK_NOT_NULL(mem_size); in CurrentMemoryPages()
3642 gasm_->WordShr(mem_size, Int32Constant(wasm::kWasmPageSizeLog2)); in CurrentMemoryPages()
[all …]
Dwasm-compiler.h194 Node* mem_size; member
/third_party/mesa3d/src/gallium/frontends/va/
Dbuffer.c354 buf_info->mem_size = buf->num_elements * buf->size; in vlVaAcquireBufferHandle()
/third_party/skia/third_party/externals/libwebp/src/enc/
Dvp8l_enc.c1451 const uint64_t mem_size = in AllocateTransformBuffer() local
1456 if (mem == NULL || mem_size > enc->transform_mem_size_) { in AllocateTransformBuffer()
1458 mem = (uint32_t*)WebPSafeMalloc(mem_size, sizeof(*mem)); in AllocateTransformBuffer()
1464 enc->transform_mem_size_ = (size_t)mem_size; in AllocateTransformBuffer()
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_resource.c1307 size_t mem_size = offset + res_size; in iris_resource_from_user_memory() local
1308 mem_size = ALIGN_NPOT(mem_size, page_size); in iris_resource_from_user_memory()
1312 res->bo = iris_bo_create_userptr(bufmgr, "user", mem_start, mem_size, in iris_resource_from_user_memory()
/third_party/node/deps/v8/src/wasm/baseline/
Dliftoff-compiler.cc2853 LiftoffRegister mem_size = __ GetUnusedRegister(kGpReg, pinned); in BoundsCheckMem() local
2854 LOAD_INSTANCE_FIELD(mem_size.gp(), MemorySize, kSystemPointerSize, pinned); in BoundsCheckMem()
2863 end_offset_reg.gp(), mem_size.gp()); in BoundsCheckMem()
2869 __ emit_ptrsize_sub(effective_size_reg.gp(), mem_size.gp(), in BoundsCheckMem()
3203 Register mem_size = __ GetUnusedRegister(kGpReg, {}).gp(); in CurrentMemoryPages() local
3204 LOAD_INSTANCE_FIELD(mem_size, MemorySize, kSystemPointerSize, {}); in CurrentMemoryPages()
3205 __ emit_ptrsize_shri(mem_size, mem_size, kWasmPageSizeLog2); in CurrentMemoryPages()
3206 LiftoffRegister result{mem_size}; in CurrentMemoryPages()
3209 __ GetUnusedRegister(kGpReg, LiftoffRegList{mem_size}); in CurrentMemoryPages()
3212 result = LiftoffRegister::ForPair(mem_size, high_word.gp()); in CurrentMemoryPages()

12