Home
last modified time | relevance | path

Searched refs:cache_size (Results 1 – 25 of 47) sorted by relevance

12

/external/mesa3d/src/gallium/tests/unit/
Du_cache_test.c67 unsigned cache_size; in main() local
70 for (cache_size = 2; cache_size < (1 << 15); cache_size *= 2) { in main()
71 for (cache_count = (cache_size << 5); cache_count < (cache_size << 10); cache_count *= 2) { in main()
78 printf("Testing cache size of %d with %d values.\n", cache_size, cache_count); in main()
83 cache_size); in main()
/external/curl/lib/
Dpingpong.c306 if((ptr + pp->cache_size) > (buf + data->set.buffer_size + 1)) { in Curl_pp_readresp()
310 memcpy(ptr, pp->cache, pp->cache_size); in Curl_pp_readresp()
311 gotbytes = (ssize_t)pp->cache_size; in Curl_pp_readresp()
314 pp->cache_size = 0; /* zero the size just in case */ in Curl_pp_readresp()
441 pp->cache_size = clipamount; in Curl_pp_readresp()
442 pp->cache = malloc(pp->cache_size); in Curl_pp_readresp()
444 memcpy(pp->cache, pp->linestart_resp, pp->cache_size); in Curl_pp_readresp()
518 return (!pp->sendleft && pp->cache && pp->nread_resp < pp->cache_size) ? in Curl_pp_moredata()
Dpingpong.h50 size_t cache_size; /* size of cache in bytes */ member
Dimap.c1143 size_t chunk = pp->cache_size; in imap_state_fetch_resp()
1164 if(pp->cache_size > chunk) { in imap_state_fetch_resp()
1166 memmove(pp->cache, pp->cache + chunk, pp->cache_size - chunk); in imap_state_fetch_resp()
1167 pp->cache_size -= chunk; in imap_state_fetch_resp()
1174 pp->cache_size = 0; in imap_state_fetch_resp()
/external/libunwind/src/x86_64/
DGtrace.c286 uint64_t cache_size = 1u << cache->log_size; in trace_lookup() local
287 uint64_t slot = ((rip * 0x9e3779b97f4a7c16) >> 43) & (cache_size-1); in trace_lookup()
307 if (++slot >= cache_size) in trace_lookup()
308 slot -= cache_size; in trace_lookup()
316 if (unlikely(addr || cache->used >= cache_size / 2)) in trace_lookup()
321 cache_size = 1u << cache->log_size; in trace_lookup()
322 slot = ((rip * 0x9e3779b97f4a7c16) >> 43) & (cache_size-1); in trace_lookup()
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_cache.c48 mgr->cache_size -= buf->size; in destroy_buffer_locked()
99 if (mgr->cache_size + buf->size > mgr->max_cache_size) { in pb_cache_add_buffer()
109 mgr->cache_size += buf->size; in pb_cache_add_buffer()
208 mgr->cache_size -= buf->size; in pb_cache_reclaim_buffer()
284 mgr->cache_size = 0; in pb_cache_init()
Dpb_cache.h56 uint64_t cache_size; member
/external/piex/src/binary_parse/
Dcached_paged_byte_array.cc30 const PagedByteArray* paged_byte_array, size_t cache_size) in CachedPagedByteArray() argument
31 : paged_byte_array_(paged_byte_array), cache_size_(cache_size) {} in CachedPagedByteArray()
Dcached_paged_byte_array.h38 size_t cache_size);
/external/e2fsprogs/lib/ext2fs/
Dinode.c72 for (i=0; i < fs->icache->cache_size; i++) in ext2fs_flush_icache()
90 for (i = 0; i < icache->cache_size; i++) in ext2fs_free_inode_cache()
98 errcode_t ext2fs_create_inode_cache(ext2_filsys fs, unsigned int cache_size) in ext2fs_create_inode_cache() argument
116 fs->icache->cache_size = cache_size; in ext2fs_create_inode_cache()
118 retval = ext2fs_get_array(fs->icache->cache_size, in ext2fs_create_inode_cache()
124 for (i = 0; i < fs->icache->cache_size; i++) { in ext2fs_create_inode_cache()
764 for (i = 0; i < fs->icache->cache_size; i++) { in ext2fs_read_inode_full()
793 cache_slot = (fs->icache->cache_last + 1) % fs->icache->cache_size; in ext2fs_read_inode_full()
892 for (i=0; i < fs->icache->cache_size; i++) { in ext2fs_write_inode_full()
Dext2fsP.h85 unsigned int cache_size; member
/external/gemmlowp/meta/
Dsingle_thread_gemm.h406 inline int CalculateCacheFriendlyTasksCount(int cache_size, int constant_memory, in CalculateCacheFriendlyTasksCount() argument
409 assert(constant_memory + per_chunk_memory < cache_size); in CalculateCacheFriendlyTasksCount()
410 const int available_cache = cache_size - constant_memory; in CalculateCacheFriendlyTasksCount()
437 template <int cache_size = 256 * 1024>
443 return cache_size; in EstimateScratchSize()
461 internal::CalculateCacheFriendlyTasksCount(cache_size, lhs_scratch, in ExecuteDispatch3D()
486 template <int cache_size = 256 * 1024>
492 return cache_size; in EstimateScratchSize()
510 internal::CalculateCacheFriendlyTasksCount(cache_size, rhs_scratch, in ExecuteDispatch3D()
/external/capstone/
Dcs.c488 unsigned int cache_size = INSN_CACHE_SIZE; in cs_disasm() local
506 cache_size = (unsigned int) count; in cs_disasm()
514 total_size = sizeof(cs_insn) * cache_size; in cs_disasm()
616 if (f == cache_size) { in cs_disasm()
618 cache_size = cache_size * 8 / 5; // * 1.6 ~ golden ratio in cs_disasm()
619 total_size += (sizeof(cs_insn) * cache_size); in cs_disasm()
652 } else if (f != cache_size) { in cs_disasm()
654 tmp = cs_mem_realloc(total, total_size - (cache_size - f) * sizeof(*insn_cache)); in cs_disasm()
/external/eigen/bench/
Dcheck_cache_queries.cpp69 int cache_size = (ways+1) * (partitions+1) * (line_size+1) * (sets+1); in main() local
77 cout << "cache[" << cache_id << "].size = " << cache_size << "\n"; in main()
/external/puffin/scripts/
Dtest_corpus.py124 if args.cache_size:
125 cmd += ['--cache_size={}'.format(args.cache_size)]
/external/webrtc/webrtc/base/
Ddiskcache.cc217 size_t cache_size = 0; in CheckLimit() local
219 cache_size += it->second.size; in CheckLimit()
221 ASSERT(cache_size == total_size_); in CheckLimit()
/external/tensorflow/tensorflow/core/kernels/
Dfixed_length_record_reader_op.cc93 int64 cache_size = lookahead_cache_.size(); in ReadLocked() local
95 Status s = buffered_inputstream_->SkipNBytes(hop_bytes_ - cache_size); in ReadLocked()
Ddeep_conv2d.cc398 const int64 cache_size = (256LL << 10) / sizeof(T); in operator ()() local
421 (cache_size - filter_transform_matrix_size) / per_filter_cost); in operator ()()
1023 const int64 cache_size = (256LL << 10) / sizeof(T); in operator ()() local
1032 const bool small_filter = ((filter_depth_size * 100) / cache_size) <= 25; in operator ()()
1052 int64{4}, (cache_size - total_fixed_cost) / total_per_tile_cost); in operator ()()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_quarantine.h51 void Init(uptr size, uptr cache_size) { in Init() argument
55 max_cache_size_ = cache_size; in Init()
Dsanitizer_coverage_libcdep.cc92 uptr cache_size);
444 uptr cache_size) { in IndirCall() argument
454 callee_cache[1] = cache_size; in IndirCall()
458 for (uptr i = 2; i < cache_size; i++) { in IndirCall()
/external/tensorflow/tensorflow/core/kernels/data/
Dcache_dataset_ops.cc736 size_t cache_size = cache_->size(); in SaveInternal() local
738 writer->WriteScalar(full_name("cache_size"), cache_size)); in SaveInternal()
739 for (size_t i = 0; i < cache_size; i++) { in SaveInternal()
770 size_t cache_size; in RestoreInternal() local
775 cache_size = static_cast<size_t>(temp); in RestoreInternal()
777 for (size_t i = 0; i < cache_size; ++i) { in RestoreInternal()
/external/squashfs-tools/squashfs-tools/
Dxattr.c79 static int cache_bytes = 0, cache_size = 0; variable
346 data_space = cache_size - cache_bytes; in get_xattr_space()
349 data_cache = realloc(data_cache, cache_size + in get_xattr_space()
353 cache_size += realloc_size; in get_xattr_space()
/external/libchrome/third_party/jinja2/
Denvironment.py283 cache_size=400, argument
325 self.cache = create_cache(cache_size)
363 loader=missing, cache_size=missing, auto_reload=missing, argument
388 if cache_size is not missing:
389 rv.cache = create_cache(cache_size)
/external/eigen/Eigen/src/Core/util/
DMemory.h803 int cache_size = (ways+1) * (partitions+1) * (line_size+1) * (sets+1);
807 case 1: l1 = cache_size; break;
808 case 2: l2 = cache_size; break;
809 case 3: l3 = cache_size; break;
/external/tensorflow/tensorflow/tools/test/
Dsystem_info_lib.py102 cpu_info.cache_size['L2'] = int(l2_cache_size.group(0)) * 1024

12