Home
last modified time | relevance | path

Searched refs:read_chunk_size (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-latest/components/spi_flash/
Dspi_flash_os_func_app.c155 size_t read_chunk_size = reqest_size; in get_buffer_malloc() local
156 void* ret = k_malloc(read_chunk_size); in get_buffer_malloc()
157 while(ret == NULL && retries-- && read_chunk_size > 0) { in get_buffer_malloc()
158 read_chunk_size = (read_chunk_size / 2 + 3) & ~3; in get_buffer_malloc()
159 ret = k_malloc(read_chunk_size); in get_buffer_malloc()
161 ESP_LOGV(TAG, "allocate temp buffer: %p (%d)", ret, read_chunk_size); in get_buffer_malloc()
162 *out_size = (ret != NULL? read_chunk_size: 0); in get_buffer_malloc()
Desp_flash_api.c872 size_t read_chunk_size = MIN(MAX_READ_CHUNK, length); in esp_flash_read() local
877 … temp_buffer = chip->os_func->get_temp_buffer(chip->os_func_data, read_chunk_size, &actual_len); in esp_flash_read()
878 read_chunk_size = actual_len; in esp_flash_read()
897 size_t length_to_read = MIN(read_chunk_size, length); in esp_flash_read()