Lines Matching refs:read_buf
640 uint32_t read_buf[ESP_ROM_SPIFLASH_BUFF_BYTE_READ_NUM / sizeof(uint32_t)]; in spi_flash_write_encrypted() local
642 for(int i = 0; i < size; i += sizeof(read_buf)) { in spi_flash_write_encrypted()
644 int32_t read_len = MIN(sizeof(read_buf), remaining); in spi_flash_write_encrypted()
647 esp_err_t err = spi_flash_read(dest_addr + i, read_buf, read_len); in spi_flash_write_encrypted()
655 uint32_t before = read_buf[r / sizeof(uint32_t)]; in spi_flash_write_encrypted()
674 err = spi_flash_read_encrypted(dest_addr + i, read_buf, read_len); in spi_flash_write_encrypted()
683 uint32_t actual = read_buf[r_w]; in spi_flash_write_encrypted()
779 uint32_t read_buf[8]; in spi_flash_read() local
783 read_size = MIN(read_size, sizeof(read_buf)); in spi_flash_read()
784 read_dst = (uint8_t *) read_buf; in spi_flash_read()
795 memcpy(read_dst_final, read_buf, read_size); in spi_flash_read()