Lines Matching refs:phase
511 uint8_t bt_mesh_subnet_kr_phase_set(uint16_t net_idx, uint8_t *phase) in bt_mesh_subnet_kr_phase_set() argument
526 *phase = 0x00; in bt_mesh_subnet_kr_phase_set()
530 if (*phase == sub->kr_phase) { in bt_mesh_subnet_kr_phase_set()
535 valid_transitions[sub->kr_phase] & BIT(*phase)) { in bt_mesh_subnet_kr_phase_set()
536 key_refresh(sub, *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()
550 uint8_t bt_mesh_subnet_kr_phase_get(uint16_t net_idx, uint8_t *phase) in bt_mesh_subnet_kr_phase_get() argument
556 *phase = BT_MESH_KR_NORMAL; in bt_mesh_subnet_kr_phase_get()
560 *phase = sub->kr_phase; in bt_mesh_subnet_kr_phase_get()