Lines Matching +full:1 +full:m

13  * 1. Redistributions of source code must retain the above copyright
71 struct os_mbuf *m; in os_mqueue_get() local
82 m = OS_MBUF_PKTHDR_TO_MBUF(mp); in os_mqueue_get()
84 m = NULL; in os_mqueue_get()
87 return (m); in os_mqueue_get()
91 os_mqueue_put(struct os_mqueue *mq, struct ble_npl_eventq *evq, struct os_mbuf *m) in os_mqueue_put() argument
98 if (!OS_MBUF_IS_PKTHDR(m)) { in os_mqueue_put()
103 mp = OS_MBUF_PKTHDR(m); in os_mqueue_put()
169 struct os_mbuf *m; in os_msys_get() local
177 m = os_mbuf_get(pool, leadingspace); in os_msys_get()
178 return (m); in os_msys_get()
187 struct os_mbuf *m; in os_msys_get_pkthdr() local
196 m = os_mbuf_get_pkthdr(pool, user_hdr_len); in os_msys_get_pkthdr()
197 return (m); in os_msys_get_pkthdr()
507 while (1) { in os_mbuf_off()
527 os_mbuf_copydata(const struct os_mbuf *m, int off, int len, void *dst) in os_mbuf_copydata() argument
539 if (!m) { in os_mbuf_copydata()
540 return (-1); in os_mbuf_copydata()
543 if (off < m->om_len) in os_mbuf_copydata()
545 off -= m->om_len; in os_mbuf_copydata()
546 m = SLIST_NEXT(m, om_next); in os_mbuf_copydata()
548 while (len > 0 && m != NULL) { in os_mbuf_copydata()
549 count = min(m->om_len - off, len); in os_mbuf_copydata()
550 memcpy(udst, m->om_data + off, count); in os_mbuf_copydata()
554 m = SLIST_NEXT(m, om_next); in os_mbuf_copydata()
557 return (len > 0 ? -1 : 0); in os_mbuf_copydata()
564 struct os_mbuf *m; in os_mbuf_adj() local
567 if ((m = mp) == NULL) in os_mbuf_adj()
573 while (m != NULL && len > 0) { in os_mbuf_adj()
574 if (m->om_len <= len) { in os_mbuf_adj()
575 len -= m->om_len; in os_mbuf_adj()
576 m->om_len = 0; in os_mbuf_adj()
577 m = SLIST_NEXT(m, om_next); in os_mbuf_adj()
579 m->om_len -= len; in os_mbuf_adj()
580 m->om_data += len; in os_mbuf_adj()
597 count += m->om_len; in os_mbuf_adj()
598 if (SLIST_NEXT(m, om_next) == (struct os_mbuf *)0) in os_mbuf_adj()
600 m = SLIST_NEXT(m, om_next); in os_mbuf_adj()
602 if (m->om_len >= len) { in os_mbuf_adj()
603 m->om_len -= len; in os_mbuf_adj()
616 m = mp; in os_mbuf_adj()
617 if (OS_MBUF_IS_PKTHDR(m)) in os_mbuf_adj()
618 OS_MBUF_PKTHDR(m)->omp_len = count; in os_mbuf_adj()
619 for (; m; m = SLIST_NEXT(m, om_next)) { in os_mbuf_adj()
620 if (m->om_len >= count) { in os_mbuf_adj()
621 m->om_len = count; in os_mbuf_adj()
622 if (SLIST_NEXT(m, om_next) != NULL) { in os_mbuf_adj()
623 os_mbuf_free_chain(SLIST_NEXT(m, om_next)); in os_mbuf_adj()
624 SLIST_NEXT(m, om_next) = NULL; in os_mbuf_adj()
628 count -= m->om_len; in os_mbuf_adj()
647 while (1) { in os_mbuf_cmpf()
696 while (1) { in os_mbuf_cmpm()
736 while (1) { in os_mbuf_prepend()
812 return -1; in os_mbuf_copyinto()
817 while (1) { in os_mbuf_copyinto()
864 while (1) { in os_mbuf_concat()