Home
last modified time | relevance | path

Searched refs:sector (Results 1 – 25 of 99) sorted by relevance

1234

/Zephyr-latest/drivers/flash/
Dflash_stm32h7x.c284 struct flash_stm32_sector_t sector; local
293 sector.sector_index = offset / FLASH_SECTOR_SIZE;
295 sector.bank = 1;
296 sector.cr = &regs->CR1;
297 sector.sr = &regs->SR1;
299 sector.sector_index -= BANK2_OFFSET / FLASH_SECTOR_SIZE;
300 sector.bank = 1;
301 sector.cr = &regs->CR2;
302 sector.sr = &regs->SR2;
304 sector.bank = 2;
[all …]
/Zephyr-latest/subsys/fs/fcb/
Dfcb.c32 int fcb_flash_read(const struct fcb *fcbp, const struct flash_sector *sector, off_t off, in fcb_flash_read() argument
37 if (off + len > sector->fs_size) { in fcb_flash_read()
45 rc = flash_area_read(fcbp->fap, sector->fs_off + off, dst, len); in fcb_flash_read()
54 int fcb_flash_write(const struct fcb *fcbp, const struct flash_sector *sector, off_t off, in fcb_flash_write() argument
59 if (off + len > sector->fs_size) { in fcb_flash_write()
67 rc = flash_area_write(fcbp->fap, sector->fs_off + off, src, len); in fcb_flash_write()
76 int fcb_erase_sector(const struct fcb *fcbp, const struct flash_sector *sector) in fcb_erase_sector() argument
84 rc = flash_area_flatten(fcbp->fap, sector->fs_off, sector->fs_size); in fcb_erase_sector()
94 struct flash_sector *sector; in fcb_init() local
122 sector = &fcbp->f_sectors[i]; in fcb_init()
[all …]
Dfcb_append.c42 struct flash_sector *sector; in fcb_append_to_scratch() local
45 sector = fcb_new_sector(fcb, 0); in fcb_append_to_scratch()
46 if (!sector) { in fcb_append_to_scratch()
49 rc = fcb_sector_hdr_init(fcb, sector, fcb->f_active_id + 1); in fcb_append_to_scratch()
53 fcb->f_active.fe_sector = sector; in fcb_append_to_scratch()
62 struct flash_sector *sector; in fcb_append() local
86 sector = fcb_new_sector(fcb, fcb->f_scratch_cnt); in fcb_append()
87 if (!sector || (sector->fs_size < in fcb_append()
92 rc = fcb_sector_hdr_init(fcb, sector, fcb->f_active_id + 1); in fcb_append()
96 fcb->f_active.fe_sector = sector; in fcb_append()
Dfcb_rotate.c14 struct flash_sector *sector; in fcb_rotate() local
32 sector = fcb_getnext_sector(fcb, fcb->f_oldest); in fcb_rotate()
33 rc = fcb_sector_hdr_init(fcb, sector, fcb->f_active_id + 1); in fcb_rotate()
37 fcb->f_active.fe_sector = sector; in fcb_rotate()
Dfcb_walk.c16 fcb_walk(struct fcb *fcb, struct flash_sector *sector, fcb_walk_cb cb, in fcb_walk() argument
22 entry_ctx.loc.fe_sector = sector; in fcb_walk()
32 if (sector && entry_ctx.loc.fe_sector != sector) { in fcb_walk()
Dfcb_getnext.c34 fcb_getnext_sector(struct fcb *fcb, struct flash_sector *sector) in fcb_getnext_sector() argument
36 sector++; in fcb_getnext_sector()
37 if (sector >= &fcb->f_sectors[fcb->f_sector_cnt]) { in fcb_getnext_sector()
38 sector = &fcb->f_sectors[0]; in fcb_getnext_sector()
40 return sector; in fcb_getnext_sector()
Dfcb_priv.h69 int fcb_erase_sector(const struct fcb *fcbp, const struct flash_sector *sector);
72 struct flash_sector *fcb_getnext_sector(struct fcb *fcbp, struct flash_sector *sector);
78 int fcb_sector_hdr_init(struct fcb *fcbp, struct flash_sector *sector, uint16_t id);
79 int fcb_sector_hdr_read(struct fcb *fcbp, struct flash_sector *sector, struct fcb_disk_area *fdap);
/Zephyr-latest/tests/subsys/fs/fat_fs_dual_drive/
Dapp.overlay11 sector-size = <512>;
12 sector-count = <160>;
18 sector-size = <512>;
19 sector-count = <160>;
/Zephyr-latest/tests/drivers/disk/disk_performance/
DREADME.txt8 * Setup test: simply sets up the disk, and reads data such as the sector count
9 and sector size
12 sector, than over multiple sequential sectors.
15 sector in length.
18 one sector, than over multiple sequential sectors.
21 sector in length
/Zephyr-latest/drivers/disk/
Dramdisk.c45 uint32_t sector, uint32_t count) in disk_ram_access_read() argument
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()
57 memcpy(buff, lba_to_address(dev, sector), count * config->sector_size); in disk_ram_access_read()
63 uint32_t sector, uint32_t count) in disk_ram_access_write() argument
67 uint32_t last_sector = sector + count; in disk_ram_access_write()
69 if (last_sector < sector || last_sector > config->sector_count) { in disk_ram_access_write()
75 memcpy(lba_to_address(dev, sector), buff, count * config->sector_size); in disk_ram_access_write()
/Zephyr-latest/doc/services/storage/zms/
Dzms.rst12 ZMS divides the memory space into sectors (minimum 2), and each sector is filled with key-value
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
25 collect the N+2 sector (where N is the current sector number) by moving the valid ATEs to the
26 N+1 empty sector, we erase the garbage collected sector and then we close the current sector by
28 Afterwards we move forward to the next sector and start writing entries again.
31 the first sector after garbage collecting it and erasing its content.
[all …]
/Zephyr-latest/tests/lib/c_lib/stdio/
Dapp.overlay11 sector-size = <512>;
12 sector-count = <160>;
/Zephyr-latest/samples/subsys/usb/mass/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <192>;
/Zephyr-latest/samples/subsys/fs/format/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <128>;
/Zephyr-latest/tests/subsys/fs/ext2/
Dramdisk_big.overlay11 sector-size = <512>;
12 sector-count = <18000>;
Dramdisk_small.overlay11 sector-size = <512>;
12 sector-count = <400>;
/Zephyr-latest/tests/subsys/fs/fat_fs_api/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <128>;
/Zephyr-latest/tests/subsys/fs/multi-fs/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <160>;
/Zephyr-latest/tests/posix/fs/
Dapp.overlay11 sector-size = <512>;
12 sector-count = <160>;
/Zephyr-latest/modules/fatfs/
Dzfs_diskio.c42 DRESULT disk_read(BYTE pdrv, BYTE *buff, LBA_t sector, UINT count) in disk_read() argument
46 if (disk_access_read(pdrv_str[pdrv], buff, sector, count) != 0) { in disk_read()
55 DRESULT disk_write(BYTE pdrv, const BYTE *buff, LBA_t sector, UINT count) in disk_write() argument
59 if (disk_access_write(pdrv_str[pdrv], buff, sector, count) != 0) { in disk_write()
/Zephyr-latest/tests/drivers/disk/disk_access/src/
Dmain.c149 int rc, sector; in test_sector_read() local
157 sector = disk_sector_count / 2 - num_sectors; in test_sector_read()
159 sector = 0; in test_sector_read()
162 rc = read_sector(buf, sector, num_sectors); in test_sector_read()
207 int rc, sector; in test_sector_write() local
215 sector = disk_sector_count / 2 - num_sectors; in test_sector_write()
217 sector = 0; in test_sector_write()
220 rc = write_sector_checked(wbuf, rbuf, sector, num_sectors); in test_sector_write()
/Zephyr-latest/tests/drivers/disk/disk_access/boards/
Dqemu_x86_64.overlay20 sector-size = <512>;
21 sector-count = <192>;
/Zephyr-latest/samples/subsys/fs/fs_sample/boards/
Dnrf52840dk_nrf52840_ram_disk.overlay18 sector-size = <512>;
19 sector-count = <128>;
/Zephyr-latest/tests/drivers/build_all/flash/
Dspi.dtsi13 sector-size = <1>;
14 sector-0a-pages = <1>;
/Zephyr-latest/tests/drivers/disk/disk_performance/src/
Dmain.c205 uint32_t sector; in ZTEST() local
215 sector = sys_rand32_get() / ((UINT32_MAX / disk_sector_count) + 1); in ZTEST()
216 chosen_sectors[i] = sector; in ZTEST()
249 uint32_t sector; in ZTEST() local
259 sector = sys_rand32_get() / ((UINT32_MAX / disk_sector_count) + 1); in ZTEST()
260 chosen_sectors[i] = sector; in ZTEST()
263 sector, 1); in ZTEST()

1234