Home
last modified time | relevance | path

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

/xnu-12377.81.4/bsd/dev/
H A Dunix_startup.c197 nmbclusters = bsd_mbuf_cluster_reserve(NULL) / MCLBYTES;
198 return (vm_map_size_t)(nmbclusters * MCLBYTES);
215 (vm_size_t) (nmbclusters * MCLBYTES), in bsd_bufferinit()
278 if ((nmbclusters = ncl) == 0) { in bsd_mbuf_cluster_reserve()
280 nmbclusters = mbuf_default_ncl(mem_actual); in bsd_mbuf_cluster_reserve()
283 if (nmbclusters & 0x1) { in bsd_mbuf_cluster_reserve()
284 --nmbclusters; in bsd_mbuf_cluster_reserve()
288 if (nmbclusters > MAX_NCL) { in bsd_mbuf_cluster_reserve()
289 nmbclusters = MAX_NCL; in bsd_mbuf_cluster_reserve()
294 nmbclusters = (unsigned int)P2ROUNDDOWN(nmbclusters, NCLPG); in bsd_mbuf_cluster_reserve()
[all …]
/xnu-12377.81.4/bsd/conf/
H A Dparam.c113 unsigned int nmbclusters = NMBCLUSTERS; variable
/xnu-12377.81.4/bsd/kern/
H A Duipc_mbuf.c1107 njcl = nmbclusters / 3; in mbuf_table_init()
1114 nclusters = P2ROUNDDOWN(nmbclusters - njcl, NCLPG); in mbuf_table_init()
1121 njcl = P2ROUNDDOWN(nmbclusters - nclusters, NCLPJCL); in mbuf_table_init()
1124 nclusters = P2ROUNDDOWN(nmbclusters - njcl, NCLPG); in mbuf_table_init()
1428 if (nmbclusters == 0) { in mbinit()
1429 nmbclusters = NMBCLUSTERS; in mbinit()
1433 VERIFY(nmbclusters != 0 && !(nmbclusters & 0x1)); in mbinit()
1485 high_sb_max = (nmbclusters << (MCLSHIFT - 4)); in mbinit()
1491 } else if ((nmbclusters << MCLSHIFT) > (1 << MBSHIFT)) { in mbinit()
1513 (nmbclusters << MCLSHIFT) >> MBSHIFT, in mbinit()
H A Duipc_mbuf_mcache.c1064 if (nmbclusters == 0) { in mbinit()
1065 nmbclusters = NMBCLUSTERS; in mbinit()
1069 VERIFY(nmbclusters != 0 && !(nmbclusters & 0x1)); in mbinit()
1085 (P2ROUNDUP(nmbclusters, (MBSIZE >> MCLSHIFT)) << MCLSHIFT) >> MBSHIFT; in mbinit()
1131 mcl_pages = (nmbclusters << MCLSHIFT) / PAGE_SIZE; in mbinit()
1138 embutl = (mbutl + (nmbclusters * MCLBYTES)); in mbinit()
1211 high_sb_max = (nmbclusters << (MCLSHIFT - 4)); in mbinit()
1217 } else if ((nmbclusters << MCLSHIFT) > (1 << MBSHIFT)) { in mbinit()
1236 (nmbclusters << MCLSHIFT) >> MBSHIFT, in mbinit()
H A Duipc_socket2.c2980 SYSCTL_INT(_kern_ipc, KIPC_NMBCLUSTERS, nmbclusters,
2981 CTLFLAG_RD | CTLFLAG_LOCKED, &nmbclusters, 0, "");
/xnu-12377.81.4/bsd/sys/
H A Dmbuf.h1662 extern unsigned int nmbclusters; /* number of mapped clusters */
/xnu-12377.81.4/bsd/netinet/
H A Dudp_usrreq.c293 pool_size = (nmbclusters << MCLSHIFT) >> MBSHIFT; in udp_init()
/xnu-12377.81.4/bsd/net/
H A Dcontent_filter.c2616 mbuf_limit = MAX(UDP_FLOW_GC_MBUF_CNT_MAX, (nmbclusters << MCLSHIFT) >> UDP_FLOW_GC_MBUF_SHIFT); in cfil_init()