Lines Matching refs:start
159 esp_err_t (*start)(esp_flash_t *chip); member
168 .start = spiflash_start_default,
188 if (chip->os_func != NULL && chip->os_func->start != NULL) { in spiflash_start_default()
189 esp_err_t err = chip->os_func->start(chip->os_func_data); in spiflash_start_default()
230 esp_err_t acquire_err = rom_spiflash_api_funcs->start(chip); in flash_end_flush_cache()
308 err = rom_spiflash_api_funcs->start(chip); in esp_flash_init()
388 err = rom_spiflash_api_funcs->start(chip); in esp_flash_init_main()
408 esp_err_t err = rom_spiflash_api_funcs->start(chip); in read_id_core()
460 esp_err_t err = rom_spiflash_api_funcs->start(chip); in read_unique_id()
506 err = rom_spiflash_api_funcs->start(chip); in detect_spi_flash_chip()
540 err = rom_spiflash_api_funcs->start(chip); in esp_flash_get_physical_size()
592 esp_err_t IRAM_ATTR esp_flash_erase_region(esp_flash_t *chip, uint32_t start, uint32_t len) in esp_flash_erase_region() argument
597 CHECK_WRITE_ADDRESS(chip, start, len); in esp_flash_erase_region()
607 if (start > chip->size || start + len > chip->size) { in esp_flash_erase_region()
610 if ((start % chip->chip_drv->sector_size) != 0 || (len % chip->chip_drv->sector_size) != 0) { in esp_flash_erase_region()
623 err = rom_spiflash_api_funcs->start(chip); in esp_flash_erase_region()
633 && regions_overlap(start, len, region->offset, region->size)) { in esp_flash_erase_region()
645 uint32_t erase_addr = start; in esp_flash_erase_region()
658 err = rom_spiflash_api_funcs->start(chip); in esp_flash_erase_region()
700 return rom_spiflash_api_funcs->flash_end_flush_cache(chip, err, bus_acquired, start, len); in esp_flash_erase_region()
713 extern esp_err_t rom_esp_flash_erase_region(esp_flash_t *chip, uint32_t start, uint32_t len);
714 esp_err_t IRAM_ATTR esp_flash_erase_region(esp_flash_t *chip, uint32_t start, uint32_t len) in esp_flash_erase_region() argument
719 return rom_esp_flash_erase_region(chip, start, len); in esp_flash_erase_region()
733 err = rom_spiflash_api_funcs->start(chip); in esp_flash_get_chip_write_protect()
749 err = rom_spiflash_api_funcs->start(chip); in esp_flash_set_chip_write_protect()
808 err = rom_spiflash_api_funcs->start(chip); in esp_flash_get_protected_region()
833 err = rom_spiflash_api_funcs->start(chip); in esp_flash_set_protected_region()
889 err = rom_spiflash_api_funcs->start(chip); in esp_flash_read()
1062 err = rom_spiflash_api_funcs->start(chip); in esp_flash_write()
1172 err = rom_spiflash_api_funcs->start(chip); in esp_flash_get_io_mode()
1190 err = rom_spiflash_api_funcs->start(chip); in esp_flash_set_io_mode()
1203 return rom_spiflash_api_funcs->start(chip); in s_encryption_write_lock()