Lines Matching refs:frag
114 static const uint8_t *check_frag(struct net_buf *frag, const uint8_t *data) in check_frag() argument
118 ret = memcmp(data, frag->data, frag->len); in check_frag()
121 print_hex(data, frag->len); in check_frag()
122 printk("\nreceived (%d bytes):\n", frag->len); in check_frag()
123 print_hex(frag->data, frag->len); in check_frag()
127 return data + frag->len; in check_frag()
274 struct net_buf *buf, *frag; in ZTEST() local
289 frag = buf; in ZTEST()
292 data_ptr = check_frag(frag, data_ptr); in ZTEST()
293 memset(frag->data, 0, frag->len); in ZTEST()
294 } while ((frag = frag->frags)); in ZTEST()