Lines Matching full:buf

127 		struct net_buf_simple buf;           \
130 .buf.size = _size, \
139 * @param buf Buffer to initialize.
142 static inline void net_buf_simple_init(struct net_buf_simple *buf, in net_buf_simple_init() argument
145 if (!buf->__buf) { in net_buf_simple_init()
146 buf->__buf = (uint8_t *)buf + sizeof(*buf); in net_buf_simple_init()
149 buf->data = buf->__buf + reserve_head; in net_buf_simple_init()
150 buf->len = 0U; in net_buf_simple_init()
158 * @param buf Buffer to initialize.
162 void net_buf_simple_init_with_data(struct net_buf_simple *buf,
170 * @param buf Buffer to reset.
172 static inline void net_buf_simple_reset(struct net_buf_simple *buf) in net_buf_simple_reset() argument
174 buf->len = 0U; in net_buf_simple_reset()
175 buf->data = buf->__buf; in net_buf_simple_reset()
197 * @param buf Buffer to update.
202 void *net_buf_simple_add(struct net_buf_simple *buf, size_t len);
210 * @param buf Buffer to update.
216 void *net_buf_simple_add_mem(struct net_buf_simple *buf, const void *mem,
225 * @param buf Buffer to update.
230 uint8_t *net_buf_simple_add_u8(struct net_buf_simple *buf, uint8_t val);
239 * @param buf Buffer to update.
242 void net_buf_simple_add_le16(struct net_buf_simple *buf, uint16_t val);
251 * @param buf Buffer to update.
254 void net_buf_simple_add_be16(struct net_buf_simple *buf, uint16_t val);
263 * @param buf Buffer to update.
266 void net_buf_simple_add_le24(struct net_buf_simple *buf, uint32_t val);
275 * @param buf Buffer to update.
278 void net_buf_simple_add_be24(struct net_buf_simple *buf, uint32_t val);
287 * @param buf Buffer to update.
290 void net_buf_simple_add_le32(struct net_buf_simple *buf, uint32_t val);
299 * @param buf Buffer to update.
302 void net_buf_simple_add_be32(struct net_buf_simple *buf, uint32_t val);
311 * @param buf Buffer to update.
314 void net_buf_simple_add_le40(struct net_buf_simple *buf, uint64_t val);
323 * @param buf Buffer to update.
326 void net_buf_simple_add_be40(struct net_buf_simple *buf, uint64_t val);
335 * @param buf Buffer to update.
338 void net_buf_simple_add_le48(struct net_buf_simple *buf, uint64_t val);
347 * @param buf Buffer to update.
350 void net_buf_simple_add_be48(struct net_buf_simple *buf, uint64_t val);
359 * @param buf Buffer to update.
362 void net_buf_simple_add_le64(struct net_buf_simple *buf, uint64_t val);
371 * @param buf Buffer to update.
374 void net_buf_simple_add_be64(struct net_buf_simple *buf, uint64_t val);
381 * @param buf Buffer to update.
386 void *net_buf_simple_remove_mem(struct net_buf_simple *buf, size_t len);
394 * @param buf A valid pointer on a buffer.
398 uint8_t net_buf_simple_remove_u8(struct net_buf_simple *buf);
406 * @param buf A valid pointer on a buffer.
410 uint16_t net_buf_simple_remove_le16(struct net_buf_simple *buf);
418 * @param buf A valid pointer on a buffer.
422 uint16_t net_buf_simple_remove_be16(struct net_buf_simple *buf);
430 * @param buf A valid pointer on a buffer.
434 uint32_t net_buf_simple_remove_le24(struct net_buf_simple *buf);
442 * @param buf A valid pointer on a buffer.
446 uint32_t net_buf_simple_remove_be24(struct net_buf_simple *buf);
454 * @param buf A valid pointer on a buffer.
458 uint32_t net_buf_simple_remove_le32(struct net_buf_simple *buf);
466 * @param buf A valid pointer on a buffer.
470 uint32_t net_buf_simple_remove_be32(struct net_buf_simple *buf);
478 * @param buf A valid pointer on a buffer.
482 uint64_t net_buf_simple_remove_le40(struct net_buf_simple *buf);
490 * @param buf A valid pointer on a buffer.
494 uint64_t net_buf_simple_remove_be40(struct net_buf_simple *buf);
502 * @param buf A valid pointer on a buffer.
506 uint64_t net_buf_simple_remove_le48(struct net_buf_simple *buf);
514 * @param buf A valid pointer on a buffer.
518 uint64_t net_buf_simple_remove_be48(struct net_buf_simple *buf);
526 * @param buf A valid pointer on a buffer.
530 uint64_t net_buf_simple_remove_le64(struct net_buf_simple *buf);
538 * @param buf A valid pointer on a buffer.
542 uint64_t net_buf_simple_remove_be64(struct net_buf_simple *buf);
550 * @param buf Buffer to update.
555 void *net_buf_simple_push(struct net_buf_simple *buf, size_t len);
563 * @param buf Buffer to update.
569 void *net_buf_simple_push_mem(struct net_buf_simple *buf, const void *mem,
578 * @param buf Buffer to update.
581 void net_buf_simple_push_le16(struct net_buf_simple *buf, uint16_t val);
589 * @param buf Buffer to update.
592 void net_buf_simple_push_be16(struct net_buf_simple *buf, uint16_t val);
599 * @param buf Buffer to update.
602 void net_buf_simple_push_u8(struct net_buf_simple *buf, uint8_t val);
610 * @param buf Buffer to update.
613 void net_buf_simple_push_le24(struct net_buf_simple *buf, uint32_t val);
621 * @param buf Buffer to update.
624 void net_buf_simple_push_be24(struct net_buf_simple *buf, uint32_t val);
632 * @param buf Buffer to update.
635 void net_buf_simple_push_le32(struct net_buf_simple *buf, uint32_t val);
643 * @param buf Buffer to update.
646 void net_buf_simple_push_be32(struct net_buf_simple *buf, uint32_t val);
654 * @param buf Buffer to update.
657 void net_buf_simple_push_le40(struct net_buf_simple *buf, uint64_t val);
665 * @param buf Buffer to update.
668 void net_buf_simple_push_be40(struct net_buf_simple *buf, uint64_t val);
676 * @param buf Buffer to update.
679 void net_buf_simple_push_le48(struct net_buf_simple *buf, uint64_t val);
687 * @param buf Buffer to update.
690 void net_buf_simple_push_be48(struct net_buf_simple *buf, uint64_t val);
698 * @param buf Buffer to update.
701 void net_buf_simple_push_le64(struct net_buf_simple *buf, uint64_t val);
709 * @param buf Buffer to update.
712 void net_buf_simple_push_be64(struct net_buf_simple *buf, uint64_t val);
720 * @param buf Buffer to update.
725 void *net_buf_simple_pull(struct net_buf_simple *buf, size_t len);
733 * @param buf Buffer to update.
738 void *net_buf_simple_pull_mem(struct net_buf_simple *buf, size_t len);
746 * @param buf A valid pointer on a buffer.
750 uint8_t net_buf_simple_pull_u8(struct net_buf_simple *buf);
758 * @param buf A valid pointer on a buffer.
762 uint16_t net_buf_simple_pull_le16(struct net_buf_simple *buf);
770 * @param buf A valid pointer on a buffer.
774 uint16_t net_buf_simple_pull_be16(struct net_buf_simple *buf);
782 * @param buf A valid pointer on a buffer.
786 uint32_t net_buf_simple_pull_le24(struct net_buf_simple *buf);
794 * @param buf A valid pointer on a buffer.
798 uint32_t net_buf_simple_pull_be24(struct net_buf_simple *buf);
806 * @param buf A valid pointer on a buffer.
810 uint32_t net_buf_simple_pull_le32(struct net_buf_simple *buf);
818 * @param buf A valid pointer on a buffer.
822 uint32_t net_buf_simple_pull_be32(struct net_buf_simple *buf);
830 * @param buf A valid pointer on a buffer.
834 uint64_t net_buf_simple_pull_le40(struct net_buf_simple *buf);
842 * @param buf A valid pointer on a buffer.
846 uint64_t net_buf_simple_pull_be40(struct net_buf_simple *buf);
854 * @param buf A valid pointer on a buffer.
858 uint64_t net_buf_simple_pull_le48(struct net_buf_simple *buf);
866 * @param buf A valid pointer on a buffer.
870 uint64_t net_buf_simple_pull_be48(struct net_buf_simple *buf);
878 * @param buf A valid pointer on a buffer.
882 uint64_t net_buf_simple_pull_le64(struct net_buf_simple *buf);
890 * @param buf A valid pointer on a buffer.
894 uint64_t net_buf_simple_pull_be64(struct net_buf_simple *buf);
901 * @param buf Buffer.
905 static inline uint8_t *net_buf_simple_tail(const struct net_buf_simple *buf) in net_buf_simple_tail() argument
907 return buf->data + buf->len; in net_buf_simple_tail()
915 * buf A valid pointer on a buffer
919 size_t net_buf_simple_headroom(const struct net_buf_simple *buf);
926 * @param buf A valid pointer on a buffer
930 size_t net_buf_simple_tailroom(const struct net_buf_simple *buf);
937 * @param buf A valid pointer on a buffer
941 uint16_t net_buf_simple_max_len(const struct net_buf_simple *buf);
962 * @param buf Buffer from which the state should be saved.
965 static inline void net_buf_simple_save(const struct net_buf_simple *buf, in net_buf_simple_save() argument
968 state->offset = (uint16_t)net_buf_simple_headroom(buf); in net_buf_simple_save()
969 state->len = buf->len; in net_buf_simple_save()
978 * @param buf Buffer to which the state should be restored.
981 static inline void net_buf_simple_restore(struct net_buf_simple *buf, in net_buf_simple_restore() argument
984 buf->data = buf->__buf + state->offset; in net_buf_simple_restore()
985 buf->len = state->len; in net_buf_simple_restore()
1059 uint8_t * __must_check (*alloc)(struct net_buf *buf, size_t *size,
1061 uint8_t * __must_check (*ref)(struct net_buf *buf, uint8_t *data);
1062 void (*unref)(struct net_buf *buf, uint8_t *data);
1106 void (*const destroy)(struct net_buf *buf);
1305 * @param id Pool ID (e.g. from buf->pool_id).
1319 * @param buf Network buffer.
1323 int net_buf_id(const struct net_buf *buf);
1467 * @param buf Buffer to destroy.
1469 static inline void net_buf_destroy(struct net_buf *buf) in net_buf_destroy() argument
1471 struct net_buf_pool *pool = net_buf_pool_get(buf->pool_id); in net_buf_destroy()
1473 if (buf->__buf) { in net_buf_destroy()
1474 if (!(buf->flags & NET_BUF_EXTERNAL_DATA)) { in net_buf_destroy()
1475 pool->alloc->cb->unref(buf, buf->__buf); in net_buf_destroy()
1477 buf->__buf = NULL; in net_buf_destroy()
1480 k_lifo_put(&pool->free, buf); in net_buf_destroy()
1488 * @param buf Buffer to reset.
1490 void net_buf_reset(struct net_buf *buf);
1497 * @param buf Buffer to initialize.
1500 void net_buf_simple_reserve(struct net_buf_simple *buf, size_t reserve);
1506 * @param buf Buffer.
1508 void net_buf_slist_put(sys_slist_t *list, struct net_buf *buf);
1525 * @param buf Buffer.
1527 __deprecated void net_buf_put(struct k_fifo *fifo, struct net_buf *buf);
1534 * @param buf A valid pointer on a buffer
1537 void net_buf_unref_debug(struct net_buf *buf, const char *func, int line);
1541 void net_buf_unref(struct net_buf *buf);
1547 * @param buf A valid pointer on a buffer
1551 struct net_buf * __must_check net_buf_ref(struct net_buf *buf);
1558 * @param buf A valid pointer on a buffer
1566 struct net_buf * __must_check net_buf_clone(struct net_buf *buf,
1572 * @param buf A valid pointer on a buffer
1576 static inline void * __must_check net_buf_user_data(const struct net_buf *buf) in net_buf_user_data() argument
1578 return (void *)buf->user_data; in net_buf_user_data()
1597 * @param buf Buffer to initialize.
1600 static inline void net_buf_reserve(struct net_buf *buf, size_t reserve) in net_buf_reserve() argument
1602 net_buf_simple_reserve(&buf->b, reserve); in net_buf_reserve()
1611 * @param buf Buffer to update.
1616 static inline void *net_buf_add(struct net_buf *buf, size_t len) in net_buf_add() argument
1618 return net_buf_simple_add(&buf->b, len); in net_buf_add()
1627 * @param buf Buffer to update.
1633 static inline void *net_buf_add_mem(struct net_buf *buf, const void *mem, in net_buf_add_mem() argument
1636 return net_buf_simple_add_mem(&buf->b, mem, len); in net_buf_add_mem()
1645 * @param buf Buffer to update.
1650 static inline uint8_t *net_buf_add_u8(struct net_buf *buf, uint8_t val) in net_buf_add_u8() argument
1652 return net_buf_simple_add_u8(&buf->b, val); in net_buf_add_u8()
1662 * @param buf Buffer to update.
1665 static inline void net_buf_add_le16(struct net_buf *buf, uint16_t val) in net_buf_add_le16() argument
1667 net_buf_simple_add_le16(&buf->b, val); in net_buf_add_le16()
1677 * @param buf Buffer to update.
1680 static inline void net_buf_add_be16(struct net_buf *buf, uint16_t val) in net_buf_add_be16() argument
1682 net_buf_simple_add_be16(&buf->b, val); in net_buf_add_be16()
1692 * @param buf Buffer to update.
1695 static inline void net_buf_add_le24(struct net_buf *buf, uint32_t val) in net_buf_add_le24() argument
1697 net_buf_simple_add_le24(&buf->b, val); in net_buf_add_le24()
1707 * @param buf Buffer to update.
1710 static inline void net_buf_add_be24(struct net_buf *buf, uint32_t val) in net_buf_add_be24() argument
1712 net_buf_simple_add_be24(&buf->b, val); in net_buf_add_be24()
1722 * @param buf Buffer to update.
1725 static inline void net_buf_add_le32(struct net_buf *buf, uint32_t val) in net_buf_add_le32() argument
1727 net_buf_simple_add_le32(&buf->b, val); in net_buf_add_le32()
1737 * @param buf Buffer to update.
1740 static inline void net_buf_add_be32(struct net_buf *buf, uint32_t val) in net_buf_add_be32() argument
1742 net_buf_simple_add_be32(&buf->b, val); in net_buf_add_be32()
1752 * @param buf Buffer to update.
1755 static inline void net_buf_add_le40(struct net_buf *buf, uint64_t val) in net_buf_add_le40() argument
1757 net_buf_simple_add_le40(&buf->b, val); in net_buf_add_le40()
1767 * @param buf Buffer to update.
1770 static inline void net_buf_add_be40(struct net_buf *buf, uint64_t val) in net_buf_add_be40() argument
1772 net_buf_simple_add_be40(&buf->b, val); in net_buf_add_be40()
1782 * @param buf Buffer to update.
1785 static inline void net_buf_add_le48(struct net_buf *buf, uint64_t val) in net_buf_add_le48() argument
1787 net_buf_simple_add_le48(&buf->b, val); in net_buf_add_le48()
1797 * @param buf Buffer to update.
1800 static inline void net_buf_add_be48(struct net_buf *buf, uint64_t val) in net_buf_add_be48() argument
1802 net_buf_simple_add_be48(&buf->b, val); in net_buf_add_be48()
1812 * @param buf Buffer to update.
1815 static inline void net_buf_add_le64(struct net_buf *buf, uint64_t val) in net_buf_add_le64() argument
1817 net_buf_simple_add_le64(&buf->b, val); in net_buf_add_le64()
1827 * @param buf Buffer to update.
1830 static inline void net_buf_add_be64(struct net_buf *buf, uint64_t val) in net_buf_add_be64() argument
1832 net_buf_simple_add_be64(&buf->b, val); in net_buf_add_be64()
1840 * @param buf Buffer to update.
1845 static inline void *net_buf_remove_mem(struct net_buf *buf, size_t len) in net_buf_remove_mem() argument
1847 return net_buf_simple_remove_mem(&buf->b, len); in net_buf_remove_mem()
1856 * @param buf A valid pointer on a buffer.
1860 static inline uint8_t net_buf_remove_u8(struct net_buf *buf) in net_buf_remove_u8() argument
1862 return net_buf_simple_remove_u8(&buf->b); in net_buf_remove_u8()
1871 * @param buf A valid pointer on a buffer.
1875 static inline uint16_t net_buf_remove_le16(struct net_buf *buf) in net_buf_remove_le16() argument
1877 return net_buf_simple_remove_le16(&buf->b); in net_buf_remove_le16()
1886 * @param buf A valid pointer on a buffer.
1890 static inline uint16_t net_buf_remove_be16(struct net_buf *buf) in net_buf_remove_be16() argument
1892 return net_buf_simple_remove_be16(&buf->b); in net_buf_remove_be16()
1901 * @param buf A valid pointer on a buffer.
1905 static inline uint32_t net_buf_remove_be24(struct net_buf *buf) in net_buf_remove_be24() argument
1907 return net_buf_simple_remove_be24(&buf->b); in net_buf_remove_be24()
1916 * @param buf A valid pointer on a buffer.
1920 static inline uint32_t net_buf_remove_le24(struct net_buf *buf) in net_buf_remove_le24() argument
1922 return net_buf_simple_remove_le24(&buf->b); in net_buf_remove_le24()
1931 * @param buf A valid pointer on a buffer.
1935 static inline uint32_t net_buf_remove_le32(struct net_buf *buf) in net_buf_remove_le32() argument
1937 return net_buf_simple_remove_le32(&buf->b); in net_buf_remove_le32()
1946 * @param buf A valid pointer on a buffer
1950 static inline uint32_t net_buf_remove_be32(struct net_buf *buf) in net_buf_remove_be32() argument
1952 return net_buf_simple_remove_be32(&buf->b); in net_buf_remove_be32()
1961 * @param buf A valid pointer on a buffer.
1965 static inline uint64_t net_buf_remove_le40(struct net_buf *buf) in net_buf_remove_le40() argument
1967 return net_buf_simple_remove_le40(&buf->b); in net_buf_remove_le40()
1976 * @param buf A valid pointer on a buffer
1980 static inline uint64_t net_buf_remove_be40(struct net_buf *buf) in net_buf_remove_be40() argument
1982 return net_buf_simple_remove_be40(&buf->b); in net_buf_remove_be40()
1991 * @param buf A valid pointer on a buffer.
1995 static inline uint64_t net_buf_remove_le48(struct net_buf *buf) in net_buf_remove_le48() argument
1997 return net_buf_simple_remove_le48(&buf->b); in net_buf_remove_le48()
2006 * @param buf A valid pointer on a buffer
2010 static inline uint64_t net_buf_remove_be48(struct net_buf *buf) in net_buf_remove_be48() argument
2012 return net_buf_simple_remove_be48(&buf->b); in net_buf_remove_be48()
2021 * @param buf A valid pointer on a buffer.
2025 static inline uint64_t net_buf_remove_le64(struct net_buf *buf) in net_buf_remove_le64() argument
2027 return net_buf_simple_remove_le64(&buf->b); in net_buf_remove_le64()
2036 * @param buf A valid pointer on a buffer
2040 static inline uint64_t net_buf_remove_be64(struct net_buf *buf) in net_buf_remove_be64() argument
2042 return net_buf_simple_remove_be64(&buf->b); in net_buf_remove_be64()
2051 * @param buf Buffer to update.
2056 static inline void *net_buf_push(struct net_buf *buf, size_t len) in net_buf_push() argument
2058 return net_buf_simple_push(&buf->b, len); in net_buf_push()
2067 * @param buf Buffer to update.
2073 static inline void *net_buf_push_mem(struct net_buf *buf, const void *mem, in net_buf_push_mem() argument
2076 return net_buf_simple_push_mem(&buf->b, mem, len); in net_buf_push_mem()
2084 * @param buf Buffer to update.
2087 static inline void net_buf_push_u8(struct net_buf *buf, uint8_t val) in net_buf_push_u8() argument
2089 net_buf_simple_push_u8(&buf->b, val); in net_buf_push_u8()
2098 * @param buf Buffer to update.
2101 static inline void net_buf_push_le16(struct net_buf *buf, uint16_t val) in net_buf_push_le16() argument
2103 net_buf_simple_push_le16(&buf->b, val); in net_buf_push_le16()
2112 * @param buf Buffer to update.
2115 static inline void net_buf_push_be16(struct net_buf *buf, uint16_t val) in net_buf_push_be16() argument
2117 net_buf_simple_push_be16(&buf->b, val); in net_buf_push_be16()
2126 * @param buf Buffer to update.
2129 static inline void net_buf_push_le24(struct net_buf *buf, uint32_t val) in net_buf_push_le24() argument
2131 net_buf_simple_push_le24(&buf->b, val); in net_buf_push_le24()
2140 * @param buf Buffer to update.
2143 static inline void net_buf_push_be24(struct net_buf *buf, uint32_t val) in net_buf_push_be24() argument
2145 net_buf_simple_push_be24(&buf->b, val); in net_buf_push_be24()
2154 * @param buf Buffer to update.
2157 static inline void net_buf_push_le32(struct net_buf *buf, uint32_t val) in net_buf_push_le32() argument
2159 net_buf_simple_push_le32(&buf->b, val); in net_buf_push_le32()
2168 * @param buf Buffer to update.
2171 static inline void net_buf_push_be32(struct net_buf *buf, uint32_t val) in net_buf_push_be32() argument
2173 net_buf_simple_push_be32(&buf->b, val); in net_buf_push_be32()
2182 * @param buf Buffer to update.
2185 static inline void net_buf_push_le40(struct net_buf *buf, uint64_t val) in net_buf_push_le40() argument
2187 net_buf_simple_push_le40(&buf->b, val); in net_buf_push_le40()
2196 * @param buf Buffer to update.
2199 static inline void net_buf_push_be40(struct net_buf *buf, uint64_t val) in net_buf_push_be40() argument
2201 net_buf_simple_push_be40(&buf->b, val); in net_buf_push_be40()
2210 * @param buf Buffer to update.
2213 static inline void net_buf_push_le48(struct net_buf *buf, uint64_t val) in net_buf_push_le48() argument
2215 net_buf_simple_push_le48(&buf->b, val); in net_buf_push_le48()
2224 * @param buf Buffer to update.
2227 static inline void net_buf_push_be48(struct net_buf *buf, uint64_t val) in net_buf_push_be48() argument
2229 net_buf_simple_push_be48(&buf->b, val); in net_buf_push_be48()
2238 * @param buf Buffer to update.
2241 static inline void net_buf_push_le64(struct net_buf *buf, uint64_t val) in net_buf_push_le64() argument
2243 net_buf_simple_push_le64(&buf->b, val); in net_buf_push_le64()
2252 * @param buf Buffer to update.
2255 static inline void net_buf_push_be64(struct net_buf *buf, uint64_t val) in net_buf_push_be64() argument
2257 net_buf_simple_push_be64(&buf->b, val); in net_buf_push_be64()
2266 * @param buf Buffer to update.
2271 static inline void *net_buf_pull(struct net_buf *buf, size_t len) in net_buf_pull() argument
2273 return net_buf_simple_pull(&buf->b, len); in net_buf_pull()
2282 * @param buf Buffer to update.
2287 static inline void *net_buf_pull_mem(struct net_buf *buf, size_t len) in net_buf_pull_mem() argument
2289 return net_buf_simple_pull_mem(&buf->b, len); in net_buf_pull_mem()
2298 * @param buf A valid pointer on a buffer.
2302 static inline uint8_t net_buf_pull_u8(struct net_buf *buf) in net_buf_pull_u8() argument
2304 return net_buf_simple_pull_u8(&buf->b); in net_buf_pull_u8()
2313 * @param buf A valid pointer on a buffer.
2317 static inline uint16_t net_buf_pull_le16(struct net_buf *buf) in net_buf_pull_le16() argument
2319 return net_buf_simple_pull_le16(&buf->b); in net_buf_pull_le16()
2328 * @param buf A valid pointer on a buffer.
2332 static inline uint16_t net_buf_pull_be16(struct net_buf *buf) in net_buf_pull_be16() argument
2334 return net_buf_simple_pull_be16(&buf->b); in net_buf_pull_be16()
2343 * @param buf A valid pointer on a buffer.
2347 static inline uint32_t net_buf_pull_le24(struct net_buf *buf) in net_buf_pull_le24() argument
2349 return net_buf_simple_pull_le24(&buf->b); in net_buf_pull_le24()
2358 * @param buf A valid pointer on a buffer.
2362 static inline uint32_t net_buf_pull_be24(struct net_buf *buf) in net_buf_pull_be24() argument
2364 return net_buf_simple_pull_be24(&buf->b); in net_buf_pull_be24()
2373 * @param buf A valid pointer on a buffer.
2377 static inline uint32_t net_buf_pull_le32(struct net_buf *buf) in net_buf_pull_le32() argument
2379 return net_buf_simple_pull_le32(&buf->b); in net_buf_pull_le32()
2388 * @param buf A valid pointer on a buffer
2392 static inline uint32_t net_buf_pull_be32(struct net_buf *buf) in net_buf_pull_be32() argument
2394 return net_buf_simple_pull_be32(&buf->b); in net_buf_pull_be32()
2403 * @param buf A valid pointer on a buffer.
2407 static inline uint64_t net_buf_pull_le40(struct net_buf *buf) in net_buf_pull_le40() argument
2409 return net_buf_simple_pull_le40(&buf->b); in net_buf_pull_le40()
2418 * @param buf A valid pointer on a buffer
2422 static inline uint64_t net_buf_pull_be40(struct net_buf *buf) in net_buf_pull_be40() argument
2424 return net_buf_simple_pull_be40(&buf->b); in net_buf_pull_be40()
2433 * @param buf A valid pointer on a buffer.
2437 static inline uint64_t net_buf_pull_le48(struct net_buf *buf) in net_buf_pull_le48() argument
2439 return net_buf_simple_pull_le48(&buf->b); in net_buf_pull_le48()
2448 * @param buf A valid pointer on a buffer
2452 static inline uint64_t net_buf_pull_be48(struct net_buf *buf) in net_buf_pull_be48() argument
2454 return net_buf_simple_pull_be48(&buf->b); in net_buf_pull_be48()
2463 * @param buf A valid pointer on a buffer.
2467 static inline uint64_t net_buf_pull_le64(struct net_buf *buf) in net_buf_pull_le64() argument
2469 return net_buf_simple_pull_le64(&buf->b); in net_buf_pull_le64()
2478 * @param buf A valid pointer on a buffer
2482 static inline uint64_t net_buf_pull_be64(struct net_buf *buf) in net_buf_pull_be64() argument
2484 return net_buf_simple_pull_be64(&buf->b); in net_buf_pull_be64()
2492 * @param buf A valid pointer on a buffer
2496 static inline size_t net_buf_tailroom(const struct net_buf *buf) in net_buf_tailroom() argument
2498 return net_buf_simple_tailroom(&buf->b); in net_buf_tailroom()
2506 * buf A valid pointer on a buffer
2510 static inline size_t net_buf_headroom(const struct net_buf *buf) in net_buf_headroom() argument
2512 return net_buf_simple_headroom(&buf->b); in net_buf_headroom()
2520 * @param buf A valid pointer on a buffer
2524 static inline uint16_t net_buf_max_len(const struct net_buf *buf) in net_buf_max_len() argument
2526 return net_buf_simple_max_len(&buf->b); in net_buf_max_len()
2534 * @param buf Buffer.
2538 static inline uint8_t *net_buf_tail(const struct net_buf *buf) in net_buf_tail() argument
2540 return net_buf_simple_tail(&buf->b); in net_buf_tail()
2623 * @param timeout Affects the action taken should the net buf pool be empty.
2641 * @param buf Network buffer.
2654 size_t net_buf_append_bytes(struct net_buf *buf, size_t len,
2665 * @param buf Network buffer
2672 size_t net_buf_data_match(const struct net_buf *buf, size_t offset, const void *data, size_t len);
2682 * @param buf Network buffer.
2689 static inline struct net_buf *net_buf_skip(struct net_buf *buf, size_t len) in net_buf_skip() argument
2691 while (buf && len--) { in net_buf_skip()
2692 net_buf_pull_u8(buf); in net_buf_skip()
2693 if (!buf->len) { in net_buf_skip()
2694 buf = net_buf_frag_del(NULL, buf); in net_buf_skip()
2698 return buf; in net_buf_skip()
2707 * @param buf Buffer to start off with.
2711 static inline size_t net_buf_frags_len(const struct net_buf *buf) in net_buf_frags_len() argument
2715 while (buf) { in net_buf_frags_len()
2716 bytes += buf->len; in net_buf_frags_len()
2717 buf = buf->frags; in net_buf_frags_len()