Lines Matching full:update

74 		bool     update;  member
79 /* One more entry for the node's address update. */
202 if (net.iv.update) { in cdb_net_set()
579 struct node_update *update = &cdb_node_updates[i]; in cdb_node_update_find() local
581 if (update->addr == BT_MESH_ADDR_UNASSIGNED) { in cdb_node_update_find()
582 *free_slot = update; in cdb_node_update_find()
586 if (update->addr == addr) { in cdb_node_update_find()
587 match = update; in cdb_node_update_find()
597 struct node_update *update, *free_slot; in update_cdb_node_settings() local
601 update = cdb_node_update_find(node->addr, &free_slot); in update_cdb_node_settings()
602 if (update) { in update_cdb_node_settings()
603 update->clear = !store; in update_cdb_node_settings()
633 struct key_update *update = &cdb_key_updates[i]; in cdb_key_update_find() local
635 if (!update->valid) { in cdb_key_update_find()
636 *free_slot = update; in cdb_key_update_find()
640 if (update->app_key != app_key) { in cdb_key_update_find()
644 if (update->key_idx == key_idx) { in cdb_key_update_find()
645 match = update; in cdb_key_update_find()
655 struct key_update *update, *free_slot; in update_cdb_subnet_settings() local
660 update = cdb_key_update_find(false, sub->net_idx, &free_slot); in update_cdb_subnet_settings()
661 if (update) { in update_cdb_subnet_settings()
662 update->clear = clear; in update_cdb_subnet_settings()
687 struct key_update *update, *free_slot; in update_cdb_app_key_settings() local
692 update = cdb_key_update_find(true, key->app_idx, &free_slot); in update_cdb_app_key_settings()
693 if (update) { in update_cdb_app_key_settings()
694 update->clear = clear; in update_cdb_app_key_settings()
1130 net.iv.update = atomic_test_bit(bt_mesh_cdb.flags, in store_cdb_pending_net()
1147 struct node_update *update = &cdb_node_updates[i]; in store_cdb_pending_nodes() local
1150 if (update->addr == BT_MESH_ADDR_UNASSIGNED) { in store_cdb_pending_nodes()
1154 addr = update->addr; in store_cdb_pending_nodes()
1155 update->addr = BT_MESH_ADDR_UNASSIGNED; in store_cdb_pending_nodes()
1157 LOG_DBG("addr: 0x%04x, clear: %d", addr, update->clear); in store_cdb_pending_nodes()
1159 if (update->clear) { in store_cdb_pending_nodes()
1179 struct key_update *update = &cdb_key_updates[i]; in store_cdb_pending_keys() local
1181 if (!update->valid) { in store_cdb_pending_keys()
1185 update->valid = 0U; in store_cdb_pending_keys()
1187 if (update->clear) { in store_cdb_pending_keys()
1188 if (update->app_key) { in store_cdb_pending_keys()
1189 clear_cdb_app_key(update->key_idx); in store_cdb_pending_keys()
1191 clear_cdb_subnet(update->key_idx); in store_cdb_pending_keys()
1194 if (update->app_key) { in store_cdb_pending_keys()
1197 key = bt_mesh_cdb_app_key_get(update->key_idx); in store_cdb_pending_keys()
1201 LOG_WRN("AppKeyIndex 0x%03x not found", update->key_idx); in store_cdb_pending_keys()
1206 sub = bt_mesh_cdb_subnet_get(update->key_idx); in store_cdb_pending_keys()
1210 LOG_WRN("NetKeyIndex 0x%03x not found", update->key_idx); in store_cdb_pending_keys()