/third_party/node/src/ |
D | node_wasi.cc | 58 #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/ |
D | imgui_memory_editor.h | 167 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/ |
D | memcg_stress_test.sh | 63 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/ |
D | wasm-module-debug.cc | 296 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/ |
D | ac_msgpack.c | 74 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()
|
D | ac_msgpack.h | 31 uint32_t mem_size; member
|
/third_party/node/deps/v8/src/wasm/ |
D | wasm-external-refs.cc | 489 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()
|
D | wasm-objects.cc | 799 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()
|
D | wasm-objects.h | 458 void SetRawMemory(byte* mem_start, size_t mem_size);
|
/third_party/rust/crates/rustix/src/backend/linux_raw/runtime/ |
D | tls.rs | 35 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/ |
D | cordz_info_statistics_test.cc | 485 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/ |
D | vc4_simulator.c | 69 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/ |
D | v3d_simulator.c | 83 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/ |
D | svga_state_cs.c | 54 key->cs.mem_size = cs->shared_mem_size; in make_cs_key()
|
D | svga_shader.h | 119 unsigned mem_size; member
|
/third_party/mesa3d/src/freedreno/vulkan/ |
D | tu_descriptor_set.c | 507 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/ |
D | v3dv_descriptor_set.c | 811 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()
|
D | v3dv_device.c | 1385 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/ |
D | radv_descriptor_set.c | 630 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/ |
D | wasm-compiler.cc | 796 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 …]
|
D | wasm-compiler.h | 194 Node* mem_size; member
|
/third_party/mesa3d/src/gallium/frontends/va/ |
D | buffer.c | 354 buf_info->mem_size = buf->num_elements * buf->size; in vlVaAcquireBufferHandle()
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
D | vp8l_enc.c | 1451 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/ |
D | iris_resource.c | 1307 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/ |
D | liftoff-compiler.cc | 2853 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()
|