Lines Matching refs:pdrv

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()
127 ff_diskio_unregister(pdrv); in esp_vfs_fat_spiflash_unmount()
150 BYTE pdrv = 0xFF; in esp_vfs_fat_rawflash_mount() local
151 if (ff_diskio_get_drive(&pdrv) != ESP_OK) { in esp_vfs_fat_rawflash_mount()
155 ESP_LOGD(TAG, "using pdrv=%i", pdrv); in esp_vfs_fat_rawflash_mount()
156 char drv[3] = {(char)('0' + pdrv), ':', 0}; in esp_vfs_fat_rawflash_mount()
158 result = ff_diskio_register_raw_partition(pdrv, data_partition); in esp_vfs_fat_rawflash_mount()
160 … ESP_LOGE(TAG, "ff_diskio_register_raw_partition failed pdrv=%i, error - 0x(%x)", pdrv, result); in esp_vfs_fat_rawflash_mount()
184 ff_diskio_unregister(pdrv); in esp_vfs_fat_rawflash_mount()
199 BYTE pdrv = ff_diskio_get_pdrv_raw(data_partition); in esp_vfs_fat_rawflash_unmount() local
200 if (pdrv == 0xff) { in esp_vfs_fat_rawflash_unmount()
203 char drv[3] = {(char)('0' + pdrv), ':', 0}; in esp_vfs_fat_rawflash_unmount()
206 ff_diskio_unregister(pdrv); in esp_vfs_fat_rawflash_unmount()