/Zephyr-latest/samples/boards/espressif/flash_encryption/src/ |
D | main.c | 27 const struct device *flash_device; in main() local 30 flash_device = DEVICE_DT_GET(DT_CHOSEN(zephyr_flash_controller)); in main() 31 if (!device_is_ready(flash_device)) { in main() 32 printk("%s: device not ready.\n", flash_device->name); in main() 42 flash_erase(flash_device, address, 4096); in main() 45 flash_write(flash_device, address, &buffer, sizeof(buffer)); in main() 54 flash_read(flash_device, address, &buffer, sizeof(buffer)); in main()
|
/Zephyr-latest/samples/boards/espressif/flash_memory_mapped/src/ |
D | main.c | 22 const struct device *flash_device; in main() local 28 flash_device = DEVICE_DT_GET(DT_CHOSEN(zephyr_flash_controller)); in main() 29 if (!device_is_ready(flash_device)) { in main() 30 printk("%s: device not ready.\n", flash_device->name); in main() 39 flash_erase(flash_device, address, size); in main() 47 flash_write(flash_device, address, buffer, 32); in main() 51 flash_read(flash_device, address, buffer, 32); in main()
|
/Zephyr-latest/subsys/bindesc/ |
D | bindesc_read.c | 64 flash_retval = flash_read(handle->flash_device, (size_t)address, in get_entry() 77 flash_retval = flash_read(handle->flash_device, in get_entry() 133 const struct device *flash_device) in bindesc_open_flash() argument 137 retval = flash_read(flash_device, offset, handle->buffer, sizeof(BINDESC_MAGIC)); in bindesc_open_flash() 150 handle->flash_device = flash_device; in bindesc_open_flash()
|
/Zephyr-latest/samples/subsys/nvs/src/ |
D | main.c | 81 fs.flash_device = NVS_PARTITION_DEVICE; in main() 82 if (!device_is_ready(fs.flash_device)) { in main() 83 printk("Flash device %s is not ready\n", fs.flash_device->name); in main() 87 rc = flash_get_page_info_by_offs(fs.flash_device, fs.offset, &info); in main()
|
/Zephyr-latest/samples/subsys/fs/zms/src/ |
D | main.c | 101 fs.flash_device = ZMS_PARTITION_DEVICE; in main() 102 if (!device_is_ready(fs.flash_device)) { in main() 103 printk("Storage device %s is not ready\n", fs.flash_device->name); in main() 107 rc = flash_get_page_info_by_offs(fs.flash_device, fs.offset, &info); in main()
|
/Zephyr-latest/include/zephyr/fs/ |
D | nvs.h | 59 const struct device *flash_device; member
|
D | zms.h | 58 const struct device *flash_device; member
|
/Zephyr-latest/drivers/flash/ |
D | flash_stm32l5x.c | 124 #define stm32_flash_has_2_banks(flash_device) true argument 126 #define stm32_flash_has_2_banks(flash_device) \ argument 127 (((FLASH_STM32_REGS(flash_device)->OPTR & FLASH_STM32_DBANK) \
|
/Zephyr-latest/tests/subsys/fs/nvs/src/ |
D | main.c | 65 fixture.fs.flash_device = flash_area_get_device(fa); in setup() 674 err = flash_write(fixture->fs.flash_device, fixture->fs.offset + fixture->fs.sector_size - in ZTEST_F() 680 err = flash_write(fixture->fs.flash_device, fixture->fs.offset + fixture->fs.sector_size - in ZTEST_F() 686 err = flash_write(fixture->fs.flash_device, fixture->fs.offset, &data, sizeof(data)); in ZTEST_F() 690 err = flash_write(fixture->fs.flash_device, fixture->fs.offset + sizeof(data), &data_crc, in ZTEST_F() 696 err = flash_write(fixture->fs.flash_device, in ZTEST_F() 734 err = flash_write(fixture->fs.flash_device, fixture->fs.offset + fixture->fs.sector_size - in ZTEST_F() 740 err = flash_write(fixture->fs.flash_device, in ZTEST_F() 746 err = flash_write(fixture->fs.flash_device, in ZTEST_F() 977 err = flash_write(fixture->fs.flash_device, in ZTEST_F()
|
/Zephyr-latest/tests/subsys/fs/zms/src/ |
D | main.c | 62 fixture.fs.flash_device = flash_area_get_device(fa); in setup() 608 err = flash_write(fixture->fs.flash_device, in ZTEST_F() 614 err = flash_write(fixture->fs.flash_device, in ZTEST_F() 620 err = flash_write(fixture->fs.flash_device, in ZTEST_F() 626 err = flash_write(fixture->fs.flash_device, in ZTEST_F() 665 err = flash_write(fixture->fs.flash_device, in ZTEST_F() 671 err = flash_write(fixture->fs.flash_device, in ZTEST_F() 677 err = flash_write(fixture->fs.flash_device, in ZTEST_F()
|
/Zephyr-latest/include/zephyr/ |
D | bindesc.h | 327 const struct device *flash_device; member 403 const struct device *flash_device);
|
/Zephyr-latest/subsys/fs/nvs/ |
D | nvs.c | 122 rc = flash_write(fs->flash_device, offset, data8, blen); in nvs_flash_al_wrt() 136 rc = flash_write(fs->flash_device, offset, buf, in nvs_flash_al_wrt() 155 rc = flash_read(fs->flash_device, offset, data, len); in nvs_flash_rd() 347 rc = flash_flatten(fs->flash_device, offset, fs->sector_size); in nvs_flash_erase_sector() 788 rc = flash_flatten(fs->flash_device, fs->offset, in nvs_startup() 1014 fs->flash_parameters = flash_get_parameters(fs->flash_device); in nvs_mount() 1020 write_block_size = flash_get_write_block_size(fs->flash_device); in nvs_mount() 1029 rc = flash_get_page_info_by_offs(fs->flash_device, fs->offset, &info); in nvs_mount()
|
/Zephyr-latest/subsys/secure_storage/src/its/store/ |
D | zms.c | 20 .flash_device = FIXED_PARTITION_NODE_DEVICE(PARTITION_DT_NODE),
|
/Zephyr-latest/subsys/settings/src/ |
D | settings_nvs.c | 363 cf->cf_nvs.flash_device = cf->flash_dev; in settings_nvs_backend_init() 364 if (cf->cf_nvs.flash_device == NULL) { in settings_nvs_backend_init()
|
/Zephyr-latest/subsys/fs/zms/ |
D | zms.c | 170 rc = flash_write(fs->flash_device, offset, data8, blen); in zms_flash_al_wrt() 184 rc = flash_write(fs->flash_device, offset, buf, in zms_flash_al_wrt() 199 return flash_read(fs->flash_device, offset, data, len); in zms_flash_rd() 351 rc = flash_erase(fs->flash_device, offset, fs->sector_size); in zms_flash_erase_sector() 1331 fs->flash_parameters = flash_get_parameters(fs->flash_device); in zms_mount() 1350 rc = flash_get_page_info_by_offs(fs->flash_device, fs->offset, &info); in zms_mount()
|
/Zephyr-latest/doc/services/storage/nvs/ |
D | nvs.rst | 55 .flash_device = NVS_FLASH_DEVICE,
|
/Zephyr-latest/doc/services/storage/zms/ |
D | zms.rst | 122 const struct device *flash_device;
|