Home
last modified time | relevance | path

Searched refs:pfa (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dcommon.c43 const struct flash_area *pfa; in wipe_partition() local
44 int rc = flash_area_open(id, &pfa); in wipe_partition()
52 TC_PRINT("Erasing %zu (0x%zx) bytes\n", pfa->fa_size, pfa->fa_size); in wipe_partition()
53 rc = flash_area_flatten(pfa, 0, pfa->fa_size); in wipe_partition()
54 (void)flash_area_close(pfa); in wipe_partition()
/Zephyr-latest/tests/subsys/fs/littlefs/src/
Dtestfs_lfs.c66 const struct flash_area *pfa; in testfs_lfs_wipe_partition() local
67 int rc = flash_area_open(id, &pfa); in testfs_lfs_wipe_partition()
75 TC_PRINT("Erasing %zu (0x%zx) bytes\n", pfa->fa_size, pfa->fa_size); in testfs_lfs_wipe_partition()
76 rc = flash_area_flatten(pfa, 0, pfa->fa_size); in testfs_lfs_wipe_partition()
77 (void)flash_area_close(pfa); in testfs_lfs_wipe_partition()
/Zephyr-latest/samples/subsys/usb/mass/src/
Dmain.c86 const struct flash_area *pfa; in setup_flash() local
91 rc = flash_area_open(id, &pfa); in setup_flash()
93 id, (unsigned int)pfa->fa_off, pfa->fa_dev->name, in setup_flash()
94 (unsigned int)pfa->fa_size); in setup_flash()
98 rc = flash_area_flatten(pfa, 0, pfa->fa_size); in setup_flash()
103 flash_area_close(pfa); in setup_flash()
/Zephyr-latest/samples/subsys/fs/littlefs/src/
Dmain.c239 const struct flash_area *pfa; in littlefs_flash_erase() local
242 rc = flash_area_open(id, &pfa); in littlefs_flash_erase()
250 id, (unsigned int)pfa->fa_off, pfa->fa_dev->name, in littlefs_flash_erase()
251 (unsigned int)pfa->fa_size); in littlefs_flash_erase()
255 rc = flash_area_flatten(pfa, 0, pfa->fa_size); in littlefs_flash_erase()
259 flash_area_close(pfa); in littlefs_flash_erase()