Home
last modified time | relevance | path

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

12345

/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/drivers/flash/
Dflash_stm32h7x.c476 struct flash_stm32_sector_t sector; local
485 sector.sector_index = offset / FLASH_SECTOR_SIZE;
487 sector.bank = 1;
488 sector.cr = &regs->CR1;
489 sector.sr = &regs->SR1;
491 sector.sector_index -= BANK2_OFFSET / FLASH_SECTOR_SIZE;
492 sector.bank = 1;
493 sector.cr = &regs->CR2;
494 sector.sr = &regs->SR2;
496 sector.bank = 2;
[all …]
/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 sector N+2 (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/dfu-next/
Dapp.overlay11 sector-size = <512>;
12 sector-count = <32>;
/Zephyr-latest/samples/subsys/usb/mass/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <192>;
/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/multi-fs/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <160>;
/Zephyr-latest/tests/subsys/fs/fat_fs_api/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <128>;
/Zephyr-latest/tests/posix/xsi_realtime/
Dapp.overlay11 sector-size = <512>;
12 sector-count = <160>;
/Zephyr-latest/samples/subsys/fs/format/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <128>;
/Zephyr-latest/tests/net/lib/http_server/core/
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.c47 DRESULT disk_read(BYTE pdrv, BYTE *buff, LBA_t sector, UINT count) in disk_read() argument
51 if (disk_access_read(PDRV_STR_ARRAY[pdrv], buff, sector, count) != 0) { in disk_read()
59 DRESULT disk_write(BYTE pdrv, const BYTE *buff, LBA_t sector, UINT count) in disk_write() argument
63 if (disk_access_write(PDRV_STR_ARRAY[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>;

12345