Searched refs:MCLBYTES (Results 1 - 25 of 31) sorted by relevance

12

/xnu-2782.1.97/tools/lldbmacros/
H A Dmbufdefines.py7 MCLBYTES = 2048 variable
H A Dmbufs.py385 if (csize == MCLBYTES):
404 if (csize == (MSIZE + MCLBYTES)):
/xnu-2782.1.97/bsd/i386/
H A Dparam.h99 * MCLBYTES must be no larger than CLBYTES (the software page size), and,
101 * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
107 #define MCLBYTES (1 << MCLSHIFT) /* size of an mbuf cluster */ macro
113 #define MCLOFSET (MCLBYTES - 1)
115 #define NMBCLUSTERS ((1024 * 1024) / MCLBYTES) /* cl map size: 1MB */
/xnu-2782.1.97/bsd/dev/
H A Dunix_startup.c166 nmbclusters = bsd_mbuf_cluster_reserve(NULL) / MCLBYTES;
219 (vm_size_t) (nmbclusters * MCLBYTES),
/xnu-2782.1.97/bsd/kern/
H A Duipc_mbuf2.c144 if (len > MCLBYTES) {
184 if (off + len > MCLBYTES)
199 prevmlen = (off + len > MHLEN) ? MCLBYTES : MHLEN;
206 prevmlen = (off + len > MHLEN) ? MCLBYTES
459 } else if (len + sizeof (struct m_tag) <= MCLBYTES) {
H A Dkpi_mbuf.c142 if (*size <= MCLBYTES && (*addr = m_mclalloc(how)) != NULL)
143 *size = MCLBYTES;
144 else if (*size > MCLBYTES && *size <= MBIGCLBYTES &&
162 if (size != MCLBYTES && size != MBIGCLBYTES && size != M16KCLBYTES)
166 if (size == MCLBYTES)
195 if (size == MCLBYTES) {
H A Dkern_malloc.c439 { MCLBYTES, KMZ_CREATEZONE, FALSE }, /* 74 M_MCLUST */
H A Duipc_socket2.c662 so->so_snd.sb_lowat = MCLBYTES;
682 if ((u_quad_t)cc > (u_quad_t)sb_max * MCLBYTES / (MSIZE + MCLBYTES))
1653 m->m_len <= MCLBYTES / 4 && /* XXX: Don't copy too much */
H A Duipc_socket.c201 #define MAX_SOOPTGETM_SIZE (128 * MCLBYTES)
1942 bytes_to_copy > MCLBYTES &&
1966 bytes_to_copy / MCLBYTES;
1969 (num_needed * MCLBYTES)) >=
1977 MCLBYTES);
5187 * We limit the size of options to MCLBYTES. This will have to change
5188 * if we need to define options that need more space than MCLBYTES.
5197 if (sopt_size <= 0 || sopt_size > MCLBYTES)
5210 m->m_len = min(MCLBYTES, sopt_size);
5231 m->m_len = min(MCLBYTES, sopt_siz
[all...]
H A Duipc_mbuf.c118 * This is a cache of rudimentary objects of MCLBYTES in size; each
1245 m_maxsize(MC_CL) = m_size(MC_CL) = MCLBYTES;
1270 m_maxsize(MC_MBUF_CL) = MCLBYTES;
1341 if ((n = ((mem / 16) / MCLBYTES)) > 32768)
1510 mcl_pages = (nmbclusters * MCLBYTES) / CLBYTES;
1520 ((void *)((unsigned char *)mbutl + (nmbclusters * MCLBYTES)));
1811 VERIFY(IS_P2ALIGNED(buf, MCLBYTES));
1822 VERIFY(IS_P2ALIGNED(buf, MCLBYTES));
5529 (n->m_flags & M_EXT) ? MCLBYTES : MLEN;
5954 if (length > MCLBYTES)
[all...]
H A Dkern_control.c1217 sbmaxsize = (u_quad_t)sb_max * MCLBYTES / (MSIZE + MCLBYTES);
/xnu-2782.1.97/bsd/netinet6/
H A Dicmp6.c638 if (maxlen >= MCLBYTES) {
1430 sizeof(u_int32_t))) > MCLBYTES)
1431 replylen = MCLBYTES; /* XXX: will truncate pkt later */
1463 if (replylen > MCLBYTES) {
1465 * XXX: should we try to allocate more? But MCLBYTES
1570 len = MCLBYTES;
2633 #if IPV6_MMTU >= MCLBYTES
2634 # error assumption failed about IPV6_MMTU and MCLBYTES
H A Dah_core.c1308 if (hlen > MCLBYTES) {
1424 totlen > MCLBYTES) {
1575 if (newoff - off > MCLBYTES) {
1610 if (newoff - off > MCLBYTES) {
H A Dnd6_nbr.c577 if (max_linkhdr + maxlen >= MCLBYTES) {
579 printf("nd6_ns_output: max_linkhdr + maxlen >= MCLBYTES "
580 "(%d + %d > %d)\n", max_linkhdr, maxlen, MCLBYTES);
1244 if (max_linkhdr + maxlen >= MCLBYTES) {
1246 printf("nd6_na_output: max_linkhdr + maxlen >= MCLBYTES "
1247 "(%d + %d > %d)\n", max_linkhdr, maxlen, MCLBYTES);
H A Desp_input.c1152 maxlen = MCLBYTES;
H A Dip6_input.c566 * XXX: fails to join if interface MTU > MCLBYTES. jumbogram?
568 if (m->m_next != NULL && m->m_pkthdr.len < MCLBYTES) {
/xnu-2782.1.97/bsd/netinet/
H A Dmptcp_usrreq.c1171 else if (len > MCLBYTES)
1176 how, 1, MCLBYTES);
H A Dtcp_output.c1144 * max_linkhdr + sizeof (struct tcpiphdr) + optlen <= MCLBYTES
1478 if (max_linkhdr + hdrlen > MCLBYTES)
1565 allocated_len = MCLBYTES;
H A Dtcp_usrreq.c2245 u_quad_t sb_effective_max = (sb_max / (MSIZE+MCLBYTES)) * MCLBYTES;
H A Dudp_usrreq.c1714 u_quad_t sb_effective_max = (sb_max/(MSIZE+MCLBYTES)) * MCLBYTES;
H A Dtcp_input.c4876 * an mbuf cluster (MCLBYTES), round down to nearest multiple of MCLBYTES
5049 sb_max_corrected = (sb_max * (u_int64_t)MCLBYTES) / (MSIZE + MCLBYTES);
/xnu-2782.1.97/bsd/sys/
H A Dmbuf.h93 * MCLBYTES/MBIGCLBYTES/M16KCLBYTES (also in machine/param.h), which has
640 char mcl_buf[MCLBYTES];
/xnu-2782.1.97/bsd/net/
H A Dbpf.c333 if ((unsigned)len > MCLBYTES)
H A Drtsock.c1007 if (len > MCLBYTES)
H A Dif_bond.c481 if (size > (int)MCLBYTES) {
483 size, MCLBYTES);

Completed in 295 milliseconds

12