Lines Matching refs:pkt_src
616 struct net_pkt *pkt_src; in ZTEST() local
619 pkt_src = net_pkt_alloc_on_iface(eth_if, K_NO_WAIT); in ZTEST()
620 zassert_true(pkt_src != NULL, "Pkt not allocated"); in ZTEST()
622 pkt_print_cursor(pkt_src); in ZTEST()
625 net_pkt_append_buffer(pkt_src, &b1); in ZTEST()
627 net_pkt_set_overwrite(pkt_src, true); in ZTEST()
630 zassert_true(net_pkt_available_buffer(pkt_src) != 0, "No space left?"); in ZTEST()
632 zassert_true(net_pkt_get_len(pkt_src) == 4, "Wrong length"); in ZTEST()
635 zassert_true(net_pkt_available_buffer(pkt_src) == 12, in ZTEST()
638 pkt_print_cursor(pkt_src); in ZTEST()
643 pkt_dst = net_pkt_clone(pkt_src, K_NO_WAIT); in ZTEST()
650 zassert_true(net_pkt_get_len(pkt_src) == net_pkt_get_len(pkt_dst), in ZTEST()
660 pkt_src->buffer = NULL; in ZTEST()
661 net_pkt_unref(pkt_src); in ZTEST()
662 zassert_true(atomic_get(&pkt_src->atomic_ref) == 0, in ZTEST()
973 struct net_pkt *pkt_src; in ZTEST() local
980 pkt_src = net_pkt_alloc_with_buffer(eth_if, 4, in ZTEST()
982 zassert_true(pkt_src != NULL, "Pkt not allocated"); in ZTEST()
983 res = net_pkt_write(pkt_src, "0123", 4); in ZTEST()
988 zassert_true(pkt_src != NULL, "Pkt not allocated"); in ZTEST()
1002 net_pkt_cursor_init(pkt_src); in ZTEST()
1004 res = net_pkt_copy(pkt_dst, pkt_src, 4); in ZTEST()
1015 net_pkt_unref(pkt_src); in ZTEST()