Home
last modified time | relevance | path

Searched refs:nmbclusters (Results 1 – 10 of 10) sorted by relevance

/xnu-8796.141.3/bsd/dev/
H A Dunix_startup.c184 if ((scale = nmbclusters / NMBCLUSTERS) > 1) { in bsd_startupearly()
224 nmbclusters = bsd_mbuf_cluster_reserve(NULL) / MCLBYTES;
225 return (vm_map_size_t)(nmbclusters * MCLBYTES);
242 (vm_size_t) (nmbclusters * MCLBYTES), in bsd_bufferinit()
305 if ((nmbclusters = ncl) == 0) { in bsd_mbuf_cluster_reserve()
307 nmbclusters = mbuf_default_ncl(mem_actual); in bsd_mbuf_cluster_reserve()
310 if (nmbclusters & 0x1) { in bsd_mbuf_cluster_reserve()
311 --nmbclusters; in bsd_mbuf_cluster_reserve()
315 if (nmbclusters > MAX_NCL) { in bsd_mbuf_cluster_reserve()
316 nmbclusters = MAX_NCL; in bsd_mbuf_cluster_reserve()
[all …]
/xnu-8796.141.3/bsd/conf/
H A Dparam.c114 unsigned int nmbclusters = NMBCLUSTERS; variable
/xnu-8796.141.3/bsd/netinet6/
H A Dfrag6.c180 ip6_maxfragpackets = nmbclusters / 32; in frag6_init()
1312 if (i < -1 || i > (nmbclusters / 4)) {
1336 if (i < -1 || i > (nmbclusters / 4)) {
/xnu-8796.141.3/bsd/kern/
H A Duipc_mbuf.c1322 njcl = nmbclusters / 3; in mbuf_table_init()
1330 nclusters = P2ROUNDDOWN(nmbclusters - njcl, NCLPG); in mbuf_table_init()
1337 njcl = P2ROUNDDOWN(nmbclusters - nclusters, NCLPJCL); in mbuf_table_init()
1340 nclusters = P2ROUNDDOWN(nmbclusters - njcl, NCLPG); in mbuf_table_init()
1650 if (nmbclusters == 0) { in mbinit()
1651 nmbclusters = NMBCLUSTERS; in mbinit()
1655 VERIFY(nmbclusters != 0 && !(nmbclusters & 0x1)); in mbinit()
1669 (P2ROUNDUP(nmbclusters, (MBSIZE >> MCLSHIFT)) << MCLSHIFT) >> MBSHIFT; in mbinit()
1715 mcl_pages = (nmbclusters << MCLSHIFT) / PAGE_SIZE; in mbinit()
1722 embutl = (mbutl + (nmbclusters * MCLBYTES)); in mbinit()
[all …]
H A Duipc_socket2.c2970 SYSCTL_INT(_kern_ipc, KIPC_NMBCLUSTERS, nmbclusters,
2971 CTLFLAG_RD | CTLFLAG_LOCKED, &nmbclusters, 0, "");
/xnu-8796.141.3/bsd/sys/
H A Dmbuf.h1452 extern unsigned int nmbclusters; /* number of mapped clusters */
/xnu-8796.141.3/bsd/netinet/
H A Dip_input.c532 maxnipq = nmbclusters / 32; in ip_init()
2132 if (i < -1 || i > (nmbclusters / 4)) {
H A Dudp_usrreq.c248 uint32_t pool_size = (nmbclusters << MCLSHIFT) >> MBSHIFT; in udp_init()
H A Dtcp_input.c979 u_int32_t mblim = ((nmbclusters >> 1) << (MCLSHIFT - MSIZESHIFT)); in tcp_cansbgrow()
985 u_int32_t sbspacelim = ((nmbclusters >> 4) << MCLSHIFT); in tcp_cansbgrow()
/xnu-8796.141.3/bsd/net/
H A Dcontent_filter.c2524 mbuf_limit = MAX(UDP_FLOW_GC_MBUF_CNT_MAX, (nmbclusters << MCLSHIFT) >> UDP_FLOW_GC_MBUF_SHIFT); in cfil_init()