Home
last modified time | relevance | path

Searched refs:size_in_bytes (Results 1 – 25 of 107) sorted by relevance

12345

/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dbuffer.cc28 absl::Status CreateBuffer(size_t size_in_bytes, bool gpu_read_only, in CreateBuffer() argument
32 RETURN_IF_ERROR(CreateCLBuffer(context->context(), size_in_bytes, in CreateBuffer()
35 *result = Buffer(buffer, size_in_bytes); in CreateBuffer()
41 Buffer::Buffer(cl_mem buffer, size_t size_in_bytes) in Buffer() argument
42 : buffer_(buffer), size_(size_in_bytes) {} in Buffer()
88 absl::Status CreateReadOnlyBuffer(size_t size_in_bytes, CLContext* context, in CreateReadOnlyBuffer() argument
90 return CreateBuffer(size_in_bytes, true, nullptr, context, result); in CreateReadOnlyBuffer()
93 absl::Status CreateReadOnlyBuffer(size_t size_in_bytes, const void* data, in CreateReadOnlyBuffer() argument
95 return CreateBuffer(size_in_bytes, true, data, context, result); in CreateReadOnlyBuffer()
98 absl::Status CreateReadWriteBuffer(size_t size_in_bytes, CLContext* context, in CreateReadWriteBuffer() argument
[all …]
Dbuffer.h38 Buffer(cl_mem buffer, size_t size_in_bytes);
75 absl::Status CreateReadOnlyBuffer(size_t size_in_bytes, CLContext* context,
78 absl::Status CreateReadOnlyBuffer(size_t size_in_bytes, const void* data,
81 absl::Status CreateReadWriteBuffer(size_t size_in_bytes, CLContext* context,
/external/arm-trusted-firmware/plat/nvidia/tegra/drivers/memctrl/
Dmemctrl_v2.c97 void tegra_memctrl_tzdram_setup(uint64_t phys_base, uint32_t size_in_bytes) in tegra_memctrl_tzdram_setup() argument
102 plat_memctrl_tzdram_setup(phys_base, size_in_bytes); in tegra_memctrl_tzdram_setup()
111 void tegra_memctrl_tzram_setup(uint64_t phys_base, uint32_t size_in_bytes) in tegra_memctrl_tzram_setup() argument
172 uint64_t size_in_bytes) in tegra_lock_videomem_nonoverlap() argument
175 uint64_t total_128kb_blocks = size_in_bytes >> 17; in tegra_lock_videomem_nonoverlap()
176 uint64_t residual_4kb_blocks = (size_in_bytes & (uint32_t)0x1FFFF) >> 12; in tegra_lock_videomem_nonoverlap()
257 unsigned long size_in_bytes) in tegra_clear_videomem_nonoverlap() argument
260 uintptr_t vmem_end_new = phys_base + size_in_bytes; in tegra_clear_videomem_nonoverlap()
292 void tegra_memctrl_videomem_setup(uint64_t phys_base, uint32_t size_in_bytes) in tegra_memctrl_videomem_setup() argument
316 tegra_mc_write_32(MC_VIDEO_PROTECT_SIZE_MB, size_in_bytes >> 20); in tegra_memctrl_videomem_setup()
[all …]
Dmemctrl_v1.c84 void tegra_memctrl_tzdram_setup(uint64_t phys_base, uint32_t size_in_bytes) in tegra_memctrl_tzdram_setup() argument
93 tegra_mc_write_32(MC_SECURITY_CFG1_0, size_in_bytes >> 20); in tegra_memctrl_tzdram_setup()
124 void tegra_memctrl_videomem_setup(uint64_t phys_base, uint32_t size_in_bytes) in tegra_memctrl_videomem_setup() argument
127 uintptr_t vmem_end_new = phys_base + size_in_bytes; in tegra_memctrl_videomem_setup()
168 tegra_mc_write_32(MC_VIDEO_PROTECT_SIZE_MB, size_in_bytes >> 20); in tegra_memctrl_videomem_setup()
172 video_mem_size = size_in_bytes >> 20; in tegra_memctrl_videomem_setup()
/external/icing/icing/index/main/
Dposting-list-free.h59 uint32_t size_in_bytes) { in CreateFromPreexistingPostingListFreeRegion() argument
61 if (!posting_list_utils::IsValidPostingListSize(size_in_bytes)) { in CreateFromPreexistingPostingListFreeRegion()
63 "Requested posting list size %d is invalid!", size_in_bytes)); in CreateFromPreexistingPostingListFreeRegion()
65 return PostingListFree(posting_list_buffer, size_in_bytes); in CreateFromPreexistingPostingListFreeRegion()
82 uint32_t size_in_bytes) { in CreateFromUnitializedRegion() argument
85 posting_list_buffer, size_in_bytes)); in CreateFromUnitializedRegion()
104 PostingListFree(void *posting_list_buffer, uint32_t size_in_bytes) in PostingListFree() argument
106 size_in_bytes_(size_in_bytes) {} in PostingListFree()
Dposting-list-utils.cc25 bool IsValidPostingListSize(uint32_t size_in_bytes) { in IsValidPostingListSize() argument
28 if (size_in_bytes % sizeof(Hit) != 0) { in IsValidPostingListSize()
29 ICING_LOG(ERROR) << "Size " << size_in_bytes << " hit " << sizeof(Hit); in IsValidPostingListSize()
34 if (size_in_bytes < min_posting_list_size()) { in IsValidPostingListSize()
35 ICING_LOG(ERROR) << "Size " << size_in_bytes << " is less than min size " in IsValidPostingListSize()
42 if (BitsToStore(size_in_bytes) > sizeof(Hit::Value) * 8) { in IsValidPostingListSize()
Dposting-list-used.h51 uint32_t size_in_bytes);
67 uint32_t size_in_bytes);
204 PostingListUsed(void *posting_list_buffer, uint32_t size_in_bytes) in PostingListUsed() argument
206 size_in_bytes_(size_in_bytes) {} in PostingListUsed()
/external/stressapptest/src/
Dadler32memcpy.cc86 bool CalculateAdlerChecksum(uint64 *data64, unsigned int size_in_bytes, in CalculateAdlerChecksum() argument
90 unsigned int count = size_in_bytes / sizeof(data); in CalculateAdlerChecksum()
125 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyC() argument
128 unsigned int count = size_in_bytes / sizeof(data); in AdlerMemcpyC()
166 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyWarmC() argument
169 unsigned int count = size_in_bytes / sizeof(data); in AdlerMemcpyWarmC()
227 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyAsm() argument
264 if ((size_in_bytes >> 19) > 0) { in AdlerMemcpyAsm()
270 uint32 remaining_words = (size_in_bytes % 48) / 4; in AdlerMemcpyAsm()
274 uint32 num_of_48_byte_units = size_in_bytes / 48; in AdlerMemcpyAsm()
[all …]
Dadler32memcpy.h42 bool CalculateAdlerChecksum(uint64 *data64, unsigned int size_in_bytes,
47 unsigned int size_in_bytes, AdlerChecksum *checksum);
52 unsigned int size_in_bytes, AdlerChecksum *checksum);
56 unsigned int size_in_bytes, AdlerChecksum *checksum);
/external/tensorflow/tensorflow/lite/delegates/gpu/metal/
Dbuffer.cc24 Buffer::Buffer(id<MTLBuffer> buffer, size_t size_in_bytes) in Buffer() argument
25 : buffer_(buffer), size_(size_in_bytes) {} in Buffer()
75 absl::Status CreateBuffer(size_t size_in_bytes, const void* data, in CreateBuffer() argument
80 length:size_in_bytes in CreateBuffer()
83 buffer = [device newBufferWithLength:size_in_bytes in CreateBuffer()
87 *result = Buffer(buffer, size_in_bytes); in CreateBuffer()
/external/libhevc/decoder/
Dihevcd_debug.h131 #define DUMP_QP(pu1_qp, size_in_bytes) ihevcd_debug_dump_qp(pu1_qp, size_in_bytes) argument
132 …_QP_CONST_IN_CTB(pu1_qp_const_in_ctb, size_in_bytes) ihevcs_dump_qp_const_in_ctb(pu1_qp_const_in_c… argument
133 …OP_FILTER(pu1_pic_no_loop_filter, size_in_bytes) ihevcd_debug_dump_no_loop_filter(pu1_pic_no_loop_… argument
140 #define DUMP_QP(pu1_qp, size_in_bytes) argument
141 #define DUMP_QP_CONST_IN_CTB(pu1_qp_const_in_ctb, size_in_bytes) argument
142 #define DUMP_NO_LOOP_FILTER(pu1_pic_no_loop_filter, size_in_bytes) argument
/external/tensorflow/tensorflow/core/profiler/internal/tpu/
Dtpu_tracer.cc101 size_t size_in_bytes; in CollectData() local
104 &size_in_bytes); in CollectData()
106 if (size_in_bytes > 0) { in CollectData()
107 std::vector<uint8_t> buffer(size_in_bytes); in CollectData()
109 buffer.data(), &size_in_bytes); in CollectData()
/external/deqp-deps/amber/src/vulkan/
Dbuffer_backed_descriptor.cc108 auto size_in_bytes = resources[i]->GetSizeInBytes(); in MoveResourceToBufferOutput() local
109 buffers[i]->SetElementCount(size_in_bytes / in MoveResourceToBufferOutput()
111 buffers[i]->ValuePtr()->resize(size_in_bytes); in MoveResourceToBufferOutput()
113 size_in_bytes); in MoveResourceToBufferOutput()
Dpush_constant.cc54 uint32_t size_in_bytes = it->offset + in GetVkPushConstantRange() local
65 assert(size_in_bytes + 3U <= std::numeric_limits<uint32_t>::max()); in GetVkPushConstantRange()
66 range.size = ((size_in_bytes + 3U) / 4U) * 4U; in GetVkPushConstantRange()
Dtransfer_buffer.cc24 uint32_t size_in_bytes, in TransferBuffer() argument
26 : Resource(device, size_in_bytes) { in TransferBuffer()
/external/libtextclassifier/native/lang_id/common/file/
Dmmap.h108 size_t size_in_bytes);
124 size_t size_in_bytes) in ScopedMmap() argument
125 : handle_(MmapFile(fd, offset_in_bytes, size_in_bytes)) {} in ScopedMmap()
/external/tensorflow/tensorflow/compiler/xla/service/
Dall_reduce_combiner.cc345 int64 size_in_bytes; in Run() local
347 size_in_bytes = ShapeUtil::ByteSizeOf(instructions.front()->shape()); in Run()
349 if (size_in_bytes > combine_threshold_in_bytes_) { in Run()
350 VLOG(1) << "Skipping due to size " << size_in_bytes in Run()
415 if (current_size_in_bytes + size_in_bytes > in Run()
425 if (size_in_bytes > current_size_in_bytes) { in Run()
438 current_size_in_bytes += size_in_bytes; in Run()
/external/arm-trusted-firmware/plat/nvidia/tegra/include/drivers/
Dmemctrl.h13 void tegra_memctrl_tzdram_setup(uint64_t phys_base, uint32_t size_in_bytes);
14 void tegra_memctrl_videomem_setup(uint64_t phys_base, uint32_t size_in_bytes);
/external/arm-trusted-firmware/plat/nvidia/tegra/common/
Dtegra_bl31_setup.c331 int32_t bl31_check_ns_address(uint64_t base, uint64_t size_in_bytes) in bl31_check_ns_address() argument
333 uint64_t end = base + size_in_bytes - U(1); in bl31_check_ns_address()
338 if ((base == 0U) || (size_in_bytes == 0U)) { in bl31_check_ns_address()
340 base, size_in_bytes); in bl31_check_ns_address()
/external/arm-trusted-firmware/plat/nvidia/tegra/soc/t194/
Dplat_memctrl.c54 void plat_memctrl_tzdram_setup(uint64_t phys_base, uint64_t size_in_bytes) in plat_memctrl_tzdram_setup() argument
75 tegra_mc_write_32(MC_SECURITY_CFG1_0, (uint32_t)(size_in_bytes >> 20)); in plat_memctrl_tzdram_setup()
/external/llvm-project/compiler-rt/lib/memprof/
Dmemprof_malloc_linux.cpp42 static void *AllocateFromLocalPool(uptr size_in_bytes) { in AllocateFromLocalPool() argument
43 uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize; in AllocateFromLocalPool()
65 uptr size_in_bytes) { in PosixMemalignFromLocalPool() argument
73 uptr aligned_size = RoundUpTo(size_in_bytes, kWordSize); in PosixMemalignFromLocalPool()
/external/llvm-project/lldb/source/Plugins/ABI/ARC/
DABISysV_arc.cpp174 inline size_t AugmentArgSize(size_t size_in_bytes) { in AugmentArgSize() argument
175 return llvm::alignTo(size_in_bytes, word_size); in AugmentArgSize()
385 bool SetSizedInteger(Scalar &scalar, uint64_t raw_value, uint8_t size_in_bytes, in SetSizedInteger() argument
387 switch (size_in_bytes) { in SetSizedInteger()
411 bool SetSizedFloat(Scalar &scalar, uint64_t raw_value, uint8_t size_in_bytes) { in SetSizedFloat() argument
412 switch (size_in_bytes) { in SetSizedFloat()
428 uint64_t ReadRawValue(const RegisterContextSP &reg_ctx, uint8_t size_in_bytes) { in ReadRawValue() argument
436 if (sizeof(uint64_t) == size_in_bytes) in ReadRawValue()
/external/deqp-deps/amber/android_sample/jni/
Damber_script.cc129 size_t size_in_bytes = AAsset_getLength(asset); in ReadContent() local
132 std::vector<uint8_t> content(size_in_bytes); in ReadContent()
134 AAsset_read(asset, content.data(), size_in_bytes); in ReadContent()
/external/tensorflow/tensorflow/core/profiler/internal/gpu/
Ddevice_tracer_test.cc303 const size_t size_in_bytes = 8; in TEST_F() local
308 ASSERT_EQ(cudaSuccess, cudaMalloc(&devptr, size_in_bytes)); in TEST_F()
310 ASSERT_EQ(cudaSuccess, cudaMemset(devptr, test_value, size_in_bytes)); in TEST_F()
311 int8_t buffer[size_in_bytes]; in TEST_F()
313 cudaMemcpy(buffer, devptr, size_in_bytes, cudaMemcpyDeviceToHost)); in TEST_F()
383 num_bytes == size_in_bytes) { in TEST_F()
/external/llvm-project/compiler-rt/lib/asan/
Dasan_malloc_linux.cpp42 static void *AllocateFromLocalPool(uptr size_in_bytes) { in AllocateFromLocalPool() argument
43 uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize; in AllocateFromLocalPool()
65 uptr size_in_bytes) { in PosixMemalignFromLocalPool() argument
73 uptr aligned_size = RoundUpTo(size_in_bytes, kWordSize); in PosixMemalignFromLocalPool()

12345