Home
last modified time | relevance | path

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

/Zephyr-latest/modules/fatfs/
Dzfs_diskio.c22 DSTATUS disk_status(BYTE pdrv) in disk_status() argument
24 __ASSERT(pdrv < ARRAY_SIZE(pdrv_str), "pdrv out-of-range\n"); in disk_status()
26 if (disk_access_status(pdrv_str[pdrv]) != 0) { in disk_status()
34 DSTATUS disk_initialize(BYTE pdrv) in disk_initialize() argument
38 return disk_ioctl(pdrv, CTRL_POWER, &param); in disk_initialize()
42 DRESULT disk_read(BYTE pdrv, BYTE *buff, LBA_t sector, UINT count) in disk_read() argument
44 __ASSERT(pdrv < ARRAY_SIZE(pdrv_str), "pdrv out-of-range\n"); in disk_read()
46 if (disk_access_read(pdrv_str[pdrv], buff, sector, count) != 0) { in disk_read()
55 DRESULT disk_write(BYTE pdrv, const BYTE *buff, LBA_t sector, UINT count) in disk_write() argument
57 __ASSERT(pdrv < ARRAY_SIZE(pdrv_str), "pdrv out-of-range\n"); in disk_write()
[all …]
/Zephyr-latest/include/zephyr/storage/
Ddisk_access.h54 int disk_access_init(const char *pdrv);
65 int disk_access_status(const char *pdrv);
82 int disk_access_read(const char *pdrv, uint8_t *data_buf,
100 int disk_access_write(const char *pdrv, const uint8_t *data_buf,
114 int disk_access_ioctl(const char *pdrv, uint8_t cmd, void *buff);
/Zephyr-latest/subsys/disk/
Ddisk_access.c57 int disk_access_init(const char *pdrv) in disk_access_init() argument
59 struct disk_info *disk = disk_access_get_di(pdrv); in disk_access_init()
80 int disk_access_status(const char *pdrv) in disk_access_status() argument
82 struct disk_info *disk = disk_access_get_di(pdrv); in disk_access_status()
93 int disk_access_read(const char *pdrv, uint8_t *data_buf, in disk_access_read() argument
96 struct disk_info *disk = disk_access_get_di(pdrv); in disk_access_read()
107 int disk_access_write(const char *pdrv, const uint8_t *data_buf, in disk_access_write() argument
110 struct disk_info *disk = disk_access_get_di(pdrv); in disk_access_write()
121 int disk_access_ioctl(const char *pdrv, uint8_t cmd, void *buf) in disk_access_ioctl() argument
123 struct disk_info *disk = disk_access_get_di(pdrv); in disk_access_ioctl()
/Zephyr-latest/subsys/fs/
Dfat_fs.c499 disk_res = disk_ioctl(((FATFS *)mountp->fs_data)->pdrv, CTRL_POWER, &param); in fatfs_unmount()