Lines Matching refs:pdrv
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()
68 DRESULT ff_disk_read (BYTE pdrv, BYTE* buff, DWORD sector, UINT count) in ff_disk_read() argument
70 return s_impls[pdrv]->read(pdrv, buff, sector, count); in ff_disk_read()
72 DRESULT ff_disk_write (BYTE pdrv, const BYTE* buff, DWORD sector, UINT count) in ff_disk_write() argument
74 return s_impls[pdrv]->write(pdrv, buff, sector, count); in ff_disk_write()
76 DRESULT ff_disk_ioctl (BYTE pdrv, BYTE cmd, void* buff) in ff_disk_ioctl() argument
78 return s_impls[pdrv]->ioctl(pdrv, cmd, buff); in ff_disk_ioctl()