Lines Matching refs:fwid_len

368 				       srv->upload.slot->fwid_len);  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()
441 size_t meta_len, fwid_len, size; in handle_upload_start() local
458 fwid_len = buf->len; in handle_upload_start()
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()
477 if (srv->upload.slot->fwid_len == 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()
565 uint16_t fwid_len; in handle_upload_start_oob() local
575 fwid_len = buf->len; in handle_upload_start_oob()
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()
586 fwid_len == srv->upload.oob.current_fwid_len && in handle_upload_start_oob()
588 !memcmp(fwid, srv->upload.oob.current_fwid, fwid_len)) { in handle_upload_start_oob()
605 fwid_len > CONFIG_BT_MESH_DFU_FWID_MAXLEN) { in handle_upload_start_oob()
628 memcpy(srv->upload.oob.current_fwid, fwid, fwid_len); in handle_upload_start_oob()
629 srv->upload.oob.current_fwid_len = fwid_len; in handle_upload_start_oob()
672 const uint8_t *fwid, size_t fwid_len) in fw_status_rsp() argument
683 net_buf_simple_add_mem(&rsp, fwid, fwid_len); in fw_status_rsp()
695 size_t fwid_len; in handle_fw_get() local
698 fwid_len = buf->len; in handle_fw_get()
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()
704 fwid_len); in handle_fw_get()
707 fwid, fwid_len); in handle_fw_get()
725 slot->fwid_len); in handle_fw_get_by_index()
739 size_t fwid_len; in handle_fw_delete() local
741 fwid_len = buf->len; in handle_fw_delete()
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()
1217 enum bt_mesh_dfd_status bt_mesh_dfd_srv_fw_delete(struct bt_mesh_dfd_srv *srv, size_t *fwid_len, in bt_mesh_dfd_srv_fw_delete() argument
1225 *fwid_len = 0; 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()
1237 *fwid_len = 0; 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()