Home
last modified time | relevance | path

Searched refs:sector_count (Results 1 – 23 of 23) sorted by relevance

/Zephyr-latest/subsys/fs/ext2/
Dext2_disk_access.c19 uint32_t sector_count; member
26 return disk->sector_count * disk->sector_size; in disk_access_device_size()
81 if (*s_start + *s_count > disk->sector_count) { in disk_prepare_range()
83 *s_start, *s_start + *s_count, disk->sector_count); in disk_prepare_range()
93 uint32_t sector_start, sector_count; in disk_access_read_block() local
96 &sector_start, &sector_count); in disk_access_read_block()
100 return disk_read(disk->name, buf, sector_start, sector_count); in disk_access_read_block()
107 uint32_t sector_start, sector_count; in disk_access_write_block() local
110 &sector_start, &sector_count); in disk_access_write_block()
114 return disk_write(disk->name, buf, sector_start, sector_count); in disk_access_write_block()
[all …]
/Zephyr-latest/drivers/disk/
Dramdisk.c21 const size_t sector_count; member
27 const size_t sector_count; member
51 if (last_sector < sector || last_sector > config->sector_count) { in disk_ram_access_read()
53 last_sector, config->sector_count); in disk_ram_access_read()
69 if (last_sector < sector || last_sector > config->sector_count) { in disk_ram_access_write()
71 last_sector, config->sector_count); in disk_ram_access_write()
88 *(uint32_t *)buff = config->sector_count; in disk_ram_access_ioctl()
131 (DT_INST_PROP(n, sector_size) * DT_INST_PROP(n, sector_count))
140 .sector_count = DT_INST_PROP(n, sector_count), \
147 DT_INST_PROP(n, sector_count)]; \
[all …]
Dflashdisk.c183 uint32_t start_sector, uint32_t sector_count) in sectors_in_range() argument
188 end = start + (sector_count * ctx->sector_size); in sectors_in_range()
195 " outside partition boundary", start_sector, sector_count); in sectors_in_range()
200 uint32_t start_sector, uint32_t sector_count) in disk_flash_access_read() argument
211 if (!sectors_in_range(ctx, start_sector, sector_count)) { in disk_flash_access_read()
216 remaining = (sector_count * ctx->sector_size); in disk_flash_access_read()
347 uint32_t start_sector, uint32_t sector_count) in disk_flash_access_write() argument
361 if (!sectors_in_range(ctx, start_sector, sector_count)) { in disk_flash_access_write()
366 remaining = (sector_count * ctx->sector_size); in disk_flash_access_write()
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dutils.c36 uint32_t sector_count, sector_size; in wipe_partition() local
45 rc = sectors_info(name, &sector_size, &sector_count); in wipe_partition()
71 uint32_t sector_count, sector_size; in get_partition_size() local
73 sectors_info(name, &sector_size, &sector_count); in get_partition_size()
76 return sector_size * (sector_count - CONFIG_EXT2_DISK_STARTING_SECTOR); in get_partition_size()
/Zephyr-latest/tests/subsys/sd/mmc/src/
Dmain.c21 static uint32_t sector_count; variable
45 ret = mmc_ioctl(&card, DISK_IOCTL_GET_SECTOR_COUNT, &sector_count); in ZTEST()
47 TC_PRINT("SD card reports sector count of %d\n", sector_count); in ZTEST()
69 block_addr = sector_count / 2; in ZTEST()
75 block_addr = sector_count; in ZTEST()
79 block_addr = sector_count - 2; in ZTEST()
104 block_addr = sector_count / 2; in ZTEST()
110 block_addr = sector_count; in ZTEST()
114 block_addr = sector_count - 2; in ZTEST()
153 block_addr = (sector_count / 3); in ZTEST()
/Zephyr-latest/tests/subsys/sd/sdmmc/src/
Dmain.c22 static uint32_t sector_count; variable
49 ret = sdmmc_ioctl(&card, DISK_IOCTL_GET_SECTOR_COUNT, &sector_count); in ZTEST()
51 TC_PRINT("SD card reports sector count of %d\n", sector_count); in ZTEST()
74 block_addr = sector_count / 2; in ZTEST()
80 block_addr = sector_count; in ZTEST()
84 block_addr = sector_count - 2; in ZTEST()
110 block_addr = sector_count / 2; in ZTEST()
116 block_addr = sector_count; in ZTEST()
120 block_addr = sector_count - 2; in ZTEST()
162 block_addr = (sector_count / 3); in ZTEST()
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dcommon.c70 uint32_t sector_count; in wipe_partition() local
78 if (disk_access_ioctl(DISK_NAME, DISK_IOCTL_GET_SECTOR_COUNT, &sector_count)) { in wipe_partition()
97 for (uint32_t sector_idx = 0; sector_idx < sector_count; sector_idx += sector_wr_jmp) { in wipe_partition()
/Zephyr-latest/drivers/sdhc/
Dsdhc_renesas_ra.h24 unsigned int sector_count; member
Dsdhc_renesas_ra.c43 extern void r_sdhi_read_write_common(sdhi_instance_ctrl_t *const p_ctrl, uint32_t sector_count,
177 ra_cmd.sector_count = data->blocks; in sdhc_ra_request()
238 priv->sdmmc_ctrl.device.sector_count = in sdhc_ra_request()
244 priv->sdmmc_ctrl.device.sector_count = in sdhc_ra_request()
245 priv->sdmmc_ctrl.device.sector_count * in sdhc_ra_request()
255 priv->sdmmc_ctrl.device.sector_count = 0U; in sdhc_ra_request()
262 priv->sdmmc_ctrl.device.sector_count = in sdhc_ra_request()
340 fsp_err = r_sdhi_transfer_read(&priv->sdmmc_ctrl, ra_cmd.sector_count, in sdhc_ra_request()
347 r_sdhi_read_write_common(&priv->sdmmc_ctrl, ra_cmd.sector_count, ra_cmd.sector_size, in sdhc_ra_request()
368 fsp_err = r_sdhi_transfer_write(&priv->sdmmc_ctrl, ra_cmd.sector_count, in sdhc_ra_request()
[all …]
/Zephyr-latest/subsys/fs/nvs/
Dnvs.c537 *addr += ((fs->sector_count - 1) << ADDR_SECT_SHIFT); in nvs_prev_ate()
575 if ((*addr >> ADDR_SECT_SHIFT) == fs->sector_count) { in nvs_sector_advance()
576 *addr -= (fs->sector_count << ADDR_SECT_SHIFT); in nvs_sector_advance()
767 for (i = 0; i < fs->sector_count; i++) { in nvs_startup()
785 if (closed_sectors == fs->sector_count) { in nvs_startup()
789 fs->sector_size * fs->sector_count); in nvs_startup()
794 i = fs->sector_count; in nvs_startup()
795 addr = ((fs->sector_count - 1) << ADDR_SECT_SHIFT) + in nvs_startup()
803 if (i == fs->sector_count) { in nvs_startup()
992 for (uint16_t i = 0; i < fs->sector_count; i++) { in nvs_clear()
[all …]
/Zephyr-latest/tests/subsys/fs/zms/src/
Dmain.c61 fixture.fs.sector_count = TEST_SECTOR_COUNT; in setup()
94 fixture->fs.sector_count = TEST_SECTOR_COUNT; in after()
240 fixture->fs.sector_count = 2; in ZTEST_F()
334 fixture->fs.sector_count = 3; in ZTEST_F()
467 fixture->fs.sector_count = 3; in ZTEST_F()
516 fixture->fs.sector_count = 3; in ZTEST_F()
632 fixture->fs.sector_count = 3; in ZTEST_F()
683 fixture->fs.sector_count = 3; in ZTEST_F()
725 fixture->fs.sector_count = 3; in ZTEST_F()
768 fixture->fs.sector_count = 4; in ZTEST_F()
[all …]
/Zephyr-latest/tests/subsys/fs/nvs/src/
Dmain.c64 fixture.fs.sector_count = TEST_SECTOR_COUNT; in setup()
97 fixture->fs.sector_count = TEST_SECTOR_COUNT; in after()
260 fixture->fs.sector_count = 2; in ZTEST_F()
362 fixture->fs.sector_count = 3; in ZTEST_F()
539 fixture->fs.sector_count = 3; in ZTEST_F()
591 fixture->fs.sector_count = 3; in ZTEST_F()
702 fixture->fs.sector_count = 3; in ZTEST_F()
752 fixture->fs.sector_count = 3; in ZTEST_F()
794 fixture->fs.sector_count = 3; in ZTEST_F()
838 fixture->fs.sector_count = 3; in ZTEST_F()
[all …]
/Zephyr-latest/include/zephyr/fs/
Dnvs.h53 uint16_t sector_count; member
Dzms.h50 uint32_t sector_count; member
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_msc_scsi.c332 if (disk_access_ioctl(ctx->disk, DISK_IOCTL_GET_SECTOR_COUNT, &ctx->sector_count) != 0) { in update_disk_info()
333 ctx->sector_count = 0; in update_disk_info()
653 r.desc.number_of_blocks = sys_cpu_to_be32(ctx->sector_count); in SCSI_CMD_HANDLER()
677 r.last_lba = sys_cpu_to_be32(ctx->sector_count ? ctx->sector_count - 1 : 0); in SCSI_CMD_HANDLER()
692 if (lba >= ctx->sector_count) { in validate_transfer_length()
702 if ((last_lba >= ctx->sector_count) || (last_lba < lba)) { in validate_transfer_length()
Dusbd_msc_scsi.h74 uint32_t sector_count; member
/Zephyr-latest/samples/subsys/fs/zms/src/
Dmain.c113 fs.sector_count = 3U; in main()
253 for (i = 0; i < fs.sector_count; i++) { in main()
/Zephyr-latest/subsys/fs/zms/
Dzms.c604 *addr += ((uint64_t)(fs->sector_count - 1) << ADDR_SECT_SHIFT); in zms_compute_prev_addr()
647 if ((*addr >> ADDR_SECT_SHIFT) == fs->sector_count) { in zms_sector_advance()
648 *addr -= ((uint64_t)fs->sector_count << ADDR_SECT_SHIFT); in zms_sector_advance()
1042 for (uint32_t i = 0; i < fs->sector_count; i++) { in zms_clear()
1083 for (i = 0; i < fs->sector_count; i++) { in zms_init()
1127 if ((closed_sectors == fs->sector_count) && !zms_magic_exist) { in zms_init()
1135 if (i == fs->sector_count) { in zms_init()
1370 if (fs->sector_count < 2) { in zms_mount()
1384 LOG_INF("%u Sectors of %u bytes", fs->sector_count, fs->sector_size); in zms_mount()
1492 if (gc_count == fs->sector_count) { in zms_write()
[all …]
/Zephyr-latest/subsys/secure_storage/src/its/store/
Dzms.c29 s_zms.sector_count = FIXED_PARTITION_NODE_SIZE(PARTITION_DT_NODE) / s_zms.sector_size; in init_zms()
/Zephyr-latest/samples/subsys/nvs/src/
Dmain.c93 fs.sector_count = 3U; in main()
/Zephyr-latest/subsys/settings/src/
Dsettings_nvs.c423 default_settings_nvs.cf_nvs.sector_count = cnt; in settings_backend_init()
/Zephyr-latest/doc/services/storage/nvs/
Dnvs.rst57 .sector_count = NVS_SECTOR_COUNT,
/Zephyr-latest/doc/services/storage/zms/
Dzms.rst103 properties are correct (sector_size, sector_count ...) then calling the zms_init function to
119 uint32_t sector_count;