Lines Matching refs:bt_mesh_subnet

62 static struct bt_mesh_subnet subnets[CONFIG_BT_MESH_SUBNET_COUNT] = {
68 static void subnet_evt(struct bt_mesh_subnet *sub, enum bt_mesh_key_evt evt) in subnet_evt()
93 const struct bt_mesh_subnet *sub; in store_subnet()
146 uint8_t bt_mesh_net_flags(struct bt_mesh_subnet *sub) in bt_mesh_net_flags()
211 static void key_refresh(struct bt_mesh_subnet *sub, uint8_t new_phase) in key_refresh()
247 void bt_mesh_kr_update(struct bt_mesh_subnet *sub, bool kr_flag, bool new_key) in bt_mesh_kr_update()
264 static struct bt_mesh_subnet *subnet_alloc(uint16_t net_idx) in subnet_alloc()
266 struct bt_mesh_subnet *sub = NULL; in subnet_alloc()
282 static void subnet_del(struct bt_mesh_subnet *sub) in subnet_del()
373 struct bt_mesh_subnet *sub = NULL; in bt_mesh_subnet_add()
422 struct bt_mesh_subnet *sub; in bt_mesh_subnet_update()
466 struct bt_mesh_subnet *sub; in bt_mesh_subnet_del()
520 struct bt_mesh_subnet *sub; in bt_mesh_subnet_kr_phase_set()
552 struct bt_mesh_subnet *sub; in bt_mesh_subnet_kr_phase_get()
568 struct bt_mesh_subnet *sub; in bt_mesh_subnet_node_id_set()
610 struct bt_mesh_subnet *sub; in bt_mesh_subnet_node_id_get()
630 struct bt_mesh_subnet *sub; in bt_mesh_subnet_priv_node_id_set()
673 struct bt_mesh_subnet *sub; in bt_mesh_subnet_priv_node_id_get()
715 struct bt_mesh_subnet *sub = &subnets[i]; in bt_mesh_subnets_get()
736 struct bt_mesh_subnet *bt_mesh_subnet_get(uint16_t net_idx) in bt_mesh_subnet_get()
739 struct bt_mesh_subnet *sub = &subnets[i]; in bt_mesh_subnet_get()
749 static int subnet_key_set(struct bt_mesh_subnet *sub, int key_idx, const struct bt_mesh_key *key) in subnet_key_set()
771 struct bt_mesh_subnet *sub; in bt_mesh_subnet_set()
812 struct bt_mesh_subnet *bt_mesh_subnet_find(bool (*cb)(struct bt_mesh_subnet *sub, void *cb_data), in bt_mesh_subnet_find()
828 size_t bt_mesh_subnet_foreach(void (*cb)(struct bt_mesh_subnet *sub)) in bt_mesh_subnet_foreach()
844 struct bt_mesh_subnet *bt_mesh_subnet_next(struct bt_mesh_subnet *sub) in bt_mesh_subnet_next()
874 struct bt_mesh_subnet *sub = &subnets[i]; in bt_mesh_net_keys_reset()