Home
last modified time | relevance | path

Searched refs:block_count (Results 1 – 4 of 4) sorted by relevance

/hal_espressif-2.7.6/components/bootloader_support/src/esp32/
Dbootloader_sha.c49 size_t block_count = words_hashed % BLOCK_WORDS; in bootloader_sha256_data() local
50 size_t copy_words = (BLOCK_WORDS - block_count); in bootloader_sha256_data()
59 sha_text_reg[block_count + i] = __builtin_bswap32(w[i]); in bootloader_sha256_data()
65 block_count += copy_words; in bootloader_sha256_data()
70 if (block_count == BLOCK_WORDS) { in bootloader_sha256_data()
76 block_count = 0; in bootloader_sha256_data()
/hal_espressif-2.7.6/components/sdmmc/
Dsdmmc_cmd.c367 size_t start_block, size_t block_count) in sdmmc_write_sectors() argument
372 err = sdmmc_write_sectors_dma(card, src, start_block, block_count); in sdmmc_write_sectors()
382 for (size_t i = 0; i < block_count; ++i) { in sdmmc_write_sectors()
398 size_t start_block, size_t block_count) in sdmmc_write_sectors_dma() argument
400 if (start_block + block_count > card->csd.capacity) { in sdmmc_write_sectors_dma()
408 .datalen = block_count * block_size, in sdmmc_write_sectors_dma()
411 if (block_count == 1) { in sdmmc_write_sectors_dma()
442 size_t start_block, size_t block_count) in sdmmc_read_sectors() argument
447 err = sdmmc_read_sectors_dma(card, dst, start_block, block_count); in sdmmc_read_sectors()
457 for (size_t i = 0; i < block_count; ++i) { in sdmmc_read_sectors()
[all …]
Dsdmmc_common.h72 size_t start_block, size_t block_count);
74 size_t start_block, size_t block_count);
/hal_espressif-2.7.6/components/sdmmc/test/
Dtest_sd.c272 size_t start_block, size_t block_count, size_t alignment) in do_single_write_read_test() argument
275 size_t total_size = block_size * block_count; in do_single_write_read_test()
276 …printf(" %8d | %3d | %d | %4.1f ", start_block, block_count, alignment, total_size / 102… in do_single_write_read_test()
285 TEST_ESP_OK(sdmmc_write_sectors(card, c_buffer, start_block, block_count)); in do_single_write_read_test()
294 TEST_ESP_OK(sdmmc_read_sectors(card, c_buffer, start_block, block_count)); in do_single_write_read_test()
420 const size_t block_count = buffer_size / 512; variable
427 TEST_ESP_OK(sdmmc_write_sectors(card, buffer, 0, block_count));
429 TEST_ESP_OK(sdmmc_read_sectors(card, buffer + 1, 0, block_count));
434 TEST_ESP_OK(sdmmc_write_sectors(card, buffer + 1, 8, block_count));
436 TEST_ESP_OK(sdmmc_read_sectors(card, buffer, 8, block_count));