Home
last modified time | relevance | path

Searched refs:flash_device (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/samples/boards/espressif/flash_encryption/src/
Dmain.c27 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/
Dmain.c22 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/
Dbindesc_read.c64 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/
Dmain.c81 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/
Dmain.c101 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/
Dnvs.h59 const struct device *flash_device; member
Dzms.h58 const struct device *flash_device; member
/Zephyr-latest/drivers/flash/
Dflash_stm32l5x.c124 #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/
Dmain.c65 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/
Dmain.c62 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/
Dbindesc.h327 const struct device *flash_device; member
403 const struct device *flash_device);
/Zephyr-latest/subsys/fs/nvs/
Dnvs.c122 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/
Dzms.c20 .flash_device = FIXED_PARTITION_NODE_DEVICE(PARTITION_DT_NODE),
/Zephyr-latest/subsys/settings/src/
Dsettings_nvs.c363 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/
Dzms.c170 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/
Dnvs.rst55 .flash_device = NVS_FLASH_DEVICE,
/Zephyr-latest/doc/services/storage/zms/
Dzms.rst122 const struct device *flash_device;