Home
last modified time | relevance | path

Searched +full:sector +full:- +full:count (Results 1 – 25 of 83) sorted by relevance

1234

/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/drivers/disk/
Dramdisk.c5 * SPDX-License-Identifier: Apache-2.0
34 const struct ram_disk_config *config = dev->config; in lba_to_address()
36 return &config->buf[lba * config->sector_size]; in lba_to_address()
45 uint32_t sector, uint32_t count) in disk_ram_access_read() argument
47 const struct device *dev = disk->dev; in disk_ram_access_read()
48 const struct ram_disk_config *config = dev->config; in disk_ram_access_read()
49 uint32_t last_sector = sector + count; in disk_ram_access_read()
51 if (last_sector < sector || last_sector > config->sector_count) { in disk_ram_access_read()
52 LOG_ERR("Sector %" PRIu32 " is outside the range %zu", in disk_ram_access_read()
53 last_sector, config->sector_count); in disk_ram_access_read()
[all …]
Dmmc_subsys.c4 * SPDX-License-Identifier: Apache-2.0
36 const struct device *dev = disk->dev; in disk_mmc_access_init()
37 const struct mmc_config *cfg = dev->config; in disk_mmc_access_init()
38 struct mmc_data *data = dev->data; in disk_mmc_access_init()
41 ret = sd_init(cfg->host_controller, &data->card); in disk_mmc_access_init()
43 data->status = SD_ERROR; in disk_mmc_access_init()
46 data->status = SD_OK; in disk_mmc_access_init()
52 const struct device *dev = disk->dev; in disk_mmc_access_status()
53 struct mmc_data *data = dev->data; in disk_mmc_access_status()
55 if (data->status == SD_OK) { in disk_mmc_access_status()
[all …]
Dsdmmc_subsys.c4 * SPDX-License-Identifier: Apache-2.0
35 const struct device *dev = disk->dev; in disk_sdmmc_access_init()
36 const struct sdmmc_config *cfg = dev->config; in disk_sdmmc_access_init()
37 struct sdmmc_data *data = dev->data; in disk_sdmmc_access_init()
40 if (!sd_is_card_present(cfg->host_controller)) { in disk_sdmmc_access_init()
44 ret = sd_init(cfg->host_controller, &data->card); in disk_sdmmc_access_init()
46 data->status = SD_ERROR; in disk_sdmmc_access_init()
49 data->status = SD_OK; in disk_sdmmc_access_init()
55 const struct device *dev = disk->dev; in disk_sdmmc_access_status()
56 const struct sdmmc_config *cfg = dev->config; in disk_sdmmc_access_status()
[all …]
/Zephyr-latest/modules/fatfs/
Dzfs_diskio.c2 * Copyright (c) 2018-2021 Zephyr contributors
6 * SPDX-License-Identifier: Apache-2.0
10 * https://github.com/zephyrproject-rtos/fatfs/blob/master/diskio.c
24 __ASSERT(pdrv < ARRAY_SIZE(pdrv_str), "pdrv out-of-range\n"); in disk_status()
41 /* Read Sector(s) */
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()
54 /* Write Sector(s) */
55 DRESULT disk_write(BYTE pdrv, const BYTE *buff, LBA_t sector, UINT count) in disk_write() argument
[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>;
/Zephyr-latest/tests/subsys/fs/fat_fs_api/
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/lib/c_lib/stdio/
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>;
/Zephyr-latest/tests/subsys/fs/multi-fs/
Dramdisk.overlay4 * SPDX-License-Identifier: Apache-2.0
9 compatible = "zephyr,ram-disk";
10 disk-name = "RAM";
11 sector-size = <512>;
12 sector-count = <160>;
/Zephyr-latest/tests/posix/fs/
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>;
/Zephyr-latest/dts/bindings/disk/
Dzephyr,ram-disk.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "zephyr,ram-disk"
8 include: ["base.yaml", "memory-region.yaml"]
11 disk-name:
17 sector-size:
22 Disk sector size in bytes.
24 sector-count:
30 ram-region:
/Zephyr-latest/tests/drivers/disk/disk_access/boards/
Dqemu_x86_64.overlay1 /* SPDX-License-Identifier: Apache-2.0 */
3 #include <zephyr/dt-bindings/pcie/pcie.h>
8 compatible = "nvme-controller";
10 vendor-id = <0x1B36>;
11 device-id = <0x0010>;
18 compatible = "zephyr,ram-disk";
19 disk-name = "RAM";
20 sector-size = <512>;
21 sector-count = <192>;
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/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";
18 sector-size = <512>;
19 sector-count = <128>;
/Zephyr-latest/tests/drivers/disk/disk_performance/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
25 /* Assume the largest sector we will encounter is 512 bytes */
68 zassert_equal(rc, 0, "Disk ioctl get sector count failed"); in test_setup()
74 zassert_equal(rc, 0, "Disk ioctl get sector size failed"); in test_setup()
75 TC_PRINT("Disk reports sector size %u\n", cmd_buf); in test_setup()
78 /* Assume sector size is 512 bytes, it will speed up calculations later */ in test_setup()
124 /* Start with single sector read */ in ZTEST()
127 TC_PRINT("Average read speed over one sector: %"PRIu64" KiB/s\n", in ZTEST()
187 /* Start with single sector write */ in ZTEST()
190 TC_PRINT("Average write speed over one sector: %"PRIu64" KiB/s\n", in ZTEST()
[all …]
/Zephyr-latest/samples/subsys/fs/fs_sample/
Dsample.yaml6 - fatfs
15 - "Block count"
16 - "Sector size"
17 - "Memory Size"
18 - "Disk mounted"
23 - arduino_spi
24 - arduino_gpio
25 - arduino_i2c
27 - stm32f769i_disco
28 - pan1781_evb
[all …]
/Zephyr-latest/doc/services/storage/zms/
Dzms.rst5 Zephyr Memory Storage is a new key-value storage system that is designed to work with all types
6 of non-volatile storage technologies. It supports classical on-chip NOR flash as well as new
12 ZMS divides the memory space into sectors (minimum 2), and each sector is filled with key-value
15 The key-value pair is divided into two parts:
17 - The key part is written in an ATE (Allocation Table Entry) called "ID-ATE" which is stored
18 starting from the bottom of the sector
19 - The value part is defined as "DATA" and is stored raw starting from the top of the sector
21 Additionally, for each sector we store at the last positions Header-ATEs which are ATEs that
22 are needed for the sector to describe its status (closed, open) and the current version of ZMS.
24 When the current sector is full we verify first that the following sector is empty, we garbage
[all …]
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dcommon.c5 * SPDX-License-Identifier: Apache-2.0
52 TC_PRINT("Erasing %zu (0x%zx) bytes\n", pfa->fa_size, pfa->fa_size); in wipe_partition()
53 rc = flash_area_flatten(pfa, 0, pfa->fa_size); in wipe_partition()
79 TC_PRINT("Failed to get disk "DISK_NAME" sector count\n"); in wipe_partition()
83 TC_PRINT("Failed to get disk "DISK_NAME" sector size\n"); in wipe_partition()
88 TC_PRINT("Predefined \"erase_buffer\" to small to handle single sector\n"); in wipe_partition()
94 TC_PRINT("For "DISK_NAME" using sector write size %"PRIu32" to write %"PRIu32" at once\n", in wipe_partition()
99 TC_PRINT("Failed to \"erase\" sector %"PRIu32" to "DISK_NAME"\n", in wipe_partition()
/Zephyr-latest/samples/subsys/fs/fs_sample/src/
Dmain.c6 * SPDX-License-Identifier: Apache-2.0
79 if (base >= (sizeof(path) - SOME_REQUIRED_LEN)) { in create_some_entries()
129 LOG_ERR("Unable to get sector count"); in main()
132 LOG_INF("Block count %u", block_count); in main()
136 LOG_ERR("Unable to get sector size"); in main()
139 printk("Sector size %u\n", block_size); in main()
200 int count = 0; in lsdir() local
216 /* entry.name[0] == 0 means end-of-dir */ in lsdir()
227 count++; in lsdir()
233 res = count; in lsdir()
/Zephyr-latest/drivers/ethernet/
Deth_lan865x_priv.h4 * SPDX-License-Identifier: Apache-2.0
25 /* Memory Map Sector (MMS) 1 (0x1) */
41 /* Memory Map Sector (MMS) 10 (0xA) */
45 bool enable : 1; /* 1 - PLCA enable, 0 - CSMA/CD enable */
47 uint8_t node_count; /* PLCA node count range: 1 to 255 */
48 uint8_t burst_count; /* PLCA burst count range: 0x0 to 0xFF */
63 bool tx_cut_through_mode; /* 1 - tx cut through, 0 - Store and forward */
64 bool rx_cut_through_mode; /* 1 - rx cut through, 0 - Store and forward */
/Zephyr-latest/tests/subsys/usb/device_next/
Dbuild_all.overlay4 * SPDX-License-Identifier: Apache-2.0
7 /delete-node/ &zephyr_udc0;
9 #include <dt-bindings/usb/audio.h>
15 full-speed;
16 audio-function = <AUDIO_FUNCTION_OTHER>;
19 compatible = "zephyr,uac2-clock-source";
20 clock-type = "internal-programmable";
21 frequency-control = "host-programmable";
22 sampling-frequencies = <48000>;
26 compatible = "zephyr,uac2-input-terminal";
[all …]
/Zephyr-latest/tests/drivers/disk/disk_access/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
46 /* Assume the largest sector we will encounter is 512 bytes */
49 /* Sector counts to read */
61 /* + 4 to make sure the second buffer is dword-aligned for NVME */
115 zassert_equal(rc, 0, "Disk ioctl get sector count failed"); in test_setup()
121 zassert_equal(rc, 0, "Disk ioctl get sector size failed"); in test_setup()
122 TC_PRINT("Disk reports sector size %u\n", cmd_buf); in test_setup()
125 /* We could allocate memory once we know the sector size, but instead in test_setup()
149 int rc, sector; in test_sector_read() local
152 /* Read from disk sector 0*/ in test_sector_read()
[all …]

1234