Lines Matching refs:host_config

44 static void call_host_deinit(const sdmmc_host_t *host_config);
195 const sdmmc_host_t* host_config, in esp_vfs_fat_sdmmc_mount() argument
213 if (host_config->flags == SDMMC_HOST_FLAG_SPI) { in esp_vfs_fat_sdmmc_mount()
216 err = (*host_config->init)(); in esp_vfs_fat_sdmmc_mount()
218 err = init_sdspi_host_deprecated(host_config->slot, slot_config, &card_handle); in esp_vfs_fat_sdmmc_mount()
226 err = (*host_config->init)(); in esp_vfs_fat_sdmmc_mount()
232 err = init_sdmmc_host(host_config->slot, slot_config, &card_handle); in esp_vfs_fat_sdmmc_mount()
237 err = sdmmc_card_init(host_config, card); in esp_vfs_fat_sdmmc_mount()
257 call_host_deinit(host_config); in esp_vfs_fat_sdmmc_mount()
283 const sdmmc_host_t* host_config = host_config_input; in esp_vfs_fat_sdspi_mount() local
298 err = (*host_config->init)(); in esp_vfs_fat_sdspi_mount()
301 err = init_sdspi_host(host_config->slot, slot_config, &card_handle); in esp_vfs_fat_sdspi_mount()
312 if (card_handle != host_config->slot) { in esp_vfs_fat_sdspi_mount()
314 host_config = &new_config; in esp_vfs_fat_sdspi_mount()
319 err = sdmmc_card_init(host_config, card); in esp_vfs_fat_sdspi_mount()
340 call_host_deinit(host_config); in esp_vfs_fat_sdspi_mount()
356 static void call_host_deinit(const sdmmc_host_t *host_config) in call_host_deinit() argument
358 if (host_config->flags & SDMMC_HOST_FLAG_DEINIT_ARG) { in call_host_deinit()
359 host_config->deinit_p(host_config->slot); in call_host_deinit()
361 host_config->deinit(); in call_host_deinit()