Home
last modified time | relevance | path

Searched refs:key_idx (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/subsys/bluetooth/mesh/
Dtesting.h28 void (*model_bound)(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx);
29 void (*model_unbound)(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx);
84 void bt_mesh_test_model_bound(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx);
85 void bt_mesh_test_model_unbound(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx);
Dtesting.c63 void bt_mesh_test_model_bound(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx) in bt_mesh_test_model_bound() argument
69 cb->model_bound(addr, model, key_idx); in bt_mesh_test_model_bound()
74 void bt_mesh_test_model_unbound(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx) in bt_mesh_test_model_unbound() argument
80 cb->model_unbound(addr, model, key_idx); in bt_mesh_test_model_unbound()
Dcdb.c34 uint16_t key_idx:12, /* AppKey or NetKey Index */ member
623 static struct key_update *cdb_key_update_find(bool app_key, uint16_t key_idx, in cdb_key_update_find() argument
644 if (update->key_idx == key_idx) { in cdb_key_update_find()
677 free_slot->key_idx = sub->net_idx; in update_cdb_subnet_settings()
710 free_slot->key_idx = key->app_idx; in update_cdb_app_key_settings()
885 int bt_mesh_cdb_subnet_key_import(struct bt_mesh_cdb_subnet *sub, int key_idx, in bt_mesh_cdb_subnet_key_import() argument
888 if (!bt_mesh_key_compare(in, &sub->keys[key_idx].net_key)) { in bt_mesh_cdb_subnet_key_import()
892 bt_mesh_key_destroy(&sub->keys[key_idx].net_key); in bt_mesh_cdb_subnet_key_import()
894 return bt_mesh_key_import(BT_MESH_KEY_TYPE_NET, in, &sub->keys[key_idx].net_key); in bt_mesh_cdb_subnet_key_import()
897 int bt_mesh_cdb_subnet_key_export(const struct bt_mesh_cdb_subnet *sub, int key_idx, in bt_mesh_cdb_subnet_key_export() argument
[all …]
Dapp_keys.c37 uint16_t key_idx:12, /* AppKey Index */ member
123 static struct app_key_update *app_key_update_find(uint16_t key_idx, in app_key_update_find() argument
140 if (update->key_idx == key_idx) { in app_key_update_find()
173 free_slot->key_idx = app_idx; in update_app_key_settings()
379 static int app_id_set(struct app_key *app, int key_idx, const struct bt_mesh_key *key) in app_id_set() argument
389 err = bt_mesh_app_id(raw_key, &app->keys[key_idx].id); in app_id_set()
394 bt_mesh_key_assign(&app->keys[key_idx].val, key); in app_id_set()
718 clear_app_key(update->key_idx); in bt_mesh_app_key_pending_store()
720 store_app_key(update->key_idx); in bt_mesh_app_key_pending_store()
Dsubnet.c48 uint16_t key_idx:12, /* NetKey Index */ member
121 static struct net_key_update *net_key_update_find(uint16_t key_idx, in net_key_update_find() argument
138 if (update->key_idx == key_idx) { in net_key_update_find()
186 free_slot->key_idx = net_idx; in update_subnet_settings()
749 static int subnet_key_set(struct bt_mesh_subnet *sub, int key_idx, const struct bt_mesh_key *key) in subnet_key_set() argument
759 bt_mesh_key_assign(&sub->keys[key_idx].net, key); in subnet_key_set()
760 err = net_keys_create(&sub->keys[key_idx], false, raw_key); in subnet_key_set()
1014 clear_net_key(update->key_idx); in bt_mesh_subnet_pending_store()
1016 store_subnet(update->key_idx); in bt_mesh_subnet_pending_store()
Dcfg_srv.c201 static uint8_t mod_bind(const struct bt_mesh_model *model, uint16_t key_idx) in mod_bind() argument
205 LOG_DBG("model %p key_idx 0x%03x", model, key_idx); in mod_bind()
207 if (!bt_mesh_app_key_exists(key_idx)) { in mod_bind()
214 if (model->keys[i] == key_idx) { in mod_bind()
221 model->keys[i] = key_idx; in mod_bind()
234 static uint8_t mod_unbind(const struct bt_mesh_model *model, uint16_t key_idx, bool store) in mod_unbind() argument
238 LOG_DBG("model %p key_idx 0x%03x store %u", model, key_idx, store); in mod_unbind()
240 if (!bt_mesh_app_key_exists(key_idx)) { in mod_unbind()
245 if (model->keys[i] != key_idx) { in mod_unbind()
255 if (model->pub && model->pub->key == key_idx) { in mod_unbind()
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dcdb.h305 int bt_mesh_cdb_subnet_key_import(struct bt_mesh_cdb_subnet *sub, int key_idx,
322 int bt_mesh_cdb_subnet_key_export(const struct bt_mesh_cdb_subnet *sub, int key_idx,
378 int bt_mesh_cdb_app_key_import(struct bt_mesh_cdb_app_key *key, int key_idx, const uint8_t in[16]);
394 int bt_mesh_cdb_app_key_export(const struct bt_mesh_cdb_app_key *key, int key_idx, uint8_t out[16]);
/Zephyr-latest/drivers/wifi/nrf_wifi/inc/
Dwpa_supp_if.h57 int key_idx,
/Zephyr-latest/drivers/wifi/nrf_wifi/src/
Dwpa_supp_if.c723 int key_idx, in nrf_wifi_wpa_supp_add_key() argument
741 key_info->key_idx = key_idx; in nrf_wifi_wpa_supp_add_key()
949 const unsigned char *addr, int key_idx, int set_tx, in nrf_wifi_wpa_supp_set_key() argument
1024 key_info.key_idx = key_idx; in nrf_wifi_wpa_supp_set_key()
1058 key_info.key_idx = key_idx; in nrf_wifi_wpa_supp_set_key()
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_mesh.c5416 uint16_t key_idx) in model_bound_cb() argument
5421 addr, key_idx, model); in model_bound_cb()
5427 model_bound[i].appkey_idx = key_idx; in model_bound_cb()
5437 uint16_t key_idx) in model_unbound_cb() argument
5442 addr, key_idx, model); in model_unbound_cb()