Home
last modified time | relevance | path

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

/hal_espressif-latest/components/bt/controller/esp32c2/
Dbt.c288 #define MAX_STORAGE_SIZE (CONFIG_BT_LE_CONTROLLER_LOG_PARTITION_SIZE) macro
303 assert(MAX_STORAGE_SIZE % BLOCK_SIZE == 0); in esp_bt_ctrl_log_partition_get_and_erase_first_block()
318 if (len > MAX_STORAGE_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()
338 if (write_index + len <= MAX_STORAGE_SIZE) { 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()
365 …err = esp_partition_mmap(log_partition, 0, MAX_STORAGE_SIZE, ESP_PARTITION_MMAP_DATA, &mapped_ptr,… in esp_bt_read_ctrl_log_from_flash()
396 read_index = (read_index + 1) % MAX_STORAGE_SIZE; in esp_bt_read_ctrl_log_from_flash()
/hal_espressif-latest/components/bt/controller/esp32c6/
Dbt.c269 #define MAX_STORAGE_SIZE (CONFIG_BT_LE_CONTROLLER_LOG_PARTITION_SIZE) macro
284 assert(MAX_STORAGE_SIZE % BLOCK_SIZE == 0); in esp_bt_ctrl_log_partition_get_and_erase_first_block()
299 if (len > MAX_STORAGE_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()
318 if (write_index + len <= MAX_STORAGE_SIZE) { 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()
345 …err = esp_partition_mmap(log_partition, 0, MAX_STORAGE_SIZE, ESP_PARTITION_MMAP_DATA, &mapped_ptr,… in esp_bt_read_ctrl_log_from_flash()
376 read_index = (read_index + 1) % MAX_STORAGE_SIZE; in esp_bt_read_ctrl_log_from_flash()
/hal_espressif-latest/components/bt/controller/esp32h2/
Dbt.c265 #define MAX_STORAGE_SIZE (CONFIG_BT_LE_CONTROLLER_LOG_PARTITION_SIZE) macro
280 assert(MAX_STORAGE_SIZE % BLOCK_SIZE == 0); in esp_bt_ctrl_log_partition_get_and_erase_first_block()
295 if (len > MAX_STORAGE_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()
314 if (write_index + len <= MAX_STORAGE_SIZE) { 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()
341 …err = esp_partition_mmap(log_partition, 0, MAX_STORAGE_SIZE, ESP_PARTITION_MMAP_DATA, &mapped_ptr,… in esp_bt_read_ctrl_log_from_flash()
372 read_index = (read_index + 1) % MAX_STORAGE_SIZE; in esp_bt_read_ctrl_log_from_flash()