Lines Matching refs:ESP_OK

67         if (err != ESP_OK) return err; \
190 if (err != ESP_OK) { in spiflash_start_default()
195 return ESP_OK; in spiflash_start_default()
205 if (err == ESP_OK) { in spiflash_end_default()
223 return ESP_OK; in check_chip_pointer_default()
231 if (acquire_err != ESP_OK) { in flash_end_flush_cache()
232 return (err == ESP_OK)? acquire_err: err; in flash_end_flush_cache()
238 if (err == ESP_OK) { in flash_end_flush_cache()
263 esp_err_t err = ESP_OK; in esp_flash_init()
276 if (err != ESP_OK) { in esp_flash_init()
284 if (err != ESP_OK) { in esp_flash_init()
292 if (err != ESP_OK) { in esp_flash_init()
309 if (err != ESP_OK) { in esp_flash_init()
313 if (err == ESP_OK) { in esp_flash_init()
318 err = ESP_OK; in esp_flash_init()
334 esp_err_t err = ESP_OK; in esp_flash_init_main()
356 if (err != ESP_OK) { in esp_flash_init_main()
364 if (err != ESP_OK) { in esp_flash_init_main()
372 if (err != ESP_OK) { in esp_flash_init_main()
389 if (err != ESP_OK) { in esp_flash_init_main()
393 if (err == ESP_OK && !octal_mode) { in esp_flash_init_main()
398 err = ESP_OK; in esp_flash_init_main()
409 if (err != ESP_OK) { in read_id_core()
427 if (sanity_check && err == ESP_OK) { in read_id_core()
431 if (err == ESP_OK && (new_id != *out_id)) { in read_id_core()
451 if (err != ESP_OK && !(err == ESP_ERR_FLASH_NOT_INITIALISED && chip != NULL)) return err; in esp_flash_read_id()
461 if (err != ESP_OK) { in read_unique_id()
473 if (err != ESP_OK) { in esp_flash_read_unique_chip_id()
507 if (err != ESP_OK) { in detect_spi_flash_chip()
511 if (chip->chip_drv->probe(chip, flash_id) != ESP_OK) { in detect_spi_flash_chip()
518 if (err != ESP_OK) { in detect_spi_flash_chip()
526 return ESP_OK; in detect_spi_flash_chip()
532 if (err != ESP_OK) { in esp_flash_get_physical_size()
541 if (err != ESP_OK) { in esp_flash_get_physical_size()
546 if (err == ESP_OK) { in esp_flash_get_physical_size()
564 if (err != ESP_OK) { in esp_flash_get_size()
572 return ESP_OK; in esp_flash_get_size()
581 esp_err_t err = ESP_OK; in esp_flash_erase_chip()
584 if (err != ESP_OK) { in esp_flash_erase_chip()
615 return ESP_OK; in esp_flash_erase_region()
618 err = ESP_OK; in esp_flash_erase_region()
624 if (err != ESP_OK) { in esp_flash_erase_region()
629 if (err == ESP_OK && protected != 0) { in esp_flash_erase_region()
630 for (int i = 0; i < chip->chip_drv->num_protectable_regions && err == ESP_OK; i++) { in esp_flash_erase_region()
641 if (err != ESP_OK) { in esp_flash_erase_region()
653 if (err != ESP_OK) { in esp_flash_erase_region()
659 if (err != ESP_OK) { in esp_flash_erase_region()
683 if (err != ESP_OK || len_remain == 0) { in esp_flash_erase_region()
691 err = rom_spiflash_api_funcs->end(chip, ESP_OK); in esp_flash_erase_region()
692 if (err != ESP_OK) { in esp_flash_erase_region()
717 return ESP_OK; in esp_flash_erase_region()
734 if (err != ESP_OK) { in esp_flash_get_chip_write_protect()
750 if (err != ESP_OK) { in esp_flash_set_chip_write_protect()
773 return ESP_OK; in esp_flash_get_protectable_regions()
785 return ESP_OK; in find_region()
803 if (err != ESP_OK) { in esp_flash_get_protected_region()
809 if (err != ESP_OK) { in esp_flash_get_protected_region()
814 if (err == ESP_OK) { in esp_flash_get_protected_region()
828 if (err != ESP_OK) { in esp_flash_set_protected_region()
834 if (err != ESP_OK) { in esp_flash_set_protected_region()
839 if (err == ESP_OK) { in esp_flash_set_protected_region()
859 return ESP_OK; in esp_flash_read()
887 err = ESP_OK; in esp_flash_read()
890 if (err != ESP_OK) { in esp_flash_read()
899 if (err == ESP_OK) { in esp_flash_read()
902 if (err != ESP_OK) { in esp_flash_read()
917 } while (err == ESP_OK && length > 0); in esp_flash_read()
938 if (err != ESP_OK) { in s_check_setting_zero_to_one()
962 return ESP_OK; in s_check_setting_zero_to_one()
981 if (err != ESP_OK) { in s_verify_write()
1000 return ESP_OK; in s_verify_write()
1019 return ESP_OK; in esp_flash_write()
1031 err = ESP_OK; in esp_flash_write()
1057 if (err != ESP_OK) { in esp_flash_write()
1063 if (err != ESP_OK) { in esp_flash_write()
1070 if (err != ESP_OK) { in esp_flash_write()
1081 if (err != ESP_OK) { in esp_flash_write()
1089 if (err != ESP_OK) { in esp_flash_write()
1102 if (err != ESP_OK) { in esp_flash_write()
1119 if (ret != ESP_OK) { in esp_flash_write()
1136 if (err != ESP_OK) return err; in esp_flash_read_encrypted()
1141 return ESP_OK; in esp_flash_read_encrypted()
1154 if (err != ESP_OK) { in esp_flash_read_encrypted()
1173 if (err != ESP_OK) { in esp_flash_get_io_mode()
1178 if (err == ESP_OK) { in esp_flash_get_io_mode()
1191 if (err != ESP_OK) { in esp_flash_set_io_mode()
1207 esp_err_t err = rom_spiflash_api_funcs->end(chip, ESP_OK); in s_encryption_write_unlock()
1244 return ESP_OK; in esp_flash_write_encrypted()
1295 if (err != ESP_OK) { in esp_flash_write_encrypted()
1346 if (err != ESP_OK) { in esp_flash_write_encrypted()
1347 rom_spiflash_api_funcs->end(chip, ESP_OK); in esp_flash_write_encrypted()
1358 if (err != ESP_OK) { in esp_flash_write_encrypted()
1365 if (err!= ESP_OK) { in esp_flash_write_encrypted()
1371 if (err != ESP_OK) { in esp_flash_write_encrypted()
1383 if (err != ESP_OK) { in esp_flash_write_encrypted()
1392 if (err != ESP_OK) { in esp_flash_write_encrypted()
1411 if (ret != ESP_OK) { in esp_flash_write_encrypted()