Home
last modified time | relevance | path

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

/xnu-12377.81.4/osfmk/arm/
H A Dcaches.c277 unsigned int cache_size = 0x0UL; in platform_cache_init() local
286 …>cpu_cache_dispatch(cpu_data_ptr->cpu_id, CacheConfig, CacheConfigSize, (unsigned int)&cache_size); in platform_cache_init()
287 cpuid_cache_info->c_l2size = cache_size; in platform_cache_init()
/xnu-12377.81.4/osfmk/i386/
H A Dmachine_routines.c730 cpu_infop->l1_icache_size = cpuid_infop->cache_size[L1I]; in ml_cpu_get_info_type()
731 cpu_infop->l1_dcache_size = cpuid_infop->cache_size[L1D]; in ml_cpu_get_info_type()
733 if (cpuid_infop->cache_size[L2U] > 0) { in ml_cpu_get_info_type()
735 cpu_infop->l2_cache_size = cpuid_infop->cache_size[L2U]; in ml_cpu_get_info_type()
741 if (cpuid_infop->cache_size[L3U] > 0) { in ml_cpu_get_info_type()
743 cpu_infop->l3_cache_size = cpuid_infop->cache_size[L3U]; in ml_cpu_get_info_type()
H A Dcpu_threads.c126 if (cachep->type == 0 || cpuid_info()->cache_size[i] == 0) { in x86_LLC_info()
284 if (cachep->type == 0 || cpuid_info()->cache_size[i] == 0) { in x86_cache_list()
298 cur->cache_size = cpuid_info()->cache_size[i]; in x86_cache_list()
326 && cur_cache->cache_size == matcher->cache_size) { in x86_match_cache()
H A Dcpuid.c381 uint32_t cache_size; in cpuid_set_cache_info() local
425 cache_size = cache_linesize * cache_sets * in cpuid_set_cache_info()
427 info_p->cache_size[type] = cache_size; in cpuid_set_cache_info()
433 cache_type_str[type], cache_size); in cpuid_set_cache_info()
493 info_p->cache_size[L2U] = info_p->cpuid_cache_size * 1024; in cpuid_set_cache_info()
500 info_p->cache_size[L2U]); in cpuid_set_cache_info()
H A Dcpu_topology.h55 uint32_t cache_size; /* total size of cache */ member
H A Dcpu_topology.c312 return cachep ? cachep->cache_size : 0; in ml_cpu_cache_size()
H A Dcpuid.h445 uint32_t cache_size[LCACHE_MAX]; member
/xnu-12377.81.4/bsd/netinet/
H A Dtcp_cache.c1724 size_t cache_size; in tcp_cache_init() local
1734 cache_size = tcp_cache_roundup2((uint32_t)(sane_size_meg >> 2)); in tcp_cache_init()
1735 if (cache_size < 32) { in tcp_cache_init()
1736 cache_size = 32; in tcp_cache_init()
1737 } else if (cache_size > 1024) { in tcp_cache_init()
1738 cache_size = 1024; in tcp_cache_init()
1741 tcp_cache = zalloc_permanent(sizeof(struct tcp_cache_head) * cache_size, in tcp_cache_init()
1743 tcp_cache_size = cache_size; in tcp_cache_init()
1744 tcp_heuristics = zalloc_permanent(sizeof(struct tcp_heuristics_head) * cache_size, in tcp_cache_init()
1746 tcp_heuristics_size = cache_size; in tcp_cache_init()