Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 25 of 32) sorted by relevance

12

/hal_espressif-3.6.0/components/fatfs/src/
Dff.c209 #define ABORT(fs, res) { fp->err = (BYTE)(res); LEAVE_FF(fs, res); } argument
217 #define LEAVE_FF(fs, res) { unlock_fs(fs, res); return res; } argument
219 #define LEAVE_FF(fs, res) return res argument
238 #define SS(fs) ((UINT)FF_MAX_SS) /* Fixed sector size */ argument
240 #define SS(fs) ((fs)->ssize) /* Variable sector size */ argument
261 FATFS *fs; /* Object ID 1, volume (NULL:blank entry) */ member
465 #define INIT_NAMBUF(fs) argument
488 #define INIT_NAMBUF(fs) argument
495 #define INIT_NAMBUF(fs) { (fs)->lfnbuf = lbuf; (fs)->dirbuf = dbuf; } argument
499 #define INIT_NAMBUF(fs) { (fs)->lfnbuf = lbuf; } argument
[all …]
Dff.h174 FATFS* fs; /* Pointer to the hosting volume of this object */ member
309 FRESULT f_mount (FATFS* fs, const TCHAR* path, BYTE opt); /* Mount/Unmount a logical drive */
/hal_espressif-3.6.0/components/esptool_py/esptool/flasher_stub/
Dstub_write_flash.c39 } fs; variable
49 return fs.in_flash_mode; in is_in_flash_mode()
54 return fs.last_error; in get_flash_error()
209 fs.in_flash_mode = true; in handle_flash_begin()
210 fs.next_write = offset; in handle_flash_begin()
211 fs.next_erase_sector = offset / FLASH_SECTOR_SIZE; in handle_flash_begin()
212 fs.remaining = total_size; in handle_flash_begin()
213fs.remaining_erase_sector = ((offset % FLASH_SECTOR_SIZE) + total_size + FLASH_SECTOR_SIZE - 1) / … in handle_flash_begin()
214 fs.last_error = ESP_OK; in handle_flash_begin()
235 tinfl_init(&fs.inflator); in handle_flash_deflated_begin()
[all …]
/hal_espressif-3.6.0/components/spiffs/
Desp_spiffs.c93 static void vfs_spiffs_update_mtime(spiffs *fs, spiffs_file f);
106 if (e->fs) { in esp_spiffs_free()
107 SPIFFS_unmount(e->fs); in esp_spiffs_free()
108 free(e->fs); in esp_spiffs_free()
237 efs->fs = malloc(sizeof(spiffs)); in esp_spiffs_init()
238 if (efs->fs == NULL) { in esp_spiffs_init()
243 memset(efs->fs, 0, sizeof(spiffs)); in esp_spiffs_init()
245 efs->fs->user_data = (void *)efs; in esp_spiffs_init()
248 s32_t res = SPIFFS_mount(efs->fs, &efs->cfg, efs->work, efs->fds, efs->fds_sz, in esp_spiffs_init()
252 ESP_LOGW(TAG, "mount failed, %i. formatting...", SPIFFS_errno(efs->fs)); in esp_spiffs_init()
[all …]
Dspiffs_api.c24 void spiffs_api_lock(spiffs *fs) in spiffs_api_lock() argument
26 (void) xSemaphoreTake(((esp_spiffs_t *)(fs->user_data))->lock, portMAX_DELAY); in spiffs_api_lock()
29 void spiffs_api_unlock(spiffs *fs) in spiffs_api_unlock() argument
31 xSemaphoreGive(((esp_spiffs_t *)(fs->user_data))->lock); in spiffs_api_unlock()
34 s32_t spiffs_api_read(spiffs *fs, uint32_t addr, uint32_t size, uint8_t *dst) in spiffs_api_read() argument
36 esp_err_t err = esp_partition_read(((esp_spiffs_t *)(fs->user_data))->partition, in spiffs_api_read()
45 s32_t spiffs_api_write(spiffs *fs, uint32_t addr, uint32_t size, uint8_t *src) in spiffs_api_write() argument
47 esp_err_t err = esp_partition_write(((esp_spiffs_t *)(fs->user_data))->partition, in spiffs_api_write()
56 s32_t spiffs_api_erase(spiffs *fs, uint32_t addr, uint32_t size) in spiffs_api_erase() argument
58 esp_err_t err = esp_partition_erase_range(((esp_spiffs_t *)(fs->user_data))->partition, in spiffs_api_erase()
[all …]
Dspiffs_api.h34 spiffs *fs; /*!< Handle to the underlying SPIFFS */ member
47 s32_t spiffs_api_read(spiffs *fs, uint32_t addr, uint32_t size, uint8_t *dst);
49 s32_t spiffs_api_write(spiffs *fs, uint32_t addr, uint32_t size, uint8_t *src);
51 s32_t spiffs_api_erase(spiffs *fs, uint32_t addr, uint32_t size);
53 void spiffs_api_check(spiffs *fs, spiffs_check_type type,
/hal_espressif-3.6.0/components/spiffs/test_spiffs_host/
Dtest_spiffs.cpp21 static void init_spiffs(spiffs *fs, uint32_t max_files) in init_spiffs() argument
32 fs->user_data = (void*)user_data; in init_spiffs()
60 spiffs_res = SPIFFS_mount(fs, &cfg, work, fds, fds_sz, in init_spiffs()
64 spiffs_res = SPIFFS_format(fs); in init_spiffs()
67 spiffs_res = SPIFFS_mount(fs, &cfg, work, fds, fds_sz, in init_spiffs()
74 static void deinit_spiffs(spiffs *fs) in deinit_spiffs() argument
76 SPIFFS_unmount(fs); in deinit_spiffs()
78 free(fs->work); in deinit_spiffs()
79 free(fs->user_data); in deinit_spiffs()
80 free(fs->fd_space); in deinit_spiffs()
[all …]
/hal_espressif-3.6.0/components/spiffs/include/
Dspiffs_config.h63 extern void spiffs_api_lock(struct spiffs_t *fs);
64 extern void spiffs_api_unlock(struct spiffs_t *fs);
199 #define SPIFFS_LOCK(fs) spiffs_api_lock(fs) argument
201 #define SPIFFS_UNLOCK(fs) spiffs_api_unlock(fs) argument
/hal_espressif-3.6.0/examples/storage/ext_flash_fatfs/main/
Dext_flash_fatfs_example_main.c178 FATFS *fs; in example_get_fatfs_usage() local
180 int res = f_getfree("0:", &free_clusters, &fs); in example_get_fatfs_usage()
182 size_t total_sectors = (fs->n_fatent - 2) * fs->csize; in example_get_fatfs_usage()
183 size_t free_sectors = free_clusters * fs->csize; in example_get_fatfs_usage()
187 *out_total_bytes = total_sectors * fs->ssize; in example_get_fatfs_usage()
190 *out_free_bytes = free_sectors * fs->ssize; in example_get_fatfs_usage()
/hal_espressif-3.6.0/components/fatfs/vfs/
Dvfs_fat_spiflash.c66 FATFS *fs; in esp_vfs_fat_spiflash_mount() local
67 result = esp_vfs_fat_register(base_path, drv, mount_config->max_files, &fs); in esp_vfs_fat_spiflash_mount()
76 FRESULT fresult = f_mount(fs, drv, 1); in esp_vfs_fat_spiflash_mount()
102 fresult = f_mount(fs, drv, 0); in esp_vfs_fat_spiflash_mount()
164 FATFS *fs; in esp_vfs_fat_rawflash_mount() local
165 result = esp_vfs_fat_register(base_path, drv, mount_config->max_files, &fs); in esp_vfs_fat_rawflash_mount()
174 FRESULT fresult = f_mount(fs, drv, 1); in esp_vfs_fat_rawflash_mount()
Dvfs_fat_sdmmc.c93 FATFS* fs = NULL; in mount_to_vfs_fat() local
100 err = esp_vfs_fat_register(base_path, drv, mount_config->max_files, &fs); in mount_to_vfs_fat()
109 FRESULT res = f_mount(fs, drv, 1); in mount_to_vfs_fat()
124 res = f_mount(fs, drv, 0); in mount_to_vfs_fat()
134 if (fs) { in mount_to_vfs_fat()
Dvfs_fat.c32 FATFS fs; /* fatfs library FS structure */ member
189 *out_fs = &fat_ctx->fs; in esp_vfs_fat_register()
215 if (fat_ctx->files[i].obj.fs == NULL) { in get_next_fd()
634 const size_t copy_buf_size = fat_ctx->fs.csize; in vfs_fat_link()
/hal_espressif-3.6.0/examples/peripherals/usb/host/msc/components/msc/src/
Dmsc_host_vfs.c64 FATFS *fs = NULL; in msc_host_vfs_register() local
85 MSC_GOTO_ON_ERROR( esp_vfs_fat_register(base_path, drive, mount_config->max_files, &fs) ); in msc_host_vfs_register()
87 FRESULT fresult = f_mount(fs, drive, 1); in msc_host_vfs_register()
93 MSC_GOTO_ON_FALSE( f_mount(fs, drive, 0) == FR_OK, ESP_ERR_MSC_MOUNT_FAILED ); in msc_host_vfs_register()
107 if(fs) { in msc_host_vfs_register()
/hal_espressif-3.6.0/tools/kconfig/
Dgconf.c506 GtkWidget *fs; in on_load1_activate() local
508 fs = gtk_file_selection_new(_("Load file...")); in on_load1_activate()
509 g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(fs)->ok_button), in on_load1_activate()
511 G_CALLBACK(load_filename), (gpointer) fs); in on_load1_activate()
513 (GTK_FILE_SELECTION(fs)->ok_button), in on_load1_activate()
515 (gpointer) fs); in on_load1_activate()
517 (GTK_FILE_SELECTION(fs)->cancel_button), in on_load1_activate()
519 (gpointer) fs); in on_load1_activate()
520 gtk_widget_show(fs); in on_load1_activate()
547 GtkWidget *fs; in on_save_as1_activate() local
[all …]
/hal_espressif-3.6.0/components/fatfs/test_fatfs_host/
Dtest_fatfs.cpp20 FATFS fs; variable
49 fr_result = f_mount(&fs, "", 0);
/hal_espressif-3.6.0/components/driver/include/driver/
Di2s.h58 .fs = (rate) / 100, \
72 …int fs; /*!< I2S PDM TX upsampling paramater. When it is set to 480, t… member
/hal_espressif-3.6.0/components/hal/include/hal/
Di2s_hal.h320 #define i2s_hal_set_tx_pdm_fpfs(hal, fp, fs) i2s_ll_tx_set_pdm_fpfs((hal)->dev, fp, fs) argument
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/
Di2s_ll.h649 static inline void i2s_ll_tx_set_pdm_fpfs(i2s_dev_t *hw, uint32_t fp, uint32_t fs) in i2s_ll_tx_set_pdm_fpfs() argument
652 hw->tx_pcm2pdm_conf1.tx_pdm_fs = fs; in i2s_ll_tx_set_pdm_fpfs()
653 hw->tx_pcm2pdm_conf.tx_pdm_sinc_osr2 = fp / fs; in i2s_ll_tx_set_pdm_fpfs()
/hal_espressif-3.6.0/components/hal/esp32/include/hal/
Di2s_ll.h847 static inline void i2s_ll_tx_set_pdm_fpfs(i2s_dev_t *hw, uint32_t fp, uint32_t fs) in i2s_ll_tx_set_pdm_fpfs() argument
850 hw->pdm_freq_conf.tx_pdm_fs = fs; in i2s_ll_tx_set_pdm_fpfs()
851 hw->pdm_conf.tx_sinc_osr2 = fp / fs; in i2s_ll_tx_set_pdm_fpfs()
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/
Di2s_ll.h650 static inline void i2s_ll_tx_set_pdm_fpfs(i2s_dev_t *hw, uint32_t fp, uint32_t fs) in i2s_ll_tx_set_pdm_fpfs() argument
653 hw->tx_pcm2pdm_conf1.tx_pdm_fs = fs; in i2s_ll_tx_set_pdm_fpfs()
654 hw->tx_pcm2pdm_conf.tx_pdm_sinc_osr2 = fp / fs; in i2s_ll_tx_set_pdm_fpfs()
/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/
Di2s_ll.h543 static inline void i2s_ll_tx_set_pdm_fpfs(i2s_dev_t *hw, uint32_t fp, uint32_t fs) in i2s_ll_tx_set_pdm_fpfs() argument
546 hw->tx_pcm2pdm_conf1.tx_pdm_fs = fs; in i2s_ll_tx_set_pdm_fpfs()
547 hw->tx_pcm2pdm_conf.tx_sinc_osr2 = fp / fs; in i2s_ll_tx_set_pdm_fpfs()
/hal_espressif-3.6.0/docs/zh_CN/get-started/
Dmacos-setup-scratch.rst55 hdiutil create ~/esp/crosstool.dmg -volname "ctng" -size 10g -fs "Case-sensitive HFS+"
/hal_espressif-3.6.0/docs/zh_CN/get-started-legacy/
Dmacos-setup-scratch.rst43 hdiutil create ~/esp/crosstool.dmg -volname "ctng" -size 10g -fs "Case-sensitive HFS+"
/hal_espressif-3.6.0/components/esptool_py/esptool/docs/en/esptool/
Dflash-modes.rst43 Flash Size (--flash_size, -fs)
70 …ed on SPI flash ID, add the argument ``esptool.py [...] write_flash [...] -fs detect``. If detecti…
/hal_espressif-3.6.0/docs/en/get-started/
Dmacos-setup-scratch.rst55 hdiutil create ~/esp/crosstool.dmg -volname "ctng" -size 10g -fs "Case-sensitive HFS+"

12