/hal_espressif-3.6.0/components/fatfs/diskio/ |
D | diskio.c | 40 void ff_diskio_register(BYTE pdrv, const ff_diskio_impl_t* discio_impl) in ff_diskio_register() argument 42 assert(pdrv < FF_VOLUMES); in ff_diskio_register() 44 if (s_impls[pdrv]) { in ff_diskio_register() 45 ff_diskio_impl_t* im = s_impls[pdrv]; in ff_diskio_register() 46 s_impls[pdrv] = NULL; in ff_diskio_register() 57 s_impls[pdrv] = impl; in ff_diskio_register() 60 DSTATUS ff_disk_initialize (BYTE pdrv) in ff_disk_initialize() argument 62 return s_impls[pdrv]->init(pdrv); in ff_disk_initialize() 64 DSTATUS ff_disk_status (BYTE pdrv) in ff_disk_status() argument 66 return s_impls[pdrv]->status(pdrv); in ff_disk_status() [all …]
|
D | diskio_sdmmc.c | 19 static DSTATUS ff_sdmmc_card_available(BYTE pdrv) in ff_sdmmc_card_available() argument 21 sdmmc_card_t* card = s_cards[pdrv]; in ff_sdmmc_card_available() 36 DSTATUS ff_sdmmc_initialize (BYTE pdrv) in ff_sdmmc_initialize() argument 38 return ff_sdmmc_card_available(pdrv); in ff_sdmmc_initialize() 41 DSTATUS ff_sdmmc_status (BYTE pdrv) in ff_sdmmc_status() argument 43 return ff_sdmmc_card_available(pdrv); in ff_sdmmc_status() 46 DRESULT ff_sdmmc_read (BYTE pdrv, BYTE* buff, DWORD sector, UINT count) in ff_sdmmc_read() argument 48 sdmmc_card_t* card = s_cards[pdrv]; in ff_sdmmc_read() 58 DRESULT ff_sdmmc_write (BYTE pdrv, const BYTE* buff, DWORD sector, UINT count) in ff_sdmmc_write() argument 60 sdmmc_card_t* card = s_cards[pdrv]; in ff_sdmmc_write() [all …]
|
D | diskio_wl.c | 31 DSTATUS ff_wl_initialize (BYTE pdrv) in ff_wl_initialize() argument 36 DSTATUS ff_wl_status (BYTE pdrv) in ff_wl_status() argument 41 DRESULT ff_wl_read (BYTE pdrv, BYTE *buff, DWORD sector, UINT count) in ff_wl_read() argument 43 …ESP_LOGV(TAG, "ff_wl_read - pdrv=%i, sector=%i, count=%i\n", (unsigned int)pdrv, (unsigned int)sec… in ff_wl_read() 44 wl_handle_t wl_handle = ff_wl_handles[pdrv]; in ff_wl_read() 54 DRESULT ff_wl_write (BYTE pdrv, const BYTE *buff, DWORD sector, UINT count) in ff_wl_write() argument 56 …ESP_LOGV(TAG, "ff_wl_write - pdrv=%i, sector=%i, count=%i\n", (unsigned int)pdrv, (unsigned int)se… in ff_wl_write() 57 wl_handle_t wl_handle = ff_wl_handles[pdrv]; in ff_wl_write() 72 DRESULT ff_wl_ioctl (BYTE pdrv, BYTE cmd, void *buff) in ff_wl_ioctl() argument 74 wl_handle_t wl_handle = ff_wl_handles[pdrv]; in ff_wl_ioctl() [all …]
|
D | diskio_rawflash.c | 28 DSTATUS ff_raw_initialize (BYTE pdrv) in ff_raw_initialize() argument 33 DSTATUS ff_raw_status (BYTE pdrv) in ff_raw_status() argument 38 DRESULT ff_raw_read (BYTE pdrv, BYTE *buff, DWORD sector, UINT count) in ff_raw_read() argument 40 …ESP_LOGV(TAG, "ff_raw_read - pdrv=%i, sector=%i, count=%in", (unsigned int)pdrv, (unsigned int)sec… in ff_raw_read() 41 const esp_partition_t* part = ff_raw_handles[pdrv]; in ff_raw_read() 52 DRESULT ff_raw_write (BYTE pdrv, const BYTE *buff, DWORD sector, UINT count) in ff_raw_write() argument 57 DRESULT ff_raw_ioctl (BYTE pdrv, BYTE cmd, void *buff) in ff_raw_ioctl() argument 59 const esp_partition_t* part = ff_raw_handles[pdrv]; in ff_raw_ioctl() 78 esp_err_t ff_diskio_register_raw_partition(BYTE pdrv, const esp_partition_t* part_handle) in ff_diskio_register_raw_partition() argument 80 if (pdrv >= FF_VOLUMES) { in ff_diskio_register_raw_partition() [all …]
|
D | diskio_impl.h | 37 DSTATUS (*init) (unsigned char pdrv); /*!< disk initialization function */ 38 DSTATUS (*status) (unsigned char pdrv); /*!< disk status check function */ 39 …DRESULT (*read) (unsigned char pdrv, unsigned char* buff, uint32_t sector, unsigned count); /*!< … 40 …DRESULT (*write) (unsigned char pdrv, const unsigned char* buff, uint32_t sector, unsigned count);… 41 …DRESULT (*ioctl) (unsigned char pdrv, unsigned char cmd, void* buff); /*!< function to get info ab… 54 void ff_diskio_register(BYTE pdrv, const ff_diskio_impl_t* discio_impl);
|
D | diskio_sdmmc.h | 30 void ff_diskio_register_sdmmc(unsigned char pdrv, sdmmc_card_t* card);
|
D | diskio_rawflash.h | 30 esp_err_t ff_diskio_register_raw_partition(unsigned char pdrv, const esp_partition_t* part_handle);
|
D | diskio_wl.h | 31 esp_err_t ff_diskio_register_wl_partition(unsigned char pdrv, wl_handle_t flash_handle);
|
/hal_espressif-3.6.0/components/fatfs/vfs/ |
D | vfs_fat_spiflash.c | 53 BYTE pdrv = 0xFF; in esp_vfs_fat_spiflash_mount() local 54 if (ff_diskio_get_drive(&pdrv) != ESP_OK) { in esp_vfs_fat_spiflash_mount() 58 ESP_LOGD(TAG, "using pdrv=%i", pdrv); in esp_vfs_fat_spiflash_mount() 59 char drv[3] = {(char)('0' + pdrv), ':', 0}; in esp_vfs_fat_spiflash_mount() 61 result = ff_diskio_register_wl_partition(pdrv, *wl_handle); in esp_vfs_fat_spiflash_mount() 63 … ESP_LOGE(TAG, "ff_diskio_register_wl_partition failed pdrv=%i, error - 0x(%x)", pdrv, result); in esp_vfs_fat_spiflash_mount() 114 ff_diskio_unregister(pdrv); in esp_vfs_fat_spiflash_mount() 120 BYTE pdrv = ff_diskio_get_pdrv_wl(wl_handle); in esp_vfs_fat_spiflash_unmount() local 121 if (pdrv == 0xff) { in esp_vfs_fat_spiflash_unmount() 124 char drv[3] = {(char)('0' + pdrv), ':', 0}; in esp_vfs_fat_spiflash_unmount() [all …]
|
D | vfs_fat_sdmmc.c | 46 const char *drv, sdmmc_card_t *card, BYTE pdrv); 58 BYTE pdrv = FF_DRV_NOT_USED; in mount_prepare_mem() local 59 if (ff_diskio_get_drive(&pdrv) != ESP_OK || pdrv == FF_DRV_NOT_USED) { in mount_prepare_mem() 81 *out_pdrv = pdrv; in mount_prepare_mem() 90 … mount_to_vfs_fat(const esp_vfs_fat_mount_config_t *mount_config, sdmmc_card_t *card, uint8_t pdrv, in mount_to_vfs_fat() argument 95 ff_diskio_register_sdmmc(pdrv, card); in mount_to_vfs_fat() 96 ESP_LOGD(TAG, "using pdrv=%i", pdrv); in mount_to_vfs_fat() 97 char drv[3] = {(char)('0' + pdrv), ':', 0}; in mount_to_vfs_fat() 118 err = partition_card(mount_config, drv, card, pdrv); in mount_to_vfs_fat() 138 ff_diskio_unregister(pdrv); in mount_to_vfs_fat() [all …]
|
/hal_espressif-3.6.0/examples/peripherals/usb/host/msc/components/msc/src/ |
D | diskio_usb.c | 20 static DSTATUS usb_disk_initialize (BYTE pdrv) in usb_disk_initialize() argument 25 static DSTATUS usb_disk_status (BYTE pdrv) in usb_disk_status() argument 30 static DRESULT usb_disk_read (BYTE pdrv, BYTE *buff, DWORD sector, UINT count) in usb_disk_read() argument 32 assert(pdrv < FF_VOLUMES); in usb_disk_read() 33 assert(s_disks[pdrv]); in usb_disk_read() 36 usb_disk_t *disk = s_disks[pdrv]; in usb_disk_read() 52 static DRESULT usb_disk_write (BYTE pdrv, const BYTE *buff, DWORD sector, UINT count) in usb_disk_write() argument 54 assert(pdrv < FF_VOLUMES); in usb_disk_write() 55 assert(s_disks[pdrv]); in usb_disk_write() 58 usb_disk_t *disk = s_disks[pdrv]; in usb_disk_write() [all …]
|
D | msc_host_vfs.c | 22 uint8_t pdrv; member 65 BYTE pdrv; in msc_host_vfs_register() local 75 MSC_GOTO_ON_ERROR( ff_diskio_get_drive(&pdrv) ); in msc_host_vfs_register() 77 ff_diskio_register_msc(pdrv, &dev->disk); in msc_host_vfs_register() 78 char drive[DRIVE_STR_LEN] = {(char)('0' + pdrv), ':', 0}; in msc_host_vfs_register() 83 vfs->pdrv = pdrv; in msc_host_vfs_register() 104 ff_diskio_unregister(pdrv); in msc_host_vfs_register() 120 ff_diskio_unregister(vfs->pdrv); in msc_host_vfs_unregister()
|
/hal_espressif-3.6.0/components/fatfs/src/ |
D | diskio.c | 24 BYTE pdrv /* Physical drive nmuber to identify the drive */ in disk_status() argument 30 switch (pdrv) { in disk_status() 62 BYTE pdrv /* Physical drive nmuber to identify the drive */ in disk_initialize() argument 68 switch (pdrv) { in disk_initialize() 100 BYTE pdrv, /* Physical drive nmuber to identify the drive */ in disk_read() argument 109 switch (pdrv) { in disk_read() 150 BYTE pdrv, /* Physical drive nmuber to identify the drive */ in disk_write() argument 159 switch (pdrv) { in disk_write() 199 BYTE pdrv, /* Physical drive nmuber (0..) */ in disk_ioctl() argument 207 switch (pdrv) { in disk_ioctl()
|
D | diskio.h | 29 DSTATUS disk_initialize (BYTE pdrv); 30 DSTATUS disk_status (BYTE pdrv); 31 DRESULT disk_read (BYTE pdrv, BYTE* buff, DWORD sector, UINT count); 32 DRESULT disk_write (BYTE pdrv, const BYTE* buff, DWORD sector, UINT count); 33 DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff);
|
D | ff.c | 1050 if (disk_write(fs->pdrv, fs->win, fs->winsect, 1) == RES_OK) { /* Write back the window */ in sync_window() 1053 …if (fs->n_fats == 2) disk_write(fs->pdrv, fs->win, fs->winsect + fs->fsize, 1); /* Reflect it to 2… in sync_window() 1077 if (disk_read(fs->pdrv, fs->win, sector, 1) != RES_OK) { in move_window() 1114 disk_write(fs->pdrv, fs->win, fs->winsect, 1); in sync_fs() 1118 if (disk_ioctl(fs->pdrv, CTRL_SYNC, 0) != RES_OK) res = FR_DISK_ERR; in sync_fs() 1467 …disk_ioctl(fs->pdrv, CTRL_TRIM, rt); /* Inform device the data in the block is no longer needed */ in remove_chain() 1664 …for (n = 0; n < fs->csize && disk_write(fs->pdrv, ibuf, sect + n, szb) == RES_OK; n += szb) ; /* F… in dir_clear() 1670 …for (n = 0; n < fs->csize && disk_write(fs->pdrv, ibuf, sect + n, szb) == RES_OK; n += szb) ; /* F… in dir_clear() 3244 stat = disk_status(fs->pdrv); 3257 fs->pdrv = LD2PD(vol); /* Bind the logical drive and a physical drive */ [all …]
|
D | ff.h | 125 BYTE pdrv; /* Associated physical drive */ member 311 FRESULT f_fdisk (BYTE pdrv, const DWORD* szt, void* work); /* Divide a physical drive into some p…
|
/hal_espressif-3.6.0/components/fatfs/test_fatfs_host/ |
D | test_fatfs.cpp | 19 BYTE pdrv; variable 34 esp_result = ff_diskio_get_drive(&pdrv); 38 esp_result = ff_diskio_register_wl_partition(pdrv, wl_handle); 44 fr_result = f_fdisk(pdrv, part_list, work_area);
|
/hal_espressif-3.6.0/examples/peripherals/usb/host/msc/components/msc/private_include/ |
D | diskio_usb.h | 27 void ff_diskio_register_msc(uint8_t pdrv, usb_disk_t *disk);
|