Lines Matching refs:fwid
367 net_buf_simple_add_mem(&rsp, srv->upload.slot->fwid, in upload_status_rsp_with_progress()
403 const uint8_t *fwid, size_t fwid_len) in set_upload_fwid() argument
405 int err = bt_mesh_dfu_slot_fwid_set(srv->upload.slot, fwid, fwid_len); in set_upload_fwid()
418 err = bt_mesh_dfu_slot_get(fwid, fwid_len, &srv->upload.slot); in set_upload_fwid()
442 const uint8_t *meta, *fwid; in handle_upload_start() local
459 fwid = net_buf_simple_pull_mem(buf, fwid_len); in handle_upload_start()
461 LOG_DBG("Upload Start: size: %d, fwid: %s, metadata: %s", size, bt_hex(fwid, fwid_len), in handle_upload_start()
478 !memcmp(srv->upload.slot->fwid, fwid, fwid_len) && in handle_upload_start()
517 err = set_upload_fwid(srv, ctx, fwid, fwid_len); in handle_upload_start()
551 LOG_DBG("%s", bt_hex(fwid, fwid_len)); in handle_upload_start()
566 uint8_t *fwid; in handle_upload_start_oob() local
576 fwid = net_buf_simple_pull_mem(buf, fwid_len); in handle_upload_start_oob()
580 LOG_HEXDUMP_DBG(fwid, fwid_len, "FWID"); in handle_upload_start_oob()
588 !memcmp(fwid, srv->upload.oob.current_fwid, fwid_len)) { in handle_upload_start_oob()
628 memcpy(srv->upload.oob.current_fwid, fwid, fwid_len); in handle_upload_start_oob()
672 const uint8_t *fwid, size_t fwid_len) in fw_status_rsp() argument
682 if (fwid) { in fw_status_rsp()
683 net_buf_simple_add_mem(&rsp, fwid, fwid_len); in fw_status_rsp()
694 const uint8_t *fwid; in handle_fw_get() local
699 fwid = net_buf_simple_pull_mem(buf, fwid_len); in handle_fw_get()
701 idx = bt_mesh_dfu_slot_get(fwid, fwid_len, &slot); in handle_fw_get()
703 fw_status_rsp(srv, ctx, BT_MESH_DFD_SUCCESS, idx, fwid, in handle_fw_get()
707 fwid, fwid_len); in handle_fw_get()
724 fw_status_rsp(srv, ctx, BT_MESH_DFD_SUCCESS, idx, slot->fwid, in handle_fw_get_by_index()
738 const uint8_t *fwid; in handle_fw_delete() local
742 fwid = net_buf_simple_pull_mem(buf, fwid_len); in handle_fw_delete()
744 enum bt_mesh_dfd_status status = bt_mesh_dfd_srv_fw_delete(srv, &fwid_len, &fwid); in handle_fw_delete()
746 fw_status_rsp(srv, ctx, status, 0xffff, fwid, fwid_len); in handle_fw_delete()
1218 const uint8_t **fwid) in bt_mesh_dfd_srv_fw_delete() argument
1224 *fwid = NULL; in bt_mesh_dfd_srv_fw_delete()
1229 idx = bt_mesh_dfu_slot_get(*fwid, *fwid_len, &slot); in bt_mesh_dfd_srv_fw_delete()
1236 *fwid = NULL; in bt_mesh_dfd_srv_fw_delete()
1260 uint8_t *fwid, size_t fwid_len) in bt_mesh_dfd_srv_oob_check_complete() argument
1281 err = set_upload_fwid(srv, &srv->upload.oob.ctx, fwid, fwid_len); in bt_mesh_dfd_srv_oob_check_complete()