Lines Matching refs:chip
143 static IRAM_ATTR NOINLINE_ATTR void cs_initialize(esp_flash_t *chip, const esp_flash_spi_device_con… in cs_initialize() argument
159 chip->os_func->start(chip->os_func_data); in cs_initialize()
172 chip->os_func->end(chip->os_func_data); in cs_initialize()
229 esp_flash_t *chip = NULL; in spi_bus_add_flash_device() local
236 chip = (esp_flash_t*)heap_caps_malloc(sizeof(esp_flash_t), caps); in spi_bus_add_flash_device()
237 if (!chip) { in spi_bus_add_flash_device()
243 *chip = (esp_flash_t) { in spi_bus_add_flash_device()
260 err = esp_flash_init_os_functions(chip, config->host_id, dev_handle); in spi_bus_add_flash_device()
286 cs_initialize(chip, config, use_iomux, dev_id); in spi_bus_add_flash_device()
287 *out_chip = chip; in spi_bus_add_flash_device()
291 spi_bus_remove_flash_device(chip); in spi_bus_add_flash_device()
295 esp_err_t spi_bus_remove_flash_device(esp_flash_t *chip) in spi_bus_remove_flash_device() argument
297 if (chip == NULL) { in spi_bus_remove_flash_device()
302 esp_flash_deinit_os_functions(chip, &dev_handle); in spi_bus_remove_flash_device()
306 free(chip->host); in spi_bus_remove_flash_device()
307 free(chip); in spi_bus_remove_flash_device()
345 extern esp_err_t esp_flash_suspend_cmd_init(esp_flash_t* chip);