Home
last modified time | relevance | path

Searched full:tx (Results 1 – 25 of 2099) sorted by relevance

12345678910>>...84

/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_tx_queue.h8 uint8_t pause_data; /* Data pause state of the tx queue */
18 * @brief Initialize a tx queue.
20 * @param ull_tx_q Address of tx queue.
25 * @brief Pause the data path of a tx queue.
27 * @param ull_tx_q Address of tx queue.
32 * @brief Resume the data path of a tx queue
34 * @param ull_tx_q Address of tx queue.
39 * @brief Enqueue a tx node in the data path of a tx queue
41 * @param ull_tx_q Address of tx queue.
42 * @param tx Address of tx node to enqueue.
[all …]
Dull_tx_queue.c29 /* move all paused data to the tail of tx list, only if not empty and no longer paused */ in ull_tx_q_resume_data()
35 void ull_tx_q_enqueue_data(struct ull_tx_q *queue, struct node_tx *tx) in ull_tx_q_enqueue_data() argument
43 /* enqueue data pdu into tx list */ in ull_tx_q_enqueue_data()
47 sys_slist_append(list, (sys_snode_t *)tx); in ull_tx_q_enqueue_data()
50 void ull_tx_q_enqueue_ctrl(struct ull_tx_q *queue, struct node_tx *tx) in ull_tx_q_enqueue_ctrl() argument
52 /* enqueue ctrl pdu into tx list */ in ull_tx_q_enqueue_ctrl()
53 sys_slist_append(&queue->tx_list, (sys_snode_t *)tx); in ull_tx_q_enqueue_ctrl()
58 struct node_tx *tx; in ull_tx_q_peek() local
60 tx = (struct node_tx *)sys_slist_peek_head(&queue->tx_list); in ull_tx_q_peek()
62 return tx; in ull_tx_q_peek()
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_phy_update/src/
Dmain.c88 "Preferred TX PHY mismatch %d (actual) != %d (expected)", \
98 "Current TX PHY mismatch %d (actual) != %d (expected)", \
118 struct node_tx *tx; in ZTEST() local
135 /* 'Trigger' DLE ntf on PHY update, as this forces change to eff tx/rx times */ in ZTEST()
148 /* Steal all ntf buffers, to trigger TX stall on non avail of NTF buffer for DLE */ in ZTEST()
158 /* Tx Queue should have one LL Control PDU */ in ZTEST()
159 lt_rx(LL_PHY_REQ, &conn, &tx, &req); in ZTEST()
162 /* Check that data tx was paused */ in ZTEST()
163 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
168 /* TX Ack */ in ZTEST()
[all …]
/Zephyr-latest/drivers/ethernet/
Deth_ivshmem_queue.c47 q->tx.shmem = (void *)tx_shmem; in eth_ivshmem_queue_init()
51 vring_init(&q->tx.vring, vring_desc_len, q->tx.shmem, ETH_IVSHMEM_VRING_ALIGNMENT); in eth_ivshmem_queue_init()
58 struct vring_used *tmp_used = q->tx.vring.used; in eth_ivshmem_queue_init()
60 q->tx.vring.used = q->rx.vring.used; in eth_ivshmem_queue_init()
70 q->tx.desc_head = 0; in eth_ivshmem_queue_reset()
71 q->tx.desc_len = 0; in eth_ivshmem_queue_reset()
72 q->tx.data_head = 0; in eth_ivshmem_queue_reset()
73 q->tx.data_tail = 0; in eth_ivshmem_queue_reset()
74 q->tx.data_len = 0; in eth_ivshmem_queue_reset()
75 q->tx.avail_idx = 0; in eth_ivshmem_queue_reset()
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_collision/src/
Dmain.c126 "Preferred TX PHY mismatch %d (actual) != %d (expected)", \
136 "Current TX PHY mismatch %d (actual) != %d (expected)", \
152 struct node_tx *tx; in ZTEST() local
188 /* Tx Queue should have one LL Control PDU */ in ZTEST()
189 lt_rx(LL_PHY_REQ, &conn, &tx, &req); in ZTEST()
195 /* Check that data tx is paused */ in ZTEST()
196 zassert_equal(conn.tx_q.pause_data, 1U, "Data tx is not paused"); in ZTEST()
198 /* TX Ack */ in ZTEST()
199 event_tx_ack(&conn, tx); in ZTEST()
201 /* Check that data tx is paused */ in ZTEST()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dtransport.c85 uint8_t blocked:1, /* Blocked by ongoing tx */
119 static int send_unseg(struct bt_mesh_net_tx *tx, struct net_buf_simple *sdu, in send_unseg() argument
126 tx->xmit, BUF_TIMEOUT); in send_unseg()
136 } else if (BT_MESH_IS_DEV_KEY(tx->ctx->app_idx)) { in send_unseg()
139 net_buf_simple_add_u8(&adv->b, UNSEG_HDR(1, tx->aid)); in send_unseg()
145 if (!bt_mesh_friend_queue_has_space(tx->sub->net_idx, in send_unseg()
146 tx->src, tx->ctx->addr, in send_unseg()
148 if (BT_MESH_ADDR_IS_UNICAST(tx->ctx->addr)) { in send_unseg()
158 if (bt_mesh_friend_enqueue_tx(tx, BT_MESH_FRIEND_PDU_SINGLE, in send_unseg()
160 BT_MESH_ADDR_IS_UNICAST(tx->ctx->addr)) { in send_unseg()
[all …]
Dsar_cfg.c18 const struct bt_mesh_sar_tx *tx) in bt_mesh_sar_tx_encode() argument
20 net_buf_simple_add_u8(buf, (tx->seg_int_step & 0xf) | in bt_mesh_sar_tx_encode()
21 (tx->unicast_retrans_count << 4)); in bt_mesh_sar_tx_encode()
22 net_buf_simple_add_u8(buf, (tx->unicast_retrans_without_prog_count & in bt_mesh_sar_tx_encode()
23 0xf) | (tx->unicast_retrans_int_step << 4)); in bt_mesh_sar_tx_encode()
24 net_buf_simple_add_u8(buf, (tx->unicast_retrans_int_inc & 0xf) | in bt_mesh_sar_tx_encode()
25 (tx->multicast_retrans_count << 4)); in bt_mesh_sar_tx_encode()
26 net_buf_simple_add_u8(buf, tx->multicast_retrans_int & 0xf); in bt_mesh_sar_tx_encode()
40 struct bt_mesh_sar_tx *tx) in bt_mesh_sar_tx_decode() argument
45 tx->seg_int_step = (val & 0xf); in bt_mesh_sar_tx_decode()
[all …]
/Zephyr-latest/dts/bindings/ieee802154/
Datmel,rf2xx.yaml28 description: RX and TX Frame Time Stamping(TX_ARET)
57 tx-pwr-table:
63 for all transceivers. This property must be used with tx-pwr-min and
64 tx-pwr-max for normal operations. The number of elements is defined by
65 the size of the tx-pwr-table array property. The max entry value for
71 linear_step = (tx-pwr-max - tx-pwr-min)
72 / (sizeof(tx-pwr-table) - 1.0);
73 table_index = abs((value_in_dbm - tx-pwr-max) / linear_step);
74 output_power = tx-pwr-table[table_index];
77 tx-pwr-min = -17 dBm and tx-pwr-max = +4 dBm. Using 48 elements in the
[all …]
/Zephyr-latest/drivers/can/
DKconfig.loopback24 int "TX thread stack size"
27 Stack size of the TX thread.
28 The TX thread calls the callbacks of the receiver
32 int "TX thread priority"
35 Priority of the TX thread.
36 The TX thread calls the callbacks of the receiver
40 int "TX message queue size"
43 Number of TX frames that can be buffered.
44 The send functions puts frame int this queue and TX thread takes the
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_stream_tx.h18 * @brief Initialize TX
20 * This will initialize TX if not already initialized. This creates and starts a thread that
26 * @brief Register a stream for TX
28 * This will add it to the list of streams the TX thread will attempt to send on.
34 * @retval -EINVAL @p bap_stream is not configured for TX
41 * @brief Unregister a stream for TX
43 * This will remove it to the list of streams the TX thread will attempt to send on.
49 * @retval -EINVAL @p bap_stream is not configured for TX
55 * @brief Test if the provided stream has been configured for TX
57 * @param bap_stream The stream to test for TX support
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_central_iso.c197 phy = cis_lll->tx.phy; in prepare_cb()
198 radio_phy_set(phy, cis_lll->tx.phy_flags); in prepare_cb()
204 if (cis_lll->tx.bn_curr > cis_lll->tx.bn) { in prepare_cb()
220 payload_count = cis_lll->tx.payload_count + in prepare_cb()
221 cis_lll->tx.bn_curr - 1U; in prepare_cb()
239 } else if (node_tx->payload_count >= (payload_count + cis_lll->tx.bn)) { in prepare_cb()
256 pdu_tx->cie = (cis_lll->tx.bn_curr > cis_lll->tx.bn) && in prepare_cb()
283 cis_lll->tx.ccm.counter = payload_count; in prepare_cb()
289 (cis_lll->tx.max_pdu + PDU_MIC_SIZE), in prepare_cb()
291 radio_pkt_tx_set(radio_ccm_iso_tx_pkt_set(&cis_lll->tx.ccm, in prepare_cb()
[all …]
Dlll_peripheral_iso.c132 struct node_tx_iso *tx; in prepare_cb() local
267 radio_switch_complete_and_tx(cis_lll->rx.phy, 0U, cis_lll->tx.phy, in prepare_cb()
268 cis_lll->tx.phy_flags); in prepare_cb()
349 payload_count = cis_lll->tx.payload_count + in prepare_cb()
350 cis_lll->tx.bn_curr - 1U; in prepare_cb()
354 cis_lll->memq_tx.tail, (void **)&tx); in prepare_cb()
356 if (tx->payload_count < payload_count) { in prepare_cb()
361 tx->next = link; in prepare_cb()
362 ull_iso_lll_ack_enqueue(cis_lll->handle, tx); in prepare_cb()
530 /* Close subevent, one tx-rx chain */ in isr_rx()
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_encrypt/src/
Dmain.c52 /* Tx/Rx pause flag */
56 /* Tx/Rx encryption flag */
67 /* Check Tx Pause and Encryption state */
70 zassert_equal(_conn.tx_q.pause_data, _pause, "Tx Data pause state is wrong.");\
71 zassert_equal(_conn.lll.enc_tx, _enc, "Tx Encryption state is wrong."); \
89 /* Check Tx CCM state */
93 "CCM Tx SK not equal to expected SK"); \
95 "CCM Tx IV not equal to (IVm | IVs)"); \
96 zassert_equal(_conn.lll.ccm_tx.counter, _cnt, "CCM Tx Counter is wrong"); \
97 zassert_equal(_conn.lll.ccm_tx.direction, _dir, "CCM Tx Direction is wrong");\
[all …]
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_audio_stream.h26 * @brief Initialize TX
28 * This will initialize TX if not already initialized. This creates and starts a thread that
34 * @brief Register a stream for TX
36 * This will add it to the list of streams the TX thread will attempt to send on.
42 * @retval -EINVAL @p bap_stream is not configured for TX
49 * @brief Unregister a stream for TX
51 * This will remove it to the list of streams the TX thread will attempt to send on.
57 * @retval -EINVAL @p bap_stream is not configured for TX
63 * @brief Test if the provided stream has been configured for TX
65 * @param bap_stream The stream to test for TX support
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/advertiser/
Ddisable.sh16 # Tx device procedure:
17 # 1. Tx device creates `CONFIG_BT_MESH_ADV_BUF_COUNT` advertisements, setting the first byte of the
19 # 2. Tx devices pushes all created advs to the pool by calling `bt_mesh_adv_send` function
20 # 3. When the `bt_mesh_send_cb.start` callback is called for the first adv, the tx device submits
22 # 4. Tx device checks that for the first adv the `bt_mesh_send_cb.end` callback is called with the
24 # 5. Tx device checks that for the consecutive advs the `bt_mesh_send_cb.start` is called with error
26 # 6. Tx device checks that no more advs can be created using `bt_mesh_adv_create` function.
27 # 7. Tx device resumes the advertiser and repeats steps 1 and 2.
28 # 8. Tx device expects that all advs are sent.
31 # 1. Rx devices listens all the time while tx device sends advs and ensure that no new advs were
/Zephyr-latest/boards/shields/nrf7002eb/
Dnrf7002eb.overlay33 wifi-max-tx-pwr-2g-dsss = <21>;
34 wifi-max-tx-pwr-2g-mcs0 = <16>;
35 wifi-max-tx-pwr-2g-mcs7 = <16>;
36 wifi-max-tx-pwr-5g-low-mcs0 = <13>;
37 wifi-max-tx-pwr-5g-low-mcs7 = <13>;
38 wifi-max-tx-pwr-5g-mid-mcs0 = <13>;
39 wifi-max-tx-pwr-5g-mid-mcs7 = <13>;
40 wifi-max-tx-pwr-5g-high-mcs0 = <12>;
41 wifi-max-tx-pwr-5g-high-mcs7 = <12>;
/Zephyr-latest/tests/drivers/i2s/i2s_api/src/
Dtest_i2s_loopback.c15 * - TX stream START trigger starts transmission.
18 * - TX stream DRAIN trigger empties the transmit queue.
24 TC_PRINT("RX/TX transfer requires use of I2S_DIR_BOTH.\n"); in ZTEST_USER()
31 /* Prefill TX queue */ in ZTEST_USER()
46 zassert_equal(ret, 0, "TX START trigger failed"); in ZTEST_USER()
56 /* All data written, drain TX queue and stop the transmission */ in ZTEST_USER()
58 zassert_equal(ret, 0, "TX DRAIN trigger failed"); in ZTEST_USER()
81 * - TX stream START trigger starts transmission.
84 * - TX stream DRAIN trigger empties the transmit queue.
90 TC_PRINT("RX/TX transfer requires use of I2S_DIR_BOTH.\n"); in ZTEST_USER()
[all …]
Dtest_i2s_dir_both_loopback.c14 * on devices that cannot independently start and stop the RX and TX streams
15 * and require the use of the I2S_DIR_BOTH value for RX/TX transfers.
34 /* Prefill TX queue */ in ZTEST_USER()
44 zassert_equal(ret, 0, "RX/TX START trigger failed\n"); in ZTEST_USER()
54 /* All data written, drain TX queue and stop both streams. */ in ZTEST_USER()
56 zassert_equal(ret, 0, "RX/TX DRAIN trigger failed"); in ZTEST_USER()
89 /* Prefill TX queue */ in ZTEST_USER()
94 zassert_equal(ret, 0, "RX/TX START trigger failed\n"); in ZTEST_USER()
104 /* All data written, all but one data block read, flush TX queue in ZTEST_USER()
108 zassert_equal(ret, 0, "RX/TX DRAIN trigger failed"); in ZTEST_USER()
[all …]
/Zephyr-latest/boards/shields/nrf7002ek/
Dnrf7002ek_common_5g.dtsi7 wifi-max-tx-pwr-5g-low-mcs0 = <13>;
8 wifi-max-tx-pwr-5g-low-mcs7 = <13>;
9 wifi-max-tx-pwr-5g-mid-mcs0 = <13>;
10 wifi-max-tx-pwr-5g-mid-mcs7 = <13>;
11 wifi-max-tx-pwr-5g-high-mcs0 = <12>;
12 wifi-max-tx-pwr-5g-high-mcs7 = <12>;
/Zephyr-latest/boards/nordic/nrf7002dk/
Dnrf70_common_5g.dtsi7 wifi-max-tx-pwr-5g-low-mcs0 = <9>;
8 wifi-max-tx-pwr-5g-low-mcs7 = <9>;
9 wifi-max-tx-pwr-5g-mid-mcs0 = <11>;
10 wifi-max-tx-pwr-5g-mid-mcs7 = <11>;
11 wifi-max-tx-pwr-5g-high-mcs0 = <13>;
12 wifi-max-tx-pwr-5g-high-mcs7 = <13>;
/Zephyr-latest/samples/bluetooth/hci_pwr_ctrl/
DREADME.rst5 Dynamically control the Tx power of a Bluetooth LE Controller using HCI vendor-specific commands.
10 This sample application demonstrates the dynamic Tx power control over the LL
12 peripheral advertising with varying Tx power. The initial advertiser TX power
13 for the first 5s of the application is the Kconfig set default TX power. Then,
14 the TX power variation of the advertiser is a repeatedly descending staircase
15 pattern ranging from -4 dBm to -30 dBm where the Tx power levels decrease every
19 the Tx power of the peripheral device is modulated per connection accordingly
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/beacon/
Dbeacon_interval.sh8 # setup two device, tx node provisioned node, rx node is not provisioned and only has
11 # tx node is able to adapt observed beacon interval and able to send at least one
12 # SNB in 600s. And veify tx node doesnn't send SNB faster than 10s.
14 # 1- rx node waits for the tx node to send the first SNB,
15 # rx node sends two SNBs with 20ms period, verifies that tx node only sends SNB 10s later,
16 # after rx node sends out beacon. rx node skips the 3rd SNB and verifies that tx nodes keeps
18 # 2- rx node sends SNBs with 4s period for 600s and verifies that tx node doesn't send any
/Zephyr-latest/drivers/firmware/scmi/
Dcore.c53 struct scmi_channel *chan, bool tx) in scmi_core_setup_chan() argument
66 if (!tx) { in scmi_core_setup_chan()
76 ret = scmi_transport_setup_chan(transport, chan, tx); in scmi_core_setup_chan()
96 ret = scmi_transport_send_message(proto->transport, proto->tx, msg); in scmi_send_message_pre_kernel()
108 while (!scmi_transport_channel_is_free(proto->transport, proto->tx)) { in scmi_send_message_pre_kernel()
111 ret = scmi_transport_read_message(proto->transport, proto->tx, reply); in scmi_send_message_pre_kernel()
125 if (!proto->tx) { in scmi_send_message_post_kernel()
130 ret = k_mutex_lock(&proto->tx->lock, K_USEC(SCMI_CHAN_LOCK_TIMEOUT_USEC)); in scmi_send_message_post_kernel()
136 ret = scmi_transport_send_message(proto->transport, proto->tx, msg); in scmi_send_message_post_kernel()
143 ret = k_sem_take(&proto->tx->sem, K_USEC(SCMI_CHAN_SEM_TIMEOUT_USEC)); in scmi_send_message_post_kernel()
[all …]
/Zephyr-latest/subsys/bluetooth/services/ots/
Dots_l2cap.c55 len = MIN(l2cap_ctx->ot_chan.tx.mtu, CONFIG_BT_OTS_L2CAP_CHAN_TX_MTU); in ots_l2cap_send()
56 len = MIN(len, l2cap_ctx->tx.len - l2cap_ctx->tx.len_sent); in ots_l2cap_send()
61 net_buf_add_mem(buf, &l2cap_ctx->tx.data[l2cap_ctx->tx.len_sent], len); in ots_l2cap_send()
71 /* Mark that L2CAP TX was accepted. */ in ots_l2cap_send()
72 l2cap_ctx->tx.len_sent += len; in ots_l2cap_send()
74 LOG_DBG("Sending TX chunk with %d bytes on L2CAP CoC", len); in ots_l2cap_send()
98 /* Ongoing TX - sending next chunk. */ in l2cap_sent()
99 if (l2cap_ctx->tx.len != l2cap_ctx->tx.len_sent) { in l2cap_sent()
105 /* TX completed - notify upper layers and clean up. */ in l2cap_sent()
106 memset(&l2cap_ctx->tx, 0, sizeof(l2cap_ctx->tx)); in l2cap_sent()
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_cte_req/src/
Dmain.c94 struct node_tx *tx; in ZTEST() local
119 /* Tx Queue should have one LL Control PDU */ in ZTEST()
120 lt_rx(LL_CTE_REQ, &conn, &tx, &local_cte_req); in ZTEST()
138 /* Release tx node */ in ZTEST()
139 ull_cp_release_tx(&conn, tx); in ZTEST()
169 struct node_tx *tx; in ZTEST() local
194 /* Tx Queue should have one LL Control PDU */ in ZTEST()
195 lt_rx(LL_CTE_REQ, &conn, &tx, &local_cte_req); in ZTEST()
213 /* Release tx node */ in ZTEST()
214 ull_cp_release_tx(&conn, tx); in ZTEST()
[all …]

12345678910>>...84