Lines Matching refs:slot

378 	struct bt_mesh_dfu_slot *slot;  in cmd_dfu_slot_add()  local
393 slot = bt_mesh_dfu_slot_reserve(); in cmd_dfu_slot_add()
395 if (!slot) { in cmd_dfu_slot_add()
402 bt_mesh_dfu_slot_fwid_set(slot, fwid, fwid_len); in cmd_dfu_slot_add()
409 bt_mesh_dfu_slot_info_set(slot, size, metadata, metadata_len); in cmd_dfu_slot_add()
411 err = bt_mesh_dfu_slot_commit(slot); in cmd_dfu_slot_add()
414 bt_mesh_dfu_slot_release(slot); in cmd_dfu_slot_add()
418 shell_print(sh, "Slot added. Index: %u", bt_mesh_dfu_slot_img_idx_get(slot)); in cmd_dfu_slot_add()
425 const struct bt_mesh_dfu_slot *slot; in cmd_dfu_slot_del() local
435 slot = bt_mesh_dfu_slot_at(idx); in cmd_dfu_slot_del()
436 if (!slot) { in cmd_dfu_slot_del()
441 err = bt_mesh_dfu_slot_del(slot); in cmd_dfu_slot_del()
459 static void slot_info_print(const struct shell *sh, const struct bt_mesh_dfu_slot *slot, in slot_info_print() argument
466 len = bin2hex(slot->fwid, slot->fwid_len, fwid, sizeof(fwid)); in slot_info_print()
468 len = bin2hex(slot->metadata, slot->metadata_len, metadata, in slot_info_print()
477 shell_print(sh, "\tSize: %u bytes", slot->size); in slot_info_print()
484 const struct bt_mesh_dfu_slot *slot; in cmd_dfu_slot_get() local
494 slot = bt_mesh_dfu_slot_at(idx); in cmd_dfu_slot_get()
495 if (!slot) { in cmd_dfu_slot_get()
500 slot_info_print(sh, slot, &idx); in cmd_dfu_slot_get()
669 const struct bt_mesh_dfu_slot *slot; in cmd_dfu_target_check() local
691 slot = bt_mesh_dfu_slot_at(slot_idx); in cmd_dfu_target_check()
692 if (!slot) { in cmd_dfu_target_check()
698 &ctx, img_idx, slot, &rsp); in cmd_dfu_target_check()
755 xfer.slot = bt_mesh_dfu_slot_at(slot_idx); in cmd_dfu_send()
756 if (!xfer.slot) { in cmd_dfu_send()
1010 SHELL_CMD(slot, &dfu_slot_cmds, "Slot commands", bt_mesh_shell_mdl_cmds_help),