Searched refs:write_index (Results 1 – 3 of 3) sorted by relevance
/hal_espressif-latest/components/bt/controller/esp32c2/ |
D | bt.c | 294 static uint32_t write_index = 0; variable 309 write_index = 0; in esp_bt_ctrl_log_partition_get_and_erase_first_block() 327 if (((write_index) % BLOCK_SIZE) >= THRESHOLD && !block_erased) { in esp_bt_controller_log_storage() 334 if (((write_index + len) / BLOCK_SIZE) > (write_index / BLOCK_SIZE)) { in esp_bt_controller_log_storage() 338 if (write_index + len <= MAX_STORAGE_SIZE) { in esp_bt_controller_log_storage() 339 esp_partition_write(log_partition, write_index, addr, len); in esp_bt_controller_log_storage() 340 write_index = (write_index + len) % MAX_STORAGE_SIZE; in esp_bt_controller_log_storage() 342 uint32_t first_part_len = MAX_STORAGE_SIZE - write_index; in esp_bt_controller_log_storage() 343 esp_partition_write(log_partition, write_index, addr, first_part_len); in esp_bt_controller_log_storage() 345 write_index = len - first_part_len; in esp_bt_controller_log_storage() [all …]
|
/hal_espressif-latest/components/bt/controller/esp32c6/ |
D | bt.c | 275 static uint32_t write_index = 0; variable 290 write_index = 0; in esp_bt_ctrl_log_partition_get_and_erase_first_block() 307 if (((write_index) % BLOCK_SIZE) >= THRESHOLD && !block_erased) { in esp_bt_controller_log_storage() 314 if (((write_index + len) / BLOCK_SIZE) > (write_index / BLOCK_SIZE)) { in esp_bt_controller_log_storage() 318 if (write_index + len <= MAX_STORAGE_SIZE) { in esp_bt_controller_log_storage() 319 esp_partition_write(log_partition, write_index, addr, len); in esp_bt_controller_log_storage() 320 write_index = (write_index + len) % MAX_STORAGE_SIZE; in esp_bt_controller_log_storage() 322 uint32_t first_part_len = MAX_STORAGE_SIZE - write_index; in esp_bt_controller_log_storage() 323 esp_partition_write(log_partition, write_index, addr, first_part_len); in esp_bt_controller_log_storage() 325 write_index = len - first_part_len; in esp_bt_controller_log_storage() [all …]
|
/hal_espressif-latest/components/bt/controller/esp32h2/ |
D | bt.c | 271 static uint32_t write_index = 0; variable 286 write_index = 0; in esp_bt_ctrl_log_partition_get_and_erase_first_block() 303 if (((write_index) % BLOCK_SIZE) >= THRESHOLD && !block_erased) { in esp_bt_controller_log_storage() 310 if (((write_index + len) / BLOCK_SIZE) > (write_index / BLOCK_SIZE)) { in esp_bt_controller_log_storage() 314 if (write_index + len <= MAX_STORAGE_SIZE) { in esp_bt_controller_log_storage() 315 esp_partition_write(log_partition, write_index, addr, len); in esp_bt_controller_log_storage() 316 write_index = (write_index + len) % MAX_STORAGE_SIZE; in esp_bt_controller_log_storage() 318 uint32_t first_part_len = MAX_STORAGE_SIZE - write_index; in esp_bt_controller_log_storage() 319 esp_partition_write(log_partition, write_index, addr, first_part_len); in esp_bt_controller_log_storage() 321 write_index = len - first_part_len; in esp_bt_controller_log_storage() [all …]
|