Home
last modified time | relevance | path

Searched refs:pdrv (Results 1 – 5 of 5) sorted by relevance

/fatfs-2.7.6/
Dzfs_diskio.c39 DSTATUS disk_status(BYTE pdrv) in disk_status() argument
41 __ASSERT(pdrv < ARRAY_SIZE(pdrv_str), "pdrv out-of-range\n"); in disk_status()
43 if (disk_access_status(pdrv_str[pdrv]) != 0) { in disk_status()
54 DSTATUS disk_initialize(BYTE pdrv) in disk_initialize() argument
56 __ASSERT(pdrv < ARRAY_SIZE(pdrv_str), "pdrv out-of-range\n"); in disk_initialize()
58 if (disk_access_init(pdrv_str[pdrv]) != 0) { in disk_initialize()
69 DRESULT disk_read(BYTE pdrv, BYTE *buff, DWORD sector, UINT count) in disk_read() argument
71 __ASSERT(pdrv < ARRAY_SIZE(pdrv_str), "pdrv out-of-range\n"); in disk_read()
73 if (disk_access_read(pdrv_str[pdrv], buff, sector, count) != 0) { in disk_read()
84 DRESULT disk_write(BYTE pdrv, const BYTE *buff, DWORD sector, UINT count) in disk_write() argument
[all …]
Ddiskio.c24 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()
Dff.c1033 if (disk_write(fs->pdrv, fs->win, fs->winsect, 1) == RES_OK) { /* Write it back into the volume */ in sync_window()
1036 …if (fs->n_fats == 2) disk_write(fs->pdrv, fs->win, fs->winsect + fs->fsize, 1); /* Reflect it to 2… in sync_window()
1060 if (disk_read(fs->pdrv, fs->win, sect, 1) != RES_OK) { in move_window()
1096 disk_write(fs->pdrv, fs->win, fs->winsect, 1); in sync_fs()
1100 if (disk_ioctl(fs->pdrv, CTRL_SYNC, 0) != RES_OK) res = FR_DISK_ERR; in sync_fs()
1450 …disk_ioctl(fs->pdrv, CTRL_TRIM, rt); /* Inform storage device that the data in the block may be e… in remove_chain()
1647 …for (n = 0; n < fs->csize && disk_write(fs->pdrv, ibuf, sect + n, szb) == RES_OK; n += szb) ; /* F… in dir_clear()
1653 …for (n = 0; n < fs->csize && disk_write(fs->pdrv, ibuf, sect + n, szb) == RES_OK; n += szb) ; /* F… in dir_clear()
3362 stat = disk_status(fs->pdrv);
3375 fs->pdrv = LD2PD(vol); /* Volume hosting physical drive */
[all …]
/fatfs-2.7.6/include/
Ddiskio.h29 DSTATUS disk_initialize (BYTE pdrv);
30 DSTATUS disk_status (BYTE pdrv);
31 DRESULT disk_read (BYTE pdrv, BYTE* buff, LBA_t sector, UINT count);
32 DRESULT disk_write (BYTE pdrv, const BYTE* buff, LBA_t sector, UINT count);
33 DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff);
Dff.h135 BYTE pdrv; /* Associated physical drive */ member
333 FRESULT f_fdisk (BYTE pdrv, const LBA_t ptbl[], void* work); /* Divide a physical drive into some …