Lines Matching refs:nbuf
149 struct net_buf *nbuf = net_buf_alloc_len(pool, len, K_NO_WAIT); in tp_nbuf_alloc() local
153 tp_assert(nbuf, "Out of nbufs"); in tp_nbuf_alloc()
155 tp_dbg("size=%d %p %s:%d %s()", nbuf->size, nbuf, file, line, func); in tp_nbuf_alloc()
157 tp_nbuf->nbuf = nbuf; in tp_nbuf_alloc()
163 return nbuf; in tp_nbuf_alloc()
174 tb->nbuf = clone; in tp_nbuf_clone()
184 void tp_nbuf_unref(struct net_buf *nbuf, const char *file, int line, in tp_nbuf_unref() argument
190 tp_dbg("len=%d %p %s:%d %s()", nbuf->len, nbuf, file, line, func); in tp_nbuf_unref()
193 if (tp_nbuf->nbuf == nbuf) { in tp_nbuf_unref()
199 tp_assert(found, "Invalid %s(%p): %s:%d", __func__, nbuf, file, line); in tp_nbuf_unref()
203 net_buf_unref(nbuf); in tp_nbuf_unref()
214 tp_nbuf->nbuf->len); in tp_nbuf_stat()