Home
last modified time | relevance | path

Searched refs:cache_size (Results 1 – 25 of 38) 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.c299 DEBUGASSERT((ptr+pp->cache_size) <= (buf+BUFSIZE+1)); in Curl_pp_readresp()
300 memcpy(ptr, pp->cache, pp->cache_size); in Curl_pp_readresp()
301 gotbytes = (ssize_t)pp->cache_size; in Curl_pp_readresp()
304 pp->cache_size = 0; /* zero the size just in case */ in Curl_pp_readresp()
429 pp->cache_size = clipamount; in Curl_pp_readresp()
430 pp->cache = malloc(pp->cache_size); in Curl_pp_readresp()
432 memcpy(pp->cache, pp->linestart_resp, pp->cache_size); in Curl_pp_readresp()
506 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.c1137 size_t chunk = pp->cache_size; in imap_state_fetch_resp()
1155 if(pp->cache_size > chunk) { in imap_state_fetch_resp()
1157 memmove(pp->cache, pp->cache + chunk, pp->cache_size - chunk); in imap_state_fetch_resp()
1158 pp->cache_size -= chunk; in imap_state_fetch_resp()
1165 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/syslinux/core/fs/
Ddiskio.c29 dev.cache_size = 128*1024; in device_init()
30 dev.cache_data = malloc(dev.cache_size); in device_init()
Dcache.c27 if (dev->cache_size < dev->cache_block_size + 2*sizeof(struct cache)) { in cache_init()
34 (dev->cache_size - sizeof(struct cache))/ in cache_init()
/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()
763 for (i = 0; i < fs->icache->cache_size; i++) { in ext2fs_read_inode_full()
792 cache_slot = (fs->icache->cache_last + 1) % fs->icache->cache_size; in ext2fs_read_inode_full()
891 for (i=0; i < fs->icache->cache_size; i++) { in ext2fs_write_inode_full()
Dext2fsP.h72 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/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/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/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/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/libmojo/third_party/jinja2/
Denvironment.py257 cache_size=50, argument
298 self.cache = create_cache(cache_size)
330 loader=missing, cache_size=missing, auto_reload=missing, argument
355 if cache_size is not missing:
356 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/syslinux/core/include/
Dfs.h141 uint32_t cache_size; member
/external/dnsmasq/src/
Dcache.c753 static int read_hostsfile(char *filename, int index, int cache_size) in read_hostsfile() argument
757 int addr_count = 0, name_count = cache_size, lineno = 0; in read_hostsfile()
815 if ((name_count - cache_size) > 1000) in read_hostsfile()
818 cache_size = name_count; in read_hostsfile()
/external/freetype/src/cache/
Dftccache.h135 FT_Offset cache_size; member
/external/webp/src/dec/
Dframe_dec.c707 const size_t cache_size = top_size * cache_height; in AllocateMemory() local
714 + cache_size + alpha_size + WEBP_ALIGN_CST; in AllocateMemory()
776 mem += cache_size; in AllocateMemory()

12