Home
last modified time | relevance | path

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

123

/AliOS-Things-master/components/ble_host/bt_host/hci_driver/
A Dh4_driver.c81 struct rx_t rx; member
303 net_buf_add_mem(buf, hci_h4.rx.hdr, hci_h4.rx.hdr_len); in copy_hdr()
338 hci_h4.rx.remaining = sizeof(hci_h4.rx.evt); in h4_get_type()
339 hci_h4.rx.hdr_len = hci_h4.rx.remaining; in h4_get_type()
343 hci_h4.rx.remaining = sizeof(hci_h4.rx.acl); in h4_get_type()
344 hci_h4.rx.hdr_len = hci_h4.rx.remaining; in h4_get_type()
369 int32_t to_read = hci_h4.rx.hdr_len - hci_h4.rx.remaining; in get_evt_hdr()
407 hci_h4.rx.discard = hci_h4.rx.remaining; in read_payload()
419 hci_h4.rx.cur_len = hci_h4.rx.hdr_len + 1; in read_payload()
476 hci_h4.rx.remaining, hci_h4.rx.discard, hci_h4.rx.have_hdr, hci_h4.rx.buf); in process_rx()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/hci_driver/
A Dhci_driver.c76 } rx; variable
83 net_buf_add_mem(buf, rx.hdr, rx.hdr_len); in copy_hdr()
91 rx.hdr_len = 0; in reset_rx()
103 memcpy((uint8_t *)hdr + rx.hdr_len, data + rx.hdr_len, 1); in get_evt_hdr()
113 rx.remaining = hdr->len - (rx.hdr_len - sizeof(*hdr)); in get_evt_hdr()
136 BT_DBG("type 0x%02x, evt 0x%02x", rx.type, rx.evt.evt); in get_rx()
178 if (!rx.buf) { in h4_receive()
184 rx.discard = rx.remaining; in h4_receive()
196 net_buf_add_mem(rx.buf, pdata, rx.remaining); in h4_receive()
198 prio = (rx.type == H4_EVT && bt_hci_evt_is_prio(rx.evt.evt)); in h4_receive()
[all …]
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/
A Dtransport.c943 if (rx->local_match && is_replay(rx)) { in trans_unseg()
954 if (!rx->local_match && !rx->friend_match) { in trans_unseg()
958 return sdu_recv(rx, rx->seq, hdr, 0, buf); in trans_unseg()
1068 bt_mesh_friend_clear_incomplete(rx->sub, rx->src, rx->dst, &rx->seq_auth); in seg_rx_reset()
1101 send_ack(rx->sub, rx->dst, rx->src, rx->ttl, &rx->seq_auth, rx->block, rx->obo); in seg_ack()
1103 k_delayed_work_submit(&rx->ack, ack_timeout(rx)); in seg_ack()
1156 if (rx->hdr != *hdr || rx->seg_n != seg_n) { in seg_rx_is_valid()
1272 if (rx->block == BLOCK_COMPLETE(rx->seg_n)) { in trans_seg()
1389 rx->friend_match = bt_mesh_friend_match(rx->sub->net_idx, rx->ctx.recv_dst); in bt_mesh_trans_recv()
1403 …bt_test_mesh_net_recv(rx->ctx.recv_ttl, rx->ctl, rx->ctx.addr, rx->ctx.recv_dst, buf->data, buf->l… in bt_mesh_trans_recv()
[all …]
A Dnet.c1014 if (rx->net_if == BT_MESH_NET_IF_ADV && msg_cache_match(rx, buf)) { in net_decrypt()
1169rx->ctx.recv_ttl, rx->ctl, rx->ctx.recv_dst, rx->ctx.addr, net_buf_trace.addr[5], in bt_mesh_net_relay()
1174 BT_DBG("TTL %u CTL %u dst 0x%04x packet ", rx->ctx.recv_ttl, rx->ctl, rx->ctx.recv_dst); in bt_mesh_net_relay()
1177 BT_DBG("TTL %u CTL %u dst 0x%04x packet ", rx->ctx.recv_ttl, rx->ctl, rx->ctx.recv_dst); in bt_mesh_net_relay()
1210 enc = rx->sub->keys[rx->sub->kr_flag].enc; in bt_mesh_net_relay()
1211 priv = rx->sub->keys[rx->sub->kr_flag].privacy; in bt_mesh_net_relay()
1212 nid = rx->sub->keys[rx->sub->kr_flag].nid; in bt_mesh_net_relay()
1269 rx->net_if = net_if; in bt_mesh_net_decode()
1309 BT_DBG("src 0x%04x dst 0x%04x ttl %u", rx->ctx.addr, rx->ctx.recv_dst, rx->ctx.recv_ttl); in bt_mesh_net_decode()
1364rx.local_match = (bt_mesh_fixed_group_match(rx.ctx.recv_dst) || bt_mesh_elem_find(rx.ctx.recv_dst)… in bt_mesh_net_recv()
[all …]
A Dprov.c174 } rx; member
1433 if (!bt_mesh_fcs_check(plink.rx.buf, plink.rx.fcs)) { in prov_msg_recv()
1438 plink.rx.prev_id = plink.rx.id; in prov_msg_recv()
1468 if (!plink.rx.seg && plink.rx.prev_id == rx->xact_id) { in gen_prov_cont()
1474 if (rx->xact_id != plink.rx.id) { in gen_prov_cont()
1526 if (plink.rx.prev_id == rx->xact_id) { in gen_prov_start()
1533 plink.rx.id = rx->xact_id; in gen_prov_start()
1545 if (plink.rx.buf->len > plink.rx.buf->size) { in gen_prov_start()
1557 plink.rx.seg = (1 << (START_LAST_SEG(rx->gpc) + 1)) - 1; in gen_prov_start()
1558 plink.rx.last_seg = START_LAST_SEG(rx->gpc); in gen_prov_start()
[all …]
A Dfriend.c256 .sub = rx->sub, in bt_mesh_friend_clear()
257 .ctx = &rx->ctx, in bt_mesh_friend_clear()
489 frnd = bt_mesh_friend_find(rx->sub->net_idx, rx->ctx.addr, true, true); in bt_mesh_friend_sub_add()
523 frnd = bt_mesh_friend_find(rx->sub->net_idx, rx->ctx.addr, true, true); in bt_mesh_friend_sub_rem()
584 frnd = bt_mesh_friend_find(rx->sub->net_idx, rx->ctx.addr, true, false); in bt_mesh_friend_poll()
853 frnd = bt_mesh_friend_find(rx->sub->net_idx, rx->ctx.addr, true, false); in bt_mesh_friend_req()
1116 info.ctl = rx->ctl; in friend_lpn_enqueue_rx()
1120 info.seq[2] = rx->seq; in friend_lpn_enqueue_rx()
1235 if (!rx->friend_match || (rx->ctx.recv_ttl <= 1 && rx->net_if != BT_MESH_NET_IF_LOCAL) || in bt_mesh_friend_enqueue_rx()
1240 …_DBG("recv_ttl %u net_idx 0x%04x src 0x%04x dst 0x%04x", rx->ctx.recv_ttl, rx->sub->net_idx, rx->c… in bt_mesh_friend_enqueue_rx()
[all …]
A Dprovisioner_prov.c205 } rx; member
2886 link[i].rx.prev_id = link[i].rx.id; in prov_msg_recv()
2904 if (!link[i].rx.seg && link[i].rx.prev_id == rx->xact_id) { in gen_prov_cont()
2910 if (rx->xact_id != link[i].rx.id) { in gen_prov_cont()
2912 rx->xact_id, link[i].rx.id); in gen_prov_cont()
3001 if (link[i].rx.prev_id == rx->xact_id) { in gen_prov_start()
3008 link[i].rx.id = rx->xact_id; in gen_prov_start()
3012 START_LAST_SEG(rx->gpc), link[i].rx.buf->len, link[i].rx.fcs); in gen_prov_start()
3021 if (link[i].rx.buf->len > link[i].rx.buf->size) { in gen_prov_start()
3034 link[i].rx.last_seg = START_LAST_SEG(rx->gpc); in gen_prov_start()
[all …]
A Daccess.c578 BT_DBG("app_idx 0x%04x src 0x%04x dst 0x%04x", rx->ctx.app_idx, rx->ctx.addr, rx->ctx.recv_dst); in bt_mesh_model_recv()
589 MESH_RX_D("RSSI: %d\n", rx->rssi); in bt_mesh_model_recv()
590 MESH_RX_D("TTL: %d\n", rx->ctx.recv_ttl); in bt_mesh_model_recv()
591 MESH_RX_D("SRC: 0x%02X\n", rx->ctx.addr); in bt_mesh_model_recv()
592 MESH_RX_D("DST: 0x%02X\n", rx->ctx.recv_dst); in bt_mesh_model_recv()
601 if (BT_MESH_ADDR_IS_UNICAST(rx->ctx.recv_dst)) { in bt_mesh_model_recv()
602 if (elem->addr != rx->ctx.recv_dst) { in bt_mesh_model_recv()
605 … } else if (BT_MESH_ADDR_IS_GROUP(rx->ctx.recv_dst) || BT_MESH_ADDR_IS_VIRTUAL(rx->ctx.recv_dst)) { in bt_mesh_model_recv()
623 op = find_op(models, count, rx->ctx.recv_dst, rx->ctx.app_idx, opcode, &model); in bt_mesh_model_recv()
638 op->func2(model, &rx->ctx, buf, opcode); in bt_mesh_model_recv()
[all …]
A Dlpn.c465 void bt_mesh_lpn_msg_received(struct bt_mesh_net_rx *rx) in bt_mesh_lpn_msg_received() argument
487 int bt_mesh_lpn_friend_offer(struct bt_mesh_net_rx *rx, in bt_mesh_lpn_friend_offer() argument
492 struct bt_mesh_subnet *sub = rx->sub; in bt_mesh_lpn_friend_offer()
518 lpn->frnd = rx->ctx.addr; in bt_mesh_lpn_friend_offer()
547 int bt_mesh_lpn_friend_clear_cfm(struct bt_mesh_net_rx *rx, in bt_mesh_lpn_friend_clear_cfm() argument
858 int bt_mesh_lpn_friend_sub_cfm(struct bt_mesh_net_rx *rx, in bt_mesh_lpn_friend_sub_cfm() argument
923 int bt_mesh_lpn_friend_update(struct bt_mesh_net_rx *rx, in bt_mesh_lpn_friend_update() argument
928 struct bt_mesh_subnet *sub = rx->sub; in bt_mesh_lpn_friend_update()
941 if (sub->kr_phase == BT_MESH_KR_PHASE_2 && !rx->new_key) { in bt_mesh_lpn_friend_update()
958 if (!rx->friend_cred) { in bt_mesh_lpn_friend_update()
[all …]
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/
A Dfriend.h20 void bt_mesh_friend_enqueue_rx(struct bt_mesh_net_rx *rx,
34 int bt_mesh_friend_poll(struct bt_mesh_net_rx *rx, struct net_buf_simple *buf);
35 int bt_mesh_friend_req(struct bt_mesh_net_rx *rx, struct net_buf_simple *buf);
36 int bt_mesh_friend_clear(struct bt_mesh_net_rx *rx, struct net_buf_simple *buf);
37 int bt_mesh_friend_clear_cfm(struct bt_mesh_net_rx *rx,
39 int bt_mesh_friend_sub_add(struct bt_mesh_net_rx *rx,
41 int bt_mesh_friend_sub_rem(struct bt_mesh_net_rx *rx,
A Dlpn.h9 int bt_mesh_lpn_friend_update(struct bt_mesh_net_rx *rx,
11 int bt_mesh_lpn_friend_offer(struct bt_mesh_net_rx *rx,
13 int bt_mesh_lpn_friend_clear_cfm(struct bt_mesh_net_rx *rx,
15 int bt_mesh_lpn_friend_sub_cfm(struct bt_mesh_net_rx *rx,
55 void bt_mesh_lpn_msg_received(struct bt_mesh_net_rx *rx);
/AliOS-Things-master/hardware/chip/rtl872xd/script/
A Drlx8721d_layout.ld3 IROM (rx) : ORIGIN = 0x10100000, LENGTH = 0x1010A000 - 0x10100000 /* ROM: 40k */
4 IROM_NS (rx) : ORIGIN = 0x1010A000, LENGTH = 0x10140000 - 0x1010A000 /* ROM: 216k */
5 DROM_NS (rx) : ORIGIN = 0x101C0000, LENGTH = 0x101D4000 - 0x101C0000 /* ROM: 80k */
6 DROM (rx) : ORIGIN = 0x101D4000, LENGTH = 0x101D8000 - 0x101D4000 /* ROM: 16k */
23 …KM0_BOOT (rx) : ORIGIN = 0x08000000+0x20, LENGTH = 0x02000-0x20 /* XIPBOOT: 8k, 32 Bytes resvd f…
26 …KM4_BOOT (rx) : ORIGIN = 0x08004000+0x20, LENGTH = 0x02000-0x20 /* XIPBOOT: 8k, 32 Bytes resvd f…
27 …KM0_IMG2 (rx) : ORIGIN = 0x0C000000+0x20, LENGTH = 0x02000000-0x20 /* KM0_IMG2: 32MB, 32 Bytes …
28 …KM4_IMG2 (rx) : ORIGIN = 0x0E000000+0x20, LENGTH = 0x02000000-0x20 /* KM4_IMG2 OTA1: 32MB, 32 B…
29 BTRACE (rx) : ORIGIN = 0x00800000, LENGTH = 0x00C00000 -0x00800000 /* Bluetooth Trace */
A Drlx8711B-symbol-v02-img2.ld9 ROM (rx) : ORIGIN = 0x00000000, LENGTH = 0x80000 /* ROM: 512k */
16 …XIPBOOT (rx) : ORIGIN = 0x08000000+0x20, LENGTH = 0x04000-0x20 /* XIPBOOT: 32k, 32 Bytes resvd …
19 …XIP1 (rx) : ORIGIN = 0x0800B000+0x20, LENGTH = 0x75000-0x20 /* XIP1: 468k, 32 Bytes resvd for …
20 …XIP2 (rx) : ORIGIN = 0x08080000+0x20, LENGTH = 0x75000-0x20 /* XIP1: 468k, 32 Bytes resvd for …
A Drlx8711B-symbol-v02-img2_xip2.ld17 ROM (rx) : ORIGIN = 0x00000000, LENGTH = 0x80000 /* ROM: 512k */
25 …XIPBOOT (rx) : ORIGIN = 0x08000000+0x20, LENGTH = 0x04000-0x20 /* XIPBOOT: 32k, 32 Bytes resvd …
28 …XIP1 (rx) : ORIGIN = 0x0800B000+0x20, LENGTH = 0xF2000-0x20 /* XIP1: 968k, 32 Bytes resvd for …
29 …XIP2 (rx) : ORIGIN = 0x08100000+0x20, LENGTH = 0xF2000-0x20 /* XIP2: 968k, 32 Bytes resvd for …
A Drlx8711B-symbol-v02-img2-2nd_boot.ld12 ROM (rx) : ORIGIN = 0x00000000, LENGTH = 0x80000 /* ROM: 512k */
20 …XIPBOOT (rx) : ORIGIN = 0x08000000+0x20, LENGTH = 0x04000-0x20 /* XIPBOOT: 32k, 32 Bytes resvd …
23 …XIP1 (rx) : ORIGIN = 0x0800B000+0x20, LENGTH = 0x6000-0x20 /* XIP1: 968k, 32 Bytes resvd for h…
A Drlx8711B-symbol-v02-img2_xip1.ld17 ROM (rx) : ORIGIN = 0x00000000, LENGTH = 0x80000 /* ROM: 512k */
25 …XIPBOOT (rx) : ORIGIN = 0x08000000+0x20, LENGTH = 0x04000-0x20 /* XIPBOOT: 32k, 32 Bytes resvd …
28 …XIP1 (rx) : ORIGIN = 0x08019000+0x20, LENGTH = 0xE2000-0x20 /* XIP1: 904k, 32 Bytes resvd for …
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/source/
A Decc_dsa.c201 uECC_word_t rx[NUM_ECC_WORDS]; in uECC_verify() local
216 rx[num_n_words - 1] = 0; in uECC_verify()
264 uECC_vli_set(rx, point, num_words); in uECC_verify()
271 curve->double_jacobian(rx, ry, z, curve); in uECC_verify()
279 uECC_vli_modSub(tz, rx, tx, curve->p, num_words); /* Z = x2 - x1 */ in uECC_verify()
280 XYcZ_add(tx, ty, rx, ry, curve); in uECC_verify()
286 apply_z(rx, ry, z, curve); in uECC_verify()
289 if (uECC_vli_cmp_unsafe(curve->n, rx, num_n_words) != 1) { in uECC_verify()
290 uECC_vli_sub(rx, rx, curve->n, num_n_words); in uECC_verify()
294 return (int)(uECC_vli_equal(rx, r, num_words) == 0); in uECC_verify()
/AliOS-Things-master/components/ble_host/bt_host/host/
A Dl2cap.c128 if (ch->rx.cid > 0) { in l2cap_chan_alloc_cid()
134 ch->rx.cid = cid; in l2cap_chan_alloc_cid()
382 ch->rx.cid = fchan->cid; in bt_l2cap_connected()
783 if (!chan->rx.mtu) { in l2cap_chan_rx_init()
788 if (!chan->rx.init_credits) { in l2cap_chan_rx_init()
791 chan->rx.init_credits = (chan->rx.mtu + in l2cap_chan_rx_init()
802 chan->rx.mps = MIN(chan->rx.mtu + 2, L2CAP_MAX_LE_MPS); in l2cap_chan_rx_init()
806 chan->rx.init_credits * chan->rx.mps < chan->rx.mtu + 2) { in l2cap_chan_rx_init()
2017 (chan->rx.mps - 1)) / chan->rx.mps; in l2cap_chan_update_credits()
2167 if (sdu_len > chan->rx.mtu) { in l2cap_chan_le_recv()
[all …]
A Dl2cap_br.c105 if (BR_CHAN(chan)->rx.cid == cid) { in bt_l2cap_br_lookup_rx_cid()
137 if (ch->rx.cid > 0) { in l2cap_br_chan_alloc_cid()
147 ch->rx.cid = cid; in l2cap_br_chan_alloc_cid()
177 if (chan->rx.cid == BT_L2CAP_CID_BR_SIG) { in l2cap_br_rtx_timeout()
185 chan->rx.cid); in l2cap_br_rtx_timeout()
464 ch->rx.cid = fchan->cid; in bt_l2cap_br_connected()
738 BR_CHAN(chan)->rx.mtu = MIN(BR_CHAN(chan)->rx.mtu, L2CAP_BR_MAX_MTU); in l2cap_br_conn_req()
815 BR_CHAN(chan)->rx.cid, BR_CHAN(chan)->rx.mtu, in l2cap_br_conf_rsp()
1028 BR_CHAN(chan)->rx.cid, BR_CHAN(chan)->rx.mtu, in l2cap_br_conf_req()
1100 rsp->dcid = sys_cpu_to_le16(chan->rx.cid); in l2cap_br_disconn_req()
[all …]
/AliOS-Things-master/components/SDL2/src/image/
A Dnanosvg.h2102 float rx, ry, rotx; in nsvg__pathArcTo() local
2149 rx *= d; in nsvg__pathArcTo()
2169 ux = (x1p - cxp) / rx; in nsvg__pathArcTo()
2171 vx = (-x1p - cxp) / rx; in nsvg__pathArcTo()
2368 if (rx < 0.0f && ry > 0.0f) rx = ry; in nsvg__parseRect()
2369 if (ry < 0.0f && rx > 0.0f) ry = rx; in nsvg__parseRect()
2370 if (rx < 0.0f) rx = 0.0f; in nsvg__parseRect()
2372 if (rx > w/2.0f) rx = w/2.0f; in nsvg__parseRect()
2436 float rx = 0.0f; in nsvg__parseEllipse() local
2455 nsvg__cubicBezTo(p, cx-rx*NSVG_KAPPA90, cy+ry, cx-rx, cy+ry*NSVG_KAPPA90, cx-rx, cy); in nsvg__parseEllipse()
[all …]
A Dnanosvgrast.h407 right->x = rx; right->y = ry; in nsvg__initClosed()
418 nsvg__addEdge(r, lx, ly, rx, ry); in nsvg__buttCap()
425 right->x = rx; right->y = ry; in nsvg__buttCap()
443 right->x = rx; right->y = ry; in nsvg__squareCap()
473 rx = x; ry = y; in nsvg__roundCap()
483 right->x = rx; right->y = ry; in nsvg__roundCap()
551 float lx, ly, rx, ry; in nsvg__roundJoin() local
562 rx = right->x; in nsvg__roundJoin()
576 rx = rx1; ry = ry1; in nsvg__roundJoin()
580 right->x = rx; right->y = ry; in nsvg__roundJoin()
[all …]
/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Dbn_mul.h885 mbedtls_mpi_uint r0, r1, rx, ry; \
892 rx = s0 * b1; r0 = s0 * b0; \
894 r1 += ( rx >> biH ); \
896 rx <<= biH; ry <<= biH; \
897 r0 += rx; r1 += (r0 < rx); \
/AliOS-Things-master/hardware/chip/rtl872xd/
A Drlx8721d.ld5 IROM (rx) : ORIGIN = 0x10100000, LENGTH = 0x1010A000 - 0x10100000 /* ROM: 40k */
6 IROM_NS (rx) : ORIGIN = 0x1010A000, LENGTH = 0x10140000 - 0x1010A000 /* ROM: 216k */
7 DROM_NS (rx) : ORIGIN = 0x101C0000, LENGTH = 0x101D4000 - 0x101C0000 /* ROM: 80k */
8 DROM (rx) : ORIGIN = 0x101D4000, LENGTH = 0x101D8000 - 0x101D4000 /* ROM: 16k */
23 …KM0_BOOT (rx) : ORIGIN = 0x08000000+0x20, LENGTH = 0x02000-0x20 /* XIPBOOT: 8k, 32 Bytes resvd f…
26 …KM4_BOOT (rx) : ORIGIN = 0x08004000+0x20, LENGTH = 0x02000-0x20 /* XIPBOOT: 8k, 32 Bytes resvd f…
27 …KM0_IMG2 (rx) : ORIGIN = 0x0C000000+0x20, LENGTH = 0x02000000-0x20 /* KM0_IMG2: 32MB, 32 Bytes …
28 …KM4_IMG2 (rx) : ORIGIN = 0x0E000000+0x20, LENGTH = 0x02000000-0x20 /* KM4_IMG2 OTA1: 32MB, 32 B…
29 BTRACE (rx) : ORIGIN = 0x00800000, LENGTH = 0x00C00000 -0x00800000 /* Bluetooth Trace */
/AliOS-Things-master/components/linkkit/dev_model/deprecated/
A Dimpl_ntp.c46 uint32_t rx = 0; in linkkit_ntp_time_reply() local
102 rx = HAL_UptimeMs(); in linkkit_ntp_time_reply()
103 diff = (rx - tx) >> 1; in linkkit_ntp_time_reply()
/AliOS-Things-master/components/ble_host/bt_host/include/bluetooth/
A Dl2cap.h133 struct bt_l2cap_le_endpoint rx; member
174 struct bt_l2cap_br_endpoint rx; member

Completed in 75 milliseconds

123