Home
last modified time | relevance | path

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

1234

/Zephyr-latest/tests/lib/net_buf/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-latest/lib/net_buf/
Dbuf.c91 __ASSERT_NO_MSG(buf->frags == NULL); in net_buf_reset()
339 buf->frags = NULL; in net_buf_alloc_len_debug()
463 struct net_buf *frags = buf->frags; in net_buf_unref_debug() local
474 buf->pool_id, buf->frags); in net_buf_unref_debug()
481 buf->frags = NULL; in net_buf_unref_debug()
496 buf = frags; in net_buf_unref_debug()
579 while (buf->frags) { in net_buf_frag_last()
580 buf = buf->frags; in net_buf_frag_last()
591 if (parent->frags) { in net_buf_frag_insert()
592 net_buf_frag_last(frag)->frags = parent->frags; in net_buf_frag_insert()
[all …]
/Zephyr-latest/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()
1095 zassert_equal(pkt->frags->frags->frags->len, 3, in ZTEST()
1104 zassert_not_equal(pkt->frags->frags->frags, NULL, in ZTEST()
1106 zassert_equal(pkt->frags->frags->frags->len, 1, in ZTEST()
1115 zassert_equal(pkt->frags->frags->frags, NULL, in ZTEST()
1117 zassert_equal(pkt->frags->frags->len, CONFIG_NET_BUF_DATA_SIZE, in ZTEST()
[all …]
/Zephyr-latest/subsys/net/ip/
Dnet_pkt.c321 NET_INFO("pkt %p frags %p", pkt, pkt->frags); in net_pkt_print_frags()
323 NET_ASSERT(pkt->frags); in net_pkt_print_frags()
325 frag = pkt->frags; in net_pkt_print_frags()
337 frag = frag->frags; in net_pkt_print_frags()
561 pkt, ref - 1, pkt->frags, caller, line);
567 frag = pkt->frags;
574 frag->ref - 1U, frag->frags, caller, line);
596 frag = frag->frags;
607 if (pkt->frags) {
608 net_pkt_frag_unref(pkt->frags);
[all …]
Dnet_core.c88 if (!pkt->frags) { in process_data()
89 NET_DBG("Corrupted packet (frags %p)", pkt->frags); in process_data()
374 if (!pkt || !pkt->frags) { in net_send_data()
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()
Dnet_private.h375 buf = buf->frags; in net_pkt_hexdump()
397 buf = buf->frags; in net_pkt_print_buffer_info()
/Zephyr-latest/tests/net/ieee802154/l2/src/
Dieee802154_shell_test.c161 net_pkt_frag_unref(current_pkt->frags); in test_scan_shell_cmd()
162 current_pkt->frags = NULL; in test_scan_shell_cmd()
192 assoc_req = current_pkt->frags; in test_associate_shell_cmd()
204 net_pkt_frag_unref(current_pkt->frags); in test_associate_shell_cmd()
205 current_pkt->frags = NULL; in test_associate_shell_cmd()
359 net_pkt_frag_unref(current_pkt->frags); in ZTEST()
360 current_pkt->frags = NULL; in ZTEST()
417 zassert_not_null(current_pkt->frags); in ZTEST()
420 net_pkt_frag_unref(current_pkt->frags); in ZTEST()
421 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-latest/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.h506 return (struct ieee802154_command *)(pkt->frags->data + pkt->frags->len); in ieee802154_get_mac_command()
/Zephyr-latest/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-latest/subsys/net/lib/shell/
Dpkt.c119 buf = buf->frags; in net_pkt_buffer_info()
143 buf = buf->frags; in net_pkt_buffer_hexdump()
Dconn.c175 struct net_buf *frag = pkt->frags; in tcp_sent_list_cb()
195 frag = frag->frags; in tcp_sent_list_cb()
Dipv6.c38 struct net_buf *frag = reass->pkt[i]->frags; in ipv6_frag_cb()
45 frag = frag->frags; in ipv6_frag_cb()
/Zephyr-latest/drivers/ethernet/eth_nxp_enet_qos/
Deth_nxp_enet_qos_mac.c64 struct net_buf *fragment = pkt->frags; in eth_nxp_enet_qos_tx()
71 fragment = fragment->frags; in eth_nxp_enet_qos_tx()
89 data->tx.tx_header = pkt->frags; in eth_nxp_enet_qos_tx()
97 fragment = pkt->frags; in eth_nxp_enet_qos_tx()
106 fragment = fragment->frags; in eth_nxp_enet_qos_tx()
138 struct net_buf *fragment = pkt->frags; in tx_dma_done()
145 fragment = fragment->frags; in tx_dma_done()
/Zephyr-latest/drivers/ethernet/
Deth_native_posix.c117 if (pkt->frags->frags == NULL) { in check_gptp_msg()
121 gptp_hdr = (struct gptp_hdr *)pkt->frags->frags->data; in check_gptp_msg()
123 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()
/Zephyr-latest/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-latest/drivers/wifi/esp_at/
Desp_socket.c123 frag = frag->frags; in esp_socket_prepare_pkt()
136 frag = frag->frags; in esp_socket_prepare_pkt()
/Zephyr-latest/drivers/net/
Dloopback.c118 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-latest/subsys/net/l2/ethernet/
Dethernet.c141 for (frag = pkt->frags; frag; frag = frag->frags) { in ethernet_update_length()
334 net_buf_pull(pkt->frags, hdr_len); in ethernet_recv()
392 net_buf_pull(pkt->frags, hdr_len); in ethernet_recv()
671 pkt->buffer = buf->frags; in ethernet_remove_l2_header()
672 buf->frags = NULL; in ethernet_remove_l2_header()
/Zephyr-latest/tests/net/lib/dns_dispatcher/src/
Dmain.c98 if (!pkt->frags) { in sender_iface()

1234