Searched refs:pdrv (Results 1 – 5 of 5) sorted by relevance
/third_party/FatFs/documents/res/ |
D | app4.c | 37 BYTE pdrv, /* Physical drive number to be checked (all data on the drive will be lost) */ in test_diskio() argument 51 printf("test_diskio(%u, %u, 0x%08X, 0x%08X)\n", pdrv, ncyc, (UINT)buff, sz_buff); in test_diskio() 61 printf(" disk_initalize(%u)", pdrv); in test_diskio() 62 ds = disk_initialize(pdrv); in test_diskio() 71 printf(" disk_ioctl(%u, GET_SECTOR_COUNT, 0x%08X)", pdrv, (UINT)&sz_drv); in test_diskio() 73 dr = disk_ioctl(pdrv, GET_SECTOR_COUNT, &sz_drv); in test_diskio() 84 printf(" Number of sectors on the drive %u is %lu.\n", pdrv, sz_drv); in test_diskio() 88 printf(" disk_ioctl(%u, GET_SECTOR_SIZE, 0x%X)", pdrv, (UINT)&sz_sect); in test_diskio() 90 dr = disk_ioctl(pdrv, GET_SECTOR_SIZE, &sz_sect); in test_diskio() 103 printf(" disk_ioctl(%u, GET_BLOCK_SIZE, 0x%X)", pdrv, (UINT)&sz_eblk); in test_diskio() [all …]
|
/third_party/FatFs/source/ |
D | diskio.c | 29 extern int get_cardstatus(int pdrv); 32 if (get_cardstatus(pdrv) == 0) \ 39 BYTE pdrv /* Physical drive nmuber to identify the drive */ in disk_status() argument 47 stat = g_diskDrv.drv[pdrv]->disk_status(g_diskDrv.lun[pdrv]); in disk_status() 59 BYTE pdrv /* Physical drive nmuber to identify the drive */ in disk_initialize() argument 67 if(g_diskDrv.initialized[pdrv] == 0) in disk_initialize() 69 stat = g_diskDrv.drv[pdrv]->disk_initialize(g_diskDrv.lun[pdrv]); in disk_initialize() 82 BYTE pdrv, /* Physical drive nmuber to identify the drive */ in disk_read() argument 91 result = los_part_read((int)pdrv, (void *)buff, sector, (UINT32)count, TRUE); in disk_read() 98 return (DRESULT)g_diskDrv.drv[pdrv]->disk_read(g_diskDrv.lun[pdrv], buff, sector, count); in disk_read() [all …]
|
D | diskio.h | 38 DSTATUS disk_initialize (BYTE pdrv); 39 DSTATUS disk_status (BYTE pdrv); 40 DRESULT disk_read (BYTE pdrv, BYTE* buff, LBA_t sector, UINT count); 41 DRESULT disk_write (BYTE pdrv, const BYTE* buff, LBA_t sector, UINT count); 43 DRESULT disk_read_readdir (BYTE pdrv, BYTE* buff, LBA_t sector, UINT count); 47 DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff); 49 DRESULT disk_read_readdir (BYTE pdrv, BYTE* buff, LBA_t sector, UINT count);
|
D | ff.c | 906 if (disk_write(fs->pdrv, fs->win, fs->winsect, 1) == RES_OK) { /* Write it back into the volume */ in sync_window() 909 …if (fs->n_fats == 2) disk_write(fs->pdrv, fs->win, fs->winsect + fs->fsize, 1); /* Reflect it to 2… in sync_window() 937 if (disk_read(fs->pdrv, fs->win, sect, 1) != RES_OK) { in move_window() 965 if (disk_read_readdir(fs->pdrv, fs->win, sect, 1) != RES_OK) { in move_window_readdir() 1003 disk_write(fs->pdrv, fs->win, fs->winsect, 1); in sync_fs() 1007 if (disk_ioctl(fs->pdrv, CTRL_SYNC, 0) != RES_OK) res = FR_DISK_ERR; in sync_fs() 1203 …disk_ioctl(fs->pdrv, CTRL_TRIM, rt); /* Inform storage device that the data in the block may be e… in remove_chain() 1419 …for (n = 0; n < fs->csize && disk_write(fs->pdrv, ibuf, sect + n, szb) == RES_OK; n += szb) ; /* F… in dir_clear() 1425 …for (n = 0; n < fs->csize && disk_write(fs->pdrv, ibuf, sect + n, szb) == RES_OK; n += szb) ; /* F… in dir_clear() 2807 stat = disk_status(fs->pdrv); in mount_volume() [all …]
|
D | ff.h | 218 BYTE pdrv; /* Associated physical drive */ member 460 FRESULT f_fdisk (BYTE pdrv, const DWORD szt[], void* work); /* Divide a physical drive into some p…
|