Home
last modified time | relevance | path

Searched refs:tx (Results 1 – 25 of 38) sorted by relevance

12

/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/
Dtransport.c57 #define SEG_RETRANSMIT_TIMEOUT_UNICAST(tx) (K_MSEC(400) + 50 * (tx)->ttl) argument
64 #define SEG_RETRANSMIT_TIMEOUT(tx) \ argument
65 (BLE_MESH_ADDR_IS_UNICAST((tx)->dst) ? \
66 SEG_RETRANSMIT_TIMEOUT_UNICAST(tx) : \
178 struct seg_tx tx = { in bt_mesh_get_seg_retrans_timeout() local
181 return SEG_RETRANSMIT_TIMEOUT_UNICAST(&tx); in bt_mesh_get_seg_retrans_timeout()
189 static int send_unseg(struct bt_mesh_net_tx *tx, struct net_buf_simple *sdu, in send_unseg() argument
195 tx->src, tx->ctx->addr, tx->ctx->app_idx, sdu->len); in send_unseg()
197 buf = bt_mesh_adv_create(BLE_MESH_ADV_DATA, tx->xmit, BUF_TIMEOUT); in send_unseg()
205 if (tx->ctx->app_idx == BLE_MESH_KEY_DEV) { in send_unseg()
[all …]
Dadv.c184 struct ble_adv_tx *tx = cb_data; in adv_send() local
186 if (tx == NULL) { in adv_send()
193 ADV_SCAN_INT(tx->param.interval), tx->param.duration, in adv_send()
194 tx->param.period, tx->param.count); in adv_send()
196 data.adv_data_len = tx->buf->data[0]; in adv_send()
198 memcpy(data.adv_data, tx->buf->data + 1, data.adv_data_len); in adv_send()
200 data.scan_rsp_data_len = tx->buf->data[data.adv_data_len + 1]; in adv_send()
202 … memcpy(data.scan_rsp_data, tx->buf->data + data.adv_data_len + 2, data.scan_rsp_data_len); in adv_send()
204 duration = tx->param.duration; in adv_send()
208 err = bt_mesh_ble_adv_start(&tx->param, &data); in adv_send()
[all …]
Dnet.c858 int bt_mesh_net_encode(struct bt_mesh_net_tx *tx, struct net_buf_simple *buf, in bt_mesh_net_encode() argument
861 const bool ctl = (tx->ctx->app_idx == BLE_MESH_KEY_UNUSED); in bt_mesh_net_encode()
875 tx->src, tx->ctx->addr, ctl, bt_mesh.seq); in bt_mesh_net_encode()
877 net_buf_simple_push_be16(buf, tx->ctx->addr); in bt_mesh_net_encode()
878 net_buf_simple_push_be16(buf, tx->src); in bt_mesh_net_encode()
883 net_buf_simple_push_u8(buf, tx->ctx->send_ttl | 0x80); in bt_mesh_net_encode()
885 net_buf_simple_push_u8(buf, tx->ctx->send_ttl); in bt_mesh_net_encode()
888 if (IS_ENABLED(CONFIG_BLE_MESH_LOW_POWER) && tx->friend_cred) { in bt_mesh_net_encode()
889 if (friend_cred_get(tx->sub, BLE_MESH_ADDR_UNASSIGNED, in bt_mesh_net_encode()
893 tx->friend_cred = 0U; in bt_mesh_net_encode()
[all …]
Dprov.c157 } tx; member
242 (void)memset(&link, 0, offsetof(struct prov_link, tx.retransmit)); in reset_state()
261 if (!link.tx.buf[0]) { in buf_sent()
265 k_delayed_work_submit(&link.tx.retransmit, RETRANSMIT_TIMEOUT); in buf_sent()
278 for (i = 0; i < ARRAY_SIZE(link.tx.buf); i++) { in free_segments()
279 struct net_buf *buf = link.tx.buf[i]; in free_segments()
285 link.tx.buf[i] = NULL; in free_segments()
299 k_delayed_work_cancel(&link.tx.retransmit); in prov_clear_tx()
381 link.tx.start = k_uptime_get(); in send_reliable()
383 for (i = 0; i < ARRAY_SIZE(link.tx.buf); i++) { in send_reliable()
[all …]
Daccess.c185 struct bt_mesh_net_tx tx = { in publish_retransmit() local
199 tx.sub = bt_mesh_tx_netkey_get(pub->dev_role, key->net_idx); in publish_retransmit()
200 if (!tx.sub) { in publish_retransmit()
218 err = bt_mesh_trans_send(&tx, sdu, &pub_sent_cb, mod); in publish_retransmit()
758 struct bt_mesh_net_tx *tx, bool implicit_bind, in model_send() argument
764 role = bt_mesh_get_device_role(model, tx->ctx->srv_send); in model_send()
771 tx->ctx->app_idx, tx->src, tx->ctx->addr); in model_send()
774 if (!ready_to_send(role, tx->ctx->addr)) { in model_send()
789 if (!implicit_bind && !model_has_key(model, tx->ctx->app_idx)) { in model_send()
790 BT_ERR("Model not bound to AppKey 0x%04x", tx->ctx->app_idx); in model_send()
[all …]
Dfriend.c263 struct bt_mesh_net_tx tx = { in bt_mesh_friend_clear() local
299 tx.ctx->send_ttl = BLE_MESH_TTL_MAX; in bt_mesh_friend_clear()
304 bt_mesh_ctl_send(&tx, TRANS_CTL_OP_FRIEND_CLEAR_CFM, &cfm, in bt_mesh_friend_clear()
816 struct bt_mesh_net_tx tx = { in send_friend_clear() local
829 if (!tx.sub) { in send_friend_clear()
834 bt_mesh_ctl_send(&tx, TRANS_CTL_OP_FRIEND_CLEAR, &req, in send_friend_clear()
1428 struct bt_mesh_net_tx *tx, in friend_lpn_enqueue_tx() argument
1439 friend_purge_old_ack(frnd, seq_auth, tx->src); in friend_lpn_enqueue_tx()
1442 info.src = tx->src; in friend_lpn_enqueue_tx()
1443 info.dst = tx->ctx->addr; in friend_lpn_enqueue_tx()
[all …]
Dtransport.h105 int bt_mesh_ctl_send(struct bt_mesh_net_tx *tx, uint8_t ctl_op, void *data,
109 int bt_mesh_trans_send(struct bt_mesh_net_tx *tx, struct net_buf_simple *msg,
Dprovisioner_prov.c186 } tx; member
1262 if (!link[idx].tx.buf[0]) {
1266 k_delayed_work_submit(&link[idx].tx.retransmit, RETRANSMIT_TIMEOUT);
1279 for (i = 0; i < ARRAY_SIZE(link[idx].tx.buf); i++) {
1280 struct net_buf *buf = link[idx].tx.buf[i];
1286 link[idx].tx.buf[i] = NULL;
1300 k_delayed_work_cancel(&link[idx].tx.retransmit);
1326 memset(&link[idx], 0, offsetof(struct prov_link, tx.retransmit));
1403 link[idx].tx.start = k_uptime_get();
1405 for (i = 0; i < ARRAY_SIZE(link[idx].tx.buf); i++) {
[all …]
Dlpn.c188 struct bt_mesh_net_tx tx = { in send_friend_clear() local
195 .lpn_addr = sys_cpu_to_be16(tx.src), in send_friend_clear()
201 return bt_mesh_ctl_send(&tx, TRANS_CTL_OP_FRIEND_CLEAR, &req, in send_friend_clear()
311 struct bt_mesh_net_tx tx = { in send_friend_req() local
328 return bt_mesh_ctl_send(&tx, TRANS_CTL_OP_FRIEND_REQ, &req, in send_friend_req()
382 struct bt_mesh_net_tx tx = { in send_friend_poll() local
403 err = bt_mesh_ctl_send(&tx, TRANS_CTL_OP_FRIEND_POLL, &fsn, 1, in send_friend_poll()
668 struct bt_mesh_net_tx tx = { in sub_update() local
719 if (bt_mesh_ctl_send(&tx, op, &req, 1 + g * 2, in sub_update()
Dfriend.h36 bool bt_mesh_friend_enqueue_tx(struct bt_mesh_net_tx *tx,
Dproxy_client.c840 struct bt_mesh_net_tx tx = { in send_proxy_cfg() local
849 tx.sub = bt_mesh_subnet_get(net_idx); in send_proxy_cfg()
851 tx.sub = bt_mesh_provisioner_subnet_get(net_idx); in send_proxy_cfg()
853 if (!tx.sub) { in send_proxy_cfg()
919 err = bt_mesh_net_encode(&tx, buf, true); in send_proxy_cfg()
Dnet.h349 int bt_mesh_net_encode(struct bt_mesh_net_tx *tx, struct net_buf_simple *buf,
352 int bt_mesh_net_send(struct bt_mesh_net_tx *tx, struct net_buf *buf,
/hal_espressif-3.7.0/components/bootloader/subproject/components/micro-ecc/
DuECC_verify_antifault.c28 uECC_word_t tx[uECC_MAX_WORDS]; in uECC_verify_antifault() local
80 uECC_vli_set(tx, curve->G, num_words); in uECC_verify_antifault()
82 uECC_vli_modSub(z, sum, tx, curve->p, num_words); /* z = x2 - x1 */ in uECC_verify_antifault()
83 XYcZ_add(tx, ty, sum, sum + num_words, curve); in uECC_verify_antifault()
109 uECC_vli_set(tx, point, num_words); in uECC_verify_antifault()
111 apply_z(tx, ty, z, curve); in uECC_verify_antifault()
112 uECC_vli_modSub(tz, rx, tx, curve->p, num_words); /* Z = x2 - x1 */ in uECC_verify_antifault()
113 XYcZ_add(tx, ty, rx, ry, curve); in uECC_verify_antifault()
/hal_espressif-3.7.0/components/driver/deprecated/
Di2s_legacy.c107 i2s_dma_t *tx; /*!< DMA Tx buffer*/ member
199 if (p_i2s->tx) { in i2s_dma_tx_callback()
202 if (xQueueIsQueueFullFromISR(p_i2s->tx->queue)) { in i2s_dma_tx_callback()
203 xQueueReceiveFromISR(p_i2s->tx->queue, &dummy, &tmp); in i2s_dma_tx_callback()
207 i2s_event.size = p_i2s->tx->buf_size; in i2s_dma_tx_callback()
213 memset((void *) (((lldesc_t *)finish_desc)->buf), 0, p_i2s->tx->buf_size); in i2s_dma_tx_callback()
215 xQueueSendFromISR(p_i2s->tx->queue, &(((lldesc_t *)finish_desc)->buf), &tmp); in i2s_dma_tx_callback()
254 if ((status & I2S_LL_EVENT_TX_EOF) && p_i2s->tx) { in i2s_intr_handler_default()
258 if (xQueueIsQueueFullFromISR(p_i2s->tx->queue)) { in i2s_intr_handler_default()
259 xQueueReceiveFromISR(p_i2s->tx->queue, &dummy, &tmp); in i2s_intr_handler_default()
[all …]
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/rfcomm/
Dport_utils.c129 memset (&p_port->tx, 0, sizeof (p_port->tx)); in port_set_defaults()
131 p_port->tx.queue = fixed_queue_new(QUEUE_SIZE_MAX); in port_set_defaults()
220 if (p_port->tx.queue != NULL) { in port_release_port()
221 while ((p_buf = (BT_HDR *)fixed_queue_dequeue(p_port->tx.queue, 0)) != NULL) { in port_release_port()
225 p_port->tx.queue_size = 0; in port_release_port()
240 fixed_queue_free(p_port->tx.queue, NULL); in port_release_port()
241 p_port->tx.queue = NULL; in port_release_port()
414 BOOLEAN fc = p_port->tx.peer_fc in port_flow_control_user()
417 || (p_port->tx.queue_size > PORT_TX_HIGH_WM) in port_flow_control_user()
418 || (fixed_queue_length(p_port->tx.queue) > PORT_TX_BUF_HIGH_WM); in port_flow_control_user()
[all …]
Dport_api.c1114 p_status->out_queue_size = (UINT16) p_port->tx.queue_size; in PORT_GetQueueStatus()
1189 while ((p_buf = (BT_HDR *)fixed_queue_dequeue(p_port->tx.queue, 0)) != NULL) { in PORT_Purge()
1193 p_port->tx.queue_size = 0; in PORT_Purge()
1388 if (p_port->tx.peer_fc in port_write()
1394 if ((p_port->tx.queue_size > PORT_TX_CRITICAL_WM) in port_write()
1395 || (fixed_queue_length(p_port->tx.queue) > PORT_TX_BUF_CRITICAL_WM)){ in port_write()
1397 p_port->tx.queue_size); in port_write()
1409 p_port->tx.peer_fc, in port_write()
1414 fixed_queue_enqueue(p_port->tx.queue, p_buf, FIXED_QUEUE_MAX_TIMEOUT); in port_write()
1415 p_port->tx.queue_size += p_buf->len; in port_write()
[all …]
Dport_rfc.c957 p_port->tx.peer_fc = !enable_data; in PORT_FlowInd()
1007 if (p_port->tx.queue_size > 0) { in port_rfc_send_tx_data()
1009 while (!p_port->tx.peer_fc && p_port->rfc.p_mcb && p_port->rfc.p_mcb->peer_ready) { in port_rfc_send_tx_data()
1013 if ((p_buf = (BT_HDR *)fixed_queue_dequeue(p_port->tx.queue, 0)) != NULL) { in port_rfc_send_tx_data()
1014 p_port->tx.queue_size -= p_buf->len; in port_rfc_send_tx_data()
1018 … RFCOMM_TRACE_DEBUG ("Sending RFCOMM_DataReq tx.queue_size=%d", p_port->tx.queue_size); in port_rfc_send_tx_data()
1024 if (p_port->tx.queue_size == 0) { in port_rfc_send_tx_data()
1127 p_port->tx.peer_fc = TRUE; in port_get_credits()
Drfc_utils.c443 if (p_port->tx.peer_fc == TRUE) { in rfc_inc_credit()
468 p_port->tx.peer_fc = TRUE; in rfc_dec_credit()
/hal_espressif-3.7.0/components/bt/porting/ext/tinycrypt/src/
Decc_dsa.c202 uECC_word_t tx[NUM_ECC_WORDS]; in uECC_verify() local
246 uECC_vli_set(tx, curve->G, num_words); in uECC_verify()
248 uECC_vli_modSub(z, sum, tx, curve->p, num_words); /* z = x2 - x1 */ in uECC_verify()
249 XYcZ_add(tx, ty, sum, sum + num_words, curve); in uECC_verify()
275 uECC_vli_set(tx, point, num_words); in uECC_verify()
277 apply_z(tx, ty, z, curve); in uECC_verify()
278 uECC_vli_modSub(tz, rx, tx, curve->p, num_words); /* Z = x2 - x1 */ in uECC_verify()
279 XYcZ_add(tx, ty, rx, ry, curve); in uECC_verify()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/
Decc_dsa.c201 uECC_word_t tx[NUM_ECC_WORDS]; in uECC_verify() local
245 uECC_vli_set(tx, curve->G, num_words); in uECC_verify()
247 uECC_vli_modSub(z, sum, tx, curve->p, num_words); /* z = x2 - x1 */ in uECC_verify()
248 XYcZ_add(tx, ty, sum, sum + num_words, curve); in uECC_verify()
274 uECC_vli_set(tx, point, num_words); in uECC_verify()
276 apply_z(tx, ty, z, curve); in uECC_verify()
277 uECC_vli_modSub(tz, rx, tx, curve->p, num_words); /* Z = x2 - x1 */ in uECC_verify()
278 XYcZ_add(tx, ty, rx, ry, curve); in uECC_verify()
/hal_espressif-3.7.0/components/bt/host/bluedroid/btc/profile/std/l2cap/
Dbtc_l2cap.c70 slot_data_t tx; member
205 if (init_slot_data(&(*slot)->tx, SLOT_TX_QUEUE_SIZE)) { in l2cap_malloc_slot()
224 free_slot_data(&(*slot)->tx); in l2cap_malloc_slot()
245 free_slot_data(&slot->tx); in l2cap_free_slot()
679 … if ((p_buf = fixed_queue_try_peek_first(slot->tx.queue)) != NULL && p_buf->layer_specific == 0) { in btc_l2cap_write()
900 … if ((p_buf = fixed_queue_try_peek_first(slot->tx.queue)) != NULL && p_buf->layer_specific == 0) { in btc_l2cap_cb_handler()
943 if ((p_buf = fixed_queue_try_peek_first(slot->tx.queue)) == NULL) { in btc_l2cap_cb_handler()
952 osi_free(fixed_queue_dequeue(slot->tx.queue, FIXED_QUEUE_MAX_TIMEOUT)); in btc_l2cap_cb_handler()
953 if (fixed_queue_length(slot->tx.queue) <= SLOT_TX_QUEUE_LOW_WM) { in btc_l2cap_cb_handler()
958 … if ((p_buf = fixed_queue_try_peek_first(slot->tx.queue)) != NULL && p_buf->layer_specific == 0 && in btc_l2cap_cb_handler()
[all …]
/hal_espressif-3.7.0/zephyr/scripts/pinctrl/
DREADME.md24 tx:
35 - **`{periph_sig}`** (required): freely-named field which depends on the target peripheral, `tx` an…
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/rfcomm/include/
Dport_int.h169 tPORT_DATA tx; /* Control block for data from app to peer */ member
/hal_espressif-3.7.0/components/bt/controller/esp32c2/
DKconfig.in350 When using PHY-Coded in BLE connection, limitation on max tx/rx time can be applied to
356 Always enable the limitation on max tx/rx time for Coded-PHY connection
361 Disable the limitation on max tx/rx time for Coded-PHY connection
/hal_espressif-3.7.0/components/wpa_supplicant/src/tls/
Dlibtommath.h2475 int tx, ty; in fast_s_mp_mul_digs() local
2481 tx = ix - ty; in fast_s_mp_mul_digs()
2484 tmpx = a->dp + tx; in fast_s_mp_mul_digs()
2490 iy = MIN(a->used-tx, ty+1); in fast_s_mp_mul_digs()
3311 int tx, ty, iy; in fast_s_mp_sqr() local
3320 tx = ix - ty; in fast_s_mp_sqr()
3323 tmpx = a->dp + tx; in fast_s_mp_sqr()
3329 iy = MIN(a->used-tx, ty+1); in fast_s_mp_sqr()
3335 iy = MIN(iy, (ty-tx+1)>>1); in fast_s_mp_sqr()

12