Home
last modified time | relevance | path

Searched refs:frags (Results 1 – 25 of 71) sorted by relevance

123

/Zephyr-Core-3.6.0/tests/net/buf/src/
Dmain.c137 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()
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()
212 struct net_buf *frags[bufs_pool.buf_count - 1]; in ZTEST() local
229 frags[i] = frag; in ZTEST()
235 frags[i] = frag; in ZTEST()
237 frag = buf->frags; in ZTEST()
[all …]
/Zephyr-Core-3.6.0/subsys/net/
Dbuf.c91 __ASSERT_NO_MSG(buf->frags == NULL); in net_buf_reset()
333 buf->frags = NULL; in net_buf_alloc_len_debug()
456 struct net_buf *frags = buf->frags; in net_buf_unref_debug() local
467 buf->pool_id, buf->frags); in net_buf_unref_debug()
474 buf->frags = NULL; in net_buf_unref_debug()
489 buf = frags; in net_buf_unref_debug()
549 while (buf->frags) { in net_buf_frag_last()
550 buf = buf->frags; in net_buf_frag_last()
561 if (parent->frags) { in net_buf_frag_insert()
562 net_buf_frag_last(frag)->frags = parent->frags; in net_buf_frag_insert()
[all …]
/Zephyr-Core-3.6.0/tests/net/net_pkt/src/
Dmain.c579 .frags = &b5,
588 .frags = &b4,
596 .frags = &b3,
606 .frags = &b2,
657 zassert_true(pkt_dst->buffer->frags == NULL, "Not only one buffer?"); in ZTEST()
1085 zassert_equal(pkt->frags->frags->frags->len, 3, in ZTEST()
1094 zassert_not_equal(pkt->frags->frags->frags, NULL, in ZTEST()
1096 zassert_equal(pkt->frags->frags->frags->len, 1, in ZTEST()
1105 zassert_equal(pkt->frags->frags->frags, NULL, in ZTEST()
1107 zassert_equal(pkt->frags->frags->len, CONFIG_NET_BUF_DATA_SIZE, in ZTEST()
[all …]
/Zephyr-Core-3.6.0/subsys/net/ip/
Dnet_pkt.c310 NET_INFO("pkt %p frags %p", pkt, pkt->frags); in net_pkt_print_frags()
312 NET_ASSERT(pkt->frags); in net_pkt_print_frags()
314 frag = pkt->frags; in net_pkt_print_frags()
326 frag = frag->frags; in net_pkt_print_frags()
550 pkt, ref - 1, pkt->frags, caller, line);
556 frag = pkt->frags;
563 frag->ref - 1U, frag->frags, caller, line);
585 frag = frag->frags;
596 if (pkt->frags) {
597 net_pkt_frag_unref(pkt->frags);
[all …]
Dnet_core.c84 if (!pkt->frags) { in process_data()
85 NET_DBG("Corrupted packet (frags %p)", pkt->frags); in process_data()
382 if (!pkt || !pkt->frags) { in net_send_data()
Dnet_private.h312 buf = buf->frags; in net_pkt_hexdump()
334 buf = buf->frags; in net_pkt_print_buffer_info()
D6lo.c740 if (pkt->frags->len < NET_IPV6H_LEN) { in compress_IPHC_header()
742 pkt->frags->len, NET_IPV6H_LEN); in compress_IPHC_header()
747 pkt->frags->len < NET_IPV6UDPH_LEN) { in compress_IPHC_header()
749 pkt->frags->len, NET_IPV6UDPH_LEN); in compress_IPHC_header()
1580 NET_ASSERT(pkt && pkt->frags); in net_6lo_uncompress()
1582 if ((pkt->frags->data[0] & NET_6LO_DISPATCH_IPHC_MASK) == in net_6lo_uncompress()
1587 } else if (pkt->frags->data[0] == NET_6LO_DISPATCH_IPV6) { in net_6lo_uncompress()
1604 if (pkt->frags->data[0] == NET_6LO_DISPATCH_IPV6) { in net_6lo_uncompress_hdr_diff()
1608 if ((pkt->frags->data[0] & NET_6LO_DISPATCH_IPHC_MASK) != in net_6lo_uncompress_hdr_diff()
/Zephyr-Core-3.6.0/tests/net/ieee802154/l2/src/
Dieee802154_shell_test.c147 net_pkt_frag_unref(current_pkt->frags); in test_scan_shell_cmd()
148 current_pkt->frags = NULL; in test_scan_shell_cmd()
178 assoc_req = current_pkt->frags; in test_associate_shell_cmd()
190 net_pkt_frag_unref(current_pkt->frags); in test_associate_shell_cmd()
191 current_pkt->frags = NULL; in test_associate_shell_cmd()
324 net_pkt_frag_unref(current_pkt->frags); in ZTEST()
325 current_pkt->frags = NULL; in ZTEST()
382 zassert_not_null(current_pkt->frags); in ZTEST()
385 net_pkt_frag_unref(current_pkt->frags); in ZTEST()
386 current_pkt->frags = NULL; in ZTEST()
Dieee802154_test.c327 net_buf_add_mem(pkt->frags, data_pkt_with_ar, sizeof(data_pkt_with_ar)); in get_data_pkt_with_ar()
493 if (!current_pkt->frags) { in test_ns_sending()
517 net_pkt_frag_unref(current_pkt->frags); in test_ns_sending()
518 current_pkt->frags = NULL; in test_ns_sending()
538 ack_required = ieee802154_prepare_for_ack(net_iface, tx_pkt, tx_pkt->frags); in test_wait_for_ack()
732 if (!current_pkt->frags) { in test_dgram_packet_sending()
761 net_pkt_frag_unref(current_pkt->frags); in test_dgram_packet_sending()
762 current_pkt->frags = NULL; in test_dgram_packet_sending()
872 if (current_pkt->frags) { in test_dgram_packet_reception()
874 net_pkt_frag_unref(current_pkt->frags); in test_dgram_packet_reception()
[all …]
/Zephyr-Core-3.6.0/subsys/net/l2/ieee802154/
Dieee802154_6lo_fragment.c147 ctx->buf = ctx->buf->frags; in update_fragment_ctx()
351 frag->frags = pkt->buffer; in fragment_append()
375 frag = frag->frags; in fragment_cached_pkt_len()
414 prev->frags = frag; in fragment_move_back()
417 frag->frags = current; in fragment_move_back()
422 current = current->frags; in fragment_move_back()
441 frag = frag->frags; in fragment_remove_headers()
453 next = current->frags; in fragment_reconstruct_packet()
Dieee802154_frame.h492 return (struct ieee802154_command *)(pkt->frags->data + pkt->frags->len); in ieee802154_get_mac_command()
Dieee802154.c370 __ASSERT_NO_MSG(pkt->buffer && pkt->buffer->frags == NULL); in ieee802154_recv()
551 pkt_buf = pkt_buf->frags; in ieee802154_send()
559 pkt_buf = pkt_buf->frags; in ieee802154_send()
/Zephyr-Core-3.6.0/tests/net/ppp/driver/src/
Dmain.c196 buf = buf->frags; in ppp_l2_recv()
280 buf = buf->frags; in check_fcs()
284 buf = buf->frags; in check_fcs()
372 buf = buf->frags; in calc_fcs()
376 buf = buf->frags; in calc_fcs()
/Zephyr-Core-3.6.0/subsys/net/lib/shell/
Dpkt.c119 buf = buf->frags; in net_pkt_buffer_info()
143 buf = buf->frags; in net_pkt_buffer_hexdump()
Dipv6.c36 struct net_buf *frag = reass->pkt[i]->frags; in ipv6_frag_cb()
43 frag = frag->frags; in ipv6_frag_cb()
Dconn.c175 struct net_buf *frag = pkt->frags; in tcp_sent_list_cb()
195 frag = frag->frags; in tcp_sent_list_cb()
/Zephyr-Core-3.6.0/drivers/ethernet/
Deth_native_posix.c129 if (pkt->frags->frags == NULL) { in check_gptp_msg()
133 gptp_hdr = (struct gptp_hdr *)pkt->frags->frags->data; in check_gptp_msg()
135 gptp_hdr = (struct gptp_hdr *)(pkt->frags->data + eth_hlen); in check_gptp_msg()
Deth_stellaris.c81 for (frag = pkt->frags; frag; frag = frag->frags) { in eth_stellaris_send()
Deth_dwmac.c123 for (frag = pkt->buffer; frag; frag = frag->frags) { in net_pkt_get_nbfrags()
171 if (!frag->frags) { in dwmac_send()
188 frag = frag->frags; in dwmac_send()
/Zephyr-Core-3.6.0/drivers/wifi/esp_at/
Desp_socket.c121 frag = frag->frags; in esp_socket_prepare_pkt()
134 frag = frag->frags; in esp_socket_prepare_pkt()
/Zephyr-Core-3.6.0/tests/net/ieee802154/6lo_fragment/src/
Dmain.c203 frag = pkt->frags; in compare_data()
224 frag = frag->frags; in compare_data()
464 .frags = NULL,
559 buf = buf->frags; in test_fragment()
/Zephyr-Core-3.6.0/drivers/net/
Dloopback.c108 if (!pkt->frags) { in loopback_send()
Dcanbus.c111 ret = can_send(cfg->can_dev, (struct can_frame *)pkt->frags->data, in net_canbus_send()
Dslip.c106 for (buf = pkt->buffer; buf; buf = buf->frags) { in slip_send()
330 rx_buf = rx_buf->frags; in recv_cb()
/Zephyr-Core-3.6.0/subsys/net/l2/ethernet/
Dethernet.c135 for (frag = pkt->frags; frag; frag = frag->frags) { in ethernet_update_length()
251 net_buf_pull(pkt->frags, hdr_len); in ethernet_recv()
316 net_buf_pull(pkt->frags, hdr_len); in ethernet_recv()
595 pkt->buffer = buf->frags; in ethernet_remove_l2_header()
596 buf->frags = NULL; in ethernet_remove_l2_header()

123