Home
last modified time | relevance | path

Searched refs:new_slot (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_dfu.c440 struct bt_mesh_dfu_slot *new_slot = bt_mesh_dfu_slot_reserve(); in slot_reserve_and_set() local
442 if (!new_slot) { in slot_reserve_and_set()
447 int err = bt_mesh_dfu_slot_fwid_set(new_slot, fwid, fwid_len); in slot_reserve_and_set()
453 err = bt_mesh_dfu_slot_info_set(new_slot, size, metadata, metadata_len); in slot_reserve_and_set()
459 return new_slot; in slot_reserve_and_set()
464 struct bt_mesh_dfu_slot *new_slot; in slot_add() local
473 new_slot = slot_reserve_and_set(size, fwid, fwid_len, metadata, metadata_len); in slot_add()
474 if (!new_slot) { in slot_add()
478 if (bt_mesh_dfu_slot_commit(new_slot) != 0) { in slot_add()
483 *slot = new_slot; in slot_add()
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4_server.c797 struct dhcpv4_addr_slot *new_slot = NULL; in echo_reply_handler() local
837 new_slot = slot; in echo_reply_handler()
842 if (new_slot == NULL) { in echo_reply_handler()
849 if (dhcpv4_probe_address(ctx, new_slot) < 0) { in echo_reply_handler()
855 new_slot->state = DHCPV4_SERVER_ADDR_RESERVED; in echo_reply_handler()
856 new_slot->expiry = sys_timepoint_calc(ADDRESS_PROBE_TIMEOUT); in echo_reply_handler()
857 new_slot->client_id.len = probe_ctx->slot->client_id.len; in echo_reply_handler()
858 memcpy(new_slot->client_id.buf, probe_ctx->slot->client_id.buf, in echo_reply_handler()
859 new_slot->client_id.len); in echo_reply_handler()
860 new_slot->lease_time = probe_ctx->slot->lease_time; in echo_reply_handler()
[all …]