/Zephyr-Core-3.5.0/subsys/disk/ |
D | disk_access.c | 18 LOG_MODULE_REGISTER(disk); 28 struct disk_info *disk = NULL, *itr; in disk_access_get_di() local 47 disk = itr; in disk_access_get_di() 53 return disk; in disk_access_get_di() 58 struct disk_info *disk = disk_access_get_di(pdrv); in disk_access_init() local 61 if ((disk != NULL) && (disk->ops != NULL) && in disk_access_init() 62 (disk->ops->init != NULL)) { in disk_access_init() 63 rc = disk->ops->init(disk); in disk_access_init() 71 struct disk_info *disk = disk_access_get_di(pdrv); in disk_access_status() local 74 if ((disk != NULL) && (disk->ops != NULL) && in disk_access_status() [all …]
|
/Zephyr-Core-3.5.0/subsys/fs/ext2/ |
D | ext2_disk_access.c | 24 struct disk_data *disk = fs->backend; in disk_access_device_size() local 26 return disk->sector_count * disk->sector_size; in disk_access_device_size() 31 struct disk_data *disk = fs->backend; in disk_access_write_size() local 33 return disk->sector_size; in disk_access_write_size() 36 static int disk_read(const char *disk, uint8_t *buf, uint32_t start, uint32_t num) in disk_read() argument 41 rc = disk_access_ioctl(disk, DISK_IOCTL_CTRL_SYNC, NULL); in disk_read() 43 rc = disk_access_read(disk, buf, start, num); in disk_read() 50 static int disk_write(const char *disk, const uint8_t *buf, uint32_t start, uint32_t num) in disk_write() argument 55 rc = disk_access_ioctl(disk, DISK_IOCTL_CTRL_SYNC, NULL); in disk_write() 57 rc = disk_access_write(disk, buf, start, num); in disk_write() [all …]
|
/Zephyr-Core-3.5.0/drivers/disk/nvme/ |
D | nvme_disk.c | 14 static int nvme_disk_init(struct disk_info *disk) in nvme_disk_init() argument 19 static int nvme_disk_status(struct disk_info *disk) in nvme_disk_status() argument 24 static int nvme_disk_read(struct disk_info *disk, in nvme_disk_read() argument 29 struct nvme_namespace *ns = CONTAINER_OF(disk->name, in nvme_disk_read() 42 nvme_lock(disk->dev); in nvme_disk_read() 69 nvme_unlock(disk->dev); in nvme_disk_read() 73 static int nvme_disk_write(struct disk_info *disk, in nvme_disk_write() argument 78 struct nvme_namespace *ns = CONTAINER_OF(disk->name, in nvme_disk_write() 91 nvme_lock(disk->dev); in nvme_disk_write() 118 nvme_unlock(disk->dev); in nvme_disk_write() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/drivers/ |
D | disk.h | 84 int (*init)(struct disk_info *disk); 85 int (*status)(struct disk_info *disk); 86 int (*read)(struct disk_info *disk, uint8_t *data_buf, 88 int (*write)(struct disk_info *disk, const uint8_t *data_buf, 90 int (*ioctl)(struct disk_info *disk, uint8_t cmd, void *buff); 100 int disk_access_register(struct disk_info *disk); 109 int disk_access_unregister(struct disk_info *disk);
|
/Zephyr-Core-3.5.0/drivers/disk/ |
D | mmc_subsys.c | 34 static int disk_mmc_access_init(struct disk_info *disk) in disk_mmc_access_init() argument 36 const struct device *dev = disk->dev; in disk_mmc_access_init() 55 static int disk_mmc_access_status(struct disk_info *disk) in disk_mmc_access_status() argument 57 const struct device *dev = disk->dev; in disk_mmc_access_status() 67 static int disk_mmc_access_read(struct disk_info *disk, uint8_t *buf, in disk_mmc_access_read() argument 70 const struct device *dev = disk->dev; in disk_mmc_access_read() 76 static int disk_mmc_access_write(struct disk_info *disk, const uint8_t *buf, in disk_mmc_access_write() argument 79 const struct device *dev = disk->dev; in disk_mmc_access_write() 85 static int disk_mmc_access_ioctl(struct disk_info *disk, uint8_t cmd, void *buf) in disk_mmc_access_ioctl() argument 87 const struct device *dev = disk->dev; in disk_mmc_access_ioctl()
|
D | sdmmc_subsys.c | 33 static int disk_sdmmc_access_init(struct disk_info *disk) in disk_sdmmc_access_init() argument 35 const struct device *dev = disk->dev; in disk_sdmmc_access_init() 58 static int disk_sdmmc_access_status(struct disk_info *disk) in disk_sdmmc_access_status() argument 60 const struct device *dev = disk->dev; in disk_sdmmc_access_status() 74 static int disk_sdmmc_access_read(struct disk_info *disk, uint8_t *buf, in disk_sdmmc_access_read() argument 77 const struct device *dev = disk->dev; in disk_sdmmc_access_read() 83 static int disk_sdmmc_access_write(struct disk_info *disk, const uint8_t *buf, in disk_sdmmc_access_write() argument 86 const struct device *dev = disk->dev; in disk_sdmmc_access_write() 92 static int disk_sdmmc_access_ioctl(struct disk_info *disk, uint8_t cmd, void *buf) in disk_sdmmc_access_ioctl() argument 94 const struct device *dev = disk->dev; in disk_sdmmc_access_ioctl()
|
D | Kconfig | 11 source "drivers/disk/Kconfig.ram" 12 source "drivers/disk/Kconfig.flash" 13 source "drivers/disk/Kconfig.sdmmc" 14 source "drivers/disk/Kconfig.mmc"
|
D | ramdisk.c | 39 static int disk_ram_access_status(struct disk_info *disk) in disk_ram_access_status() argument 44 static int disk_ram_access_init(struct disk_info *disk) in disk_ram_access_init() argument 49 static int disk_ram_access_read(struct disk_info *disk, uint8_t *buff, in disk_ram_access_read() argument 52 const struct device *dev = disk->dev; in disk_ram_access_read() 67 static int disk_ram_access_write(struct disk_info *disk, const uint8_t *buff, in disk_ram_access_write() argument 70 const struct device *dev = disk->dev; in disk_ram_access_write() 85 static int disk_ram_access_ioctl(struct disk_info *disk, uint8_t cmd, void *buff) in disk_ram_access_ioctl() argument 87 const struct ram_disk_config *config = disk->dev->config; in disk_ram_access_ioctl()
|
/Zephyr-Core-3.5.0/tests/subsys/fs/fat_fs_dual_drive/ |
D | app.overlay | 9 compatible = "zephyr,ram-disk"; 10 disk-name = "RAM"; 16 compatible = "zephyr,ram-disk"; 17 disk-name = "CF";
|
/Zephyr-Core-3.5.0/tests/drivers/disk/disk_performance/ |
D | README.txt | 4 This test is intended to test the performance of disk devices under Zephyr. It 5 was tested with SD cards, but can be used for other disk devices as well. 8 * Setup test: simply sets up the disk, and reads data such as the sector count 14 * Random read test: This test performs random reads across the disk, each one 20 * Random write test: This test performs random writes across the disk, each one
|
/Zephyr-Core-3.5.0/tests/drivers/disk/disk_access/ |
D | README.txt | 4 This test is intended to verify the functionality of disk devices in Zephyr. 5 It is designed to test the NXP USDHC disk driver, but can be used for other 6 disk devices as well. The test has the following phases: 8 * Setup test: Verifies that disk initialization works, as well as testing 9 disk_access_ioctl by querying the disk for its sector size and sector count. 17 The test deliberately will read sectors beyond the end of the disk, and if 24 disk and reads it back to verify correctness. The test first performs writes 26 writes that would be outside the bounds of the disk), then performs multiple
|
/Zephyr-Core-3.5.0/doc/services/storage/disk/ |
D | nvme.rst | 15 - NVMe controller :zephyr_file:`drivers/disk/nvme/nvme_controller.c` 16 - NVMe commands :zephyr_file:`drivers/disk/nvme/nvme_cmd.c` 17 - NVMe namespace :zephyr_file:`drivers/disk/nvme/nvme_namespace.c` 23 accessing each ones through the Disk Access API :zephyr_file:`drivers/disk/nvme/nvme_disk.c`. 25 If a controller exposes more than 1 namespace (disk), it will be possible to raise the amount of bu… 28 Each exposed disk, via it's related disk_info structure, will be distinguished by its name which is… 29 it's related namespace. As such, the disk name follows NVMe naming which is nvme<k>n<n> where k is … 30 and n the namespame number. Most of the time, if only one NVMe disk is plugged into the system, one… 31 an exposed disk. 39 Any board exposing an NVMe disk should provide a DTS overlay to enable its use whitin Zephyr
|
D | access.rst | 9 The disk access API provides access to storage devices. 15 SD cards via SPI. These drivers use disk driver interface and a file system 16 can access the SD cards via disk access API. 29 Zephyr supports SD memory cards via the disk driver API, or via the SDMMC 30 subsystem. This subsystem can be used transparently via the disk driver API, 54 compatible = "zephyr,sdmmc-disk"; 86 compatible = "zephyr,flash-disk"; 88 disk-name = "NAND"; 93 The cache size specified in :dtcompatible:`zephyr,flash-disk` node should be 96 NVMe disk support
|
/Zephyr-Core-3.5.0/samples/subsys/fs/fs_sample/boards/ |
D | nrf52840dk_nrf52840_qspi.overlay | 8 * altered here as external_partition used by the disk is defined 29 compatible = "zephyr,flash-disk"; 31 disk-name = "SD";
|
/Zephyr-Core-3.5.0/samples/subsys/fs/format/ |
D | ramdisk.overlay | 9 compatible = "zephyr,ram-disk"; 10 disk-name = "RAM";
|
D | README.rst | 14 * FAT file system on RAM disk 22 The RAM disk scenario is supported on the mimxrt1064_evk board. 23 To build the RAM disk sample, the configuration `prj_ram.conf` needs to be used by setting `CONF_FI… 33 The RAM disk sample for the MIMXRT1064-EVK board can be build as follow: 48 I: LittleFS version 2.4, disk version 2.0
|
/Zephyr-Core-3.5.0/tests/subsys/fs/multi-fs/ |
D | ramdisk.overlay | 9 compatible = "zephyr,ram-disk"; 10 disk-name = "RAM";
|
/Zephyr-Core-3.5.0/samples/subsys/usb/cdc_acm/ |
D | ramdisk.overlay | 9 compatible = "zephyr,ram-disk"; 10 disk-name = "RAM";
|
/Zephyr-Core-3.5.0/samples/subsys/usb/mass/ |
D | ramdisk.overlay | 9 compatible = "zephyr,ram-disk"; 10 disk-name = "RAM";
|
/Zephyr-Core-3.5.0/tests/subsys/fs/ext2/ |
D | ramdisk_big.overlay | 9 compatible = "zephyr,ram-disk"; 10 disk-name = "RAM";
|
D | ramdisk_small.overlay | 9 compatible = "zephyr,ram-disk"; 10 disk-name = "RAM";
|
/Zephyr-Core-3.5.0/tests/subsys/fs/fat_fs_api/ |
D | ramdisk.overlay | 9 compatible = "zephyr,ram-disk"; 10 disk-name = "RAM";
|
/Zephyr-Core-3.5.0/tests/posix/fs/ |
D | app.overlay | 9 compatible = "zephyr,ram-disk"; 10 disk-name = "RAM";
|
/Zephyr-Core-3.5.0/include/zephyr/usb/class/ |
D | usbd_msc.h | 20 const char *disk; member 28 .disk = STRINGIFY(disk_name), \
|
/Zephyr-Core-3.5.0/tests/subsys/fs/ext2/src/ |
D | utils.c | 13 static int sectors_info(const char *disk, uint32_t *ss, uint32_t *sc) in sectors_info() argument 17 rc = disk_access_ioctl(disk, DISK_IOCTL_GET_SECTOR_COUNT, sc); in sectors_info() 23 rc = disk_access_ioctl(disk, DISK_IOCTL_GET_SECTOR_SIZE, ss); in sectors_info()
|