Home
last modified time | relevance | path

Searched refs:seg (Results 1 – 15 of 15) sorted by relevance

/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/
Dfriend.c188 for (i = 0; i < ARRAY_SIZE(frnd->seg); i++) { in friend_clear()
189 struct bt_mesh_friend_seg *seg = &frnd->seg[i]; in friend_clear() local
191 purge_buffers(&seg->queue); in friend_clear()
192 seg->seg_count = 0U; in friend_clear()
1078 static bool is_seg(struct bt_mesh_friend_seg *seg, uint16_t src, uint16_t seq_zero) in is_seg() argument
1080 struct net_buf *buf = (void *)sys_slist_peek_head(&seg->queue); in is_seg()
1106 for (i = 0; i < ARRAY_SIZE(frnd->seg); i++) { in get_seg()
1107 struct bt_mesh_friend_seg *seg = &frnd->seg[i]; in get_seg() local
1109 if (is_seg(seg, src, seq_zero)) { in get_seg()
1110 return seg; in get_seg()
[all …]
Dtransport.c74 struct net_buf *seg[CONFIG_BLE_MESH_TX_SEG_MAX]; member
258 bt_mesh_adv_buf_ref_debug(__func__, tx->seg[seg_idx], 3U, BLE_MESH_BUF_REF_SMALL); in seg_tx_done()
260 BLE_MESH_ADV(tx->seg[seg_idx])->busy = 0U; in seg_tx_done()
261 net_buf_unref(tx->seg[seg_idx]); in seg_tx_done()
262 tx->seg[seg_idx] = NULL; in seg_tx_done()
281 if (!tx->seg[i]) { in seg_tx_reset()
385 struct net_buf *seg = tx->seg[i]; in seg_tx_send_unacked() local
387 if (!seg) { in seg_tx_send_unacked()
391 if (BLE_MESH_ADV(seg)->busy) { in seg_tx_send_unacked()
400 err = bt_mesh_net_resend(tx->sub, seg, tx->new_key, in seg_tx_send_unacked()
[all …]
Dprov.c92 #define XACT_SEG_RECV(_seg) (link.rx.seg &= ~(1 << (_seg)))
139 uint8_t seg; /* Bit-field of unreceived segments */ member
1486 uint8_t seg = CONT_SEG_INDEX(rx->gpc); in gen_prov_cont() local
1488 BT_DBG("len %u, seg_index %u", buf->len, seg); in gen_prov_cont()
1490 if (!link.rx.seg && link.rx.prev_id == rx->xact_id) { in gen_prov_cont()
1502 if (seg > link.rx.last_seg) { in gen_prov_cont()
1503 BT_ERR("Invalid segment index %u", seg); in gen_prov_cont()
1506 } else if (seg == link.rx.last_seg) { in gen_prov_cont()
1519 if (!(link.rx.seg & BIT(seg))) { in gen_prov_cont()
1524 memcpy(XACT_SEG_DATA(seg), buf->data, buf->len); in gen_prov_cont()
[all …]
Dtransport.h29 #define TRANS_CTL_HDR(op, seg) ((op & TRANS_CTL_OP_MASK) | (seg << 7)) argument
Dprovisioner_prov.c101 #define XACT_SEG_RECV(_idx, _seg) (link[_idx].rx.seg &= ~(1 << (_seg)))
167 uint8_t seg; /* Bit-field of unreceived segments */ member
2882 uint8_t seg = CONT_SEG_INDEX(rx->gpc); local
2884 BT_DBG("len %u, seg_index %u", buf->len, seg);
2886 if (!link[idx].rx.seg && link[idx].rx.prev_id == rx->xact_id) {
2898 if (seg > link[idx].rx.last_seg) {
2899 BT_ERR("Invalid segment index %u", seg);
2901 } else if (seg == link[idx].rx.last_seg) {
2913 if (!(link[idx].rx.seg & BIT(seg))) {
2918 memcpy(XACT_SEG_DATA(idx, seg), buf->data, buf->len);
[all …]
Dnet.h120 } seg[FRIEND_SEG_RX]; member
/hal_espressif-3.7.0/components/hal/
Dtwai_hal_iram.c115 twai_ll_err_seg_t seg; local
116 twai_ll_parse_err_code_cap(hal_ctx->dev, &type, &dir, &seg); //Decode error interrupt
119 ((seg == TWAI_LL_ERR_SEG_DATA || seg == TWAI_LL_ERR_SEG_CRC_SEQ) ||
120 (seg == TWAI_LL_ERR_SEG_ACK_DELIM && type == TWAI_LL_ERR_OTHER))) {
/hal_espressif-3.7.0/tools/esptool_py/esptool/
Dcmds.py175 for seg in image.segments:
176 size = len(seg.data)
177 print("Downloading %d bytes at %08x..." % (size, seg.addr), end=" ")
180 size, div_roundup(size, esp.ESP_RAM_BLOCK), esp.ESP_RAM_BLOCK, seg.addr
184 while len(seg.data) > 0:
185 esp.mem_block(seg.data[0 : esp.ESP_RAM_BLOCK], seq)
186 seg.data = seg.data[esp.ESP_RAM_BLOCK :]
848 for idx, seg in enumerate(image.segments):
849 segs = seg.get_memory_type(image)
852 app_desc = seg.data[:256]
[all …]
Dbin_image.py328 for seg in self.segments:
329 if seg.include_in_checksum:
330 checksum = ESPLoader.checksum(seg.data, checksum)
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_common/include/
Dmesh_compiler.h18 #define __in_section_unique(seg) ___in_section(seg, __FILE__, __COUNTER__) argument
/hal_espressif-3.7.0/components/soc/esp32/include/soc/
Dtwai_struct.h119 uint32_t seg: 5; /* ECC[4:0] Error Code Segment 0 to 5 */ member
/hal_espressif-3.7.0/components/soc/esp32c3/include/soc/
Dtwai_struct.h121 uint32_t seg: 5; /* ECC[4:0] Error Code Segment 0 to 5 */ member
/hal_espressif-3.7.0/components/soc/esp32s3/include/soc/
Dtwai_struct.h122 uint32_t seg: 5; /* ECC[4:0] Error Code Segment 0 to 5 */ member
/hal_espressif-3.7.0/components/soc/esp32s2/include/soc/
Dtwai_struct.h120 uint32_t seg: 5; /* ECC[4:0] Error Code Segment 0 to 5 */ member
/hal_espressif-3.7.0/components/hal/esp32/include/hal/
Dtwai_ll.h538 twai_ll_err_seg_t *seg) in twai_ll_parse_err_code_cap() argument
543 *seg = (twai_ll_err_seg_t) (ecc & 0x1F); in twai_ll_parse_err_code_cap()