Home
last modified time | relevance | path

Searched refs:BLOCK_SIZE (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-latest/components/bt/controller/esp32c2/
Dbt.c289 #define BLOCK_SIZE (4096) macro
295 static uint32_t next_erase_index = BLOCK_SIZE;
303 assert(MAX_STORAGE_SIZE % BLOCK_SIZE == 0); in esp_bt_ctrl_log_partition_get_and_erase_first_block()
308 ESP_ERROR_CHECK(esp_partition_erase_range(log_partition, 0, BLOCK_SIZE)); in esp_bt_ctrl_log_partition_get_and_erase_first_block()
310 next_erase_index = BLOCK_SIZE; 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()
329 esp_partition_erase_range(log_partition, next_erase_index, BLOCK_SIZE); in esp_bt_controller_log_storage()
330 next_erase_index = (next_erase_index + BLOCK_SIZE) % MAX_STORAGE_SIZE; in esp_bt_controller_log_storage()
334 if (((write_index + len) / BLOCK_SIZE) > (write_index / BLOCK_SIZE)) { in esp_bt_controller_log_storage()
/hal_espressif-latest/components/bt/controller/esp32c6/
Dbt.c270 #define BLOCK_SIZE (4096) macro
276 static uint32_t next_erase_index = BLOCK_SIZE;
284 assert(MAX_STORAGE_SIZE % BLOCK_SIZE == 0); in esp_bt_ctrl_log_partition_get_and_erase_first_block()
289 ESP_ERROR_CHECK(esp_partition_erase_range(log_partition, 0, BLOCK_SIZE)); in esp_bt_ctrl_log_partition_get_and_erase_first_block()
291 next_erase_index = BLOCK_SIZE; 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()
309 esp_partition_erase_range(log_partition, next_erase_index, BLOCK_SIZE); in esp_bt_controller_log_storage()
310 next_erase_index = (next_erase_index + BLOCK_SIZE) % MAX_STORAGE_SIZE; in esp_bt_controller_log_storage()
314 if (((write_index + len) / BLOCK_SIZE) > (write_index / BLOCK_SIZE)) { in esp_bt_controller_log_storage()
/hal_espressif-latest/components/bt/controller/esp32h2/
Dbt.c266 #define BLOCK_SIZE (4096) macro
272 static uint32_t next_erase_index = BLOCK_SIZE;
280 assert(MAX_STORAGE_SIZE % BLOCK_SIZE == 0); in esp_bt_ctrl_log_partition_get_and_erase_first_block()
285 ESP_ERROR_CHECK(esp_partition_erase_range(log_partition, 0, BLOCK_SIZE)); in esp_bt_ctrl_log_partition_get_and_erase_first_block()
287 next_erase_index = BLOCK_SIZE; 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()
305 esp_partition_erase_range(log_partition, next_erase_index, BLOCK_SIZE); in esp_bt_controller_log_storage()
306 next_erase_index = (next_erase_index + BLOCK_SIZE) % MAX_STORAGE_SIZE; in esp_bt_controller_log_storage()
310 if (((write_index + len) / BLOCK_SIZE) > (write_index / BLOCK_SIZE)) { in esp_bt_controller_log_storage()