Home
last modified time | relevance | path

Searched refs:ptrs (Results 1 – 25 of 42) sorted by relevance

12

/third_party/ltp/testcases/kernel/device-drivers/misc_modules/per_cpu_allocator_module/
Dtest_per_cpu_allocator_module.c86 static void *ptrs[NR_CMDS]; variable
137 if (!ptrs[cmdno]) in free_cmd()
140 verify_area(ptrs[cmdno], cmds[cmdno].size, cmdno); in free_cmd()
141 free_percpu(ptrs[cmdno]); in free_cmd()
142 ptrs[cmdno] = NULL; in free_cmd()
155 ptrs[i] = __alloc_percpu(cmd->size, in run_test()
158 if (ptrs[i]) in run_test()
159 fill_area(ptrs[i], cmd->size, i); in run_test()
/third_party/ltp/testcases/kernel/mem/mtest07/
Dmallocstress.c73 long *ptrs[MAXPTRS]; in allocate_free() local
86 ptrs[num_alloc] = malloc(size); in allocate_free()
88 if (!ptrs[num_alloc]) in allocate_free()
90 ptrs[num_alloc][0] = num_alloc; in allocate_free()
119 if (ptrs[i][0] != i) { in allocate_free()
125 free(ptrs[i]); in allocate_free()
/third_party/gn/src/gn/
Dstring_atom_unittest.cc111 std::array<const std::string*, 3> ptrs = { in TEST() local
116 std::sort(ptrs.begin(), ptrs.end()); in TEST()
119 EXPECT_EQ(atom_to_ptr(*it), ptrs[0]); in TEST()
122 EXPECT_EQ(atom_to_ptr(*it), ptrs[1]); in TEST()
125 EXPECT_EQ(atom_to_ptr(*it), ptrs[2]); in TEST()
/third_party/jerryscript/tests/unit-core/
Dtest-poolman.cpp42 uint8_t *ptrs[TEST_MAX_SUB_ITERS]; variable
85 if (ptrs[j] != NULL)
87 TEST_ASSERT (!memcmp (data[j], ptrs[j], TEST_CHUNK_SIZE));
88 jmem_pools_free (ptrs[j], TEST_CHUNK_SIZE);
/third_party/node/deps/v8/src/wasm/
Dwasm-import-wrapper-cache.cc49 std::vector<WasmCode*> ptrs; in ~WasmImportWrapperCache() local
50 ptrs.reserve(entry_map_.size()); in ~WasmImportWrapperCache()
53 ptrs.push_back(e.second); in ~WasmImportWrapperCache()
56 WasmCode::DecrementRefCount(base::VectorOf(ptrs)); in ~WasmImportWrapperCache()
/third_party/icu/icu4c/source/test/intltest/
Dtufmtts.cpp188 MeasureUnit **ptrs = new MeasureUnit *[TimeUnit::UTIMEUNIT_FIELD_COUNT]; in testAPI() local
190 ptrs[TimeUnit::UTIMEUNIT_YEAR] = MeasureUnit::createYear(status); in testAPI()
191 ptrs[TimeUnit::UTIMEUNIT_MONTH] = MeasureUnit::createMonth(status); in testAPI()
192 ptrs[TimeUnit::UTIMEUNIT_DAY] = MeasureUnit::createDay(status); in testAPI()
193 ptrs[TimeUnit::UTIMEUNIT_WEEK] = MeasureUnit::createWeek(status); in testAPI()
194 ptrs[TimeUnit::UTIMEUNIT_HOUR] = MeasureUnit::createHour(status); in testAPI()
195 ptrs[TimeUnit::UTIMEUNIT_MINUTE] = MeasureUnit::createMinute(status); in testAPI()
196 ptrs[TimeUnit::UTIMEUNIT_SECOND] = MeasureUnit::createSecond(status); in testAPI()
208 MeasureUnit(*ptr) == *ptrs[j]); in testAPI()
215 delete ptrs[i]; in testAPI()
[all …]
/third_party/ffmpeg/libavcodec/
Dlibopenh264dec.c95 uint8_t *ptrs[4] = { NULL }; in svc_decode_frame() local
106 state = (*s->decoder)->FlushFrame(s->decoder, ptrs, &info); in svc_decode_frame()
117 … state = (*s->decoder)->DecodeFrameNoDelay(s->decoder, avpkt->data, avpkt->size, ptrs, &info); in svc_decode_frame()
119 state = (*s->decoder)->DecodeFrame2(s->decoder, avpkt->data, avpkt->size, ptrs, &info); in svc_decode_frame()
144 …av_image_copy(avframe->data, avframe->linesize, (const uint8_t **) ptrs, linesize, avctx->pix_fmt,… in svc_decode_frame()
Diff.c814 GetByteContext ptrs, gb; in decode_short_horizontal_delta() local
819 bytestream2_init(&ptrs, buf, buf_end - buf); in decode_short_horizontal_delta()
823 ofssrc = bytestream2_get_be32(&ptrs); in decode_short_horizontal_delta()
868 GetByteContext ptrs, gb; in decode_byte_vertical_delta() local
872 bytestream2_init(&ptrs, buf, buf_end - buf); in decode_byte_vertical_delta()
876 ofssrc = bytestream2_get_be32(&ptrs); in decode_byte_vertical_delta()
1046 GetByteContext ptrs, gb, dptrs, dgb; in decode_short_vertical_delta() local
1053 bytestream2_init(&ptrs, buf, buf_end - buf); in decode_short_vertical_delta()
1058 ofssrc = bytestream2_get_be32(&ptrs); in decode_short_vertical_delta()
1114 GetByteContext ptrs, gb, dptrs, dgb; in decode_long_vertical_delta() local
[all …]
/third_party/mesa3d/src/vulkan/util/
Dvk_alloc.h184 void **ptrs[12]; member
207 assert(ma->ptr_count < ARRAY_SIZE(ma->ptrs)); in vk_multialloc_add_size_align()
208 ma->ptrs[ma->ptr_count++] = ptr; in vk_multialloc_add_size_align()
247 STATIC_ASSERT(ARRAY_SIZE(ma->ptrs) == 12); in vk_multialloc_alloc()
250 *ma->ptrs[_i] = (char *)ptr + (uintptr_t)*ma->ptrs[_i] in vk_multialloc_alloc()
/third_party/mesa3d/src/panfrost/lib/
Dpan_util.h75 panfrost_last_nonnull(uint64_t *ptrs, unsigned count) in panfrost_last_nonnull() argument
78 if (ptrs[i]) in panfrost_last_nonnull()
79 return ptrs[i]; in panfrost_last_nonnull()
/third_party/benchmark/bindings/python/google_benchmark/
Dbenchmark.cc21 std::vector<char*> ptrs; in Initialize() local
22 ptrs.reserve(argv.size()); in Initialize()
24 ptrs.push_back(const_cast<char*>(arg.c_str())); in Initialize()
26 ptrs[0] = const_cast<char*>(executable_name.c_str()); in Initialize()
28 benchmark::Initialize(&argc, ptrs.data()); in Initialize()
32 remaining_argv.emplace_back(ptrs[i]); in Initialize()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/compute/
DvktComputeCooperativeMatrixTests.cpp825 void *ptrs[5]; in iterate() local
828 ptrs[i] = buffers[i]->getAllocation().getHostPtr(); in iterate()
855 VkDeviceAddress *addrsInMemory = (VkDeviceAddress *)ptrs[4]; in iterate()
937 … setDataFloat(ptrs[i], dataTypes[i], j, ((float)(deRandom_getUint32(&rnd) & 0xff) - 64.0f)/2.0f); in iterate()
939 setDataFloat(ptrs[i], dataTypes[i], j, ((float)(deRandom_getUint32(&rnd) & 0xf) - 4.0f)/2.0f); in iterate()
942 setDataInt(ptrs[i], dataTypes[i], j, (deRandom_getUint32(&rnd) & 0xff) - 128); in iterate()
1001 float inputA = getDataFloat(ptrs[0], dataTypes[0], i); in iterate()
1002 float inputB = getDataFloat(ptrs[1], dataTypes[1], i); in iterate()
1003 float output = getDataFloat(ptrs[3], dataTypes[3], i); in iterate()
1076 float Aik = getDataFloat(ptrs[0], dataTypes[0], ik); in iterate()
[all …]
DvktComputeZeroInitializeWorkgroupMemoryTests.cpp1253 deUint32* ptrs[numBuffers]; in iterate() local
1256 ptrs[i] = (deUint32*)buffers[i]->getAllocation().getHostPtr(); in iterate()
1260 ptrs[1][i] = i; in iterate()
1262 deMemset(ptrs[0], 0xff, (size_t)size); in iterate()
1366 if (ptrs[0][i] != expected) in iterate()
1368 … << "failure at index " << i << ": expected " << expected << ", got: " << ptrs[0][i] << tcu::TestL… in iterate()
1373 deMemset(ptrs[0], 0xff, (size_t)size); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/compute/
DvktComputeCooperativeMatrixTests.cpp825 void *ptrs[5]; in iterate() local
828 ptrs[i] = buffers[i]->getAllocation().getHostPtr(); in iterate()
855 VkDeviceAddress *addrsInMemory = (VkDeviceAddress *)ptrs[4]; in iterate()
937 … setDataFloat(ptrs[i], dataTypes[i], j, ((float)(deRandom_getUint32(&rnd) & 0xff) - 64.0f)/2.0f); in iterate()
939 setDataFloat(ptrs[i], dataTypes[i], j, ((float)(deRandom_getUint32(&rnd) & 0xf) - 4.0f)/2.0f); in iterate()
942 setDataInt(ptrs[i], dataTypes[i], j, (deRandom_getUint32(&rnd) & 0xff) - 128); in iterate()
1001 float inputA = getDataFloat(ptrs[0], dataTypes[0], i); in iterate()
1002 float inputB = getDataFloat(ptrs[1], dataTypes[1], i); in iterate()
1003 float output = getDataFloat(ptrs[3], dataTypes[3], i); in iterate()
1076 float Aik = getDataFloat(ptrs[0], dataTypes[0], ik); in iterate()
[all …]
DvktComputeZeroInitializeWorkgroupMemoryTests.cpp1253 deUint32* ptrs[numBuffers]; in iterate() local
1256 ptrs[i] = (deUint32*)buffers[i]->getAllocation().getHostPtr(); in iterate()
1260 ptrs[1][i] = i; in iterate()
1262 deMemset(ptrs[0], 0xff, (size_t)size); in iterate()
1366 if (ptrs[0][i] != expected) in iterate()
1368 … << "failure at index " << i << ": expected " << expected << ", got: " << ptrs[0][i] << tcu::TestL… in iterate()
1373 deMemset(ptrs[0], 0xff, (size_t)size); in iterate()
/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise11.c120 long *ptrs[NUM_PAGES]; in allocate_offline() local
126 ptrs[num_alloc] = allocate_write((tnum << NUM_PAGES_OFFSET) | num_alloc); in allocate_offline()
127 if (ptrs[num_alloc] == NULL) in allocate_offline()
130 if (madvise(ptrs[num_alloc], pagesize, MADV_SOFT_OFFLINE) == -1) { in allocate_offline()
140 if (verif_unmap(ptrs[i], (tnum << NUM_PAGES_OFFSET) | i) != 0) in allocate_offline()
/third_party/musl/libc-test/src/functional/
Dtest-mallinfo.c44 void *ptrs[SIZES_COUNT]; in test_main_thread() local
47 ptrs[i] = malloc(sizes[i]); in test_main_thread()
53 free(ptrs[i]); in test_main_thread()
Dtest-malloc-info-stats-print.h83 void *ptrs[SIZES_COUNT] = {0}; in get_main_thread_test_results() local
85 ptrs[i] = malloc(sizes[i]); in get_main_thread_test_results()
89 free(ptrs[i]); in get_main_thread_test_results()
/third_party/skia/src/core/
DSkDataTable.cpp87 sk_sp<SkDataTable> SkDataTable::MakeCopyArrays(const void * const * ptrs, in MakeCopyArrays() argument
106 memcpy(elem, ptrs[i], sizes[i]); in MakeCopyArrays()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/reconvergence/
DvktReconvergenceTests.cpp1676 deUint32 *ptrs[3]; in iterate() local
1679 ptrs[i] = (deUint32 *)buffers[i]->getAllocation().getHostPtr(); in iterate()
1683 ptrs[0][i] = i; in iterate()
1685 deMemset(ptrs[1], 0, (size_t)sizes[1]); in iterate()
1686 deMemset(ptrs[2], 0, (size_t)sizes[2]); in iterate()
1815 deMemset(ptrs[1], 0, invocationStride * sizeof(deUint64)); in iterate()
1821 newMaxLoc = de::max(newMaxLoc, ptrs[2][id]); in iterate()
1846 ptrs[1] = (deUint32 *)buffers[1]->getAllocation().getHostPtr(); in iterate()
1847 deMemset(ptrs[1], 0, (size_t)sizes[1]); in iterate()
1890 const deUint64 *result = (const deUint64 *)ptrs[1]; in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/reconvergence/
DvktReconvergenceTests.cpp1676 deUint32 *ptrs[3]; in iterate() local
1679 ptrs[i] = (deUint32 *)buffers[i]->getAllocation().getHostPtr(); in iterate()
1683 ptrs[0][i] = i; in iterate()
1685 deMemset(ptrs[1], 0, (size_t)sizes[1]); in iterate()
1686 deMemset(ptrs[2], 0, (size_t)sizes[2]); in iterate()
1815 deMemset(ptrs[1], 0, invocationStride * sizeof(deUint64)); in iterate()
1821 newMaxLoc = de::max(newMaxLoc, ptrs[2][id]); in iterate()
1846 ptrs[1] = (deUint32 *)buffers[1]->getAllocation().getHostPtr(); in iterate()
1847 deMemset(ptrs[1], 0, (size_t)sizes[1]); in iterate()
1890 const deUint64 *result = (const deUint64 *)ptrs[1]; in iterate()
/third_party/python/Objects/
Dobmalloc.c1379 struct arena_map_bot *ptrs[MAP_MID_LENGTH]; member
1383 struct arena_map_mid *ptrs[MAP_TOP_LENGTH]; member
1409 if (arena_map_root.ptrs[i1] == NULL) { in arena_map_get()
1417 arena_map_root.ptrs[i1] = n; in arena_map_get()
1421 if (arena_map_root.ptrs[i1]->ptrs[i2] == NULL) { in arena_map_get()
1429 arena_map_root.ptrs[i1]->ptrs[i2] = n; in arena_map_get()
1432 return arena_map_root.ptrs[i1]->ptrs[i2]; in arena_map_get()
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/
Dsymbolize_test.cc335 const char *ptrs[] = {kPadding0, kPadding1}; in TEST() local
337 for (const char *ptr : ptrs) { in TEST()
362 absl::Symbolize(ptrs[i] + offset, buf, sizeof(buf)); in TEST()
/third_party/skia/tests/
DSkBlockAllocatorTest.cpp273 std::vector<SkBlockAllocator::ByteRange> ptrs; in DEF_TEST()
274 ptrs.reserve(32); // silence clang-tidy performance warning in DEF_TEST()
276 ptrs.push_back(pool->allocate<4>(16)); in DEF_TEST()
282 auto br = ptrs[i]; in DEF_TEST()
289 REPORTER_ASSERT(r, pool->allocate<4>(16).fStart == ptrs[0].fStart); in DEF_TEST()
/third_party/skia/include/core/
DSkDataTable.h75 static sk_sp<SkDataTable> MakeCopyArrays(const void * const * ptrs,

12