Home
last modified time | relevance | path

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

1234

/Zephyr-Core-3.5.0/drivers/flash/
Dflash_stm32h7x.c190 struct flash_stm32_sector_t sector; in get_sector() local
198 sector.sector_index = offset / FLASH_SECTOR_SIZE; in get_sector()
200 sector.bank = 1; in get_sector()
201 sector.cr = &regs->CR1; in get_sector()
202 sector.sr = &regs->SR1; in get_sector()
204 sector.sector_index -= BANK2_OFFSET / FLASH_SECTOR_SIZE; in get_sector()
205 sector.bank = 1; in get_sector()
206 sector.cr = &regs->CR2; in get_sector()
207 sector.sr = &regs->SR2; in get_sector()
209 sector.bank = 2; in get_sector()
[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.5.0/subsys/fs/fcb/
Dfcb.c32 int fcb_flash_read(const struct fcb *fcb, const struct flash_sector *sector, in fcb_flash_read() argument
37 if (off + len > sector->fs_size) { in fcb_flash_read()
45 rc = flash_area_read(fcb->fap, sector->fs_off + off, dst, len); in fcb_flash_read()
54 int fcb_flash_write(const struct fcb *fcb, const struct flash_sector *sector, in fcb_flash_write() argument
59 if (off + len > sector->fs_size) { in fcb_flash_write()
67 rc = flash_area_write(fcb->fap, sector->fs_off + off, src, len); in fcb_flash_write()
77 fcb_erase_sector(const struct fcb *fcb, const struct flash_sector *sector) in fcb_erase_sector() argument
85 rc = flash_area_erase(fcb->fap, sector->fs_off, sector->fs_size); in fcb_erase_sector()
97 struct flash_sector *sector; in fcb_init() local
125 sector = &fcb->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.h65 int fcb_erase_sector(const struct fcb *fcb, const struct flash_sector *sector);
69 struct flash_sector *sector);
75 int fcb_sector_hdr_init(struct fcb *fcb, struct flash_sector *sector, uint16_t id);
76 int fcb_sector_hdr_read(struct fcb *fcb, struct flash_sector *sector,
/Zephyr-Core-3.5.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.5.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.5.0/drivers/disk/
Dramdisk.c50 uint32_t sector, uint32_t count) in disk_ram_access_read() argument
54 uint32_t last_sector = sector + count; in disk_ram_access_read()
56 if (last_sector < sector || last_sector > config->sector_count) { in disk_ram_access_read()
62 memcpy(buff, lba_to_address(dev, sector), count * config->sector_size); in disk_ram_access_read()
68 uint32_t sector, uint32_t count) in disk_ram_access_write() argument
72 uint32_t last_sector = sector + count; in disk_ram_access_write()
74 if (last_sector < sector || last_sector > config->sector_count) { in disk_ram_access_write()
80 memcpy(lba_to_address(dev, sector), buff, count * config->sector_size); in disk_ram_access_write()
Dmmc_subsys.c68 uint32_t sector, uint32_t count) in disk_mmc_access_read() argument
73 return mmc_read_blocks(&data->card, buf, sector, count); in disk_mmc_access_read()
77 uint32_t sector, uint32_t count) in disk_mmc_access_write() argument
82 return mmc_write_blocks(&data->card, buf, sector, count); in disk_mmc_access_write()
Dsdmmc_subsys.c75 uint32_t sector, uint32_t count) in disk_sdmmc_access_read() argument
80 return sdmmc_read_blocks(&data->card, buf, sector, count); in disk_sdmmc_access_read()
84 uint32_t sector, uint32_t count) in disk_sdmmc_access_write() argument
89 return sdmmc_write_blocks(&data->card, buf, sector, count); in disk_sdmmc_access_write()
/Zephyr-Core-3.5.0/tests/drivers/disk/disk_access/src/
Dmain.c95 int rc, sector; in test_sector_read() local
103 sector = disk_sector_count / 2 - num_sectors; in test_sector_read()
105 sector = 0; in test_sector_read()
108 rc = read_sector(buf, sector, num_sectors); in test_sector_read()
153 int rc, sector; in test_sector_write() local
161 sector = disk_sector_count / 2 - num_sectors; in test_sector_write()
163 sector = 0; in test_sector_write()
166 rc = write_sector_checked(wbuf, rbuf, sector, num_sectors); in test_sector_write()
/Zephyr-Core-3.5.0/modules/fatfs/
Dzfs_diskio.c44 DRESULT disk_read(BYTE pdrv, BYTE *buff, LBA_t sector, UINT count) in disk_read() argument
48 if (disk_access_read(pdrv_str[pdrv], buff, sector, count) != 0) { in disk_read()
57 DRESULT disk_write(BYTE pdrv, const BYTE *buff, LBA_t sector, UINT count) in disk_write() argument
61 if (disk_access_write(pdrv_str[pdrv], buff, sector, count) != 0) { in disk_write()
/Zephyr-Core-3.5.0/samples/subsys/fs/format/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <128>;
/Zephyr-Core-3.5.0/tests/subsys/fs/multi-fs/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <160>;
/Zephyr-Core-3.5.0/samples/subsys/usb/cdc_acm/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <128>;
/Zephyr-Core-3.5.0/samples/subsys/usb/mass/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <192>;
/Zephyr-Core-3.5.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.5.0/tests/subsys/fs/fat_fs_api/
Dramdisk.overlay11 sector-size = <512>;
12 sector-count = <128>;
/Zephyr-Core-3.5.0/tests/posix/fs/
Dapp.overlay11 sector-size = <512>;
12 sector-count = <160>;
/Zephyr-Core-3.5.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.5.0/tests/drivers/disk/disk_access/boards/
Dqemu_x86_64.overlay25 sector-size = <512>;
26 sector-count = <192>;

1234