/Zephyr-Core-3.6.0/tests/net/buf/src/ |
D | main.c | 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() 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/ |
D | buf.c | 91 __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/ |
D | main.c | 579 .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/ |
D | net_pkt.c | 310 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 …]
|
D | net_core.c | 84 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()
|
D | net_private.h | 312 buf = buf->frags; in net_pkt_hexdump() 334 buf = buf->frags; in net_pkt_print_buffer_info()
|
D | 6lo.c | 740 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/ |
D | ieee802154_shell_test.c | 147 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()
|
D | ieee802154_test.c | 327 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/ |
D | ieee802154_6lo_fragment.c | 147 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()
|
D | ieee802154_frame.h | 492 return (struct ieee802154_command *)(pkt->frags->data + pkt->frags->len); in ieee802154_get_mac_command()
|
D | ieee802154.c | 370 __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/ |
D | main.c | 196 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/ |
D | pkt.c | 119 buf = buf->frags; in net_pkt_buffer_info() 143 buf = buf->frags; in net_pkt_buffer_hexdump()
|
D | ipv6.c | 36 struct net_buf *frag = reass->pkt[i]->frags; in ipv6_frag_cb() 43 frag = frag->frags; in ipv6_frag_cb()
|
D | conn.c | 175 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/ |
D | eth_native_posix.c | 129 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()
|
D | eth_stellaris.c | 81 for (frag = pkt->frags; frag; frag = frag->frags) { in eth_stellaris_send()
|
D | eth_dwmac.c | 123 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/ |
D | esp_socket.c | 121 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/ |
D | main.c | 203 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/ |
D | loopback.c | 108 if (!pkt->frags) { in loopback_send()
|
D | canbus.c | 111 ret = can_send(cfg->can_dev, (struct can_frame *)pkt->frags->data, in net_canbus_send()
|
D | slip.c | 106 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/ |
D | ethernet.c | 135 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()
|