Lines Matching refs:NULL
90 /* Must set *mbuf to NULL in failure case */
93 return (*mbuf == NULL) ? ENOMEM : 0;
98 /* Must set *mbuf to NULL in failure case */
101 return (*mbuf == NULL) ? ENOMEM : 0;
109 if (extbuf == NULL || extfree == NULL || extsize == 0)
112 if ((*mbuf = m_clattach(mbuf != NULL ? *mbuf : NULL, type, extbuf,
113 extfree, extsize, extarg, how)) == NULL)
122 if (size == NULL || *size == 0 || addr == NULL)
125 *addr = NULL;
131 if (*size <= MCLBYTES && (*addr = m_mclalloc(how)) != NULL)
134 (*addr = m_bigalloc(how)) != NULL)
137 (*addr = m_16kalloc(how)) != NULL)
142 if (*addr == NULL)
158 m_bigfree(addr, NBPG, NULL);
160 m_16kfree(addr, M16KCLBYTES, NULL);
168 /* Must set *mbuf to NULL in failure case */
172 if (mbuf == NULL)
174 if (*mbuf == NULL) {
176 if (*mbuf == NULL)
200 if (*mbuf == NULL || ((*mbuf)->m_flags & M_EXT) == 0)
205 *mbuf = NULL;
212 /* Must set *mbuf to NULL in failure case */
215 if (mbuf == NULL) return EINVAL;
216 if (*mbuf == NULL) {
231 *mbuf = NULL;
233 if (*mbuf == NULL || ((*mbuf)->m_flags & M_EXT) == 0)
241 /* Must set *mbuf to NULL in failure case */
246 if (*mbuf == NULL) {
285 /* Must set *mbuf to NULL in failure case */
288 return (*new_mbuf == NULL) ? ENOMEM : 0;
293 /* Must set *new_mbuf to NULL in failure case */
296 return (*new_mbuf == NULL) ? ENOMEM : 0;
301 /* Must set *orig to NULL in failure case */
304 return (*orig == NULL) ? ENOMEM : 0;
310 /* Must set *new_mbuf to NULL in failure case */
313 return (*new_mbuf == NULL) ? ENOMEM : 0;
318 /* Must set *mbuf to NULL in failure case */
321 return (*mbuf == NULL) ? ENOMEM : 0;
326 /* Must set *location to NULL in failure case */
331 return (*location == NULL) ? ENOMEM : 0;
402 if (next && ((next)->m_nextpkt != NULL ||
633 if (value != NULL) {
693 if (mbuf == NULL || length == 0 || csum == NULL ||
706 if (mbuf == NULL || length == 0 || csum == NULL ||
769 static SLIST_HEAD(,mbuf_tag_id_entry) mtag_id_list = {NULL};
770 static lck_mtx_t *mtag_id_lock = NULL;
787 struct mbuf_tag_id_entry *entry = NULL;
792 if (string == NULL || out_id == NULL) {
797 if (create == 0 && mtag_id_lock == NULL)
801 if (mtag_id_lock == NULL) {
802 lck_grp_attr_t *grp_attrib = NULL;
803 lck_attr_t *lck_attrb = NULL;
804 lck_grp_t *lck_group = NULL;
805 lck_mtx_t *new_lock = NULL;
832 if (entry == NULL) {
839 if (entry == NULL) {
875 if (data_p != NULL)
876 *data_p = NULL;
879 if (mbuf == NULL || (mbuf->m_flags & M_PKTHDR) == 0 || id < MTAG_FIRST_ID ||
881 data_p == NULL) {
886 tag = m_tag_locate(mbuf, id, type, NULL);
887 if (tag != NULL) {
893 if (tag == NULL) {
914 if (length != NULL)
916 if (data_p != NULL)
917 *data_p = NULL;
920 if (mbuf == NULL || (mbuf->m_flags & M_PKTHDR) == 0 || id < MTAG_FIRST_ID ||
921 id >= mtag_id_next || length == NULL || data_p == NULL) {
926 tag = m_tag_locate(mbuf, id, type, NULL);
927 if (tag == NULL) {
946 if (mbuf == NULL || (mbuf->m_flags & M_PKTHDR) == 0 || id < MTAG_FIRST_ID ||
950 tag = m_tag_locate(mbuf, id, type, NULL);
951 if (tag == NULL) {
993 m = m_allocpacket_internal(&numpkts, packetlen, maxchunks ? &numchunks : NULL, how, 1, 0);
1024 m = m_allocpacket_internal(&numpkts, packetlen, maxchunks ? &numchunks : NULL, how, 1, 0);
1064 if (m == NULL || len == 0 || data == NULL)
1084 if (mlen < len && m->m_next == NULL && mbuf_trailingspace(m) > 0) {
1099 if (n == NULL) {