Home
last modified time | relevance | path

Searched refs:fwid_len (Results 1 – 8 of 8) sorted by relevance

/subsys/bluetooth/mesh/
A Ddfu_slot.c49 const uint8_t *fwid, size_t fwid_len) in slot_eq() argument
51 return (slot->fwid_len == fwid_len) && in slot_eq()
52 !memcmp(fwid, slot->fwid, fwid_len); in slot_eq()
146 slot->slot.fwid_len = 0; in bt_mesh_dfu_slot_reserve()
176 const uint8_t *fwid, size_t fwid_len) in bt_mesh_dfu_slot_fwid_set() argument
190 slot_eq(&slots[i].slot, fwid, fwid_len)) { in bt_mesh_dfu_slot_fwid_set()
196 slot->slot.fwid_len = fwid_len; in bt_mesh_dfu_slot_fwid_set()
197 memcpy(slot->slot.fwid, fwid, fwid_len); in bt_mesh_dfu_slot_fwid_set()
207 slot->slot.fwid_len == 0 || in bt_mesh_dfu_slot_commit()
285 if (slot_eq(&s->slot, fwid, fwid_len)) { in bt_mesh_dfu_slot_get()
[all …]
A Ddfd_srv.c458 fwid_len = buf->len; in handle_upload_start()
477 if (srv->upload.slot->fwid_len == fwid_len && in handle_upload_start()
565 uint16_t fwid_len; in handle_upload_start_oob() local
575 fwid_len = buf->len; in handle_upload_start_oob()
695 size_t fwid_len; in handle_fw_get() local
698 fwid_len = buf->len; in handle_fw_get()
704 fwid_len); in handle_fw_get()
739 size_t fwid_len; in handle_fw_delete() local
741 fwid_len = buf->len; in handle_fw_delete()
1225 *fwid_len = 0; in bt_mesh_dfd_srv_fw_delete()
[all …]
A Ddfu_slot.h61 const uint8_t *fwid, size_t fwid_len);
114 int bt_mesh_dfu_slot_get(const uint8_t *fwid, size_t fwid_len, struct bt_mesh_dfu_slot **slot);
A Ddfd_srv_internal.h38 enum bt_mesh_dfd_status bt_mesh_dfd_srv_fw_delete(struct bt_mesh_dfd_srv *srv, size_t *fwid_len,
A Ddfu_cli.c593 if ((img->fwid_len != cli->xfer.slot->fwid_len) || in target_img_cb()
594 memcmp(cli->xfer.slot->fwid, img->fwid, img->fwid_len)) { in target_img_cb()
860 img.fwid_len = net_buf_simple_pull_u8(buf); in handle_info_status()
861 if (buf->len < img.fwid_len + 1) { in handle_info_status()
866 img.fwid = net_buf_simple_pull_mem(buf, img.fwid_len); in handle_info_status()
874 LOG_DBG("\tImage %u\n\r\tfwid: %s", idx, bt_hex(img.fwid, img.fwid_len)); in handle_info_status()
918 bt_hex(cli->xfer.slot->fwid, cli->xfer.slot->fwid_len)); in handle_info_status()
A Ddfu_srv.c161 entry_len = 2 + srv->imgs[idx].fwid_len; in handle_info_get()
170 net_buf_simple_add_u8(&rsp, srv->imgs[idx].fwid_len); in handle_info_get()
172 srv->imgs[idx].fwid_len); in handle_info_get()
/subsys/bluetooth/mesh/shell/
A Ddfd.c43 uint16_t idx, const uint8_t *fwid, size_t fwid_len) in print_fw_status() argument
49 for (size_t i = 0; i < fwid_len; i++) { in print_fw_status()
322 size_t fwid_len = hex2bin(argv[1], hexlen, fwid, CONFIG_BT_MESH_DFU_FWID_MAXLEN); in cmd_dfd_fw_get() local
324 if (fwid_len != ((hexlen + 1) / 2)) { in cmd_dfd_fw_get()
328 int idx = bt_mesh_dfu_slot_get(fwid, fwid_len, NULL); in cmd_dfd_fw_get()
331 print_fw_status(sh, BT_MESH_DFD_SUCCESS, idx, fwid, fwid_len); in cmd_dfd_fw_get()
333 print_fw_status(sh, BT_MESH_DFD_ERR_FW_NOT_FOUND, 0xffff, fwid, fwid_len); in cmd_dfd_fw_get()
352 print_fw_status(sh, BT_MESH_DFD_SUCCESS, idx, slot->fwid, slot->fwid_len); in cmd_dfd_fw_get_by_idx()
373 if (fwid_len != ((hexlen + 1) / 2)) { in cmd_dfd_fw_delete()
380 &fwid_len, &fwid); in cmd_dfd_fw_delete()
[all …]
A Ddfu.c72 .fwid_len = sizeof(struct shell_dfu_fwid),
380 size_t fwid_len = 0; in cmd_dfu_slot_add() local
399 fwid_len = hex2bin(argv[2], strlen(argv[2]), fwid, in cmd_dfu_slot_add()
401 bt_mesh_dfu_slot_fwid_set(slot, fwid, fwid_len); in cmd_dfu_slot_add()
465 len = bin2hex(slot->fwid, slot->fwid_len, fwid, sizeof(fwid)); in slot_info_print()
619 len = bin2hex(img->fwid, img->fwid_len, fwid, sizeof(fwid)); in dfu_img_cb()

Completed in 29 milliseconds