Home
last modified time | relevance | path

Searched +full:disk +full:- +full:name (Results 1 – 25 of 177) sorted by relevance

12345678

/Zephyr-latest/subsys/disk/
Ddisk_access.c5 * SPDX-License-Identifier: Apache-2.0
19 LOG_MODULE_REGISTER(disk);
27 struct disk_info *disk_access_get_di(const char *name) in disk_access_get_di() argument
29 struct disk_info *disk = NULL, *itr; in disk_access_get_di() local
30 size_t name_len = strlen(name); in disk_access_get_di()
40 * name is shorter than the mount point name. in disk_access_get_di()
42 if (strlen(itr->name) != name_len) { in disk_access_get_di()
46 /* Check for disk name match */ in disk_access_get_di()
47 if (strncmp(name, itr->name, name_len) == 0) { in disk_access_get_di()
48 disk = itr; in disk_access_get_di()
[all …]
/Zephyr-latest/subsys/fs/ext2/
Dext2_disk_access.c4 * SPDX-License-Identifier: Apache-2.0
17 const char *name; member
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()
44 LOG_DBG("disk read: (start:%d, num:%d) (ret: %d)", start, num, rc); in disk_read()
[all …]
/Zephyr-latest/include/zephyr/storage/
Ddisk_access.h4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Disk Access layer API
11 * This file contains APIs for disk access.
26 * @brief Disk Access APIs
27 * @defgroup disk_access_interface Disk Access Interface
32 #include <zephyr/drivers/disk.h>
42 * disk or the backing device can do any initialization. Although still
46 * Disk initialization is reference counted, so only the first successful call
47 * to initialize a uninitialized (or previously de-initialized) disk will
48 * actually initialize the disk
[all …]
/Zephyr-latest/drivers/disk/nvme/
Dnvme_disk.c3 * SPDX-License-Identifier: Apache-2.0
14 static int nvme_disk_status(struct disk_info *disk) in nvme_disk_status() argument
19 static int nvme_disk_read(struct disk_info *disk, in nvme_disk_read() argument
24 struct nvme_namespace *ns = CONTAINER_OF(disk->name, in nvme_disk_read()
25 struct nvme_namespace, name[0]); in nvme_disk_read()
33 LOG_WRN("Data buffer pointer needs to be 4-bytes aligned"); in nvme_disk_read()
34 return -EINVAL; in nvme_disk_read()
37 nvme_lock(disk->dev); in nvme_disk_read()
44 ret = -ENOMEM; in nvme_disk_read()
48 nvme_namespace_read_cmd(&request->cmd, ns->id, in nvme_disk_read()
[all …]
/Zephyr-latest/dts/bindings/sd/
Dzephyr,sdmmc-disk.yaml2 Zephyr SDMMC disk node. A binding with this compatible present within an SD
3 host controller device node indicates that an SDMMC disk is attached to that
4 SD bus. This binding will enable that disk to be used with the disk driver
7 compatible: "zephyr,sdmmc-disk"
9 include: [sd-device.yaml]
12 disk-name:
16 Disk name.
Dzephyr,mmc-disk.yaml2 Zephyr MMC disk node. A binding with this compatible present within an SD
4 SD bus. This binding will enable that to be used with the disk driver
7 compatible: "zephyr,mmc-disk"
9 include: [sd-device.yaml]
12 bus-width:
19 - 1
20 - 4
21 - 8
23 disk-name:
27 Disk name.
/Zephyr-latest/dts/bindings/disk/
Dzephyr,ram-disk.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: RAM disk
6 compatible: "zephyr,ram-disk"
8 include: ["base.yaml", "memory-region.yaml"]
11 disk-name:
15 Disk name.
17 sector-size:
22 Disk sector size in bytes.
24 sector-count:
30 ram-region:
[all …]
/Zephyr-latest/tests/subsys/fs/fat_fs_dual_drive/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
9 compatible = "zephyr,ram-disk";
10 disk-name = "RAM";
11 sector-size = <512>;
12 sector-count = <160>;
16 compatible = "zephyr,ram-disk";
17 disk-name = "CF";
18 sector-size = <512>;
19 sector-count = <160>;
/Zephyr-latest/tests/drivers/build_all/disk/
Dspi.dtsi3 * SPDX-License-Identifier: Apache-2.0
7 compatible = "zephyr,sdhc-spi-slot";
10 spi-max-frequency = <24000000>;
13 compatible = "zephyr,sdmmc-disk";
14 disk-name = "SD";
19 compatible = "zephyr,mmc-disk";
20 disk-name = "SD2";
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dutils.c4 * SPDX-License-Identifier: Apache-2.0
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()
19 TC_PRINT("Disk access (sector count) error: %d", rc); in sectors_info()
23 rc = disk_access_ioctl(disk, DISK_IOCTL_GET_SECTOR_SIZE, ss); in sectors_info()
25 TC_PRINT("Disk access (sector size) error: %d", rc); in sectors_info()
35 const char *name = (const char *)id; in wipe_partition() local
38 TC_PRINT("Wiping %s\n", name); in wipe_partition()
40 rc = disk_access_init(name); in wipe_partition()
45 rc = sectors_info(name, &sector_size, &sector_count); in wipe_partition()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Ddisk.h5 * SPDX-License-Identifier: Apache-2.0
10 * @brief Disk Driver Interface
12 * This file contains interface for disk access. Apart from disks, various
22 * @brief Disk Driver Interface
23 * @defgroup disk_driver_interface Disk Driver Interface
42 /** Get the number of sectors in the disk */
44 /** Get the size of a disk SECTOR in bytes */
50 /** Commit any cached read/writes to disk */
52 /** Initialize the disk. This IOCTL must be issued before the disk can be
54 * invocation of this macro on an uninitialized disk will initialize the IO
[all …]
Dloopback_disk.h4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/drivers/disk.h>
14 * @brief Context object for an active loopback disk device
24 * @brief Register a loopback disk device
26 * Registers a new loopback disk deviced backed by a file at the specified path.
30 * until the disk access is unregistered. This is trivially true for file_path and disk_access_name
36 * @param disk_access_name Name of the created disk access (for disk_access_*() functions)
45 * @brief Unregister a previously registered loopback disk device
47 * Cleans up resources used by the disk access.
/Zephyr-latest/tests/drivers/disk/disk_access/boards/
Dnative_sim.overlay4 * SPDX-License-Identifier: Apache-2.0
14 compatible = "fixed-partitions";
15 #address-cells = <1>;
16 #size-cells = <1>;
27 compatible = "zephyr,flash-disk";
29 disk-name = "NAND";
30 cache-size = <4096>;
34 compatible = "zephyr,ram-disk";
35 disk-name = "RAM";
36 sector-size = <512>;
[all …]
/Zephyr-latest/include/zephyr/fs/
Dlittlefs.h4 * SPDX-License-Identifier: Apache-2.0
21 * @brief Get the major part of the littlefs disk version
23 * @param disk_version The disk version of littlefs partition
24 * @return The major part of the littlefs disk version.
29 * @brief Get the minor part of the littlefs disk version
31 * @param disk_version The disk version of littlefs partition
32 * @return The minor part of the littlefs disk version.
74 * @note If you use a non-default configuration for cache size, you
76 * the size constraints on per-file cache allocations.
78 * @param name the name for the structure. The defined object has
[all …]
/Zephyr-latest/doc/services/storage/disk/
Dnvme.rst8 NVMe controllers and disks are supported. Disks can be accessed via the :ref:`Disk Access API <disk…
16 - NVMe controller: :zephyr_file:`drivers/disk/nvme/nvme_controller.c`
17 - NVMe commands: :zephyr_file:`drivers/disk/nvme/nvme_cmd.c`
18 - NVMe namespace: :zephyr_file:`drivers/disk/nvme/nvme_namespace.c`
24 accessing each ones through the Disk Access API :zephyr_file:`drivers/disk/nvme/nvme_disk.c`.
26 If a controller exposes more than 1 namespace (disk), it will be possible to raise the amount of bu…
29 Each exposed disk, via it's related disk_info structure, will be distinguished by its name which is…
30 it's related namespace. As such, the disk name follows NVMe naming which is nvme<k>n<n> where k is …
31 and n the namespame number. Most of the time, if only one NVMe disk is plugged into the system, one…
32 an exposed disk.
[all …]
Daccess.rst3 Disk Access
9 The disk access API provides access to storage devices.
14 Since many disk devices (such as SD cards) are hotpluggable, the disk access
15 API provides IOCTLs to initialize and de-initialize the disk. They are
18 * :c:macro:`DISK_IOCTL_CTRL_INIT`: Initialize the disk. Must be called before
19 additional I/O operations can be run on the disk device. Equivalent to
22 * :c:macro:`DISK_IOCTL_CTRL_DEINIT`: De-initialize the disk. Once this IOCTL
24 the disk can be used for addition I/O operations.
26 Init/deinit IOCTL calls are balanced, so a disk will not de-initialize until
29 It is also possible to force a disk de-initialization by passing a
[all …]
/Zephyr-latest/boards/renesas/rcar_h3ulcb/
Drcar_h3ulcb_r8a77951_a57.dts4 * SPDX-License-Identifier: Apache-2.0
8 /dts-v1/;
11 #include <zephyr/dt-bindings/gpio/gpio.h>
12 #include "rcar_h3ulcb_r8a77951_a57-pinctrl.dtsi"
20 zephyr,shell-uart = &scif2;
24 device_type = "mmio-sram";
33 vcc_sd0: regulator-vcc-sd0 {
34 compatible = "regulator-fixed";
36 regulator-name = "SD0 Vcc";
37 regulator-min-microvolt = <3300000>;
[all …]
/Zephyr-latest/subsys/usb/device/class/
DKconfig.msc2 # SPDX-License-Identifier: Apache-2.0
13 string "Mass storage disk or drive name"
16 Mass storage device disk or drive name
27 default "ZEPHYR USB DISK "
51 Stack size for mass storage disk operations thread
54 module-str = usb mass storage
/Zephyr-latest/dts/bindings/misc/
Dzephyr,flash-disk.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "zephyr,flash-disk"
17 disk-name:
21 Disk name.
23 sector-size:
29 cache-size:
34 adequately chosen. On storage backends with uniform erase-blocks it
35 should be at least the erase-block-size, on storage backends with
36 non-uniform erase-blocks it should be at least the largest
37 erase-block-size. The cache-size property is ignored if the partition
[all …]
/Zephyr-latest/samples/subsys/fs/fs_sample/boards/
Dnrf52840dk_nrf52840_ram_disk.overlay4 * SPDX-License-Identifier: Apache-2.0
10 compatible = "zephyr,ram-disk";
14 disk-name = "SD";
15 /* Disk size is 64kB, 128 sectors of 512B, the minimal
18 sector-size = <512>;
19 sector-count = <128>;
Dnrf52840dk_nrf52840_ram_disk_region.overlay4 * SPDX-License-Identifier: Apache-2.0
8 * of RAM there is. We need some for the Disk, so we need to
11 /delete-node/ &sram0;
25 compatible = "mmio-sram";
30 * used later in disk definition.
33 compatible = "mmio-sram";
40 compatible = "zephyr,ram-disk";
44 disk-name = "SD";
45 /* Disk size is 64kB, 128 sectors of 512B, the minimal
48 sector-size = <512>;
[all …]
/Zephyr-latest/samples/subsys/usb/mass/
Dramdisk.overlay4 * SPDX-License-Identifier: Apache-2.0
9 compatible = "zephyr,ram-disk";
10 disk-name = "RAM";
11 sector-size = <512>;
12 sector-count = <192>;
/Zephyr-latest/samples/subsys/fs/format/
Dramdisk.overlay4 * SPDX-License-Identifier: Apache-2.0
9 compatible = "zephyr,ram-disk";
10 disk-name = "RAM";
11 sector-size = <512>;
12 sector-count = <128>;
/Zephyr-latest/tests/subsys/fs/ext2/
Dramdisk_big.overlay4 * SPDX-License-Identifier: Apache-2.0
9 compatible = "zephyr,ram-disk";
10 disk-name = "RAM";
11 sector-size = <512>;
12 sector-count = <18000>;
Dramdisk_small.overlay4 * SPDX-License-Identifier: Apache-2.0
9 compatible = "zephyr,ram-disk";
10 disk-name = "RAM";
11 sector-size = <512>;
12 sector-count = <400>;

12345678