Lines Matching refs:frag
128 struct net_buf *frag, *head; in ZTEST() local
135 frag = head; in ZTEST()
137 frag->frags = net_buf_alloc_len(&bufs_pool, 74, K_NO_WAIT); in ZTEST()
138 zassert_not_null(frag->frags, "Failed to get fragment"); in ZTEST()
139 frag = frag->frags; in ZTEST()
178 struct net_buf *frag, *head; in ZTEST() local
186 frag = head; in ZTEST()
188 frag->frags = net_buf_alloc_len(&bufs_pool, 74, K_NO_WAIT); in ZTEST()
189 zassert_not_null(frag->frags, "Failed to get fragment"); in ZTEST()
190 frag = frag->frags; in ZTEST()
213 struct net_buf *buf, *frag; in ZTEST() local
227 frag = net_buf_alloc_len(&bufs_pool, 74, K_FOREVER); in ZTEST()
228 net_buf_frag_add(buf, frag); in ZTEST()
229 frags[i] = frag; in ZTEST()
233 frag = net_buf_alloc_len(&bufs_pool, 74, K_FOREVER); in ZTEST()
234 net_buf_frag_insert(buf, frag); in ZTEST()
235 frags[i] = frag; in ZTEST()
237 frag = buf->frags; in ZTEST()
240 while (frag) { in ZTEST()
241 frag = frag->frags; in ZTEST()
249 frag = buf->frags; in ZTEST()
250 while (frag) { in ZTEST()
251 struct net_buf *next = frag->frags; in ZTEST()
254 net_buf_frag_del(frag, next); in ZTEST()
258 frag = next; in ZTEST()
264 frag = buf->frags; in ZTEST()
265 while (frag) { in ZTEST()
266 frag = frag->frags; in ZTEST()
298 frag = net_buf_alloc_len(&bufs_pool, 74, K_FOREVER); in ZTEST()
299 net_buf_frag_add(frag, net_buf_alloc_len(&bufs_pool, 74, K_FOREVER)); in ZTEST()
300 net_buf_frag_insert(frag, net_buf_alloc_len(&bufs_pool, 74, K_FOREVER)); in ZTEST()
301 net_buf_frag_insert(buf->frags->frags, frag); in ZTEST()
304 frag = buf->frags; in ZTEST()
305 while (frag) { in ZTEST()
306 frag = frag->frags; in ZTEST()
323 struct net_buf *buf, *frag; in ZTEST() local
337 frag = net_buf_alloc_len(&bufs_pool, 1280, K_FOREVER); in ZTEST()
338 net_buf_reserve(frag, PROTO_HEADERS); in ZTEST()
339 big_frags[0] = frag; in ZTEST()
344 zassert_true(net_buf_tailroom(frag) >= len, in ZTEST()
346 memcpy(net_buf_add(frag, len), example_data, len); in ZTEST()
349 ipv6 = (struct ipv6_hdr *)(frag->data - net_buf_headroom(frag)); in ZTEST()
352 net_buf_frag_add(buf, frag); in ZTEST()