Lines Matching refs:start
80 esp_err_t (*start)(esp_flash_t *chip); member
89 .start = spiflash_start_default,
109 if (chip->os_func != NULL && chip->os_func->start != NULL) { in spiflash_start_default()
110 esp_err_t err = chip->os_func->start(chip->os_func_data); in spiflash_start_default()
151 esp_err_t acquire_err = rom_spiflash_api_funcs->start(chip); in flash_end_flush_cache()
219 err = rom_spiflash_api_funcs->start(chip); in esp_flash_init()
239 esp_err_t err = rom_spiflash_api_funcs->start(chip); in read_id_core()
302 err = rom_spiflash_api_funcs->start(chip); in detect_spi_flash_chip()
353 err = rom_spiflash_api_funcs->start(chip); in esp_flash_get_size()
379 err = rom_spiflash_api_funcs->start(chip); in esp_flash_erase_chip()
394 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
399 CHECK_WRITE_ADDRESS(chip, start, len); in esp_flash_erase_region()
407 if (start > chip->size || start + len > chip->size) { in esp_flash_erase_region()
410 if ((start % chip->chip_drv->sector_size) != 0 || (len % chip->chip_drv->sector_size) != 0) { in esp_flash_erase_region()
420 err = rom_spiflash_api_funcs->start(chip); in esp_flash_erase_region()
430 && regions_overlap(start, len, region->offset, region->size)) { in esp_flash_erase_region()
442 uint32_t erase_addr = start; in esp_flash_erase_region()
455 err = rom_spiflash_api_funcs->start(chip); in esp_flash_erase_region()
491 return rom_spiflash_api_funcs->flash_end_flush_cache(chip, err, bus_acquired, start, len); in esp_flash_erase_region()
502 err = rom_spiflash_api_funcs->start(chip); in esp_flash_get_chip_write_protect()
518 err = rom_spiflash_api_funcs->start(chip); in esp_flash_set_chip_write_protect()
577 err = rom_spiflash_api_funcs->start(chip); in esp_flash_get_protected_region()
602 err = rom_spiflash_api_funcs->start(chip); in esp_flash_set_protected_region()
652 err = rom_spiflash_api_funcs->start(chip); in esp_flash_read()
732 err = rom_spiflash_api_funcs->start(chip); in esp_flash_write()
809 err = rom_spiflash_api_funcs->start(chip); in esp_flash_get_io_mode()
827 err = rom_spiflash_api_funcs->start(chip); in esp_flash_set_io_mode()