Lines Matching refs:len
16 static esp_rom_spiflash_result_t SPIRead4B(int spi_num, uint32_t flash_addr, uint8_t* buf, int len) in SPIRead4B() argument
21 while (len > 0) { in SPIRead4B()
23 if (len > 16 ) { //16 = read_sub_len in SPIRead4B()
26 rd_length = len; in SPIRead4B()
37 len -= rd_length; in SPIRead4B()
45 int handle_flash_erase(uint32_t addr, uint32_t len) { in handle_flash_erase() argument
47 if (len % FLASH_SECTOR_SIZE != 0) return 0x33; in handle_flash_erase()
50 while (len > 0 && (addr % FLASH_BLOCK_SIZE != 0)) { in handle_flash_erase()
60 len -= FLASH_SECTOR_SIZE; in handle_flash_erase()
64 while (len > FLASH_BLOCK_SIZE) { in handle_flash_erase()
74 len -= FLASH_BLOCK_SIZE; in handle_flash_erase()
78 while (len > 0) { in handle_flash_erase()
88 len -= FLASH_SECTOR_SIZE; in handle_flash_erase()
95 void handle_flash_read(uint32_t addr, uint32_t len, uint32_t block_size, in handle_flash_read() argument
110 while (num_acked < len && num_acked <= num_sent) { in handle_flash_read()
111 while (num_sent < len && num_sent - num_acked < max_in_flight) { in handle_flash_read()
112 uint32_t n = len - num_sent; in handle_flash_read()
143 int handle_flash_get_md5sum(uint32_t addr, uint32_t len) { in handle_flash_get_md5sum() argument
149 while (len > 0) { in handle_flash_get_md5sum()
150 uint32_t n = len; in handle_flash_get_md5sum()
168 len -= n; in handle_flash_get_md5sum()