Home
last modified time | relevance | path

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

12

/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/
Dtransport.c662 static void update_rpl(struct bt_mesh_rpl *rpl, struct bt_mesh_net_rx *rx) in update_rpl() argument
664 rpl->src = rx->ctx.addr; in update_rpl()
665 rpl->seq = rx->seq; in update_rpl()
666 rpl->old_iv = rx->old_iv; in update_rpl()
678 bool bt_mesh_rpl_check(struct bt_mesh_net_rx *rx, struct bt_mesh_rpl **match) in bt_mesh_rpl_check() argument
683 if (rx->net_if == BLE_MESH_NET_IF_LOCAL) { in bt_mesh_rpl_check()
688 if (!rx->local_match) { in bt_mesh_rpl_check()
700 update_rpl(rpl, rx); in bt_mesh_rpl_check()
707 if (rpl->src == rx->ctx.addr) { in bt_mesh_rpl_check()
708 if (rx->old_iv && !rpl->old_iv) { in bt_mesh_rpl_check()
[all …]
Dnet.c110 static bool msg_cache_match(struct bt_mesh_net_rx *rx, in msg_cache_match() argument
125 static void msg_cache_add(struct bt_mesh_net_rx *rx) in msg_cache_add() argument
127 rx->msg_cache_idx = msg_cache_next++; in msg_cache_add()
128 msg_cache[rx->msg_cache_idx].src = rx->ctx.addr; in msg_cache_add()
129 msg_cache[rx->msg_cache_idx].seq = rx->seq; in msg_cache_add()
1071 size_t data_len, struct bt_mesh_net_rx *rx, in net_decrypt() argument
1077 rx->old_iv = (IVI(data) != (bt_mesh.iv_index & 0x01)); in net_decrypt()
1082 if (bt_mesh_net_obfuscate(buf->data, BLE_MESH_NET_IVI_RX(rx), priv)) { in net_decrypt()
1086 rx->ctx.addr = SRC(buf->data); in net_decrypt()
1087 if (!BLE_MESH_ADDR_IS_UNICAST(rx->ctx.addr)) { in net_decrypt()
[all …]
Dprov.c91 #define XACT_SEG_DATA(_seg) (&link.rx.buf->data[20 + ((_seg - 1) * 23)])
92 #define XACT_SEG_RECV(_seg) (link.rx.seg &= ~(1 << (_seg)))
143 } rx; member
243 link.rx.prev_id = XACT_NVAL; in reset_state()
246 link.rx.buf = bt_mesh_proxy_server_get_buf(); in reset_state()
249 link.rx.buf = &rx_buf; in reset_state()
1347 static void link_open(struct prov_rx *rx, struct net_buf_simple *buf) in link_open() argument
1358 if (link.id == rx->link_id && link.expect == PROV_INVITE) { in link_open()
1377 link.id = rx->link_id; in link_open()
1379 net_buf_simple_reset(link.rx.buf); in link_open()
[all …]
Dfriend.h32 void bt_mesh_friend_enqueue_rx(struct bt_mesh_net_rx *rx,
48 int bt_mesh_friend_poll(struct bt_mesh_net_rx *rx, struct net_buf_simple *buf);
49 int bt_mesh_friend_req(struct bt_mesh_net_rx *rx, struct net_buf_simple *buf);
50 int bt_mesh_friend_clear(struct bt_mesh_net_rx *rx, struct net_buf_simple *buf);
51 int bt_mesh_friend_clear_cfm(struct bt_mesh_net_rx *rx,
53 int bt_mesh_friend_sub_add(struct bt_mesh_net_rx *rx,
55 int bt_mesh_friend_sub_rem(struct bt_mesh_net_rx *rx,
Dlpn.h18 int bt_mesh_lpn_friend_update(struct bt_mesh_net_rx *rx,
20 int bt_mesh_lpn_friend_offer(struct bt_mesh_net_rx *rx,
22 int bt_mesh_lpn_friend_clear_cfm(struct bt_mesh_net_rx *rx,
24 int bt_mesh_lpn_friend_sub_cfm(struct bt_mesh_net_rx *rx,
64 void bt_mesh_lpn_msg_received(struct bt_mesh_net_rx *rx);
Dfriend.c258 int bt_mesh_friend_clear(struct bt_mesh_net_rx *rx, struct net_buf_simple *buf) in bt_mesh_friend_clear() argument
264 .sub = rx->sub, in bt_mesh_friend_clear()
265 .ctx = &rx->ctx, in bt_mesh_friend_clear()
281 frnd = bt_mesh_friend_find(rx->sub->net_idx, lpn_addr, false, false); in bt_mesh_friend_clear()
633 int bt_mesh_friend_sub_add(struct bt_mesh_net_rx *rx, in bt_mesh_friend_sub_add() argument
644 frnd = bt_mesh_friend_find(rx->sub->net_idx, rx->ctx.addr, true, true); in bt_mesh_friend_sub_add()
646 BT_WARN("No matching LPN addr 0x%04x", rx->ctx.addr); in bt_mesh_friend_sub_add()
668 int bt_mesh_friend_sub_rem(struct bt_mesh_net_rx *rx, in bt_mesh_friend_sub_rem() argument
679 frnd = bt_mesh_friend_find(rx->sub->net_idx, rx->ctx.addr, true, true); in bt_mesh_friend_sub_rem()
681 BT_WARN("No matching LPN addr 0x%04x", rx->ctx.addr); in bt_mesh_friend_sub_rem()
[all …]
Dprovisioner_prov.c102 #define XACT_SEG_DATA(_idx, _seg) (&link[_idx].rx.buf->data[20 + ((_seg - 1) * 23)])
103 #define XACT_SEG_RECV(_idx, _seg) (link[_idx].rx.seg &= ~(1 << (_seg)))
174 } rx; member
1331 link[idx].rx.prev_id = XACT_NVAL;
1337 link[idx].rx.buf = bt_mesh_pba_get_buf(idx);
2781 static void link_ack(const uint8_t idx, struct prov_rx *rx, struct net_buf_simple *buf) argument
2806 static void link_close(const uint8_t idx, struct prov_rx *rx, struct net_buf_simple *buf) argument
2817 static void gen_prov_ctl(const uint8_t idx, struct prov_rx *rx, struct net_buf_simple *buf) argument
2819 BT_DBG("op 0x%02x len %u", BEARER_CTL(rx->gpc), buf->len);
2821 switch (BEARER_CTL(rx->gpc)) {
[all …]
Dproxy_client.c115 struct bt_mesh_net_rx *rx, in filter_status() argument
137 …proxy_client_filter_status_recv_cb(server - servers, rx->ctx.addr, server->net_idx, filter_type, l… in filter_status()
146 struct bt_mesh_net_rx rx = {0}; in proxy_cfg() local
156 &rx, &buf); in proxy_cfg()
162 if (!BLE_MESH_ADDR_IS_UNICAST(rx.ctx.addr)) { in proxy_cfg()
163 BT_ERR("Proxy Configuration from non-unicast addr 0x%04x", rx.ctx.addr); in proxy_cfg()
167 rx.local_match = 1U; in proxy_cfg()
169 if (bt_mesh_rpl_check(&rx, NULL)) { in proxy_cfg()
171 rx.ctx.addr, rx.ctx.recv_dst, rx.seq); in proxy_cfg()
189 filter_status(server, &rx, &buf); in proxy_cfg()
Dlpn.c482 void bt_mesh_lpn_msg_received(struct bt_mesh_net_rx *rx) in bt_mesh_lpn_msg_received() argument
504 int bt_mesh_lpn_friend_offer(struct bt_mesh_net_rx *rx, in bt_mesh_lpn_friend_offer() argument
509 struct bt_mesh_subnet *sub = rx->sub; in bt_mesh_lpn_friend_offer()
535 lpn->frnd = rx->ctx.addr; in bt_mesh_lpn_friend_offer()
568 int bt_mesh_lpn_friend_clear_cfm(struct bt_mesh_net_rx *rx, in bt_mesh_lpn_friend_clear_cfm() argument
889 int bt_mesh_lpn_friend_sub_cfm(struct bt_mesh_net_rx *rx, in bt_mesh_lpn_friend_sub_cfm() argument
954 int bt_mesh_lpn_friend_update(struct bt_mesh_net_rx *rx, in bt_mesh_lpn_friend_update() argument
959 struct bt_mesh_subnet *sub = rx->sub; in bt_mesh_lpn_friend_update()
972 if (sub->kr_phase == BLE_MESH_KR_PHASE_2 && !rx->new_key) { in bt_mesh_lpn_friend_update()
991 if (!rx->friend_cred) { in bt_mesh_lpn_friend_update()
[all …]
Dtransport.h112 int bt_mesh_trans_recv(struct net_buf_simple *buf, struct bt_mesh_net_rx *rx);
117 bool bt_mesh_rpl_check(struct bt_mesh_net_rx *rx, struct bt_mesh_rpl **match);
Dnet.h320 #define BLE_MESH_NET_IVI_RX(rx) (bt_mesh.iv_index - (rx)->old_iv) argument
363 struct bt_mesh_net_rx *rx, struct net_buf_simple *buf);
379 struct bt_mesh_net_rx *rx);
Dproxy_server.c259 struct bt_mesh_net_rx *rx, in send_filter_status() argument
263 .sub = rx->sub, in send_filter_status()
264 .ctx = &rx->ctx, in send_filter_status()
309 struct bt_mesh_net_rx rx = {0}; in proxy_cfg() local
319 &rx, &buf); in proxy_cfg()
325 rx.local_match = 1U; in proxy_cfg()
327 if (bt_mesh_rpl_check(&rx, NULL)) { in proxy_cfg()
329 rx.ctx.addr, rx.ctx.recv_dst, rx.seq); in proxy_cfg()
347 send_filter_status(client, &rx, &buf); in proxy_cfg()
356 send_filter_status(client, &rx, &buf); in proxy_cfg()
[all …]
Daccess.c639 void bt_mesh_model_recv(struct bt_mesh_net_rx *rx, struct net_buf_simple *buf) in bt_mesh_model_recv() argument
647 BT_INFO("recv, app_idx 0x%04x src 0x%04x dst 0x%04x", rx->ctx.app_idx, in bt_mesh_model_recv()
648 rx->ctx.addr, rx->ctx.recv_dst); in bt_mesh_model_recv()
680 if (!model_has_key(model, rx->ctx.app_idx)) { in bt_mesh_model_recv()
684 if (!model_has_dst(model, rx->ctx.recv_dst)) { in bt_mesh_model_recv()
701 rx->ctx.recv_op = opcode; in bt_mesh_model_recv()
702 rx->ctx.model = model; in bt_mesh_model_recv()
703 rx->ctx.srv_send = true; in bt_mesh_model_recv()
710 op->func(model, &rx->ctx, buf); in bt_mesh_model_recv()
Daccess.h53 void bt_mesh_model_recv(struct bt_mesh_net_rx *rx, struct net_buf_simple *buf);
/hal_espressif-latest/components/bootloader/subproject/components/micro-ecc/
DuECC_verify_antifault.c26 uECC_word_t rx[uECC_MAX_WORDS]; in uECC_verify_antifault() local
44 rx[num_n_words - 1] = 0; in uECC_verify_antifault()
97 uECC_vli_set(rx, point, num_words); in uECC_verify_antifault()
104 curve->double_jacobian(rx, ry, 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()
119 apply_z(rx, ry, z, curve); in uECC_verify_antifault()
122 if (uECC_vli_cmp(curve->n, rx, num_n_words) != 1) { in uECC_verify_antifault()
123 uECC_vli_sub(rx, rx, curve->n, num_n_words); in uECC_verify_antifault()
134 vhash_words[w] = mhash_words[w] ^ rx[w % curve->num_words] ^ r[w % curve->num_words]; in uECC_verify_antifault()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/rfcomm/
Dport_utils.c128 memset (&p_port->rx, 0, sizeof (p_port->rx)); in port_set_defaults()
132 p_port->rx.queue = fixed_queue_new(QUEUE_SIZE_MAX); in port_set_defaults()
213 if (p_port->rx.queue != NULL) { in port_release_port()
214 while ((p_buf = (BT_HDR *)fixed_queue_dequeue(p_port->rx.queue, 0)) != NULL) { in port_release_port()
218 p_port->rx.queue_size = 0; in port_release_port()
242 fixed_queue_free(p_port->rx.queue, NULL); in port_release_port()
243 p_port->rx.queue = NULL; in port_release_port()
513 && !p_port->rx.user_fc in port_flow_control_peer()
520 p_port->rx.peer_fc = FALSE; in port_flow_control_peer()
529 p_port->rx.peer_fc = TRUE; in port_flow_control_peer()
[all …]
Dport_api.c631 *p_rx_queue_count = p_port->rx.queue_size; in PORT_GetRxQueueCnt()
634 *p_rx_queue_count, p_port->rx.queue_size); in PORT_GetRxQueueCnt()
796 p_port->rx.user_fc = !enable; in PORT_FlowControl()
799 if (!p_port->rx.user_fc) { in PORT_FlowControl()
806 p_port->local_ctrl.fc = (p_port->rx.user_fc | p_port->rx.peer_fc); in PORT_FlowControl()
815 if (enable && (p_port->rx.queue_size != 0)) { in PORT_FlowControl()
867 p_port->rx.user_fc = !enable;
870 if (!p_port->rx.user_fc) {
877 p_port->local_ctrl.fc = (p_port->rx.user_fc | p_port->rx.peer_fc);
886 if (enable && (p_port->rx.queue_size != 0)) {
[all …]
/hal_espressif-latest/components/hal/
Decc_hal.c68 int ecc_hal_read_mul_result(uint8_t *rx, uint8_t *ry, uint16_t len) in ecc_hal_read_mul_result() argument
74 memset(rx, 0x0, len); in ecc_hal_read_mul_result()
80 ecc_ll_read_param(ECC_PARAM_PX, rx, len); in ecc_hal_read_mul_result()
109 int ecc_hal_read_jacob_mul_result(uint8_t *rx, uint8_t *ry, uint8_t *rz, uint16_t len) in ecc_hal_read_jacob_mul_result() argument
115 memset(rx, 0x0, len); in ecc_hal_read_jacob_mul_result()
122 ecc_ll_read_param(ECC_PARAM_QX, rx, len); in ecc_hal_read_jacob_mul_result()
142 int ecc_hal_read_point_add_result(uint8_t *rx, uint8_t *ry, uint8_t *rz, uint16_t len, bool read_ja… in ecc_hal_read_point_add_result() argument
145 ecc_ll_read_param(ECC_PARAM_QX, rx, len); in ecc_hal_read_point_add_result()
149 ecc_ll_read_param(ECC_PARAM_PX, rx, len); in ecc_hal_read_point_add_result()
/hal_espressif-latest/components/bt/porting/ext/tinycrypt/src/
Decc_dsa.c200 uECC_word_t rx[NUM_ECC_WORDS]; in uECC_verify() local
215 rx[num_n_words - 1] = 0; in uECC_verify()
263 uECC_vli_set(rx, point, num_words); in uECC_verify()
270 curve->double_jacobian(rx, ry, 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()
285 apply_z(rx, ry, z, curve); in uECC_verify()
288 if (uECC_vli_cmp_unsafe(curve->n, rx, num_n_words) != 1) { in uECC_verify()
289 uECC_vli_sub(rx, rx, curve->n, num_n_words); in uECC_verify()
293 return (int)(uECC_vli_equal(rx, r, num_words) == 0); in uECC_verify()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/
Decc_dsa.c199 uECC_word_t rx[NUM_ECC_WORDS]; in uECC_verify() local
214 rx[num_n_words - 1] = 0; in uECC_verify()
262 uECC_vli_set(rx, point, num_words); in uECC_verify()
269 curve->double_jacobian(rx, ry, 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()
284 apply_z(rx, ry, z, curve); in uECC_verify()
287 if (uECC_vli_cmp_unsafe(curve->n, rx, num_n_words) != 1) { in uECC_verify()
288 uECC_vli_sub(rx, rx, curve->n, num_n_words); in uECC_verify()
292 return (int)(uECC_vli_equal(rx, r, num_words) == 0); in uECC_verify()
/hal_espressif-latest/components/bt/porting/transport/driver/uart/
Dhci_driver_uart_dma.c101 struct uart_txrxchannel rx; member
227 esp_bt_hci_tl_callback_t callback = uart_env.rx.callback; in hci_uart_tl_rx_eof_callback()
228 void *arg = uart_env.rx.arg; in hci_uart_tl_rx_eof_callback()
230 assert(uart_env.rx.callback != NULL); in hci_uart_tl_rx_eof_callback()
232 uart_env.rx.callback = NULL; in hci_uart_tl_rx_eof_callback()
233 uart_env.rx.arg = NULL; in hci_uart_tl_rx_eof_callback()
310 hci_rxinfo->ptr = (void *)uart_env.rx.link_head->buf; in hci_driver_uart_dma_recv_callback()
311 hci_rxinfo->length = uart_env.rx.link_head->length; in hci_driver_uart_dma_recv_callback()
354 uart_env.rx.callback = callback; in hci_driver_uart_dma_recv_async()
355 uart_env.rx.arg = arg; in hci_driver_uart_dma_recv_async()
[all …]
/hal_espressif-latest/components/hal/include/hal/
Decc_hal.h91 int ecc_hal_read_mul_result(uint8_t *rx, uint8_t *ry, uint16_t len);
138 int ecc_hal_read_jacob_mul_result(uint8_t *rx, uint8_t *ry, uint8_t *rz, uint16_t len);
168 int ecc_hal_read_point_add_result(uint8_t *rx, uint8_t *ry, uint8_t *rz, uint16_t len, bool read_ja…
/hal_espressif-latest/components/driver/deprecated/
Di2s_legacy.c108 i2s_dma_t *rx; /*!< DMA Rx buffer*/ member
168 if (p_i2s->rx) { in i2s_dma_rx_callback()
171 if (xQueueIsQueueFullFromISR(p_i2s->rx->queue)) { in i2s_dma_rx_callback()
172 xQueueReceiveFromISR(p_i2s->rx->queue, &dummy, &tmp); in i2s_dma_rx_callback()
180 xQueueSendFromISR(p_i2s->rx->queue, &(((lldesc_t *)finish_desc)->buf), &tmp); in i2s_dma_rx_callback()
282 if ((status & I2S_LL_EVENT_RX_EOF) && p_i2s->rx) { in i2s_intr_handler_default()
286 if (xQueueIsQueueFullFromISR(p_i2s->rx->queue)) { in i2s_intr_handler_default()
287 xQueueReceiveFromISR(p_i2s->rx->queue, &dummy, &tmp); in i2s_intr_handler_default()
295 xQueueSendFromISR(p_i2s->rx->queue, &(((lldesc_t *)finish_desc)->buf), &tmp); in i2s_intr_handler_default()
375 p_i2s[i2s_num]->rx->curr_ptr = NULL; in i2s_rx_reset()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/l2cap/
Dbtc_l2cap.c70 slot_data_t rx; member
202 if (init_slot_data(&(*slot)->rx, QUEUE_SIZE_MAX)) { in l2cap_malloc_slot()
228 free_slot_data(&(*slot)->rx); in l2cap_malloc_slot()
248 free_slot_data(&slot->rx); in l2cap_free_slot()
833 … if (slot->close_alarm == NULL && slot->rx.queue && fixed_queue_length(slot->rx.queue) > 0) { in btc_l2cap_cb_handler()
906 fixed_queue_enqueue(slot->rx.queue, p_data_buf, FIXED_QUEUE_MAX_TIMEOUT); in btc_l2cap_cb_handler()
949 fixed_queue_enqueue(slot->rx.queue, p_data_buf, FIXED_QUEUE_MAX_TIMEOUT); in btc_l2cap_cb_handler()
1153 if (fixed_queue_length(slot->rx.queue) > 0) { in l2cap_vfs_read()
1155 … if ((p_buf = (BT_HDR *)fixed_queue_try_peek_first(slot->rx.queue)) != NULL && p_buf->len == 0) { in l2cap_vfs_read()
1156 osi_free(fixed_queue_dequeue(slot->rx.queue, FIXED_QUEUE_MAX_TIMEOUT)); in l2cap_vfs_read()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/spp/
Dbtc_spp.c70 slot_data_t rx; member
159 if (init_slot_data(&(*slot)->rx, QUEUE_SIZE_MAX)) { in spp_malloc_slot()
194 free_slot_data(&(*slot)->rx); in spp_malloc_slot()
288 free_slot_data(&slot->rx); in spp_free_slot()
1190 … if (slot->close_alarm == NULL && slot->rx.queue && fixed_queue_length(slot->rx.queue) > 0) { in btc_spp_cb_handler()
1285 fixed_queue_length(slot->rx.queue) > 0) { in btc_spp_cb_handler()
1286 p_buf = (BT_HDR *)fixed_queue_dequeue(slot->rx.queue, FIXED_QUEUE_MAX_TIMEOUT); in btc_spp_cb_handler()
1375 size_t rx_len = fixed_queue_length(slot->rx.queue); in bta_co_rfc_data_incoming()
1376 fixed_queue_enqueue(slot->rx.queue, p_buf, FIXED_QUEUE_MAX_TIMEOUT); in bta_co_rfc_data_incoming()
1383 fixed_queue_enqueue(slot->rx.queue, p_buf, FIXED_QUEUE_MAX_TIMEOUT); in bta_co_rfc_data_incoming()
[all …]

12