Lines Matching refs:cb
76 struct bt_pub_key_cb *cb; in bt_pub_key_gen() local
106 SYS_SLIST_FOR_EACH_CONTAINER(&pub_key_cb_slist, cb, node) { in bt_pub_key_gen()
107 if (cb == new_cb) { in bt_pub_key_gen()
127 SYS_SLIST_FOR_EACH_CONTAINER(&pub_key_cb_slist, cb, node) { in bt_pub_key_gen()
128 if (cb->func) { in bt_pub_key_gen()
129 cb->func(NULL); in bt_pub_key_gen()
142 struct bt_pub_key_cb *cb; in bt_pub_key_hci_disrupted() local
146 SYS_SLIST_FOR_EACH_CONTAINER(&pub_key_cb_slist, cb, node) { in bt_pub_key_hci_disrupted()
147 if (cb->func) { in bt_pub_key_hci_disrupted()
148 cb->func(NULL); in bt_pub_key_hci_disrupted()
202 int bt_dh_key_gen(const uint8_t remote_pk[BT_PUB_KEY_LEN], bt_dh_key_cb_t cb) in bt_dh_key_gen() argument
206 if (dh_key_cb == cb) { in bt_dh_key_gen()
218 dh_key_cb = cb; in bt_dh_key_gen()
240 struct bt_pub_key_cb *cb; in bt_hci_evt_le_pkey_complete() local
251 SYS_SLIST_FOR_EACH_CONTAINER(&pub_key_cb_slist, cb, node) { in bt_hci_evt_le_pkey_complete()
252 if (cb->func) { in bt_hci_evt_le_pkey_complete()
253 cb->func(evt->status ? NULL : pub_key); in bt_hci_evt_le_pkey_complete()
267 bt_dh_key_cb_t cb = dh_key_cb; in bt_hci_evt_le_dhkey_complete() local
270 cb(evt->status ? NULL : evt->dhkey); in bt_hci_evt_le_dhkey_complete()