/Zephyr-Core-2.7.6/samples/drivers/peci/src/ |
D | main.c | 38 struct peci_msg packet; in peci_ping() local 42 packet.addr = PECI_HOST_ADDR; in peci_ping() 43 packet.cmd_code = PECI_CMD_PING; in peci_ping() 44 packet.tx_buffer.buf = NULL; in peci_ping() 45 packet.tx_buffer.len = PECI_PING_WR_LEN; in peci_ping() 46 packet.rx_buffer.buf = NULL; in peci_ping() 47 packet.rx_buffer.len = PECI_PING_RD_LEN; in peci_ping() 49 ret = peci_transfer(peci_dev, &packet); in peci_ping() 63 struct peci_msg packet; in peci_get_tjmax() local 72 packet.tx_buffer.buf = peci_req_buf; in peci_get_tjmax() [all …]
|
/Zephyr-Core-2.7.6/subsys/net/lib/mqtt/ |
D | mqtt.c | 76 struct buf_ctx packet; in client_connect() local 83 tx_buf_init(client, &packet); in client_connect() 86 err_code = connect_request_encode(client, &packet); in client_connect() 92 err_code = mqtt_transport_write(client, packet.cur, in client_connect() 93 packet.end - packet.cur); in client_connect() 243 struct buf_ctx packet; in mqtt_publish() local 257 tx_buf_init(client, &packet); in mqtt_publish() 264 err_code = publish_encode(param, &packet); in mqtt_publish() 269 io_vector[0].iov_base = packet.cur; in mqtt_publish() 270 io_vector[0].iov_len = packet.end - packet.cur; in mqtt_publish() [all …]
|
/Zephyr-Core-2.7.6/samples/net/sockets/packet/src/ |
D | packet.c | 36 static struct packet_data packet; variable 108 static int recv_packet_socket(struct packet_data *packet) in recv_packet_socket() argument 116 received = recv(packet->recv_sock, packet->recv_buffer, in recv_packet_socket() 117 sizeof(packet->recv_buffer), 0); in recv_packet_socket() 136 ret = start_socket(&packet.recv_sock); in recv_packet() 143 ret = recv_packet_socket(&packet); in recv_packet() 151 static int send_packet_socket(struct packet_data *packet) in send_packet_socket() argument 177 ret = sendto(packet->send_sock, lorem_ipsum, send, 0, in send_packet_socket() 195 ret = recv(packet->send_sock, recv_buffer, in send_packet_socket() 211 ret = start_socket(&packet.send_sock); in send_packet() [all …]
|
/Zephyr-Core-2.7.6/doc/reference/data_structures/ |
D | mpsc_pbuf.rst | 12 producer fills the data and commits it. Consuming a packet is also performed in 13 two steps: consumer claims the packet, gets pointer to it and length and later 14 on packet is freed. This approach reduces memory copying. 18 * Allocate, commit scheme used for packet producing. 19 * Claim, free scheme used for packet consuming. 24 be allocated. For each dropped packet user callback is called. 33 Each packet in the buffer contains ``MPSC_PBUF`` specific header which is used 39 * valid - bit set to one when packet contains valid user packet 40 * busy - bit set when packet is being consumed (claimed but not free) 49 | 1 | 0 | valid packet | [all …]
|
/Zephyr-Core-2.7.6/tests/kernel/fifo/fifo_timeout/src/ |
D | main.c | 88 void *packet = k_fifo_get(&scratch_fifo_packets_fifo, K_NO_WAIT); in get_scratch_packet() local 90 zassert_true(packet != NULL, NULL); in get_scratch_packet() 91 return packet; in get_scratch_packet() 94 static void put_scratch_packet(void *packet) in put_scratch_packet() argument 96 k_fifo_put(&scratch_fifo_packets_fifo, packet); in put_scratch_packet() 124 void *packet; in test_thread_pend_and_timeout() local 129 packet = k_fifo_get(d->fifo, K_MSEC(d->timeout)); in test_thread_pend_and_timeout() 130 zassert_true(packet == NULL, NULL); in test_thread_pend_and_timeout() 201 void *packet; in test_thread_pend_and_get_data() local 203 packet = k_fifo_get(d->fifo, K_MSEC(d->timeout)); in test_thread_pend_and_get_data() [all …]
|
/Zephyr-Core-2.7.6/tests/kernel/lifo/lifo_usage/src/ |
D | main.c | 81 void *packet = k_lifo_get(&scratch_lifo_packets_lifo, K_NO_WAIT); in get_scratch_packet() local 83 zassert_true(packet != NULL, NULL); in get_scratch_packet() 84 return packet; in get_scratch_packet() 87 static void put_scratch_packet(void *packet) in put_scratch_packet() argument 89 k_lifo_put(&scratch_lifo_packets_lifo, packet); in put_scratch_packet() 263 void *packet; in test_timeout_empty_lifo() local 271 packet = k_lifo_get(&lifo_timeout[0], K_MSEC(timeout)); in test_timeout_empty_lifo() 273 zassert_equal(packet, NULL, NULL); in test_timeout_empty_lifo() 278 packet = k_lifo_get(&lifo_timeout[0], K_NO_WAIT); in test_timeout_empty_lifo() 279 zassert_equal(packet, NULL, NULL); in test_timeout_empty_lifo() [all …]
|
/Zephyr-Core-2.7.6/samples/net/sockets/packet/ |
D | README.rst | 9 This sample is a simple packet socket application showing usage 10 of packet sockets over Ethernet. The sample prints every packet 11 received, and sends a dummy packet every 5 seconds. 18 When the application is run, it opens a packet socket and prints 19 the length of the packet it receives. After that it sends a dummy 20 packet every 5 seconds. You can use Wireshark to observe these
|
D | Kconfig | 1 # Private config options for packet socket sample app 6 mainmenu "Networking packet socket sample application" 12 By default the application will send a packet every 5 seconds.
|
/Zephyr-Core-2.7.6/doc/guides/networking/ |
D | net_pkt_processing_stats.rst | 10 This page describes how to get information about network packet processing 13 Network stack contains infrastructure to figure out how long the network packet 18 network packet statistics is collected. For RX, only UDP, TCP or raw packet 19 type network packet statistics is collected. 33 The TX time tells how long it took for network packet from its creation to 42 information for TX or RX network packets are collected when the network packet 54 took for a network packet to go from previous state to next. 61 packet creation to this state, is **22** microseconds in this example. 62 * The correct TX thread is invoked, and the packet is read from the transmit 64 * The network packet was just sent and the network stack is about to free the [all …]
|
D | net-stack-architecture.rst | 88 1. A network data packet is received by a device driver. 91 data. The network packet is placed in the proper RX queue (implemented by 100 3. The network packet is then passed to the correct L2 driver. The L2 driver 101 can check if the packet is proper and modify it if needed, e.g. strip L2 104 4. The packet is processed by a network interface. The network statistics are 107 5. The packet is then passed to L3 processing. If the packet is IP based, 108 then the L3 layer checks if the packet is a proper IPv6 or IPv4 packet. 110 6. A socket handler then finds an active socket to which the network packet 140 4. An IP header is added to the network packet for a UDP or TCP packet. 143 for the network packet, and also will make sure that the network interface [all …]
|
/Zephyr-Core-2.7.6/tests/lib/mpsc_pbuf/src/ |
D | main.c | 60 struct test_data_var *packet = (struct test_data_var *)item; in drop() local 62 zassert_equal(packet->hdr.data, exp_dropped_data[drop_cnt], NULL); in drop() 63 zassert_equal(packet->hdr.len, exp_dropped_len[drop_cnt], NULL); in drop() 65 int err = memcmp(packet->data, &exp_dropped_data[drop_cnt], in drop() 519 struct test_data_var *packet; in item_alloc_commit() local 524 packet = (struct test_data_var *)mpsc_pbuf_alloc(&buffer, len, in item_alloc_commit() 526 packet->hdr.len = len; in item_alloc_commit() 528 packet->data[j] = i + j; in item_alloc_commit() 531 mpsc_pbuf_commit(&buffer, (union mpsc_pbuf_generic *)packet); in item_alloc_commit() 533 packet = (struct test_data_var *)mpsc_pbuf_claim(&buffer); in item_alloc_commit() [all …]
|
/Zephyr-Core-2.7.6/include/sys/ |
D | mpsc_pbuf.h | 72 typedef uint32_t (*mpsc_pbuf_get_wlen)(const union mpsc_pbuf_generic *packet); 81 const union mpsc_pbuf_generic *packet); 169 union mpsc_pbuf_generic *packet); 229 const union mpsc_pbuf_generic *packet);
|
/Zephyr-Core-2.7.6/tests/subsys/openthread/ |
D | radio_test.c | 391 struct net_pkt *packet; in create_ack_frame() local 396 packet = net_pkt_alloc(K_NO_WAIT); in create_ack_frame() 398 net_pkt_append_buffer(packet, buf); in create_ack_frame() 403 net_pkt_set_ieee802154_rssi(packet, rssi); in create_ack_frame() 404 net_pkt_set_ieee802154_lqi(packet, lqi); in create_ack_frame() 405 zassert_equal(ieee802154_radio_handle_ack(NULL, packet), NET_OK, in create_ack_frame() 407 net_pkt_unref(packet); in create_ack_frame() 807 struct net_pkt *packet; in alloc_pkt() local 812 packet = net_pkt_alloc(K_NO_WAIT); in alloc_pkt() 815 net_pkt_append_buffer(packet, buf); in alloc_pkt() [all …]
|
/Zephyr-Core-2.7.6/drivers/ethernet/ |
D | Kconfig.enc424j600 | 16 int "Stack size for internal incoming packet handler" 20 incoming packet processing. 23 int "Priority for internal incoming packet handler" 27 packet processing.
|
D | Kconfig.w5500 | 15 int "Stack size for internal incoming packet handler" 20 incoming packet processing. 23 int "Priority for internal incoming packet handler" 28 packet processing.
|
D | Kconfig.enc28j60 | 14 int "Stack size for internal incoming packet handler" 19 incoming packet processing. 22 int "Priority for internal incoming packet handler" 27 packet processing.
|
/Zephyr-Core-2.7.6/samples/philosophers/src/ |
D | phil_obj_abstract.h | 36 struct packet { struct 101 struct packet data; 110 struct packet *data; \ 123 struct packet data; 132 struct packet *data; \
|
/Zephyr-Core-2.7.6/subsys/net/ip/ |
D | Kconfig.debug | 16 module-str = Log level for network packet and buffer allocation 17 module-help = Enables debug of network packet and buffer allocations and frees. 21 bool "Debug network packet and buffer individual allocation" 24 Enables printing of network packet and buffer allocations and frees for 29 int "How many external network packet allocations" 37 bool "Reduce r/w fragility by resetting the packet cursor when freed" 43 to know who/where the packet was freed already. Do not set this, by
|
D | Kconfig | 151 when sending a network packet. The network packet priority can then 173 when receiving a network packet. The network packet priority can then 186 handle the packet all the way to the application. This might cause 227 Select mapping to use to map network packet priorities to traffic 258 int "Default network TX packet priority if none have been set" 262 What is the default network packet priority if user has not specified 266 int "Default network RX packet priority if none have been set" 270 What is the default network RX packet priority if user has not set 274 bool "Check IP address validity before sending IP packet" 278 correct before sending either IPv4 or IPv6 network packet. [all …]
|
/Zephyr-Core-2.7.6/doc/reference/networking/ |
D | net_l2.rst | 41 - ``recv()``: All device drivers, once they receive a packet which they put 46 The L2 stack does what it needs to do with the packet, for example, parsing 48 function will return ``NET_DROP`` in case of an erroneous packet, 49 ``NET_OK`` if the packet was fully consumed by the L2, or ``NET_CONTINUE`` 53 function to actually send a network packet. All relevant link-layer content 56 error code if there was a failure sending the network packet. 85 receiving or sending a network packet. The rest is hardware dependent 91 On reception, it is up to the device driver to fill-in the network packet with 92 as many data buffers as required. The network packet itself is a 102 the device driver to send the network packet all at once, with all the buffers. [all …]
|
/Zephyr-Core-2.7.6/modules/ |
D | Kconfig.syst | 19 bool "output MIPI SyS-T raw data packet" 21 This option outputs MIPI SyS-T raw data packet
|
/Zephyr-Core-2.7.6/samples/arch/smp/pktqueue/ |
D | README.rst | 17 of packet headers is initialized. Each header contains some random data of size 63 This project outputs total time required for processing all packet headers. 79 Each of 2 parallel queues is processed by 3 threads on 2 cores and contain 5000 packet headers. 80 Bytes in packet header: 24 84 All 20000 packet headers were processed in 89 msec
|
/Zephyr-Core-2.7.6/samples/net/mqtt_publisher/ |
D | README.rst | 219 [publish_cb:149] <MQTT_PUBACK> packet id: 1888, user_data: PUBLISH 221 [publish_cb:149] <MQTT_PUBREC> packet id: 16356, user_data: PUBLISH 222 [publish_cb:149] <MQTT_PUBCOMP> packet id: 16356, user_data: PUBLISH 226 [publish_cb:149] <MQTT_PUBACK> packet id: 45861, user_data: PUBLISH 228 [publish_cb:149] <MQTT_PUBREC> packet id: 53870, user_data: PUBLISH 229 [publish_cb:149] <MQTT_PUBCOMP> packet id: 53870, user_data: PUBLISH 233 [publish_cb:149] <MQTT_PUBACK> packet id: 60144, user_data: PUBLISH 235 [publish_cb:149] <MQTT_PUBREC> packet id: 6561, user_data: PUBLISH 236 [publish_cb:149] <MQTT_PUBCOMP> packet id: 6561, user_data: PUBLISH 240 [publish_cb:149] <MQTT_PUBACK> packet id: 38355, user_data: PUBLISH [all …]
|
/Zephyr-Core-2.7.6/subsys/net/lib/capture/ |
D | Kconfig | 7 bool "Network packet capture support" 17 User can use network packet analyzer like Wireshark to 59 Enables printing of sent network packet.
|
/Zephyr-Core-2.7.6/lib/os/ |
D | Kconfig | 59 bool "Multi producer, single consumer packet buffer" 62 Enable usage of mpsc packet buffer. Packet buffer is capable of 68 bool "Clear allocated packet" 70 When enabled packet space is zeroed before returning from allocation.
|