Home
last modified time | relevance | path

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

1234

/Zephyr-Core-3.7.0/drivers/flash/
Dflash_stm32h7x.c229 struct flash_stm32_sector_t sector; local
239 sector.sector_index = offset / FLASH_SECTOR_SIZE;
241 sector.bank = 1;
242 sector.cr = &regs->CR1;
243 sector.sr = &regs->SR1;
245 sector.sector_index -= BANK2_OFFSET / FLASH_SECTOR_SIZE;
246 sector.bank = 1;
247 sector.cr = &regs->CR2;
248 sector.sr = &regs->SR2;
250 sector.bank = 2;
[all …]
Dflash_stm32f7x.c73 static int erase_sector(const struct device *dev, uint32_t sector) in erase_sector() argument
93 if (sector > 11) { in erase_sector()
94 sector += 4U; in erase_sector()
97 if (sector > 7) { in erase_sector()
98 sector += 8U; in erase_sector()
106 (sector << FLASH_CR_SNB_Pos) | in erase_sector()
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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()
Dsdmmc_subsys.c70 uint32_t sector, uint32_t count) in disk_sdmmc_access_read() argument
75 return sdmmc_read_blocks(&data->card, buf, sector, count); in disk_sdmmc_access_read()
79 uint32_t sector, uint32_t count) in disk_sdmmc_access_write() argument
84 return sdmmc_write_blocks(&data->card, buf, sector, count); in disk_sdmmc_access_write()
/Zephyr-Core-3.7.0/samples/subsys/usb/cdc_acm/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <128>;
/Zephyr-Core-3.7.0/samples/subsys/usb/mass/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <192>;
/Zephyr-Core-3.7.0/tests/posix/fs/
Dapp.overlay11 sector-size = <512>;
12 sector-count = <160>;
/Zephyr-Core-3.7.0/tests/subsys/fs/fat_fs_api/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <128>;
/Zephyr-Core-3.7.0/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-Core-3.7.0/samples/subsys/fs/format/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <128>;
/Zephyr-Core-3.7.0/tests/subsys/fs/multi-fs/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <160>;
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/tests/drivers/disk/disk_access/boards/
Dqemu_x86_64.overlay20 sector-size = <512>;
21 sector-count = <192>;
/Zephyr-Core-3.7.0/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()
/Zephyr-Core-3.7.0/samples/subsys/fs/fs_sample/boards/
Dnrf52840dk_nrf52840_ram_disk.overlay18 sector-size = <512>;
19 sector-count = <128>;

1234