/Zephyr-Core-3.7.0/subsys/mgmt/mcumgr/grp/img_mgmt/src/ |
D | zephyr_img_mgmt.c | 206 int area_id = img_mgmt_flash_area_id(slot); in img_mgmt_get_unused_slot_area_id() local 208 if (area_id >= 0) { in img_mgmt_get_unused_slot_area_id() 209 return area_id; in img_mgmt_get_unused_slot_area_id() 231 int area_id = -1; in img_mgmt_get_unused_slot_area_id() local 237 area_id = img_mgmt_flash_area_id(slot); in img_mgmt_get_unused_slot_area_id() 240 return area_id; in img_mgmt_get_unused_slot_area_id() 281 int area_id = img_mgmt_flash_area_id(slot); in img_mgmt_erase_slot() local 283 if (area_id < 0) { in img_mgmt_erase_slot() 287 rc = flash_area_open(area_id, &fa); in img_mgmt_erase_slot() 290 LOG_ERR("Failed to open flash area ID %u: %d", area_id, rc); in img_mgmt_erase_slot() [all …]
|
D | img_mgmt.c | 316 g_img_mgmt_state.area_id = -1; in img_mgmt_reset_upload() 555 g_img_mgmt_state.area_id = action.area_id; in img_mgmt_upload() 598 if (flash_img_check(&ctx, &fic, g_img_mgmt_state.area_id) == 0) { in img_mgmt_upload() 670 if (flash_img_init_id(&ctx, g_img_mgmt_state.area_id) == 0) { in img_mgmt_upload() 676 if (flash_img_check(&ctx, &fic, g_img_mgmt_state.area_id) == 0) { in img_mgmt_upload()
|
D | img_mgmt_state.c | 525 int area_id = img_mgmt_flash_area_id(slot); in img_mgmt_set_next_boot_slot_common() local 528 if (flash_area_open(area_id, &fa) != 0) { in img_mgmt_set_next_boot_slot_common()
|
/Zephyr-Core-3.7.0/subsys/dfu/boot/ |
D | mcuboot.c | 63 static int boot_read_v1_header(uint8_t area_id, in boot_read_v1_header() argument 69 rc = flash_area_open(area_id, &fa); in boot_read_v1_header() 109 int boot_read_bank_header(uint8_t area_id, in boot_read_bank_header() argument 125 rc = boot_read_v1_header(area_id, &v1_raw); in boot_read_bank_header() 245 int boot_erase_img_bank(uint8_t area_id) in boot_erase_img_bank() argument 250 rc = flash_area_open(area_id, &fa); in boot_erase_img_bank() 267 ssize_t boot_get_area_trailer_status_offset(uint8_t area_id) in boot_get_area_trailer_status_offset() argument 273 rc = flash_area_open(area_id, &fa); in boot_get_area_trailer_status_offset()
|
/Zephyr-Core-3.7.0/subsys/bluetooth/mesh/ |
D | blob_io_flash.c | 19 static int test_flash_area(uint8_t area_id) in test_flash_area() argument 25 err = flash_area_open(area_id, &area); in test_flash_area() 48 return flash_area_open(flash->area_id, &flash->area); in io_open() 141 uint8_t area_id, off_t offset) in bt_mesh_blob_io_flash_init() argument 145 err = test_flash_area(area_id); in bt_mesh_blob_io_flash_init() 150 flash->area_id = area_id; in bt_mesh_blob_io_flash_init()
|
/Zephyr-Core-3.7.0/include/zephyr/dfu/ |
D | mcuboot.h | 158 int boot_read_bank_header(uint8_t area_id, 264 int boot_erase_img_bank(uint8_t area_id); 272 ssize_t boot_get_area_trailer_status_offset(uint8_t area_id);
|
D | flash_img.h | 57 int flash_img_init_id(struct flash_img_context *ctx, uint8_t area_id); 112 uint8_t area_id);
|
/Zephyr-Core-3.7.0/include/zephyr/bluetooth/mesh/ |
D | blob_io_flash.h | 25 uint8_t area_id; member 47 uint8_t area_id, off_t offset);
|
/Zephyr-Core-3.7.0/subsys/dfu/img_util/ |
D | flash_img.c | 78 int flash_img_init_id(struct flash_img_context *ctx, uint8_t area_id) in flash_img_init_id() argument 83 rc = flash_area_open(area_id, in flash_img_init_id() 104 uint8_t area_id) in flash_img_check() argument 113 rc = flash_area_open(area_id, in flash_img_check()
|
/Zephyr-Core-3.7.0/include/zephyr/mgmt/mcumgr/grp/img_mgmt/ |
D | img_mgmt.h | 195 int area_id; member 212 int area_id; member
|
/Zephyr-Core-3.7.0/drivers/disk/ |
D | flashdisk.c | 30 const unsigned int area_id; member 163 rc = flash_area_open(ctx->area_id, &fap); in disk_flash_access_init() 165 LOG_ERR("Flash area %u open error %d", ctx->area_id, rc); in disk_flash_access_init() 488 .area_id = DT_FIXED_PARTITION_ID(PARTITION_PHANDLE(n)), \
|
/Zephyr-Core-3.7.0/subsys/bluetooth/mesh/shell/ |
D | blob.c | 233 uint8_t area_id; in cmd_flash_stream_set() local 241 area_id = shell_strtoul(argv[1], 0, &err); in cmd_flash_stream_set() 252 err = bt_mesh_blob_io_flash_init(&blob_flash_stream, area_id, offset); in cmd_flash_stream_set() 259 shell_print(sh, "Flash stream is initialized with area %u, offset: %u", area_id, offset); in cmd_flash_stream_set()
|
/Zephyr-Core-3.7.0/subsys/fs/ |
D | littlefs_fs.c | 652 unsigned int area_id = POINTER_TO_UINT(dev_id); in littlefs_flash_init() local 658 ret = flash_area_open(area_id, fap); in littlefs_flash_init() 660 LOG_ERR("can't open flash area %d", area_id); in littlefs_flash_init() 664 LOG_DBG("FS area %u at 0x%x for %u bytes", area_id, in littlefs_flash_init()
|