Home
last modified time | relevance | path

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

/Zephyr-latest/tests/drivers/disk/disk_performance/src/
Dmain.c46 static const char *disk_pdrv = DISK_NAME; variable
61 rc = disk_access_init(disk_pdrv); in test_setup()
64 rc = disk_access_status(disk_pdrv); in test_setup()
67 rc = disk_access_ioctl(disk_pdrv, DISK_IOCTL_GET_SECTOR_COUNT, &cmd_buf); in test_setup()
73 rc = disk_access_ioctl(disk_pdrv, DISK_IOCTL_GET_SECTOR_SIZE, &cmd_buf); in test_setup()
101 rc = disk_access_read(disk_pdrv, test_buf, 0, num_blocks); in read_helper()
150 rc = disk_access_read(disk_pdrv, backup_buf, 0, num_blocks); in write_helper()
160 rc = disk_access_write(disk_pdrv, test_buf, 0, num_blocks); in write_helper()
173 rc = disk_access_write(disk_pdrv, backup_buf, 0, num_blocks); in write_helper()
229 rc = disk_access_read(disk_pdrv, test_buf, chosen_sectors[i], 1); in ZTEST()
[all …]
/Zephyr-latest/samples/subsys/fs/fs_sample/src/
Dmain.c116 static const char *disk_pdrv = DISK_DRIVE_NAME; in main() local
121 if (disk_access_ioctl(disk_pdrv, in main()
127 if (disk_access_ioctl(disk_pdrv, in main()
134 if (disk_access_ioctl(disk_pdrv, in main()
144 if (disk_access_ioctl(disk_pdrv, in main()
/Zephyr-latest/tests/drivers/disk/disk_access/src/
Dmain.c57 static const char *disk_pdrv = DISK_NAME; variable
108 rc = disk_access_init(disk_pdrv); in test_setup()
111 rc = disk_access_status(disk_pdrv); in test_setup()
114 rc = disk_access_ioctl(disk_pdrv, DISK_IOCTL_GET_SECTOR_COUNT, &cmd_buf); in test_setup()
120 rc = disk_access_ioctl(disk_pdrv, DISK_IOCTL_GET_SECTOR_SIZE, &cmd_buf); in test_setup()
139 rc = disk_access_read(disk_pdrv, buf, start, num_sectors); in read_sector()
186 rc = disk_access_write(disk_pdrv, wbuf, start, num_sectors); in write_sector_checked()
/Zephyr-latest/subsys/usb/device/class/
Dmsc.c182 static const char *disk_pdrv = CONFIG_MASS_STORAGE_DISK_NAME; variable
697 if (disk_access_read(disk_pdrv, page, curr_lba, 1)) { in memoryVerify()
742 if (!(disk_access_status(disk_pdrv) & in memoryWrite()
835 if (disk_access_ioctl(disk_pdrv, DISK_IOCTL_CTRL_SYNC, NULL)) { in thread_memory_write_done()
987 if (disk_access_read(disk_pdrv, in mass_thread_main()
996 if (disk_access_write(disk_pdrv, in mass_thread_main()
1025 if (disk_access_init(disk_pdrv) != 0) { in mass_storage_init()
1030 if (disk_access_ioctl(disk_pdrv, in mass_storage_init()
1036 if (disk_access_ioctl(disk_pdrv, in mass_storage_init()
/Zephyr-latest/samples/subsys/fs/littlefs/src/
Dmain.c332 static const char *disk_pdrv = DISK_NAME; in littlefs_mount() local
334 mp->storage_dev = (void *)disk_pdrv; in littlefs_mount()