Home
last modified time | relevance | path

Searched refs:tx_pkt (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.4.0/tests/net/ieee802154/custom_l2/src/
Dmain.c19 struct net_pkt *tx_pkt; member
33 test_data.tx_pkt = pkt; in custom_l2_send()
74 struct net_pkt *tx_pkt; in ZTEST() local
81 tx_pkt = net_pkt_alloc_with_buffer(iface, sizeof(TEST_PAYLOAD), in ZTEST()
83 zassert_not_null(tx_pkt, "Failed to allocate packet"); in ZTEST()
85 ret = net_pkt_write(tx_pkt, TEST_PAYLOAD, sizeof(TEST_PAYLOAD)); in ZTEST()
88 ret = net_send_data(tx_pkt); in ZTEST()
90 zassert_equal(tx_pkt, test_data.tx_pkt, "TX packet did not reach L2"); in ZTEST()
92 net_pkt_unref(tx_pkt); in ZTEST()
/Zephyr-Core-3.4.0/subsys/net/lib/sntp/
Dsntp.c175 struct sntp_pkt tx_pkt = { 0 }; in sntp_query() local
183 SNTP_SET_LI(tx_pkt.lvm, 0); in sntp_query()
184 SNTP_SET_VN(tx_pkt.lvm, SNTP_VERSION_NUMBER); in sntp_query()
185 SNTP_SET_MODE(tx_pkt.lvm, SNTP_MODE_CLIENT); in sntp_query()
187 tx_pkt.tx_tm_s = htonl(ctx->expected_orig_ts); in sntp_query()
189 ret = zsock_send(ctx->sock.fd, (uint8_t *)&tx_pkt, sizeof(tx_pkt), 0); in sntp_query()
/Zephyr-Core-3.4.0/modules/openthread/platform/
Dradio.c80 static struct net_pkt *tx_pkt; variable
242 tx_pkt = net_pkt_alloc(K_NO_WAIT); in dataInit()
243 __ASSERT_NO_MSG(tx_pkt != NULL); in dataInit()
249 net_pkt_append_buffer(tx_pkt, tx_payload); in dataInit()
307 net_pkt_set_ieee802154_txpwr(tx_pkt, get_transmit_power_for_channel(channel)); in transmit_message()
312 net_pkt_set_ieee802154_frame_secured(tx_pkt, in transmit_message()
314 net_pkt_set_ieee802154_mac_hdr_rdy(tx_pkt, sTransmitFrame.mInfo.mTxInfo.mIsHeaderUpdated); in transmit_message()
320 net_pkt_set_txtime(tx_pkt, NSEC_PER_USEC * tx_at); in transmit_message()
322 radio_api->tx(radio_dev, IEEE802154_TX_MODE_TXTIME_CCA, tx_pkt, tx_payload); in transmit_message()
325 tx_err = radio_api->tx(radio_dev, IEEE802154_TX_MODE_CSMA_CA, tx_pkt, in transmit_message()
[all …]
/Zephyr-Core-3.4.0/drivers/wifi/eswifi/
Deswifi_offload.c184 struct net_pkt *pkt = socket->tx_pkt; in __eswifi_off_send_pkt()
240 socket->tx_pkt = NULL; in eswifi_off_send_work()
267 if (socket->tx_pkt) { in eswifi_off_send()
271 socket->tx_pkt = pkt; in eswifi_off_send()
285 socket->tx_pkt = NULL; in eswifi_off_send()
311 if (socket->tx_pkt) { in eswifi_off_sendto()
316 socket->tx_pkt = pkt; in eswifi_off_sendto()
341 socket->tx_pkt = NULL; in eswifi_off_sendto()
Deswifi_offload.h42 struct net_pkt *tx_pkt; member
/Zephyr-Core-3.4.0/tests/net/ieee802154/l2/src/
Dieee802154_test.c448 struct net_pkt *tx_pkt; in test_wait_for_ack() local
454 tx_pkt = get_data_pkt_with_ar(); in test_wait_for_ack()
455 if (!tx_pkt) { in test_wait_for_ack()
459 ack_required = prepare_for_ack(ctx, tx_pkt, tx_pkt->frags); in test_wait_for_ack()
465 if (!ieee802154_validate_frame(net_pkt_data(tx_pkt), net_pkt_get_len(tx_pkt), &mpdu)) { in test_wait_for_ack()
499 net_pkt_unref(tx_pkt); in test_wait_for_ack()