/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | iunknown.c | 227 header->size = SizeOfData; in NineUnknown_SetPrivateData() 229 memcpy(header_data, user_data, header->size); in NineUnknown_SetPrivateData() 232 DBG("New header %p, size %d\n", header, (int)header->size); in NineUnknown_SetPrivateData() 262 *pSizeOfData = header->size; in NineUnknown_GetPrivateData() 263 DBG("Found header %p, size %d. Requested max %d\n", header, (int)header->size, (int)sizeofdata); in NineUnknown_GetPrivateData() 269 if (sizeofdata < header->size) { in NineUnknown_GetPrivateData() 276 memcpy(pData, header_data, header->size); in NineUnknown_GetPrivateData()
|
/third_party/node/src/ |
H A D | base64-inl.h | 106 size_t base64_decoded_size(const TypeName* src, size_t size) { 108 if (size < 2) 111 if (src[size - 1] == '=') { 112 size--; 113 if (src[size - 1] == '=') 114 size--; 116 return base64_decoded_size_fast(size);
|
/third_party/node/test/common/ |
H A D | tls.js | 147 function PRF12(algo, secret, label, seed, size) { 149 return P_hash(algo, secret, newSeed, size); 152 function P_hash(algo, secret, seed, size) { 153 const result = Buffer.alloc(size); 158 while (j < size) { 164 if (j + todo > size) { 165 todo = size - j;
|
/third_party/ntfs-3g/include/fuse-lite/ |
H A D | fuse.h | 83 * buffer size argument includes the space for the terminating 127 /** Change the size of a file */ 344 * Change the size of an open file 428 * 64bit environment. The size and direction of data is 488 * @param op_size the size of the fuse_operations structure 578 int fuse_fs_read(struct fuse_fs *fs, const char *path, char *buf, size_t size, 581 size_t size, off_t off, struct fuse_file_info *fi); 602 int fuse_fs_truncate(struct fuse_fs *fs, const char *path, off_t size); 603 int fuse_fs_ftruncate(struct fuse_fs *fs, const char *path, off_t size, 614 const char *value, size_t size, in [all...] |
/third_party/ninja/src/ |
H A D | missing_deps.cc | 105 ProcessNodeDeps(node, &depfile_deps[0], depfile_deps.size()); in ProcessNode() 149 missing_dep_path_count_ += missing_deps_rule_names.size(); in ProcessNodeDeps() 155 std::cout << "Processed " << seen_.size() << " nodes.\n"; in PrintStats() 159 std::cout << nodes_missing_deps_.size() in PrintStats() 161 << generated_nodes_.size() << " distinct generated inputs " in PrintStats() 162 << "(from " << generator_rules_.size() << " rules) " in PrintStats() 183 for (size_t i = 0; i < to->inputs_.size(); ++i) { in PathExistsBetween()
|
/third_party/mesa3d/src/mesa/main/ |
H A D | program_binary.c | 63 uint32_t size; member 68 * Returns the header size needed for a binary 86 /* binary_size is the size of the buffer provided by the application. in write_program_binary() 95 hdr->size = payload_size; in write_program_binary() 121 crc32_len = hdr->size; in check_crc32() 228 *length = get_program_binary_header_size() + blob.size; in _mesa_get_program_binary_length() 250 if (blob.size + header_size > buf_size || in _mesa_get_program_binary() 254 bool written = write_program_binary(blob.data, blob.size, driver_sha1, in _mesa_get_program_binary() 259 *length = header_size + blob.size; in _mesa_get_program_binary()
|
/third_party/mesa3d/src/panfrost/bifrost/valhall/ |
H A D | va_lower_constants.c | 120 if (info.absneg && info.size == VA_SIZE_32) { in va_resolve_constant() 126 if (info.absneg && info.size == VA_SIZE_16) { in va_resolve_constant() 134 if (!staging && info.swizzle && info.size == VA_SIZE_16 && replicated_halves) { in va_resolve_constant() 162 if (!staging && info.swizzle && info.size == VA_SIZE_32) { in va_resolve_constant() 195 if (info.size == VA_SIZE_32) { in va_lower_constants() 207 } else if (info.size == VA_SIZE_16) { in va_lower_constants() 210 } else if (info.size == VA_SIZE_8 && info.lanes) { in va_lower_constants()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
H A D | nv98_video_bsp.c | 68 if (!bsp_bo || bsp_size > bsp_bo->size) { in nv98_decoder_bsp() 78 bsp_bo ? (unsigned)bsp_bo->size : 0, bsp_size, ret); in nv98_decoder_bsp() 85 if (!inter_bo || bsp_bo->size * 4 > inter_bo->size) { in nv98_decoder_bsp() 88 ret = nouveau_bo_new(dec->client->device, NOUVEAU_BO_VRAM, 0, bsp_bo->size * 4, NULL, &tmp_bo); in nv98_decoder_bsp() 91 inter_bo ? (unsigned)inter_bo->size : 0, (unsigned)bsp_bo->size * 4, ret); in nv98_decoder_bsp() 152 PUSH_DATA (push, slice_size << 8); // 408 interparm size? in nv98_decoder_bsp() 154 PUSH_DATA (push, ring_size << 8); // 410 interdata size in nv98_decoder_bsp() 156 PUSH_DATA (push, bucket_size << 8); // 418 bucket size in nv98_decoder_bsp() [all...] |
/third_party/libfuse/example/ |
H A D | poll.c | 144 static int fsel_read(const char *path, char *buf, size_t size, off_t offset, in fsel_read() argument 153 if (fsel_cnt[idx] < size) in fsel_read() 154 size = fsel_cnt[idx]; in fsel_read() 155 printf("READ %X transferred=%zu cnt=%u\n", idx, size, fsel_cnt[idx]); in fsel_read() 156 fsel_cnt[idx] -= size; in fsel_read() 159 memset(buf, fsel_hex_map[idx], size); in fsel_read() 160 return size; in fsel_read()
|
/third_party/ltp/testcases/kernel/syscalls/get_mempolicy/ |
H A D | get_mempolicy01.c | 114 TEST(set_mempolicy(tc->policy, nodemask->maskp, nodemask->size)); in test_set_mempolicy_default() 124 static int test_mbind(struct test_case *tc, unsigned long *maskp, unsigned long size) in test_mbind() argument 129 TEST(mbind(tc->addr, MEM_LENGTH, tc->policy, maskp, size, 0)); in test_mbind() 140 return test_mbind(tc, nodemask->maskp, nodemask->size); in test_mbind_default() 190 TST_EXP_PASS(get_mempolicy(&policy, getnodemask->maskp, getnodemask->size, in do_test() 198 exp_mask->size / 8, "expected:"); in do_test() 200 getnodemask->size / 8, "returned:"); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/pkeys/ |
H A D | pkey01.c | 38 static int size; variable 56 size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 58 size = getpagesize(); in setup() 143 buffer = SAFE_MMAP(NULL, size, mpa->prot, mpa->flags, fd, 0); in pkey_test() 150 if (ltp_pkey_mprotect(buffer, size, mpa->prot, pkey) == -1) in pkey_test() 179 if (ltp_pkey_mprotect(buffer, size, mpa->prot, 0x0) == -1) in pkey_test() 200 SAFE_MUNMAP(buffer, size); in pkey_test()
|
/third_party/libdrm/radeon/ |
H A D | radeon_cs_space.c | 71 sizes->op_vram_write += bo->size; in radeon_cs_setup_bo() 73 sizes->op_gart_write += bo->size; in radeon_cs_setup_bo() 76 sizes->op_read += bo->size; in radeon_cs_setup_bo() 89 sizes->op_read -= bo->size; in radeon_cs_setup_bo() 90 sizes->op_vram_write += bo->size; in radeon_cs_setup_bo() 92 sizes->op_read -= bo->size; in radeon_cs_setup_bo() 93 sizes->op_gart_write += bo->size; in radeon_cs_setup_bo()
|
/third_party/node/deps/v8/src/profiler/ |
H A D | sampling-heap-profiler.h | 32 return nodes_.size() == 0 ? nullptr : &nodes_.front(); 105 : size(size_), in Sample() 112 const size_t size; member 141 void Step(int bytes_allocated, Address soon_object, size_t size) override { 147 profiler_->SampleObject(soon_object, size); 161 void SampleObject(Address soon_object, size_t size); 182 v8::AllocationProfile::Allocation ScaleSample(size_t size,
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_batch.h | 54 /* Our target batch size - flush approximately at this point. */ 80 /** Total size of all chained batches (in bytes). */ 229 * Ensure the current command buffer has \param size bytes of space 236 iris_require_command_space(struct iris_batch *batch, unsigned size) in iris_require_command_space() argument 238 const unsigned required_bytes = iris_batch_bytes_used(batch) + size; in iris_require_command_space() 268 iris_batch_emit(struct iris_batch *batch, const void *data, unsigned size) in iris_batch_emit() argument 270 void *map = iris_get_command_space(batch, size); in iris_batch_emit() 271 memcpy(map, data, size); in iris_batch_emit() 302 * Record the size of a piece of state for use in INTEL_DEBUG=bat printing. 307 uint32_t size) in iris_record_state_size() 305 iris_record_state_size(struct hash_table_u64 *ht, uint32_t offset_from_base, uint32_t size) iris_record_state_size() argument [all...] |
/third_party/mesa3d/src/panfrost/midgard/ |
H A D | helpers.h | 271 unsigned size; member 363 midgard_ldst_comp(unsigned reg, unsigned component, unsigned size) in midgard_ldst_comp() argument 366 assert(size == 16 || size == 32 || size == 64); in midgard_ldst_comp() 369 if (size == 64) { in midgard_ldst_comp() 372 } else if (size == 16) { in midgard_ldst_comp()
|
/third_party/lame/test/ |
H A D | lametest.py | 54 size = max(size1, size2) 57 size = 0 58 return (diff, size) 76 diff, size = fdiff(name1, name2) 78 print "output identical: diff=%i total=%i" % (diff, size) 82 (diff, size, 100 * float(diff) / size)
|
/third_party/python/Include/internal/ |
H A D | pycore_frame.h | 196 _PyThreadState_BumpFramePointerSlow(PyThreadState *tstate, size_t size); 199 _PyThreadState_HasStackSpace(PyThreadState *tstate, size_t size) in _PyThreadState_HasStackSpace() argument 207 size < (size_t)(tstate->datastack_limit - tstate->datastack_top); in _PyThreadState_HasStackSpace() 211 _PyThreadState_BumpFramePointer(PyThreadState *tstate, size_t size) in _PyThreadState_BumpFramePointer() argument 213 if (_PyThreadState_HasStackSpace(tstate, size)) { in _PyThreadState_BumpFramePointer() 215 tstate->datastack_top += size; in _PyThreadState_BumpFramePointer() 218 return _PyThreadState_BumpFramePointerSlow(tstate, size); in _PyThreadState_BumpFramePointer()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | span_unittest.cpp | 76 ASSERT_TRUE(sp.size() == 0); in TEST() 84 ASSERT_EQ(sp.size(), kSpanDataSize); in TEST() 96 ASSERT_EQ(sp2.size(), kSpanDataSize); in TEST() 103 ASSERT_EQ(sp3.size(), kSpanDataSize); in TEST() 164 ASSERT_EQ(first.size(), kSplitSize); in TEST() 168 ASSERT_EQ(last.size(), kSplitSize); in TEST() 181 ASSERT_EQ(subspan.size(), kSplitSize); in TEST()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | CLMemory.cpp | 113 copySize = mProperties.size() * sizeof(decltype(mProperties)::value_type); in getInfo() 121 // CL_INVALID_VALUE if size in bytes specified by param_value_size is < size of return type in getInfo() 156 size_t size, in Memory() 163 mImpl(context.getImpl().createBuffer(buffer, size, hostPtr, errorCode)), in Memory() 164 mSize(size), in Memory() 172 size_t size, in Memory() 180 mImpl(parent.mImpl->createSubBuffer(buffer, flags, size, errorCode)), in Memory() 181 mSize(size), in Memory() 152 Memory(const Buffer &buffer, Context &context, PropArray &&properties, MemFlags flags, size_t size, void *hostPtr, cl_int &errorCode) Memory() argument 168 Memory(const Buffer &buffer, Buffer &parent, MemFlags flags, size_t offset, size_t size, cl_int &errorCode) Memory() argument
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/ |
H A D | BufferMtl.h | 118 size_t size, 123 size_t size, 129 GLsizeiptr size) override; 167 size_t size() const { return static_cast<size_t>(mState.getSize()); } in size() function in rx::BufferMtl 181 size_t size, 185 size_t size, 189 angle::Result commitShadowCopy(const gl::Context *context, size_t size);
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
H A D | Buffer11.h | 67 GLsizeiptr size, 73 unsigned int size, 81 GLsizeiptr size, 102 size_t size, 107 size_t size, 113 GLsizeiptr size) override; 178 GLsizeiptr size,
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/ |
H A D | JITLinkGeneric.h | 164 << (const void *)((char *)SegMem.data() + SegMem.size()) 194 << B->getContent().size() << " bytes, from " 198 memcpy(BlockDataPtr, B->getContent().data(), B->getContent().size()); 214 B->setContent(StringRef(BlockDataPtr, B->getContent().size())); 217 LastBlockEnd = BlockDataPtr + B->getContent().size(); 225 << (const void *)((char *)SegMem.data() + SegMem.size()) << "\n"; 227 while (LastBlockEnd != SegMem.data() + SegMem.size())
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
H A D | InlineAsm.cpp | 149 if (N >= ConstraintsSoFar.size() || ConstraintsSoFar[N].Type != isOutput|| in Parse() 157 ConstraintsSoFar[N].multipleAlternatives.size()) in Parse() 164 scInfo.MatchingInput = ConstraintsSoFar.size(); in Parse() 169 ConstraintsSoFar.size()) in Parse() 172 ConstraintsSoFar[N].MatchingInput = ConstraintsSoFar.size(); in Parse() 207 if (index < multipleAlternatives.size()) { in selectAlternative() 264 for (unsigned i = 0, e = Constraints.size(); i != e; ++i) { in Verify()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
H A D | MCSectionMachO.cpp | 80 { 0, StringLiteral("none"), StringLiteral("") }, // used if section has no attributes but has a stub size 88 assert(Segment.size() <= 16 && Section.size() <= 16 && in MCSectionMachO() 91 if (i < Segment.size()) in MCSectionMachO() 96 if (i < Section.size()) in MCSectionMachO() 131 // If we have a S_SYMBOL_STUBS size specified, print it along with 'none' as in PrintSwitchToSection() 161 // If we have a S_SYMBOL_STUBS size specified, print it. in PrintSwitchToSection() 194 return SplitSpec.size() > Idx ? SplitSpec[Idx].trim() : StringRef(); in ParseSectionSpecifier() 203 if (Segment.empty() || Segment.size() > 16) in ParseSectionSpecifier() 212 if (Section.size() > 1 in ParseSectionSpecifier() [all...] |
/third_party/vk-gl-cts/external/amber/src/src/vkscript/ |
H A D | section_parser.cc | 142 size_t size = contents.size(); in AddSection() local 143 while (size > 0) { in AddSection() 144 if (contents[size - 1] == '\n' || contents[size - 1] == '\r') { in AddSection() 145 --size; in AddSection() 152 {section_type, shader_type, fmt, line_count, contents.substr(0, size)}); in AddSection()
|