Lines Matching refs:kr_phase

56 		kr_phase:7;  member
111 key.kr_phase = sub->kr_phase; in store_subnet()
150 if (sub && (sub->kr_phase == BT_MESH_KR_PHASE_2)) { in bt_mesh_net_flags()
213 LOG_DBG("Phase 0x%02x -> 0x%02x", sub->kr_phase, new_phase); in key_refresh()
218 sub->kr_phase = new_phase; in key_refresh()
223 sub->kr_phase = new_phase; in key_refresh()
228 if (sub->kr_phase == BT_MESH_KR_NORMAL) { in key_refresh()
233 sub->kr_phase = BT_MESH_KR_NORMAL; in key_refresh()
253 if (sub->kr_phase == BT_MESH_KR_PHASE_1) { in bt_mesh_kr_update()
259 } else if (sub->kr_phase == BT_MESH_KR_PHASE_2 && !kr_flag) { in bt_mesh_kr_update()
397 sub->kr_phase = BT_MESH_KR_NORMAL; in bt_mesh_subnet_add()
438 switch (sub->kr_phase) { in bt_mesh_subnet_update()
530 if (*phase == sub->kr_phase) { in bt_mesh_subnet_kr_phase_set()
534 if (sub->kr_phase < ARRAY_SIZE(valid_transitions) && in bt_mesh_subnet_kr_phase_set()
535 valid_transitions[sub->kr_phase] & BIT(*phase)) { in bt_mesh_subnet_kr_phase_set()
538 *phase = sub->kr_phase; in bt_mesh_subnet_kr_phase_set()
543 LOG_WRN("Invalid KR transition: 0x%02x -> 0x%02x", sub->kr_phase, *phase); in bt_mesh_subnet_kr_phase_set()
545 *phase = sub->kr_phase; in bt_mesh_subnet_kr_phase_set()
560 *phase = sub->kr_phase; in bt_mesh_subnet_kr_phase_get()
768 int bt_mesh_subnet_set(uint16_t net_idx, uint8_t kr_phase, const struct bt_mesh_key *old_key, in bt_mesh_subnet_set() argument
798 sub->kr_phase = kr_phase; in bt_mesh_subnet_set()
994 net_idx, key.kr_phase, &val[0], in net_key_set()
995 (key.kr_phase != BT_MESH_KR_NORMAL) ? &val[1] : NULL); in net_key_set()