Lines Matching refs:NULL
500 { MC_MBUF, NULL, TAILQ_HEAD_INITIALIZER(m_slablist(MC_MBUF)),
501 NULL, NULL, 0, 0, 0, 0 },
502 { MC_CL, NULL, TAILQ_HEAD_INITIALIZER(m_slablist(MC_CL)),
503 NULL, NULL, 0, 0, 0, 0 },
504 { MC_BIGCL, NULL, TAILQ_HEAD_INITIALIZER(m_slablist(MC_BIGCL)),
505 NULL, NULL, 0, 0, 0, 0 },
506 { MC_16KCL, NULL, TAILQ_HEAD_INITIALIZER(m_slablist(MC_16KCL)),
507 NULL, NULL, 0, 0, 0, 0 },
516 { MC_MBUF_CL, NULL, { NULL, NULL }, NULL, NULL, 0, 0, 0, 0 },
517 { MC_MBUF_BIGCL, NULL, { NULL, NULL }, NULL, NULL, 0, 0, 0, 0 },
518 { MC_MBUF_16KCL, NULL, { NULL, NULL }, NULL, NULL, 0, 0, 0, 0 },
605 if (mclaudit == NULL) \
642 (m)->m_next = (m)->m_nextpkt = NULL; \
651 (m)->m_pkthdr.rcvif = NULL; \
653 (m)->m_pkthdr.header = NULL; \
656 (m)->m_pkthdr.reserved0 = NULL; \
677 MEXT_INIT(m, buf, m_maxsize(MC_CL), NULL, NULL, rfa, ref, flag)
680 MEXT_INIT(m, buf, m_maxsize(MC_BIGCL), m_bigfree, NULL, rfa, ref, flag)
683 MEXT_INIT(m, buf, m_maxsize(MC_16KCL), m_16kfree, NULL, rfa, ref, flag)
896 VERIFY(mb_stat != NULL);
1025 VERIFY(slabstbl != NULL);
1034 VERIFY(mclaudit != NULL);
1038 VERIFY(mcl_audit_con_cache != NULL);
1044 VERIFY(mcl_paddr != NULL);
1108 VERIFY(buf != NULL);
1129 /* This should always be NULL for us */
1130 VERIFY(m_cobjlist(class) == NULL);
1144 if (sp == NULL) {
1147 return (NULL);
1159 VERIFY(sp->sl_head != NULL || sp->sl_refcnt == (NMBPCL - 1));
1161 sp->sl_head = NULL;
1163 if (sp->sl_head != NULL && !slab_inrange(sp, sp->sl_head)) {
1173 if (mclaudit != NULL) {
1187 sp->sl_len == m_maxsize(MC_CL) && sp->sl_head == NULL);
1197 sp->sl_len == m_maxsize(MC_BIGCL) && sp->sl_head == NULL);
1199 VERIFY(nsp != NULL);
1206 nsp->sl_head == NULL);
1213 sp->sl_len == m_maxsize(MC_16KCL) && sp->sl_head == NULL);
1221 VERIFY(nsp != NULL);
1228 nsp->sl_head == NULL);
1237 if (mclaudit == NULL)
1249 sp->sl_head == NULL);
1253 if (sp->sl_head == NULL) {
1272 VERIFY(buf->obj_next == NULL);
1287 sp->sl_len == m_maxsize(class) && sp->sl_head == NULL);
1293 VERIFY(nsp != NULL);
1305 nsp->sl_head == NULL);
1316 sp->sl_len == m_maxsize(MC_16KCL) && sp->sl_head == NULL);
1321 VERIFY(nsp != NULL);
1328 nsp->sl_head == NULL);
1340 (slab_is_detached(sp) && sp->sl_head == NULL));
1348 if (mclaudit != NULL) {
1378 VERIFY(m != NULL);
1380 m->m_next = NULL;
1382 VERIFY(sp->sl_head == NULL);
1391 if (mclaudit != NULL)
1427 if ((*list = slab_alloc(class, wait)) != NULL) {
1428 (*list)->obj_next = NULL;
1507 list->obj_next = NULL;
1510 if ((list = nlist) == NULL)
1540 while (list != NULL) {
1560 mca->mca_uptr = NULL;
1612 while ((*list = m_cobjlist(class)) != NULL) {
1619 VERIFY(m->m_flags == M_EXT && cl != NULL);
1620 VERIFY(MEXT_RFA(m) != NULL && MBUF_IS_COMPOSITE(m));
1625 VERIFY(nsp != NULL);
1633 VERIFY(nsp != NULL);
1638 if ((m_cobjlist(class) = (*list)->obj_next) != NULL &&
1643 (*list)->obj_next = NULL;
1663 mcache_audit_t *mca = NULL;
1664 mcache_obj_t *ref_list = NULL;
1674 while ((m = ms = (struct mbuf *)o) != NULL) {
1678 if (mclaudit != NULL) {
1687 if (mclaudit != NULL) {
1700 VERIFY(MEXT_RFA(ms) != NULL && MBUF_IS_COMPOSITE(ms));
1705 VERIFY(nsp != NULL);
1713 VERIFY(nsp != NULL);
1726 if (mclaudit != NULL)
1735 MEXT_RFA(m) = NULL;
1739 m->m_next = m->m_nextpkt = NULL;
1742 if (mclaudit != NULL)
1749 o->obj_next = NULL;
1753 ((mcache_obj_t *)cl)->obj_next = NULL;
1771 } else if (ref_list != NULL) {
1791 mcache_t *cp = NULL;
1793 mcache_obj_t *ref_list = NULL;
1794 mcache_obj_t *mp_list = NULL;
1795 mcache_obj_t *clp_list = NULL;
1808 m_slablist(class).tqh_first == NULL &&
1809 m_slablist(class).tqh_last == NULL);
1844 ASSERT(mp_list == NULL);
1855 ASSERT(clp_list == NULL);
1860 ASSERT(ref_list == NULL);
1876 ((mcache_obj_t *)cl)->obj_next = NULL;
1880 ((mcache_obj_t *)rfa)->obj_next = NULL;
1888 if (mclaudit != NULL) {
1933 VERIFY(MEXT_RFA(ms) != NULL && MBUF_IS_COMPOSITE(ms));
1936 (*list)->obj_next = NULL;
1944 if (mp_list != NULL)
1946 if (clp_list != NULL)
1948 if (ref_list != NULL)
2012 while ((m = ms = (struct mbuf *)list) != NULL) {
2034 VERIFY(ms->m_flags == M_EXT && cl != NULL);
2035 VERIFY(MEXT_RFA(ms) != NULL && MBUF_IS_COMPOSITE(ms));
2040 VERIFY(nsp != NULL);
2048 VERIFY(nsp != NULL);
2082 mcache_audit_t *mca_list = NULL;
2083 mcache_obj_t *con_list = NULL;
2102 (PZERO-1), "m_clalloc", NULL);
2139 if (mclaudit != NULL) {
2158 VERIFY(con_list != NULL && i == needed);
2168 VERIFY(mca_list != NULL && i == needed);
2187 if (mclaudit != NULL)
2196 if (mclaudit != NULL)
2215 if (mclaudit != NULL)
2237 if (mclaudit != NULL)
2238 mcl_audit_init(mbc, &mca_list, NULL, 0, 1);
2247 mbc, NULL, 0, 0, 0);
2265 if (mclaudit != NULL)
2266 mcl_audit_init(m16kcl, &mca_list, NULL, 0, 1);
2279 m16kcl, NULL, 0, 0, 0);
2291 VERIFY(mca_list == NULL && con_list == NULL);
2380 mcache_obj_t *o = NULL;
2429 if ((o = slab_alloc(MC_CL, wait)) != NULL) {
2431 mcache_audit_t *mca = NULL;
2438 if (mclaudit != NULL) {
2444 slab_init(sp, MC_MBUF, sp->sl_flags, sp->sl_base, NULL,
2448 VERIFY(sp->sl_head == NULL);
2463 if (mclaudit != NULL) {
2539 mcache_obj_t *top = NULL;
2562 if (top != NULL)
2675 if (m != NULL) {
2682 return (NULL);
2730 if (m != NULL)
2745 m_tag_delete_chain(m, NULL);
2755 if (m->m_ext.ext_free == NULL) {
2768 MEXT_RFA(m) = NULL;
2778 m->m_next = m->m_nextpkt = NULL;
2781 if (m->m_ext.ext_free == NULL) {
2800 m->m_next = m->m_nextpkt = NULL;
2812 struct ext_ref *rfa = NULL;
2814 if (m == NULL && (m = _M_GETHDR(wait, type)) == NULL)
2815 return (NULL);
2824 if (m->m_ext.ext_free == NULL) {
2847 m->m_next = m->m_nextpkt = NULL;
2849 if (m->m_ext.ext_free == NULL) {
2861 if ((m = _M_GETHDR(wait, type)) == NULL)
2862 return (NULL);
2866 if (rfa == NULL &&
2867 (rfa = mcache_alloc(ref_cache, MSLEEPF(wait))) == NULL) {
2869 return (NULL);
2883 if ((rfa = mcache_alloc(ref_cache, MSLEEPF(wait))) == NULL)
2887 if (m->m_ext.ext_buf != NULL) {
2925 ASSERT(MEXT_RFA(m) != NULL);
2954 if ((rfa = mcache_alloc(ref_cache, MSLEEPF(wait))) == NULL)
2958 if (m->m_ext.ext_buf != NULL) {
2990 if ((rfa = mcache_alloc(ref_cache, MSLEEPF(wait))) == NULL)
2994 if (m->m_ext.ext_buf != NULL) {
3009 m_tag_delete_chain(to, NULL);
3028 m_tag_delete_chain(to, NULL);
3053 mcache_obj_t *mp_list = NULL;
3070 top = NULL;
3100 ASSERT(cl != NULL && rfa != NULL);
3130 ASSERT(pnum != *num_needed || mp_list == NULL);
3131 if (mp_list != NULL)
3140 if (top != NULL)
3142 return (NULL);
3165 struct mbuf **np, *top, *first = NULL;
3171 mcache_obj_t *mp_list = NULL, *rmp_list = NULL;
3172 mcache_t *cp = NULL, *rcp = NULL;
3175 return (NULL);
3177 top = NULL;
3197 return (NULL);
3203 if (maxsegments != NULL && *maxsegments == 1) {
3217 if (maxsegments != NULL) {
3220 return (NULL);
3263 ASSERT(m != NULL);
3277 ASSERT(m->m_next != NULL);
3285 ASSERT(num != *numlist || mp_list == NULL);
3406 ASSERT(m != NULL);
3408 VERIFY(m->m_ext.ext_free == NULL ||
3415 ASSERT(cl != NULL && rfa != NULL);
3458 ASSERT(mp_list == NULL && rmp_list == NULL);
3464 if (mp_list != NULL)
3466 if (rmp_list != NULL)
3468 if (wantall && top != NULL) {
3470 return (NULL);
3528 top = NULL;
3533 if (m == NULL)
3551 mcache_obj_t *mp_list = NULL;
3552 mcache_obj_t *mcl_list = NULL;
3553 mcache_obj_t *mbc_list = NULL;
3554 mcache_obj_t *m16k_list = NULL;
3555 mcache_obj_t *m_mcl_list = NULL;
3556 mcache_obj_t *m_mbc_list = NULL;
3557 mcache_obj_t *m_m16k_list = NULL;
3558 mcache_obj_t *ref_list = NULL;
3562 while (m != NULL) {
3566 m->m_nextpkt = NULL;
3568 while (m != NULL) {
3580 m_tag_delete_chain(m, NULL);
3590 if (m->m_ext.ext_free == NULL) {
3607 MEXT_RFA(m) = NULL;
3628 m->m_next = m->m_nextpkt = NULL;
3632 if (m->m_ext.ext_free == NULL) {
3664 m->m_next = m->m_nextpkt = NULL;
3686 if (mp_list != NULL)
3688 if (mcl_list != NULL)
3690 if (mbc_list != NULL)
3692 if (m16k_list != NULL)
3694 if (m_mcl_list != NULL)
3696 if (m_mbc_list != NULL)
3698 if (m_m16k_list != NULL)
3700 if (ref_list != NULL)
3709 while (m != NULL)
3759 if (mn == NULL) {
3761 return (NULL);
3803 struct mbuf *n, *mhdr = NULL, **np;
3817 if (m->m_next == NULL)
3823 top = NULL;
3826 if (m == NULL) {
3835 if (n == NULL)
3874 if (top == NULL)
3882 return (NULL);
3895 struct mbuf *n, **np = NULL;
3897 struct mbuf *top = NULL;
3901 mcache_obj_t *list = NULL;
3907 if (*m_last != NULL) {
3920 ASSERT(n != NULL);
3943 ASSERT(n != NULL && m != NULL);
3945 type = (top == NULL) ? MT_HEADER : m->m_type;
3946 MBUF_INIT(n, (top == NULL), type);
3948 if (top == NULL && mac_mbuf_label_init(n, wait) != 0) {
3956 if (top == NULL) {
4002 ASSERT(list == NULL);
4006 if (list != NULL)
4008 if (top != NULL)
4011 return (NULL);
4027 if (m == NULL)
4035 if (m == NULL)
4077 if ((m = mp) == NULL)
4083 while (m != NULL && len > 0) {
4212 * all but the first len0 bytes. In case of failure, it returns NULL and
4223 if (m == NULL)
4224 return (NULL);
4228 if (n == NULL)
4229 return (NULL);
4239 if (n->m_next == NULL) {
4241 return (NULL);
4248 m->m_next = NULL;
4252 if (n == NULL)
4253 return (NULL);
4268 m->m_next = NULL;
4280 struct mbuf *top = NULL, **mp = ⊤
4296 if (m == NULL)
4297 return (NULL);
4303 if (top != NULL) {
4305 if (m == NULL) {
4307 return (NULL);
4318 if (top != NULL)
4321 return (NULL);
4328 if (top == NULL &&
4452 if (m0 == NULL)
4457 if (m->m_next == NULL) {
4459 if (n == NULL)
4476 if (m->m_next == NULL) {
4478 if (n == NULL)
4496 return (NULL);
4500 return (NULL);
4521 top = NULL;
4529 if (m->m_next == NULL) {
4533 if ((n = _M_GETHDR(how, m->m_type)) == NULL)
4534 return (NULL);
4541 if ((n = _M_GET(how, m->m_type)) == NULL)
4542 return (NULL);
4548 while (m != NULL) {
4557 if (n == NULL)
4594 if (top == NULL)
4601 return (NULL);
4613 struct mbuf *top = NULL;
4619 VERIFY(m->m_next == NULL);
4643 m->m_next = NULL;
4651 if (n == NULL) {
4653 top = *last = NULL;
4668 struct mbuf *top = NULL;
4672 while (m != NULL) {
4676 m->m_next = NULL;
4681 if ((m = m_expand(m, &last)) == NULL) {
4684 top = NULL;
4811 (void) msleep(mb_waitchan, mbuf_mlock, (PZERO-1), m_cname(class), NULL);
4917 if ((slg = slabstbl[ix]) == NULL) {
4939 VERIFY(slg != NULL);
4953 VERIFY(slg->slg_slab[NSLABSPMB - 1].sl_next == NULL);
4958 slg_slab[NSLABSPMB - 1].sl_next == NULL);
4994 VERIFY(sp != NULL);
5002 VERIFY(sp != NULL);
5020 VERIFY(sp != NULL);
5028 VERIFY(sp != NULL);
5055 if (mclaudit == NULL) {
5056 if (next != NULL && !MBUF_IN_MAP(next)) {
5093 mcache_obj_t *con = NULL;
5094 boolean_t save_contents = (con_list != NULL);
5098 ASSERT(con_list == NULL || con_size != 0);
5103 VERIFY(mclaudit[ix].cl_audit[i] == NULL);
5119 VERIFY(con != NULL);
5134 mca_tail->mca_next = NULL;
5144 mcache_audit_t *mca = NULL;
5186 VERIFY(mca->mca_contents != NULL &&
5213 VERIFY(ms->m_flags == M_EXT && MEXT_RFA(ms) != NULL &&
5276 if (next != NULL && next != (void *)MCACHE_FREE_PATTERN &&